Title: [173674] trunk/LayoutTests
- Revision
- 173674
- Author
- [email protected]
- Date
- 2014-09-16 15:36:41 -0700 (Tue, 16 Sep 2014)
Log Message
Make spelling tests more reliable by using a word that is misspelled everywhere
https://bugs.webkit.org/show_bug.cgi?id=136865
Reviewed by Simon Fraser.
Some platforms recognize "wellcome" as spelled correctly.
* editing/spelling/context-menu-suggestions.html:
* editing/spelling/spelling-with-punctuation-selection-expected.txt:
* editing/spelling/spelling-with-punctuation-selection.html:
Modified Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (173673 => 173674)
--- trunk/LayoutTests/ChangeLog 2014-09-16 22:29:44 UTC (rev 173673)
+++ trunk/LayoutTests/ChangeLog 2014-09-16 22:36:41 UTC (rev 173674)
@@ -1,3 +1,16 @@
+2014-09-16 Myles C. Maxfield <[email protected]>
+
+ Make spelling tests more reliable by using a word that is misspelled everywhere
+ https://bugs.webkit.org/show_bug.cgi?id=136865
+
+ Reviewed by Simon Fraser.
+
+ Some platforms recognize "wellcome" as spelled correctly.
+
+ * editing/spelling/context-menu-suggestions.html:
+ * editing/spelling/spelling-with-punctuation-selection-expected.txt:
+ * editing/spelling/spelling-with-punctuation-selection.html:
+
2014-09-16 Roger Fong <[email protected]>
[Win] Unreviewed. Skip failing WebGL conformance test.
Modified: trunk/LayoutTests/editing/spelling/context-menu-suggestions.html (173673 => 173674)
--- trunk/LayoutTests/editing/spelling/context-menu-suggestions.html 2014-09-16 22:29:44 UTC (rev 173673)
+++ trunk/LayoutTests/editing/spelling/context-menu-suggestions.html 2014-09-16 22:36:41 UTC (rev 173674)
@@ -12,7 +12,7 @@
var input = document.getElementById("input");
input.focus();
- document.execCommand("InsertText", false, 'wellcome');
+ document.execCommand("InsertText", false, 'welllcome');
document.execCommand("InsertText", false, ' ');
var x = input.offsetParent.offsetLeft + input.offsetLeft + 4;
Modified: trunk/LayoutTests/editing/spelling/spelling-with-punctuation-selection-expected.txt (173673 => 173674)
--- trunk/LayoutTests/editing/spelling/spelling-with-punctuation-selection-expected.txt 2014-09-16 22:29:44 UTC (rev 173673)
+++ trunk/LayoutTests/editing/spelling/spelling-with-punctuation-selection-expected.txt 2014-09-16 22:36:41 UTC (rev 173674)
@@ -4,11 +4,11 @@
PASS internals.markerCountForNode(destination.childNodes[0], "spelling") became different from 0
-PASS spellingMarkerRange.toString() is "wellcome"
+PASS spellingMarkerRange.toString() is "welllcome"
PASS window.getSelection().toString() is ""
-PASS window.getSelection().toString() is "wellcome!"
-PASS spellingMarkerRange.toString() became "wellcome"
+PASS window.getSelection().toString() is "welllcome!"
+PASS spellingMarkerRange.toString() became "welllcome"
PASS successfullyParsed is true
TEST COMPLETE
-wellcome!
+welllcome!
Modified: trunk/LayoutTests/editing/spelling/spelling-with-punctuation-selection.html (173673 => 173674)
--- trunk/LayoutTests/editing/spelling/spelling-with-punctuation-selection.html 2014-09-16 22:29:44 UTC (rev 173673)
+++ trunk/LayoutTests/editing/spelling/spelling-with-punctuation-selection.html 2014-09-16 22:36:41 UTC (rev 173674)
@@ -15,22 +15,22 @@
+ "To test manually, type 'wellcome!' and select 'wellcome!'. "
+ "The test succeeds when 'wellcome' has spelling marker.");
-initSpellTest("destination", "wellcome!", function(textNode) {
+initSpellTest("destination", "welllcome!", function(textNode) {
spellingMarkerRange = internals.markerRangeForNode(textNode, "spelling", 0);
- shouldBeEqualToString("spellingMarkerRange.toString()", "wellcome");
+ shouldBeEqualToString("spellingMarkerRange.toString()", "welllcome");
shouldBeEqualToString("window.getSelection().toString()", "");
// Select the text "wellcome!" with the exclamation mark.
var range = document.createRange();
range.setStart(textNode, 0);
- range.setEnd(textNode, 9);
+ range.setEnd(textNode, 10);
window.getSelection().removeAllRanges();
window.getSelection().addRange(range);
- shouldBeEqualToString("window.getSelection().toString()", "wellcome!");
+ shouldBeEqualToString("window.getSelection().toString()", "welllcome!");
spellingMarkerRange = internals.markerRangeForNode(textNode, "spelling", 0);
- shouldBecomeEqualToString("spellingMarkerRange.toString()", "wellcome", finishJSTest);
+ shouldBecomeEqualToString("spellingMarkerRange.toString()", "welllcome", finishJSTest);
});
</script>
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes