Diff
Modified: trunk/LayoutTests/ChangeLog (188940 => 188941)
--- trunk/LayoutTests/ChangeLog 2015-08-26 01:02:54 UTC (rev 188940)
+++ trunk/LayoutTests/ChangeLog 2015-08-26 01:35:30 UTC (rev 188941)
@@ -1,3 +1,17 @@
+2015-08-25 Nan Wang <[email protected]>
+
+ AX: accessibility/mac/misspelled-attributed-string.html is flaky
+ https://bugs.webkit.org/show_bug.cgi?id=148455
+
+ Reviewed by Chris Fleizach.
+
+ Updated the test case to be more stable since the client's text checker
+ might change over time.
+
+ * accessibility/mac/misspelled-attributed-string-expected.txt:
+ * accessibility/mac/misspelled-attributed-string.html:
+ * platform/mac/TestExpectations:
+
2015-08-25 Zalan Bujtas <[email protected]>
Using the filter functional notation for background images results in wrong background-size rendering
Modified: trunk/LayoutTests/accessibility/mac/misspelled-attributed-string-expected.txt (188940 => 188941)
--- trunk/LayoutTests/accessibility/mac/misspelled-attributed-string-expected.txt 2015-08-26 01:02:54 UTC (rev 188940)
+++ trunk/LayoutTests/accessibility/mac/misspelled-attributed-string-expected.txt 2015-08-26 01:35:30 UTC (rev 188941)
@@ -1,4 +1,4 @@
-wrods is misspelled aa lotsi nowadays. euep.
+wrods is misspelled aab lotsi nowadays. euep.
This tests that misspelled words are correctly marked when asking for an attributed string.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
@@ -10,14 +10,14 @@
PASS text.attributedStringRangeIsMisspelled(6, 2) is false
PASS text.stringForRange(9, 10) is 'misspelled'
PASS text.attributedStringRangeIsMisspelled(9, 10) is false
-PASS text.stringForRange(20, 2) is 'aa'
-PASS text.attributedStringRangeIsMisspelled(20, 2) is true
-PASS text.stringForRange(23, 5) is 'lotsi'
-PASS text.attributedStringRangeIsMisspelled(23, 5) is true
-PASS text.stringForRange(29, 8) is 'nowadays'
-PASS text.attributedStringRangeIsMisspelled(29, 8) is false
-PASS text.stringForRange(39, 5) is 'euep.'
-PASS text.attributedStringRangeIsMisspelled(39, 5) is true
+PASS text.stringForRange(20, 3) is 'aab'
+PASS text.attributedStringRangeIsMisspelled(20, 3) is true
+PASS text.stringForRange(24, 5) is 'lotsi'
+PASS text.attributedStringRangeIsMisspelled(24, 5) is true
+PASS text.stringForRange(30, 8) is 'nowadays'
+PASS text.attributedStringRangeIsMisspelled(30, 8) is false
+PASS text.stringForRange(40, 5) is 'euep.'
+PASS text.attributedStringRangeIsMisspelled(40, 5) is true
PASS successfullyParsed is true
TEST COMPLETE
Modified: trunk/LayoutTests/accessibility/mac/misspelled-attributed-string.html (188940 => 188941)
--- trunk/LayoutTests/accessibility/mac/misspelled-attributed-string.html 2015-08-26 01:02:54 UTC (rev 188940)
+++ trunk/LayoutTests/accessibility/mac/misspelled-attributed-string.html 2015-08-26 01:35:30 UTC (rev 188941)
@@ -10,7 +10,7 @@
<body>
<div contenteditable=true id="content" role="textbox">
-wrods is misspelled aa lotsi nowadays. euep.
+wrods is misspelled aab lotsi nowadays. euep.
</div>
@@ -46,21 +46,21 @@
shouldBe("text.stringForRange(9, 10)", "'misspelled'");
shouldBeFalse("text.attributedStringRangeIsMisspelled(9, 10)");
- // aa
- shouldBe("text.stringForRange(20, 2)", "'aa'");
- shouldBeTrue("text.attributedStringRangeIsMisspelled(20, 2)");
+ // aab
+ shouldBe("text.stringForRange(20, 3)", "'aab'");
+ shouldBeTrue("text.attributedStringRangeIsMisspelled(20, 3)");
// lotsi
- shouldBe("text.stringForRange(23, 5)", "'lotsi'");
- shouldBeTrue("text.attributedStringRangeIsMisspelled(23, 5)");
+ shouldBe("text.stringForRange(24, 5)", "'lotsi'");
+ shouldBeTrue("text.attributedStringRangeIsMisspelled(24, 5)");
// nowadays
- shouldBe("text.stringForRange(29, 8)", "'nowadays'");
- shouldBeFalse("text.attributedStringRangeIsMisspelled(29, 8)");
+ shouldBe("text.stringForRange(30, 8)", "'nowadays'");
+ shouldBeFalse("text.attributedStringRangeIsMisspelled(30, 8)");
// eue9
- shouldBe("text.stringForRange(39, 5)", "'euep.'");
- shouldBeTrue("text.attributedStringRangeIsMisspelled(39, 5)");
+ shouldBe("text.stringForRange(40, 5)", "'euep.'");
+ shouldBeTrue("text.attributedStringRangeIsMisspelled(40, 5)");
}
</script>
Modified: trunk/LayoutTests/platform/mac/TestExpectations (188940 => 188941)
--- trunk/LayoutTests/platform/mac/TestExpectations 2015-08-26 01:02:54 UTC (rev 188940)
+++ trunk/LayoutTests/platform/mac/TestExpectations 2015-08-26 01:35:30 UTC (rev 188941)
@@ -1066,9 +1066,6 @@
webkit.org/b/137505 media/track/track-forced-subtitles-in-band.html [ Failure Pass Timeout ]
-# FIXME: Needs bugzilla (<rdar://problem/15971968>)
-[ Yosemite+ ] accessibility/mac/misspelled-attributed-string.html [ Pass Failure ]
-
# FIXME: Needs bugzilla (<rdar://problem/16040720>)
[ Yosemite+ ] canvas/philip/tests/2d.drawImage.animated.poster.html [ Pass Failure ]
[ Yosemite+ ] fast/canvas/canvas-scale-strokePath-shadow.html [ Pass Failure ]