AX: Make tests usable on Mac and Windows
authorbfulgham@apple.com <bfulgham@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 24 Jun 2013 20:46:38 +0000 (20:46 +0000)
committerbfulgham@apple.com <bfulgham@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 24 Jun 2013 20:46:38 +0000 (20:46 +0000)
https://bugs.webkit.org/show_bug.cgi?id=117901

Reviewed by Chris Fleizach.

* accessibility/aria-checkbox-text.html:
* accessibility/aria-hidden-expected.txt:
* accessibility/aria-hidden-with-elements-expected.txt:
* accessibility/aria-hidden-with-elements.html:
* accessibility/aria-hidden.html:
* accessibility/aria-labelledby-overrides-label-expected.txt:
* accessibility/aria-labelledby-overrides-label.html:
* accessibility/aria-option-role.html:
* accessibility/aria-presentational-role-expected.txt:
* accessibility/aria-presentational-role.html:
* accessibility/aria-tab-roles-expected.txt:
* accessibility/aria-tab-roles.html:
* accessibility/empty-image-with-title-expected.txt:
* accessibility/empty-image-with-title.html:
* accessibility/html-html-element-is-ignored-expected.txt:
* accessibility/html-html-element-is-ignored.html:
* accessibility/img-aria-button-alt-tag-expected.txt:
* accessibility/img-aria-button-alt-tag.html:
* accessibility/input-image-alt-expected.txt:
* accessibility/input-image-alt.html:
* platform/mac/accessibility/aria-checkbox-text-expected.txt:
* platform/mac/accessibility/aria-option-role-expected.txt:
* platform/win/accessibility/aria-checkbox-text-expected.txt: Added.
* platform/win/accessibility/aria-hidden-expected.txt: Added.
* platform/win/accessibility/aria-hidden-with-elements-expected.txt: Added.
* platform/win/accessibility/aria-labelledby-overrides-label-expected.txt: Added.
* platform/win/accessibility/aria-option-role-expected.txt: Added.
* platform/win/accessibility/aria-presentational-role-expected.txt: Added.
* platform/win/accessibility/aria-tab-roles-expected.txt: Added.
* platform/win/accessibility/empty-image-with-title-expected.txt: Added.
* platform/win/accessibility/html-html-element-is-ignored-expected.txt: Added.
* platform/win/accessibility/img-aria-button-alt-tag-expected.txt: Added.
* platform/win/accessibility/input-image-alt-expected.txt: Added.
* platform/win/aria-labelledby-on-input-expected.txt: Removed.
* platform/win/aria-menubar-menuitems-expected.txt: Removed.
* platform/win/aria-roles-expected.txt: Removed.

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

39 files changed:
LayoutTests/ChangeLog
LayoutTests/accessibility/aria-checkbox-text.html
LayoutTests/accessibility/aria-hidden-expected.txt
LayoutTests/accessibility/aria-hidden-with-elements-expected.txt
LayoutTests/accessibility/aria-hidden-with-elements.html
LayoutTests/accessibility/aria-hidden.html
LayoutTests/accessibility/aria-labelledby-overrides-label-expected.txt
LayoutTests/accessibility/aria-labelledby-overrides-label.html
LayoutTests/accessibility/aria-option-role.html
LayoutTests/accessibility/aria-presentational-role-expected.txt
LayoutTests/accessibility/aria-presentational-role.html
LayoutTests/accessibility/aria-tab-roles-expected.txt
LayoutTests/accessibility/aria-tab-roles.html
LayoutTests/accessibility/empty-image-with-title-expected.txt
LayoutTests/accessibility/empty-image-with-title.html
LayoutTests/accessibility/html-html-element-is-ignored-expected.txt
LayoutTests/accessibility/html-html-element-is-ignored.html
LayoutTests/accessibility/img-aria-button-alt-tag-expected.txt
LayoutTests/accessibility/img-aria-button-alt-tag.html
LayoutTests/accessibility/input-image-alt-expected.txt
LayoutTests/accessibility/input-image-alt.html
LayoutTests/platform/mac/accessibility/aria-checkbox-text-expected.txt
LayoutTests/platform/mac/accessibility/aria-labelledby-overrides-label-expected.txt
LayoutTests/platform/mac/accessibility/aria-option-role-expected.txt
LayoutTests/platform/mac/accessibility/aria-tab-roles-expected.txt
LayoutTests/platform/win/accessibility/aria-checkbox-text-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/accessibility/aria-hidden-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/accessibility/aria-hidden-with-elements-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/accessibility/aria-labelledby-overrides-label-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/accessibility/aria-option-role-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/accessibility/aria-presentational-role-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/accessibility/aria-tab-roles-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/accessibility/empty-image-with-title-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/accessibility/html-html-element-is-ignored-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/accessibility/img-aria-button-alt-tag-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/accessibility/input-image-alt-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/aria-labelledby-on-input-expected.txt [deleted file]
LayoutTests/platform/win/aria-menubar-menuitems-expected.txt [deleted file]
LayoutTests/platform/win/aria-roles-expected.txt [deleted file]

