Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(288)

Side by Side Diff: third_party/WebKit/LayoutTests/accessibility/clickable.html

Issue 2713193003: Added a quick heuristic to determine which objects are the target of in-page links and stop ignorin… (Closed)
Patch Set: Fixed Android test. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <html> 2 <html>
3 <body> 3 <body>
4 <script src="../resources/js-test.js"></script> 4 <script src="../resources/js-test.js"></script>
5 5
6 <div id="wrapper"> 6 <div id="wrapper">
7 <a id="link" href="#">Link</a> 7 <a id="link" href="#">Link</a>
8 <button id="button">Button</button> 8 <button id="button">Button</button>
9 <button id="labeled-button" aria-label="Label">Button</button> 9 <button id="labeled-button" aria-label="Label">Button</button>
10 <button id="button-with-title" title="Title">Button</button> 10 <button id="button-with-title" title="Title">Button</button>
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 shouldBe("isAXElementClickable('focusable')", "false"); 71 shouldBe("isAXElementClickable('focusable')", "false");
72 shouldBe("isAXElementClickable('heading')", "false"); 72 shouldBe("isAXElementClickable('heading')", "false");
73 shouldBe("isAXElementClickable('aria-button')", "true"); 73 shouldBe("isAXElementClickable('aria-button')", "true");
74 shouldBe("isAXElementClickable('aria-link')", "true"); 74 shouldBe("isAXElementClickable('aria-link')", "true");
75 shouldBe("isAXElementClickable('div')", "false"); 75 shouldBe("isAXElementClickable('div')", "false");
76 shouldBe("isAXElementClickable('onclick')", "true"); 76 shouldBe("isAXElementClickable('onclick')", "true");
77 shouldBe("isAXElementClickable('keydown-listener')", "false"); 77 shouldBe("isAXElementClickable('keydown-listener')", "false");
78 shouldBe("isAXElementClickable('click-listener')", "true"); 78 shouldBe("isAXElementClickable('click-listener')", "true");
79 shouldBe("isAXElementClickable('mousedown-listener')", "true"); 79 shouldBe("isAXElementClickable('mousedown-listener')", "true");
80 80
81 shouldBe("axRole('empty-anchor')", "'AXRole: AXUnknown'"); 81 shouldBe("axRole('empty-anchor')", "'AXRole: AXAnchor'");
82 shouldBe("axRole('href-anchor')", "'AXRole: AXLink'"); 82 shouldBe("axRole('href-anchor')", "'AXRole: AXLink'");
83 shouldBe("axRole('onclick-anchor')", "'AXRole: AXLink'"); 83 shouldBe("axRole('onclick-anchor')", "'AXRole: AXLink'");
84 shouldBe("axRole('click-listener-anchor')", "'AXRole: AXLink'"); 84 shouldBe("axRole('click-listener-anchor')", "'AXRole: AXLink'");
85 85
86 document.getElementById("wrapper").hidden = true; 86 document.getElementById("wrapper").hidden = true;
87 } 87 }
88 88
89 </script> 89 </script>
90 90
91 </body> 91 </body>
92 </html> 92 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698