Title: [95018] trunk/LayoutTests
Revision
95018
Author
commit-qu...@webkit.org
Date
2011-09-12 23:10:56 -0700 (Mon, 12 Sep 2011)

Log Message

Add a test that ensures that the accessibility tree
does not contain duplicate child nodes.
https://bugs.webkit.org/show_bug.cgi?id=58930

This test failed when the bug was originally filed, but was
fixed in: https://bugs.webkit.org/show_bug.cgi?id=61805
so no code changes are accompanying this new layout test.

Patch by Dominic Mazzoni <dmazz...@google.com> on 2011-09-12
Reviewed by Chris Fleizach.

* accessibility/duplicate-child-nodes-expected.txt: Added.
* accessibility/duplicate-child-nodes.html: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (95017 => 95018)


--- trunk/LayoutTests/ChangeLog	2011-09-13 05:57:30 UTC (rev 95017)
+++ trunk/LayoutTests/ChangeLog	2011-09-13 06:10:56 UTC (rev 95018)
@@ -1,3 +1,18 @@
+2011-09-12  Dominic Mazzoni  <dmazz...@google.com>
+
+        Add a test that ensures that the accessibility tree
+        does not contain duplicate child nodes.
+        https://bugs.webkit.org/show_bug.cgi?id=58930
+
+        This test failed when the bug was originally filed, but was
+        fixed in: https://bugs.webkit.org/show_bug.cgi?id=61805
+        so no code changes are accompanying this new layout test.
+
+        Reviewed by Chris Fleizach.
+
+        * accessibility/duplicate-child-nodes-expected.txt: Added.
+        * accessibility/duplicate-child-nodes.html: Added.
+
 2011-09-12  Shinya Kawanaka  <shin...@google.com>
 
         Crashes in WebCore::InsertListCommand::unlistifyParagraph.

Added: trunk/LayoutTests/accessibility/duplicate-child-nodes-expected.txt (0 => 95018)


--- trunk/LayoutTests/accessibility/duplicate-child-nodes-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/accessibility/duplicate-child-nodes-expected.txt	2011-09-13 06:10:56 UTC (rev 95018)
@@ -0,0 +1,9 @@
+Child nodes should not be duplicated in the accessibility tree.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Added: trunk/LayoutTests/accessibility/duplicate-child-nodes.html (0 => 95018)


--- trunk/LayoutTests/accessibility/duplicate-child-nodes.html	                        (rev 0)
+++ trunk/LayoutTests/accessibility/duplicate-child-nodes.html	2011-09-13 06:10:56 UTC (rev 95018)
@@ -0,0 +1,32 @@
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+<head>
+<link rel="stylesheet" href=""
+<script>
+    var successfullyParsed = false;
+</script>
+<script src=""
+</head>
+<body>
+
+<em><code ><h4 ></em>
+
+<p id="description"></p>
+<div id="console"></div>
+
+<script>
+    description("Child nodes should not be duplicated in the accessibility tree.");
+
+    if (window.accessibilityController) {
+        document.body.focus();
+        var webArea = accessibilityController.focusedElement;
+        if (webArea.childrenCount > 1)
+            shouldBe("webArea.childAtIndex(0).isEqual(webArea.childAtIndex(1))", "false");
+    }
+
+    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

Reply via email to