index d39cf05..c3c4efb 100644 (file)
@@ -1,3 +1,47 @@
+2013-06-24  Brent Fulgham  <bfulgham@apple.com>
+
+        AX: Make tests usable on Mac and Windows
+        https://bugs.webkit.org/show_bug.cgi?id=117901
+
+        Reviewed by Chris Fleizach.
+
+        * accessibility/aria-checkbox-text.html:
+        * accessibility/aria-hidden-expected.txt:
+        * accessibility/aria-hidden-with-elements-expected.txt:
+        * accessibility/aria-hidden-with-elements.html:
+        * accessibility/aria-hidden.html:
+        * accessibility/aria-labelledby-overrides-label-expected.txt:
+        * accessibility/aria-labelledby-overrides-label.html:
+        * accessibility/aria-option-role.html:
+        * accessibility/aria-presentational-role-expected.txt:
+        * accessibility/aria-presentational-role.html:
+        * accessibility/aria-tab-roles-expected.txt:
+        * accessibility/aria-tab-roles.html:
+        * accessibility/empty-image-with-title-expected.txt:
+        * accessibility/empty-image-with-title.html:
+        * accessibility/html-html-element-is-ignored-expected.txt:
+        * accessibility/html-html-element-is-ignored.html:
+        * accessibility/img-aria-button-alt-tag-expected.txt:
+        * accessibility/img-aria-button-alt-tag.html:
+        * accessibility/input-image-alt-expected.txt:
+        * accessibility/input-image-alt.html:
+        * platform/mac/accessibility/aria-checkbox-text-expected.txt:
+        * platform/mac/accessibility/aria-option-role-expected.txt:
+        * platform/win/accessibility/aria-checkbox-text-expected.txt: Added.
+        * platform/win/accessibility/aria-hidden-expected.txt: Added.
+        * platform/win/accessibility/aria-hidden-with-elements-expected.txt: Added.
+        * platform/win/accessibility/aria-labelledby-overrides-label-expected.txt: Added.
+        * platform/win/accessibility/aria-option-role-expected.txt: Added.
+        * platform/win/accessibility/aria-presentational-role-expected.txt: Added.
+        * platform/win/accessibility/aria-tab-roles-expected.txt: Added.
+        * platform/win/accessibility/empty-image-with-title-expected.txt: Added.
+        * platform/win/accessibility/html-html-element-is-ignored-expected.txt: Added.
+        * platform/win/accessibility/img-aria-button-alt-tag-expected.txt: Added.
+        * platform/win/accessibility/input-image-alt-expected.txt: Added.
+        * platform/win/aria-labelledby-on-input-expected.txt: Removed.
+        * platform/win/aria-menubar-menuitems-expected.txt: Removed.
+        * platform/win/aria-roles-expected.txt: Removed.
+
 2013-06-24  Chris Rogers  <crogers@google.com>
 
         WaveTable name has changed to PeriodicWave
