Title: [185543] trunk/LayoutTests
Revision
185543
Author
[email protected]
Date
2015-06-13 23:57:55 -0700 (Sat, 13 Jun 2015)

Log Message

AX: WebKit exposes all Ruby Text as Unknown (Japanese EPUB accessibility blocker)
https://bugs.webkit.org/show_bug.cgi?id=141303

Unreviewed. Move ruby tests to Mac platform only, since they don't apply to other platforms.

* accessibility/ruby-hierarchy-roles-expected.txt: Removed.
* accessibility/ruby-hierarchy-roles.html: Removed.
* platform/mac/accessibility/ruby-hierarchy-roles.html: Copied from LayoutTests/accessibility/ruby-hierarchy-roles.html.

Modified Paths

Added Paths

Removed Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (185542 => 185543)


--- trunk/LayoutTests/ChangeLog	2015-06-14 04:53:14 UTC (rev 185542)
+++ trunk/LayoutTests/ChangeLog	2015-06-14 06:57:55 UTC (rev 185543)
@@ -1,3 +1,14 @@
+2015-06-13  Chris Fleizach  <[email protected]>
+
+        AX: WebKit exposes all Ruby Text as Unknown (Japanese EPUB accessibility blocker)
+        https://bugs.webkit.org/show_bug.cgi?id=141303
+
+        Unreviewed. Move ruby tests to Mac platform only, since they don't apply to other platforms.
+
+        * accessibility/ruby-hierarchy-roles-expected.txt: Removed.
+        * accessibility/ruby-hierarchy-roles.html: Removed.
+        * platform/mac/accessibility/ruby-hierarchy-roles.html: Copied from LayoutTests/accessibility/ruby-hierarchy-roles.html.
+
 2015-06-13  Joseph Pecoraro  <[email protected]>
 
         Web Inspector: console.table() with a list of objects no longer works

Deleted: trunk/LayoutTests/accessibility/ruby-hierarchy-roles-expected.txt (185542 => 185543)


--- trunk/LayoutTests/accessibility/ruby-hierarchy-roles-expected.txt	2015-06-14 04:53:14 UTC (rev 185542)
+++ trunk/LayoutTests/accessibility/ruby-hierarchy-roles-expected.txt	2015-06-14 06:57:55 UTC (rev 185543)
@@ -1,9 +0,0 @@
-This tests that the ruby containers are exposed with the appropriate hierarchy and roles.
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-PASS successfullyParsed is true
-
-TEST COMPLETE
-basetext rubytext

Deleted: trunk/LayoutTests/accessibility/ruby-hierarchy-roles.html (185542 => 185543)


--- trunk/LayoutTests/accessibility/ruby-hierarchy-roles.html	2015-06-14 04:53:14 UTC (rev 185542)
+++ trunk/LayoutTests/accessibility/ruby-hierarchy-roles.html	2015-06-14 06:57:55 UTC (rev 185543)
@@ -1,79 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
-<html>
-    <head>
-        <script src=""
-    </head>
-    <body>
-        <ruby id="rubyElemId">
-            <rb>basetext</rb>
-            <rp>(</rp>
-            <rt>rubytext</rt>
-            <rp>)</rp>
-        </ruby>
-        
-        <script>
-            if (window.accessibilityController) {
-                description("This tests that the ruby containers are exposed with the appropriate hierarchy and roles.")
-                // At the moment, this is implemented only for OSX.
-                var platform = accessibilityController.platformName;
-                if ("mac" == platform) {
-                    // Expected values for roles and subroles.
-                    var expectedRubyRole = "AXRole: AXGroup"; // all ruby containers have AXGroup role
-                    var expectedRubyInlineSubrole = "AXSubrole: AXRubyInline";
-                    var expectedRubyBlockSubrole = "AXSubrole: AXRubyBlock";
-                    var expectedRubyRunSubrole = "AXSubrole: AXRubyRun";
-                    var expectedRubyTextSubrole = "AXSubrole: AXRubyText";
-                    var expectedRubyBaseSubrole = "AXSubrole: AXRubyBase";
-                    
-                    // Try inline style first, block style second
-                    var rubyElem = document.getElementById("rubyElemId");
-                    shouldBeTrue("rubyElem != null");
-                    rubyElem.style.display = "inline";
-                    checkHierarchyAndRoles(rubyElem);
-                    
-                    rubyElem.style.display = "block";
-                    checkHierarchyAndRoles(rubyElem);
-                    
-                    function checkHierarchyAndRoles(rubyElem) {
-                        axRuby = window.accessibilityController.accessibleElementById("rubyElemId");
-                        shouldBeTrue("axRuby != null");
-                        role = axRuby.role;
-                        subrole = axRuby.subrole;
-                        shouldBe("role", "expectedRubyRole");
-                        if (rubyElem.style.display == "inline") {
-                            shouldBe("subrole", "expectedRubyInlineSubrole");
-                        }
-                        else {
-                            shouldBe("subrole", "expectedRubyBlockSubrole");
-                        }
-                        
-                        // RubyRun
-                        axRubyRun = axRuby.childAtIndex(0);
-                        shouldBeTrue("axRubyRun != null");
-                        role = axRubyRun.role;
-                        subrole = axRubyRun.subrole;
-                        shouldBe("role", "expectedRubyRole");
-                        shouldBe("subrole", "expectedRubyRunSubrole");
-                        
-                        // RubyText
-                        axRubyText = axRubyRun.childAtIndex(0);
-                        shouldBeTrue("axRubyText != null");
-                        role = axRubyText.role;
-                        subrole = axRubyText.subrole;
-                        shouldBe("role", "expectedRubyRole");
-                        shouldBe("subrole", "expectedRubyTextSubrole");
-                        
-                        // RubyBase
-                        axRubyBase = axRubyRun.childAtIndex(1);
-                        shouldBeTrue("axRubyBase != null");
-                        role = axRubyBase.role;
-                        subrole = axRubyBase.subrole;
-                        shouldBe("role", "expectedRubyRole");
-                        shouldBe("subrole", "expectedRubyBaseSubrole");
-                    }
-                }
-            }
-        </script>
-        <script src=""
-    </body>
-</html>

