Make spelling tests more reliable by using a word that is misspelled everywhere
authormmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 16 Sep 2014 22:36:41 +0000 (22:36 +0000)
committermmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 16 Sep 2014 22:36:41 +0000 (22:36 +0000)
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:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@173674 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/editing/spelling/context-menu-suggestions.html
LayoutTests/editing/spelling/spelling-with-punctuation-selection-expected.txt
LayoutTests/editing/spelling/spelling-with-punctuation-selection.html

index f13233878d0a4387cc4c235cb112c01bd248da4e..2ce960ee7666c7591c424529d3f0762d0e1e9769 100644 (file)
@@ -1,3 +1,16 @@
+2014-09-16  Myles C. Maxfield  <mmaxfield@apple.com>
+
+        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  <roger_fong@apple.com>
 
         [Win] Unreviewed. Skip failing WebGL conformance test.
index 639d7b7d1c6635fb5e50bb59ae7e07647a1d1dcb..20ad118594355d2398f3babe53e72d07ed01cbd4 100644 (file)
@@ -12,7 +12,7 @@ function test()
 
     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;
index bbc02afd97374e223a3aad2e49010591b79145e1..8824f0a0bbaa7789fc9782220b20bf8bbeb9b493 100644 (file)
@@ -4,11 +4,11 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
 
 
 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!
index f9426e9be75262a1734506c4e92e41cdb0e0cac1..77f140a79c567add7d8c99333cdd6319bb5f4ddd 100644 (file)
@@ -15,22 +15,22 @@ description("Punctuation marks should be treated as whitespace: spelling should
     + "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>