Diff
Modified: trunk/LayoutTests/ChangeLog (108372 => 108373)
--- trunk/LayoutTests/ChangeLog 2012-02-21 19:10:05 UTC (rev 108372)
+++ trunk/LayoutTests/ChangeLog 2012-02-21 19:13:34 UTC (rev 108373)
@@ -1,3 +1,17 @@
+2012-02-21 Chris Fleizach <[email protected]>
+
+ AX: move aria-invalid test to top level, so other platforms can use it
+ https://bugs.webkit.org/show_bug.cgi?id=79041
+
+ Reviewed by David Kilzer.
+
+ * accessibility/aria-invalid-expected.txt: Copied from LayoutTests/platform/mac/accessibility/aria-invalid-expected.txt.
+ * accessibility/aria-invalid.html: Copied from LayoutTests/platform/mac/accessibility/aria-invalid.html.
+ * platform/gtk/Skipped:
+ * platform/mac/accessibility/aria-invalid-expected.txt: Removed.
+ * platform/mac/accessibility/aria-invalid.html: Removed.
+ * platform/win/Skipped:
+
2012-02-21 Abhishek Arya <[email protected]>
Crash in RenderTableSection::nodeAtPoint.
Copied: trunk/LayoutTests/accessibility/aria-invalid-expected.txt (from rev 106895, trunk/LayoutTests/platform/mac/accessibility/aria-invalid-expected.txt) (0 => 108373)
--- trunk/LayoutTests/accessibility/aria-invalid-expected.txt (rev 0)
+++ trunk/LayoutTests/accessibility/aria-invalid-expected.txt 2012-02-21 19:13:34 UTC (rev 108373)
@@ -0,0 +1,15 @@
+
+This tests that aria-invalid causes the right attribute to be returned and it ensures a notification is sent when it changes.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS accessibilityController.focusedElement.stringAttributeValue('AXInvalid') is 'true'
+PASS accessibilityController.focusedElement.stringAttributeValue('AXInvalid') is 'grammar'
+PASS accessibilityController.focusedElement.stringAttributeValue('AXInvalid') is 'false'
+PASS accessibilityController.focusedElement.stringAttributeValue('AXInvalid') is 'false'
+PASS addedNotification is true
+PASS successfullyParsed is true
+
+TEST COMPLETE
+Notification received successfully.
Copied: trunk/LayoutTests/accessibility/aria-invalid.html (from rev 106895, trunk/LayoutTests/platform/mac/accessibility/aria-invalid.html) (0 => 108373)
--- trunk/LayoutTests/accessibility/aria-invalid.html (rev 0)
+++ trunk/LayoutTests/accessibility/aria-invalid.html 2012-02-21 19:13:34 UTC (rev 108373)
@@ -0,0 +1,57 @@
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+<head>
+<script src=""
+</head>
+<body id="body">
+
+
+<input type="text" id="text1" aria-invalid="true">
+<input type="text" id="text2" aria-invalid="grammar">
+<input type="text" id="text3" aria-invalid="">
+<input type="text" id="text4">
+
+<p id="description"></p>
+<div id="console"></div>
+<div id="notifications"></div>
+
+<script>
+
+ description("This tests that aria-invalid causes the right attribute to be returned and it ensures a notification is sent when it changes.");
+
+ var notificationElement = 0;
+ function notificationCallback(notification) {
+ if (notification == "AXInvalidStatusChanged") {
+ document.getElementById("notifications").innerHTML += "Notification received successfully.";
+ notificationElement.removeNotificationListener();
+ window.layoutTestController.notifyDone();
+ }
+ }
+
+ if (window.accessibilityController) {
+ window.layoutTestController.waitUntilDone();
+
+ document.getElementById("text1").focus();
+ shouldBe("accessibilityController.focusedElement.stringAttributeValue('AXInvalid')", "'true'");
+
+ document.getElementById("text2").focus();
+ shouldBe("accessibilityController.focusedElement.stringAttributeValue('AXInvalid')", "'grammar'");
+
+ document.getElementById("text3").focus();
+ shouldBe("accessibilityController.focusedElement.stringAttributeValue('AXInvalid')", "'false'");
+
+ document.getElementById("text4").focus();
+ shouldBe("accessibilityController.focusedElement.stringAttributeValue('AXInvalid')", "'false'");
+
+ notificationElement = accessibilityController.focusedElement;
+ var addedNotification = notificationElement.addNotificationListener(notificationCallback);
+ shouldBeTrue("addedNotification");
+
+ document.getElementById("text4").setAttribute("aria-invalid", "spelling");
+ }
+
+</script>
+
+<script src=""
+</body>
+</html>
Modified: trunk/LayoutTests/platform/gtk/Skipped (108372 => 108373)
--- trunk/LayoutTests/platform/gtk/Skipped 2012-02-21 19:10:05 UTC (rev 108372)
+++ trunk/LayoutTests/platform/gtk/Skipped 2012-02-21 19:13:34 UTC (rev 108373)
@@ -405,6 +405,7 @@
accessibility/aria-checkbox-sends-notification.html
accessibility/aria-hidden.html
accessibility/aria-hidden-with-elements.html
+accessibility/aria-invalid.html
accessibility/aria-labelledby-on-input.html
accessibility/aria-labelledby-overrides-label.html
accessibility/aria-labelledby-stay-within.html
Deleted: trunk/LayoutTests/platform/mac/accessibility/aria-invalid-expected.txt (108372 => 108373)
--- trunk/LayoutTests/platform/mac/accessibility/aria-invalid-expected.txt 2012-02-21 19:10:05 UTC (rev 108372)
+++ trunk/LayoutTests/platform/mac/accessibility/aria-invalid-expected.txt 2012-02-21 19:13:34 UTC (rev 108373)
@@ -1,15 +0,0 @@
-
-This tests that aria-invalid causes the right attribute to be returned and it ensures a notification is sent when it changes.
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-PASS accessibilityController.focusedElement.stringAttributeValue('AXInvalid') is 'true'
-PASS accessibilityController.focusedElement.stringAttributeValue('AXInvalid') is 'grammar'
-PASS accessibilityController.focusedElement.stringAttributeValue('AXInvalid') is 'false'
-PASS accessibilityController.focusedElement.stringAttributeValue('AXInvalid') is 'false'
-PASS addedNotification is true
-PASS successfullyParsed is true
-
-TEST COMPLETE
-Notification received successfully.
Deleted: trunk/LayoutTests/platform/mac/accessibility/aria-invalid.html (108372 => 108373)
--- trunk/LayoutTests/platform/mac/accessibility/aria-invalid.html 2012-02-21 19:10:05 UTC (rev 108372)
+++ trunk/LayoutTests/platform/mac/accessibility/aria-invalid.html 2012-02-21 19:13:34 UTC (rev 108373)
@@ -1,57 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
-<html>
-<head>
-<script src=""
-</head>
-<body id="body">
-
-
-<input type="text" id="text1" aria-invalid="true">
-<input type="text" id="text2" aria-invalid="grammar">
-<input type="text" id="text3" aria-invalid="">
-<input type="text" id="text4">
-
-<p id="description"></p>
-<div id="console"></div>
-<div id="notifications"></div>
-
-<script>
-
- description("This tests that aria-invalid causes the right attribute to be returned and it ensures a notification is sent when it changes.");
-
- var notificationElement = 0;
- function notificationCallback(notification) {
- if (notification == "AXInvalidStatusChanged") {
- document.getElementById("notifications").innerHTML += "Notification received successfully.";
- notificationElement.removeNotificationListener();
- window.layoutTestController.notifyDone();
- }
- }
-
- if (window.accessibilityController) {
- window.layoutTestController.waitUntilDone();
-
- document.getElementById("text1").focus();
- shouldBe("accessibilityController.focusedElement.stringAttributeValue('AXInvalid')", "'true'");
-
- document.getElementById("text2").focus();
- shouldBe("accessibilityController.focusedElement.stringAttributeValue('AXInvalid')", "'grammar'");
-
- document.getElementById("text3").focus();
- shouldBe("accessibilityController.focusedElement.stringAttributeValue('AXInvalid')", "'false'");
-
- document.getElementById("text4").focus();
- shouldBe("accessibilityController.focusedElement.stringAttributeValue('AXInvalid')", "'false'");
-
- notificationElement = accessibilityController.focusedElement;
- var addedNotification = notificationElement.addNotificationListener(notificationCallback);
- shouldBeTrue("addedNotification");
-
- document.getElementById("text4").setAttribute("aria-invalid", "spelling");
- }
-
-</script>
-
-<script src=""
-</body>
-</html>
Modified: trunk/LayoutTests/platform/win/Skipped (108372 => 108373)
--- trunk/LayoutTests/platform/win/Skipped 2012-02-21 19:10:05 UTC (rev 108372)
+++ trunk/LayoutTests/platform/win/Skipped 2012-02-21 19:13:34 UTC (rev 108373)
@@ -575,6 +575,7 @@
accessibility/aria-help.html
accessibility/aria-hidden.html
accessibility/aria-hidden-with-elements.html
+accessibility/aria-invalid.html
accessibility/aria-label.html
accessibility/aria-labelledby-overrides-label.html
accessibility/aria-labelledby-on-input.html