Copied: trunk/LayoutTests/platform/mac/accessibility/ruby-hierarchy-roles.html (from rev 185542, trunk/LayoutTests/accessibility/ruby-hierarchy-roles.html) (0 => 185543)


--- trunk/LayoutTests/platform/mac/accessibility/ruby-hierarchy-roles.html	                        (rev 0)
+++ trunk/LayoutTests/platform/mac/accessibility/ruby-hierarchy-roles.html	2015-06-14 06:57:55 UTC (rev 185543)
@@ -0,0 +1,79 @@
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+    <head>
+        <script src=""
+    </head>
+    <body>
+        <ruby id="rubyElemId">
+            <rb>basetext</rb>
+            <rp>(</rp>
+            <rt>rubytext</rt>
+            <rp>)</rp>
+        </ruby>
+        
+        <script>
+            if (window.accessibilityController) {
+                description("This tests that the ruby containers are exposed with the appropriate hierarchy and roles.")
+                // At the moment, this is implemented only for OSX.
+                var platform = accessibilityController.platformName;
+                if ("mac" == platform) {
+                    // Expected values for roles and subroles.
+                    var expectedRubyRole = "AXRole: AXGroup"; // all ruby containers have AXGroup role
+                    var expectedRubyInlineSubrole = "AXSubrole: AXRubyInline";
+                    var expectedRubyBlockSubrole = "AXSubrole: AXRubyBlock";
+                    var expectedRubyRunSubrole = "AXSubrole: AXRubyRun";
+                    var expectedRubyTextSubrole = "AXSubrole: AXRubyText";
+                    var expectedRubyBaseSubrole = "AXSubrole: AXRubyBase";
+                    
+                    // Try inline style first, block style second
+                    var rubyElem = document.getElementById("rubyElemId");
+                    shouldBeTrue("rubyElem != null");
+                    rubyElem.style.display = "inline";
+                    checkHierarchyAndRoles(rubyElem);
+                    
+                    rubyElem.style.display = "block";
+                    checkHierarchyAndRoles(rubyElem);
+                    
+                    function checkHierarchyAndRoles(rubyElem) {
+                        axRuby = window.accessibilityController.accessibleElementById("rubyElemId");
+                        shouldBeTrue("axRuby != null");
+                        role = axRuby.role;
+                        subrole = axRuby.subrole;
+                        shouldBe("role", "expectedRubyRole");
+                        if (rubyElem.style.display == "inline") {
+                            shouldBe("subrole", "expectedRubyInlineSubrole");
+                        }
+                        else {
+                            shouldBe("subrole", "expectedRubyBlockSubrole");
+                        }
+                        
+                        // RubyRun
+                        axRubyRun = axRuby.childAtIndex(0);
+                        shouldBeTrue("axRubyRun != null");
+                        role = axRubyRun.role;
+                        subrole = axRubyRun.subrole;
+                        shouldBe("role", "expectedRubyRole");
+                        shouldBe("subrole", "expectedRubyRunSubrole");
+                        
+                        // RubyText
+                        axRubyText = axRubyRun.childAtIndex(0);
+                        shouldBeTrue("axRubyText != null");
+                        role = axRubyText.role;
+                        subrole = axRubyText.subrole;
+                        shouldBe("role", "expectedRubyRole");
+                        shouldBe("subrole", "expectedRubyTextSubrole");
+                        
+                        // RubyBase
+                        axRubyBase = axRubyRun.childAtIndex(1);
+                        shouldBeTrue("axRubyBase != null");
+                        role = axRubyBase.role;
+                        subrole = axRubyBase.subrole;
+                        shouldBe("role", "expectedRubyRole");
+                        shouldBe("subrole", "expectedRubyBaseSubrole");
+                    }
+                }
+            }
+        </script>
+        <script src=""
+    </body>
+</html>
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to