index 8ab7b56..dfa258e 100644 (file)
           var checkbox = document.getElementById("check1");
           checkbox.focus();
           checkbox = accessibilityController.focusedElement;
-          shouldBe("checkbox.title", "'AXTitle: One'");
+          debug("checkbox.title is " + checkbox.title);
 
           checkbox = document.getElementById("check2");
           checkbox.focus();
           checkbox = accessibilityController.focusedElement;
-          shouldBe("checkbox.title", "'AXTitle: Two'");
+          debug("checkbox.title is " + checkbox.title);
 
           checkbox = document.getElementById("check3");
           checkbox.focus();
           checkbox = accessibilityController.focusedElement;
-          shouldBe("checkbox.title", "'AXTitle: Three'");
+          debug("checkbox.title is " + checkbox.title);
     }
 
 </script>
index 7134f49..f0e155a 100644 (file)
@@ -7,7 +7,7 @@ This tests that the aria-hidden attribute works correctly with accessibility. Th
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
 
 
-PASS h2.title is 'AXTitle: h2'
+h2.title is AXTitle: h2
 PASS successfullyParsed is true
 
 TEST COMPLETE
index e2920ea..58d499e 100644 (file)
@@ -12,7 +12,7 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
 
 
 PASS child.childrenCount is 0
-PASS child.role is 'AXRole: AXHeading'
+child.role is AXRole: AXHeading
 PASS successfullyParsed is true
 
 TEST COMPLETE
index f9d1ebd..97d747e 100644 (file)
@@ -48,7 +48,7 @@
 
        // The second child we ask for from the web area should be the heading, and we should have skipped over everything else.
        child = container.childAtIndex(1);
-       shouldBe("child.role", "'AXRole: AXHeading'");
+       debug("child.role is " + child.role);
     }
 
 </script>
index 8513909..b94a491 100644 (file)
@@ -18,7 +18,7 @@
           var body = document.getElementById("body");
           body.focus();
           var h2 = accessibilityController.focusedElement.childAtIndex(0);
-          shouldBe("h2.title", "'AXTitle: h2'");
+          debug("h2.title is " + h2.title);
     }
 
 </script>
index 8131868..8d64175 100644 (file)
@@ -4,7 +4,7 @@ This tests that if aria-labelledby is used, then label elements are not used
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
 
 
-PASS text.description is 'AXDescription: Shut down computer after 10 minutes'
+text.description is AXDescription: Shut down computer after 10 minutes
 PASS text.titleUIElement() != null && text.titleUIElement().isValid is false
 Label element role is: AXRole: AXLabel
 PASS successfullyParsed is true
index 1702a30..b452aaa 100644 (file)
@@ -22,7 +22,7 @@
           text.focus();
           text = accessibilityController.focusedElement;
 
-          shouldBe("text.description", "'AXDescription: Shut down computer after 10 minutes'");
+          debug("text.description is " + text.description);
 
           // There should be no title UI element.
           shouldBe("text.titleUIElement() != null && text.titleUIElement().isValid", "false");
index a636b5d..9f3c2e1 100644 (file)
           var firstChild = listBox.childAtIndex(0);
           var secondChild = listBox.childAtIndex(1);
           debug("firstChild.role is " + firstChild.role);
-          shouldBe("firstChild.title", "'AXTitle: option 1'");
+          debug("firstChild.title is " + firstChild.title);
 
           debug("secondChild.role is " + secondChild.role);
-          shouldBe("secondChild.description", "'AXDescription: label 2'");
+          debug("secondChild.description is " + secondChild.description);
 
           shouldBe("firstChild.childrenCount", "0");
           shouldBe("secondChild.childrenCount", "0");
