Title: [89593] trunk/LayoutTests
- Revision
- 89593
- Author
- cfleiz...@apple.com
- Date
- 2011-06-23 11:04:38 -0700 (Thu, 23 Jun 2011)
Log Message
Make line breaking obey the -webkit-locale property
https://bugs.webkit.org/show_bug.cgi?id=63209
Patch by Dan Bernstein <m...@apple.com> on 2011-06-23
Reviewed by Alexey Proskuryakov.
* platform/mac/fast/text/line-break-locale.html: Added.
* platform/mac/platform/mac/fast/text/line-break-locale-expected.png: Added.
* platform/mac/platform/mac/fast/text/line-break-locale-expected.txt: Added.
Modified Paths
Added Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (89592 => 89593)
--- trunk/LayoutTests/ChangeLog 2011-06-23 18:02:45 UTC (rev 89592)
+++ trunk/LayoutTests/ChangeLog 2011-06-23 18:04:38 UTC (rev 89593)
@@ -11,6 +11,16 @@
2011-06-23 Chris Fleizach <cfleiz...@apple.com>
+ ARIA live regions don't trigger notifications for elements that aren't in the AX tree
+ https://bugs.webkit.org/show_bug.cgi?id=62289
+
+ Actually add the layout tests this time.
+
+ * platform/mac/accessibility/aria-liveregion-without-element-access-expected.txt: Added.
+ * platform/mac/accessibility/aria-liveregion-without-element-access.html: Added.
+
+2011-06-23 Chris Fleizach <cfleiz...@apple.com>
+
Reviewed by Darin Adler.
ARIA live regions don't trigger notifications for elements that aren't in the AX tree
Added: trunk/LayoutTests/platform/mac/accessibility/aria-liveregion-without-element-access-expected.txt (0 => 89593)
--- trunk/LayoutTests/platform/mac/accessibility/aria-liveregion-without-element-access-expected.txt (rev 0)
+++ trunk/LayoutTests/platform/mac/accessibility/aria-liveregion-without-element-access-expected.txt 2011-06-23 18:04:38 UTC (rev 89593)
@@ -0,0 +1,14 @@
+ALERT: Successfully received AXLiveRegionChanged
+text
+
+added
+This tests that adding an element to a live region will trigger a notification even though the AX element was not created previously.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS addedNotification is true
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
Added: trunk/LayoutTests/platform/mac/accessibility/aria-liveregion-without-element-access.html (0 => 89593)
--- trunk/LayoutTests/platform/mac/accessibility/aria-liveregion-without-element-access.html (rev 0)
+++ trunk/LayoutTests/platform/mac/accessibility/aria-liveregion-without-element-access.html 2011-06-23 18:04:38 UTC (rev 89593)
@@ -0,0 +1,55 @@
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+<head>
+<link rel="stylesheet" href=""
+<script>
+var successfullyParsed = false;
+</script>
+<script src=""
+</head>
+<body id="body">
+
+<div role="group" tabindex=0 id="liveregion" aria-live="polite" aria-relevant="additions">
+<h3 id="innerlive">text</h3>
+<div role="group">
+ <div id="addregion"></div>
+</div>
+</div>
+
+<p id="description"></p>
+<div id="console"></div>
+
+<script>
+
+ description("This tests that adding an element to a live region will trigger a notification even though the AX element was not created previously.");
+
+ var liveRegion = 0;
+ function ariaCallback(notification) {
+ if (notification == "AXLiveRegionChanged") {
+ alert("Successfully received " + notification);
+ liveRegion.removeNotificationListener();
+ window.layoutTestController.notifyDone();
+ }
+ }
+
+ if (window.accessibilityController) {
+ window.layoutTestController.waitUntilDone();
+
+ document.getElementById("liveregion").focus();
+ liveRegion = window.accessibilityController.focusedElement;
+
+ // Trigger the live region callback for a new element. Add region has not been created
+ // as an element, but this notification should still be sent for liveregion.
+ document.getElementById("addregion").appendChild(document.createTextNode("added"));
+
+ var addedNotification = liveRegion.addNotificationListener(ariaCallback);
+ shouldBe("addedNotification", "true");
+
+ }
+
+ successfullyParsed = true;
+</script>
+
+<script src=""
+</body>
+</html>
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes