Unreviewed, GTK rebaseline after r113981.
authormario@webkit.org <mario@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 17 Apr 2012 10:58:40 +0000 (10:58 +0000)
committermario@webkit.org <mario@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 17 Apr 2012 10:58:40 +0000 (10:58 +0000)
* accessibility/aria-labelledby-on-input-expected.txt: Renamed from LayoutTests/platform/mac/accessibility/aria-labelledby-on-input-expected.txt.
* accessibility/aria-labelledby-stay-within-expected.txt: Renamed from LayoutTests/platform/mac/accessibility/aria-labelledby-stay-within-expected.txt.
* platform/gtk/accessibility/aria-list-and-listitem-expected.txt: Added.
* platform/gtk/accessibility/aria-list-and-listitem.html: Added.
* platform/gtk/accessibility/aria-option-role-expected.txt: Added.
* platform/gtk/accessibility/aria-option-role.html: Added.
* platform/gtk/accessibility/lists-expected.txt: Added.
* platform/gtk/test_expectations.txt:

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

LayoutTests/ChangeLog
LayoutTests/accessibility/aria-labelledby-on-input-expected.txt [moved from LayoutTests/platform/mac/accessibility/aria-labelledby-on-input-expected.txt with 100% similarity]
LayoutTests/accessibility/aria-labelledby-stay-within-expected.txt [moved from LayoutTests/platform/mac/accessibility/aria-labelledby-stay-within-expected.txt with 100% similarity]
LayoutTests/platform/gtk/accessibility/aria-list-and-listitem-expected.txt [new file with mode: 0644]
LayoutTests/platform/gtk/accessibility/aria-list-and-listitem.html [new file with mode: 0644]
LayoutTests/platform/gtk/accessibility/aria-option-role-expected.txt [new file with mode: 0644]
LayoutTests/platform/gtk/accessibility/aria-option-role.html [new file with mode: 0644]
LayoutTests/platform/gtk/accessibility/lists-expected.txt [new file with mode: 0644]
LayoutTests/platform/gtk/test_expectations.txt

index 1594025..215c0ec 100644 (file)
@@ -1,3 +1,16 @@
+2012-04-17  Mario Sanchez Prada  <msanchez@igalia.com>
+
+        Unreviewed, GTK rebaseline after r113981.
+
+        * accessibility/aria-labelledby-on-input-expected.txt: Renamed from LayoutTests/platform/mac/accessibility/aria-labelledby-on-input-expected.txt.
+        * accessibility/aria-labelledby-stay-within-expected.txt: Renamed from LayoutTests/platform/mac/accessibility/aria-labelledby-stay-within-expected.txt.
+        * platform/gtk/accessibility/aria-list-and-listitem-expected.txt: Added.
+        * platform/gtk/accessibility/aria-list-and-listitem.html: Added.
+        * platform/gtk/accessibility/aria-option-role-expected.txt: Added.
+        * platform/gtk/accessibility/aria-option-role.html: Added.
+        * platform/gtk/accessibility/lists-expected.txt: Added.
+        * platform/gtk/test_expectations.txt:
+
 2012-04-17  Csaba Osztrogonác  <ossy@webkit.org>
 
         [Qt] Unreviewed gardening, skip tests because ENABLE(SHADOW_DOM) is disabled.