index 17fb1b8..d09e663 100644 (file)
@@ -5,7 +5,7 @@ This tests that the aria 'presentation' role works by successfully removing the
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
 
 
-PASS firstChild.role is 'AXRole: AXLink'
+firstChild.role is AXRole: AXLink
 PASS successfullyParsed is true
 
 TEST COMPLETE
index 04a9461..8836b9e 100644 (file)
@@ -22,7 +22,7 @@
           body.focus();
 
           var firstChild = accessibilityController.focusedElement.childAtIndex(0);
-          shouldBe("firstChild.role", "'AXRole: AXLink'");
+          debug("firstChild.role is " + firstChild.role);
     }
 
 </script>
index 91848ee..14c1cb8 100644 (file)
@@ -9,10 +9,10 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
 
 tabList.role = AXRole: AXTabGroup
 tab1.role = AXRole: AXTab
-PASS tab1.title is 'AXTitle: Crust'
+tab1.title = AXTitle: Crust
 PASS tab1.childrenCount is 0
 tab2.role = AXRole: AXTab
-PASS tab2.title is 'AXTitle: Veges'
+tab2.title = AXTitle: Veges
 tabPanel.role = AXRole: AXGroup
 tabPanel.subrole = 
 PASS successfullyParsed is true
index 97f04b5..b8864c5 100644 (file)
 
           debug("tabList.role = " + tabList.role);
           debug("tab1.role = " + tab1.role);
-          shouldBe("tab1.title", "'AXTitle: Crust'");
+          debug("tab1.title = " + tab1.title);
           shouldBe("tab1.childrenCount", "0");
           debug("tab2.role = " + tab2.role);
-          shouldBe("tab2.title", "'AXTitle: Veges'");
+          debug("tab2.title = " + tab2.title);
           debug("tabPanel.role = " + tabPanel.role);
           debug("tabPanel.subrole = " + tabPanel.subrole);
     }
index 518f40f..29dcf55 100644 (file)
@@ -4,8 +4,8 @@ This tests that if a missing image has a title attribute, it still appears in th
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
 
 
-PASS image1.role is 'AXRole: AXImage'
-PASS image1.description is 'AXDescription: baz'
+image1.role is AXRole: AXImage
+image1.description is AXDescription: baz
 PASS successfullyParsed is true
 
 TEST COMPLETE
index 7607c66..2f0eace 100644 (file)
@@ -16,8 +16,8 @@
     if (window.accessibilityController) {
 
           var image1 = accessibilityController.accessibleElementById("image1");
-          shouldBe("image1.role", "'AXRole: AXImage'");
-          shouldBe("image1.description", "'AXDescription: baz'");
+          debug("image1.role is " + image1.role);
+          debug("image1.description is " + image1.description);
     }
 
 </script>
index ea15623..644749e 100644 (file)
@@ -4,10 +4,10 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
 
 
 The start element should be a button.
-PASS startElement.role is 'AXRole: AXButton'
+startElement.role is AXRole: AXButton
 
 The parent should be the web area.
-PASS startElement.parentElement().role is 'AXRole: AXWebArea'
+startElement.parentElement().role is AXRole: AXWebArea
 PASS successfullyParsed is true
 
 TEST COMPLETE
index e044f8e..e7ab5cd 100644 (file)
 
             var startElement = accessibilityController.accessibleElementById("description");
             debug("The start element should be a button.");
-            shouldBe("startElement.role", "'AXRole: AXButton'");
+            debug("startElement.role is " + startElement.role);
 
             debug("\nThe parent should be the web area.");
-            shouldBe("startElement.parentElement().role", "'AXRole: AXWebArea'");
+            debug("startElement.parentElement().role is " + startElement.parentElement().role);
         } else {
             debug("This test requires accessibilityController.")
         }
