Changeset 90226 in webkit
- Timestamp:
- Jul 1, 2011, 7:18:41 AM (15 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 1 added
- 1 deleted
- 3 edited
-
ChangeLog (modified) (1 diff)
-
accessibility/aria-labelledby-overrides-aria-label-expected.txt (deleted)
-
accessibility/aria-labelledby-overrides-aria-label.html (modified) (4 diffs)
-
platform/mac/accessibility/aria-labelledby-overrides-aria-label-expected.txt (added)
-
platform/win/accessibility/aria-labelledby-overrides-aria-label-expected.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r90225 r90226 1 2011-07-01 Alice Boxhall <aboxhall@chromium.org> 2 3 Reviewed by Adam Roben. 4 5 accessibility/aria-labelledby-overrides-aria-label.html failing on Windows since it was added 6 https://bugs.webkit.org/show_bug.cgi?id=63191 7 8 * accessibility/aria-labelledby-overrides-aria-label-expected.txt: Removed. 9 * accessibility/aria-labelledby-overrides-aria-label.html: 10 * platform/mac/accessibility/aria-labelledby-overrides-aria-label-expected.txt: Added. 11 * platform/win/accessibility/aria-labelledby-overrides-aria-label-expected.txt: 12 1 13 2011-07-01 Kentaro Hara <haraken@google.com> 2 14 -
trunk/LayoutTests/accessibility/aria-labelledby-overrides-aria-label.html
r89204 r90226 2 2 <html> 3 3 <head> 4 <link rel="stylesheet" href="../fast/js/resources/js-test-style.css">5 <script>6 var successfullyParsed = false;7 </script>8 <script src="../fast/js/resources/js-test-pre.js"></script>9 4 </head> 10 5 <body id="body"> 6 <p id="description">This tests that if aria-labelledby is used, then aria-label attributes are not used.</p> 11 7 12 8 <button id="using-none">Alpha</button> … … 17 13 <span id="theta">Theta</span> 18 14 19 < p id="description"></p>20 < ul id="console"></ul>15 <ul id="results"></ul> 16 <div id="console"></div> 21 17 22 18 <script> 23 description("This tests that if aria-labelledby is used, then aria-label attributes are not used.");24 25 function log(str) {26 var console = document.getElementById("console");27 var li = document.createElement("li");28 li.appendChild(document.createTextNode(str));29 console.appendChild(li);30 }31 32 function logAXObject(obj) {33 log("for " + obj.allAttributes());34 log("children:\n" + obj.attributesOfChildren());35 log("obj.title is " + obj.title);36 log("obj.description is " + obj.description);37 }38 39 19 function getAccessibilityObject(id) { 40 20 var element = document.getElementById(id); … … 43 23 } 44 24 25 function output(str) { 26 var results = document.getElementById("results"); 27 var li = document.createElement("li"); 28 li.appendChild(document.createTextNode(str)); 29 results.appendChild(li); 30 } 31 32 if (window.layoutTestController) 33 layoutTestController.dumpAsText(); 34 45 35 if (window.accessibilityController) { 46 36 var usingNone = getAccessibilityObject("using-none"); 47 shouldBe("usingNone.title", '"AXTitle: Alpha"');48 shouldBe("usingNone.description", '"AXDescription: "');37 output("usingNone.title: [" + usingNone.title + "]"); 38 output("usingNone.description: [" + usingNone.description + "]"); 49 39 50 40 var usingLabel = getAccessibilityObject("using-label"); 51 shouldBe("usingLabel.title", '"AXTitle: Beta"');52 shouldBe("usingLabel.description", '"AXDescription: Gamma"');41 output("usingLabel.title: [" + usingLabel.title + "]"); 42 output("usingLabel.description: [" + usingLabel.description + "]"); 53 43 54 44 var usingLabelledby = getAccessibilityObject("using-labelledby"); 55 shouldBe("usingLabelledby.title", '"AXTitle: Delta"');56 shouldBe("usingLabelledby.description", '"AXDescription: Epsilon"');45 output("usingLabelledby.title: [" + usingLabelledby.title + "]"); 46 output("usingLabelledby.description: [" + usingLabelledby.description + "]"); 57 47 58 48 var usingLabeledby = getAccessibilityObject("using-labeledby"); 59 shouldBe("usingLabeledby.title", '"AXTitle: Eta"');60 shouldBe("usingLabeledby.description", '"AXDescription: Theta"');49 output("usingLabeledby.title: [" + usingLabeledby.title + "]"); 50 output("usingLabeledby.description: [" + usingLabeledby.description + "]"); 61 51 } 62 52 … … 64 54 </script> 65 55 66 <script src="../fast/js/resources/js-test-post.js"></script>67 56 </body> 68 57 </html> -
trunk/LayoutTests/platform/win/accessibility/aria-labelledby-overrides-aria-label-expected.txt
r89565 r90226 1 Alpha Beta Delta Eta Epsilon Theta2 1 This tests that if aria-labelledby is used, then aria-label attributes are not used. 3 2 4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". 3 Alpha Beta Delta Eta Epsilon Theta 4 usingNone.title: [Alpha] 5 usingNone.description: [] 6 usingLabel.title: [Beta] 7 usingLabel.description: [Description: Gamma] 8 usingLabelledby.title: [Epsilon] 9 usingLabelledby.description: [Description: Epsilon] 10 usingLabeledby.title: [Theta] 11 usingLabeledby.description: [Description: Theta] 5 12 6 7 FAIL usingNone.title should be AXTitle: Alpha. Was Alpha.8 FAIL usingNone.description should be AXDescription: . Was .9 FAIL usingLabel.title should be AXTitle: Beta. Was Beta.10 FAIL usingLabel.description should be AXDescription: Gamma. Was Description: Gamma.11 FAIL usingLabelledby.title should be AXTitle: Delta. Was Delta.12 FAIL usingLabelledby.description should be AXDescription: Epsilon. Was Description: Epsilon.13 FAIL usingLabeledby.title should be AXTitle: Eta. Was Eta.14 FAIL usingLabeledby.description should be AXDescription: Theta. Was Description: Theta.15 PASS successfullyParsed is true16 17 TEST COMPLETE18
Note:
See TracChangeset
for help on using the changeset viewer.