diff --git a/LayoutTests/platform/gtk/accessibility/aria-list-and-listitem-expected.txt b/LayoutTests/platform/gtk/accessibility/aria-list-and-listitem-expected.txt
new file mode 100644 (file)
index 0000000..b0cd6e4
--- /dev/null
@@ -0,0 +1,14 @@
+
+
+This tests that the ARIA roles of list and listitem map correctly to Mac accessibility roles.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS obj.childAtIndex(0).role is 'AXRole: list'
+PASS obj.childAtIndex(0).childAtIndex(0).role is 'AXRole: list item'
+PASS obj.childAtIndex(0).childAtIndex(1).role is 'AXRole: list item'
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
diff --git a/LayoutTests/platform/gtk/accessibility/aria-list-and-listitem.html b/LayoutTests/platform/gtk/accessibility/aria-list-and-listitem.html
new file mode 100644 (file)
index 0000000..3290357
--- /dev/null
@@ -0,0 +1,35 @@
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+<head>
+<script src="../fast/js/resources/js-test-pre.js"></script>
+</head>
+<body id="body">
+
+<div role="list">
+<div role="listitem" aria-label="item 1"><img src='#' width=100 height=100></div>
+<div role="listitem" aria-label="item 2"><img src='#' width=100 height=100></div>
+</div>
+
+<p id="description"></p>
+<div id="console"></div>
+
+<script>
+
+    description("This tests that the ARIA roles of list and listitem map correctly to Mac accessibility roles.");
+
+    if (window.accessibilityController) {
+
+          // this text field should be required.
+          document.getElementById("body").focus();
+          var obj = accessibilityController.focusedElement;
+
+          shouldBe("obj.childAtIndex(0).role", "'AXRole: list'");
+          shouldBe("obj.childAtIndex(0).childAtIndex(0).role", "'AXRole: list item'");
+          shouldBe("obj.childAtIndex(0).childAtIndex(1).role", "'AXRole: list item'");
+    }
+
+</script>
+
+<script src="../fast/js/resources/js-test-post.js"></script>
+</body>
+</html>
diff --git a/LayoutTests/platform/gtk/accessibility/aria-option-role-expected.txt b/LayoutTests/platform/gtk/accessibility/aria-option-role-expected.txt
new file mode 100644 (file)
index 0000000..233c376
--- /dev/null
@@ -0,0 +1,17 @@
+option 1
+option 2
+This tests that the aria 'option' role works as expected.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS firstChild.role is 'AXRole: list item'
+PASS firstChild.title is 'AXTitle: option 1'
+PASS secondChild.role 'AXRole: list item'
+PASS secondChild.description is 'AXDescription: label 2'
+PASS firstChild.childrenCount is 0
+PASS secondChild.childrenCount is 0
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
diff --git a/LayoutTests/platform/gtk/accessibility/aria-option-role.html b/LayoutTests/platform/gtk/accessibility/aria-option-role.html
new file mode 100644 (file)
index 0000000..944e45f
--- /dev/null
@@ -0,0 +1,42 @@
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+<head>
+<script src="../fast/js/resources/js-test-pre.js"></script>
+</head>
+<body id="body">
+
+<div role="listbox">
+<div role="option">option 1</div>
+<div role="option" aria-label="label 2">option 2</div>
+</div>
+
+<p id="description"></p>
+<div id="console"></div>
+
+<script>
+
+    description("This tests that the aria 'option' role works as expected.");
+
+    if (window.accessibilityController) {
+
+          var body = document.getElementById("body");
+          body.focus();
+
+          var listBox = accessibilityController.focusedElement.childAtIndex(0);
+          var firstChild = listBox.childAtIndex(0);
+          var secondChild = listBox.childAtIndex(1);
+          shouldBe("firstChild.role", "'AXRole: AXStaticText'");
+          shouldBe("firstChild.title", "'AXTitle: option 1'");
+
+          shouldBe("secondChild.role", "'AXRole: AXStaticText'");
+          shouldBe("secondChild.description", "'AXDescription: label 2'");
+
+          shouldBe("firstChild.childrenCount", "0");
+          shouldBe("secondChild.childrenCount", "0");
+    }
+
+</script>
+
+<script src="../fast/js/resources/js-test-post.js"></script>
+</body>
+</html>
diff --git a/LayoutTests/platform/gtk/accessibility/lists-expected.txt b/LayoutTests/platform/gtk/accessibility/lists-expected.txt
new file mode 100644 (file)
index 0000000..900a687
--- /dev/null
@@ -0,0 +1,22 @@
+test 1
+test 2
+test 1
+test 2
+term 1
+meaning 2
+term b
+meaning 1
+meaning 2
+
+
+
+
+
+
+
+
+
+
+
+
+
index afe424c..8e7e873 100644 (file)
@@ -530,20 +530,14 @@ BUGWK82484 : fast/encoding/percent-escaping.html = TEXT
 BUGWK82484 : fast/loader/file-URL-with-port-number.html = TEXT
 BUGWK82484 : fast/loader/location-port.html = TEXT
 
-BUGWKGTK : accessibility/aria-checkbox-sends-notification.html = FAIL
 BUGWKGTK : accessibility/aria-hidden.html = FAIL
 BUGWKGTK : accessibility/aria-hidden-with-elements.html = FAIL
 BUGWKGTK : accessibility/aria-invalid.html = FAIL
-BUGWKGTK : accessibility/aria-labelledby-on-input.html = FAIL
 BUGWKGTK : accessibility/aria-labelledby-overrides-label.html = FAIL
-BUGWKGTK : accessibility/aria-labelledby-stay-within.html = FAIL
 BUGWKGTK : accessibility/aria-link-supports-press.html = FAIL
-BUGWKGTK : accessibility/aria-list-and-listitem.html = FAIL
-BUGWKGTK : accessibility/aria-option-role.html = FAIL
 BUGWKGTK : accessibility/aria-presentational-role.html = FAIL
 BUGWKGTK : accessibility/aria-readonly.html = FAIL
 BUGWKGTK : accessibility/aria-scrollbar-role.html = FAIL
-BUGWKGTK : accessibility/aria-tab-roles.html = FAIL
 BUGWKGTK : accessibility/aria-text-role.html = FAIL
 BUGWKGTK : accessibility/aria-used-on-image-maps.html = FAIL
 BUGWKGTK : accessibility/button-press-action.html = FAIL
@@ -552,31 +546,16 @@ BUGWKGTK : accessibility/editable-webarea-context-menu-point.html = FAIL
 BUGWKGTK : accessibility/ellipsis-text.html = FAIL
 BUGWKGTK : accessibility/iframe-bastardization.html = FAIL
 BUGWKGTK : accessibility/ignore-spacer-elements.html = FAIL