index ad0202c..7e65f17 100644 (file)
@@ -4,7 +4,7 @@ This test makes sure that a img acting as an aria button still returns its alt t
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
 
 
-PASS imgUIElement.description is 'AXDescription: alternate'
+imgUIElement.description is AXDescription: alternate
 PASS successfullyParsed is true
 
 TEST COMPLETE
index 097eab4..f073fe4 100644 (file)
@@ -21,7 +21,7 @@
 
             var body = document.getElementById("body").focus();
             var imgUIElement = accessibilityController.focusedElement.childAtIndex(0).childAtIndex(0);
-            shouldBe("imgUIElement.description", "'AXDescription: alternate'");
+            debug("imgUIElement.description is " + imgUIElement.description);
         }
     </script>
     
index ac0ce35..7187f5d 100644 (file)
@@ -4,7 +4,7 @@ This test makes sure that an input image returns its alt tag as the description
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
 
 
-PASS img.description is 'AXDescription: Submit'
+img.description is AXDescription: Submit
 PASS successfullyParsed is true
 
 TEST COMPLETE
index a1cb4c6..965df31 100644 (file)
@@ -17,7 +17,7 @@
             var image1 = document.getElementById("image1").focus();
             var img = accessibilityController.focusedElement;
 
-            shouldBe("img.description", "'AXDescription: Submit'");
+            debug("img.description is " + img.description);
         }
     </script>
 
index aebbb67..e010a6c 100644 (file)
@@ -6,9 +6,9 @@ This tests that ARIA checkboxes use accessible name computation.
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
 
 
-PASS checkbox.title is 'AXTitle: One'
-PASS checkbox.title is 'AXTitle: Two'
-PASS checkbox.title is 'AXTitle: Three'
+checkbox.title is AXTitle: One
+checkbox.title is AXTitle: Two
+checkbox.title is AXTitle: Three
 PASS successfullyParsed is true
 
 TEST COMPLETE
index 899fbe9..2a1afa1 100644 (file)
@@ -4,7 +4,7 @@ This tests that if aria-labelledby is used, then label elements are not used
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
 
 
-PASS text.description is 'AXDescription: Shut down computer after 10 minutes'
+text.description is AXDescription: Shut down computer after 10 minutes
 PASS text.titleUIElement() != null && text.titleUIElement().isValid is false
 Label element role is: AXRole: AXGroup
 PASS successfullyParsed is true
index 3990fec..1179067 100644 (file)
@@ -6,9 +6,9 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
 
 
 firstChild.role is AXRole: AXStaticText
-PASS firstChild.title is 'AXTitle: option 1'
+firstChild.title is AXTitle: option 1
 secondChild.role is AXRole: AXStaticText
-PASS secondChild.description is 'AXDescription: label 2'
+secondChild.description is AXDescription: label 2
 PASS firstChild.childrenCount is 0
 PASS secondChild.childrenCount is 0
 PASS successfullyParsed is true
index e670f9c..df17c54 100644 (file)
@@ -9,10 +9,10 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
 
 tabList.role = AXRole: AXTabGroup
 tab1.role = AXRole: AXRadioButton
-PASS tab1.title is 'AXTitle: Crust'
+tab1.title is AXTitle: Crust
 PASS tab1.childrenCount is 0
 tab2.role = AXRole: AXRadioButton
-PASS tab2.title is 'AXTitle: Veges'
+tab2.title is AXTitle: Veges
 tabPanel.role = AXRole: AXGroup
 tabPanel.subrole = AXSubrole: AXTabPanel
 PASS successfullyParsed is true
diff --git a/LayoutTests/platform/win/accessibility/aria-checkbox-text-expected.txt b/LayoutTests/platform/win/accessibility/aria-checkbox-text-expected.txt
new file mode 100644 (file)
index 0000000..62b924e
--- /dev/null
@@ -0,0 +1,15 @@
+One
+Two
+Three
+This tests that ARIA checkboxes use accessible name computation.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+checkbox.title is One
+checkbox.title is Two
+checkbox.title is Three
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
diff --git a/LayoutTests/platform/win/accessibility/aria-hidden-expected.txt b/LayoutTests/platform/win/accessibility/aria-hidden-expected.txt
new file mode 100644 (file)
index 0000000..f93290c
--- /dev/null
@@ -0,0 +1,14 @@
+h1 test
+
+h2
+
+This tests that the aria-hidden attribute works correctly with accessibility. The H1 element (and its children) should not appear in the AX hierarchy. The H2 element should be the first child
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+h2.title is h2
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
diff --git a/LayoutTests/platform/win/accessibility/aria-hidden-with-elements-expected.txt b/LayoutTests/platform/win/accessibility/aria-hidden-with-elements-expected.txt
new file mode 100644 (file)
index 0000000..d294535
--- /dev/null
@@ -0,0 +1,19 @@
+cell   cell    cell
+cell   cell    cell
+cell
+test
+test
+
+heading
+
+This tests that aria-hidden works as expected on elements that are subclasses of AccessibilityRenderObject
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS child.childrenCount is 0
+child.role is H1
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
diff --git a/LayoutTests/platform/win/accessibility/aria-labelledby-overrides-label-expected.txt b/LayoutTests/platform/win/accessibility/aria-labelledby-overrides-label-expected.txt
new file mode 100644 (file)
index 0000000..3ccad7c
--- /dev/null
@@ -0,0 +1,13 @@
+Shut down computer after  minutes
+This tests that if aria-labelledby is used, then label elements are not used
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+text.description is Description: Shut down computer after 10 minutes
+PASS text.titleUIElement() != null && text.titleUIElement().isValid is false
+Label element role is: grouping
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
diff --git a/LayoutTests/platform/win/accessibility/aria-option-role-expected.txt b/LayoutTests/platform/win/accessibility/aria-option-role-expected.txt
new file mode 100644 (file)
index 0000000..fbf9099
--- /dev/null
@@ -0,0 +1,17 @@
+option 1
+option 2
+This tests that the aria 'option' role works as expected. That is, it becomes a static text element with no children.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+firstChild.role is text
+firstChild.title is option 1
+secondChild.role is text
+secondChild.description is Description: label 2
+PASS firstChild.childrenCount is 0
+PASS secondChild.childrenCount is 0
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
diff --git a/LayoutTests/platform/win/accessibility/aria-presentational-role-expected.txt b/LayoutTests/platform/win/accessibility/aria-presentational-role-expected.txt
new file mode 100644 (file)
index 0000000..f50619a
--- /dev/null
@@ -0,0 +1,12 @@
+Link and text
+
+This tests that the aria 'presentation' role works by successfully removing the element from the AX tree.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+firstChild.role is link
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
diff --git a/LayoutTests/platform/win/accessibility/aria-tab-roles-expected.txt b/LayoutTests/platform/win/accessibility/aria-tab-roles-expected.txt
new file mode 100644 (file)
index 0000000..6bf4aa5
--- /dev/null
@@ -0,0 +1,21 @@
+Crust
+Veges
+Select Crust
+
+This tests that the aria roles for tab, tabpanel and tablist work as expected correctly.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+tabList.role = page tab list
+tab1.role = list item
+tab1.title = Crust
+PASS tab1.childrenCount is 0
+tab2.role = list item
+tab2.title = Veges
+tabPanel.role = grouping
+tabPanel.subrole = 
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
diff --git a/LayoutTests/platform/win/accessibility/empty-image-with-title-expected.txt b/LayoutTests/platform/win/accessibility/empty-image-with-title-expected.txt
new file mode 100644 (file)
index 0000000..7f20e1b
--- /dev/null
@@ -0,0 +1,12 @@
+
+This tests that if a missing image has a title attribute, it still appears in the AX hierarchy.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+image1.role is graphic
+image1.description is Description: baz
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
diff --git a/LayoutTests/platform/win/accessibility/html-html-element-is-ignored-expected.txt b/LayoutTests/platform/win/accessibility/html-html-element-is-ignored-expected.txt
new file mode 100644 (file)
index 0000000..799a9d8
--- /dev/null
@@ -0,0 +1,14 @@
+This test checks that the element is not the AX tree (ever), even when it has an aria attribute.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+The start element should be a button.
+startElement.role is push button
+
+The parent should be the web area.
+startElement.parentElement().role is client
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
diff --git a/LayoutTests/platform/win/accessibility/img-aria-button-alt-tag-expected.txt b/LayoutTests/platform/win/accessibility/img-aria-button-alt-tag-expected.txt
new file mode 100644 (file)
index 0000000..fcd0b9e
--- /dev/null
@@ -0,0 +1,11 @@
+
+This test makes sure that a img acting as an aria button still returns its alt tag as the description
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+imgUIElement.description is Description: alternate
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
diff --git a/LayoutTests/platform/win/accessibility/input-image-alt-expected.txt b/LayoutTests/platform/win/accessibility/input-image-alt-expected.txt
new file mode 100644 (file)
index 0000000..bbfaef5
--- /dev/null
@@ -0,0 +1,11 @@
+
+This test makes sure that an input image returns its alt tag as the description
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+img.description is Description: Submit
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
diff --git a/LayoutTests/platform/win/aria-labelledby-on-input-expected.txt b/LayoutTests/platform/win/aria-labelledby-on-input-expected.txt
deleted file mode 100644 (file)
index b8dafc0..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-This computer will self-destruct in   minutes.
-
-The accessibility description is "Description: This computer will self-destruct in 10 minutes."
diff --git a/LayoutTests/platform/win/aria-menubar-menuitems-expected.txt b/LayoutTests/platform/win/aria-menubar-menuitems-expected.txt
deleted file mode 100644 (file)
index 7cc0b11..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-Menu 1
-Menu item 1.1
-Menu 2
-Menu item 2.1
-Menu item 2.2
-This tests that ARIA menu items are properly exposed as children for menu bars
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-menu bar
-PASS menuBar.childrenCount is 2
-list item
-PASS menuItem.childrenCount is 2
-grouping
-FAIL menuSubItem1.childrenCount should be 0. Was 2.
-popup menu
-PASS menuSubItem2.childrenCount is 1
-list item
-FAIL subMenuSubItem.childrenCount should be 0. Was 1.
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
diff --git a/LayoutTests/platform/win/aria-roles-expected.txt b/LayoutTests/platform/win/aria-roles-expected.txt
deleted file mode 100644 (file)
index 8f2d9c0..0000000
+++ /dev/null
@@ -1,73 +0,0 @@
-The following should be a checkbox:
-
-X
-
-Actual checkboxes:
-
-Broccoli
-Asparagus
-This test PASSES in DumpRenderTree. The role is check box
-
-The following should be a button:
-
-X
-
-Actual button:
-
-Hello This test PASSES in DumpRenderTree. The role is push button
-
-The following should be a heading:
-
-X
-
-Actual heading:
-
-Hello
-
-This test PASSES in DumpRenderTree. The role is text
-
-The following should be a link:
-
-X
-
-Actual link:
-
-Hello This test PASSES in DumpRenderTree. The role is link
-
-The following should be a radio button:
-
-X
-
-Actual radio buttons:
-
-Broccoli
-Asparagus
-This test PASSES in DumpRenderTree. The role is radio button
-
-The following should be a text box:
-
-X
-
-Actual text box:
-
- This test PASSES in DumpRenderTree. The role is editable text
-
-The following should be an image:
-
-X
-
-Actual image:
-
- This test PASSES in DumpRenderTree. The role is graphic
-
-The following should be a list:
-
-X
-
-Actual list:
-
-Broccoli
-Beets
-This test PASSES in DumpRenderTree. The role is list
-
-