-BUGWKGTK : accessibility/image-link.html = FAIL
-BUGWKGTK : accessibility/image-map1.html = FAIL
-BUGWKGTK : accessibility/image-map2.html = FAIL
 BUGWKGTK : accessibility/inline-continuations.html = FAIL
-BUGWKGTK : accessibility/internal-link-anchors2.html = FAIL
 BUGWKGTK : accessibility/label-for-control-hittest.html = FAIL
 BUGWKGTK : accessibility/language-attribute.html = FAIL
-BUGWKGTK : accessibility/legend.html = FAIL
-BUGWKGTK : accessibility/lists.html = FAIL
 BUGWKGTK : accessibility/loading-iframe-sends-notification.html = FAIL
 BUGWKGTK : accessibility/loading-iframe-updates-axtree.html = FAIL
-BUGWKGTK : accessibility/notification-listeners.html = FAIL
 BUGWKGTK : accessibility/onclick-handlers.html = FAIL
 BUGWKGTK : accessibility/placeholder.html = FAIL
-BUGWKGTK : accessibility/plugin.html = FAIL
-BUGWKGTK : accessibility/radio-button-group-members.html = FAIL
 BUGWKGTK : accessibility/radio-button-title-label.html = FAIL
 BUGWKGTK : accessibility/secure-textfield-title-ui.html = FAIL
 BUGWKGTK : accessibility/selection-states.html = FAIL
-BUGWKGTK : accessibility/table-attributes.html = FAIL
-BUGWKGTK : accessibility/table-detection.html = FAIL
-BUGWKGTK : accessibility/table-one-cell.html = FAIL
-BUGWKGTK : accessibility/table-sections.html = FAIL
-BUGWKGTK : accessibility/table-with-aria-role.html = FAIL
-BUGWKGTK : accessibility/table-with-rules.html = FAIL
 BUGWKGTK : accessibility/textarea-insertion-point-line-number.html = FAIL
 BUGWKGTK : accessibility/textarea-line-for-index.html = FAIL
 BUGWKGTK : accessibility/textarea-selected-text-range.html = FAIL
@@ -1317,8 +1296,38 @@ BUGWKGTK : http/tests/local/fileapi/send-sliced-dragged-file.html = FAIL
 BUGWK70485 : fast/events/drag-selects-image.html = FAIL
 
 // Missing DRT AccessibilityController::addNotificationListener implementation
-BUGWK70606 : accessibility/menu-list-sends-change-notification.html = FAIL
-BUGWK70606 : accessibility/multiselect-list-reports-active-option.html = FAIL
+BUGWK70606 SKIP : accessibility/aria-checkbox-sends-notification.html = FAIL
+BUGWK70606 SKIP : accessibility/menu-list-sends-change-notification.html = FAIL
+BUGWK70606 SKIP : accessibility/multiselect-list-reports-active-option.html = FAIL
+BUGWK70606 SKIP : accessibility/notification-listeners.html = FAIL
+
+// ARIA Roles not being exposed for tab, tabpanel and tablist
+BUGWK84043 SKIP : accessibility/aria-tab-roles.html = FAIL
+
+// Image links not properly exposed
+BUGWK84044 SKIP : accessibility/image-link.html = FAIL
+
+// Expose title and alternative text for links in image maps
+BUGWK84045 SKIP : accessibility/image-map1.html = FAIL
+BUGWK84045 SKIP : accessibility/image-map2.html = FAIL
+
+// Properly expose <legend> elements to ATs
+BUGWK84137 SKIP : accessibility/legend.html = FAIL
+
+// Accessibility tests that should never be run for GTK due to be
+// written in a platform-specific way. They should either be moved to
+// the right platform or re-written in a more platform-agnostic way.
+BUGWKGTK SKIP WONTFIX : accessibility/aria-list-and-listitem.html = FAIL
+BUGWKGTK SKIP WONTFIX : accessibility/aria-option-role.html = FAIL
+BUGWKGTK SKIP WONTFIX : accessibility/internal-link-anchors2.html = FAIL
+BUGWKGTK SKIP WONTFIX : accessibility/radio-button-group-members.html = FAIL
+BUGWKGTK SKIP WONTFIX : accessibility/table-attributes.html = FAIL
+BUGWKGTK SKIP WONTFIX : accessibility/table-detection.html = FAIL
+BUGWKGTK SKIP WONTFIX : accessibility/table-one-cell.html = FAIL
+BUGWKGTK SKIP WONTFIX : accessibility/table-sections.html = FAIL
+BUGWKGTK SKIP WONTFIX : accessibility/table-with-aria-role.html = FAIL
+BUGWKGTK SKIP WONTFIX : accessibility/table-with-rules.html = FAIL
+BUGWKGTK SKIP WONTFIX : accessibility/plugin.html = FAIL
 
 BUGWK71022 : fast/canvas/canvas-composite-image.html = FAIL
 BUGWK71022 : fast/canvas/canvas-composite-canvas.html = FAIL