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

Side by Side Diff: LayoutTests/accessibility/visible-elements.html

Issue 40513003: Delete/move the remaining stale tests in TestExpectations. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: delete plugins/reentrant-update-widget-positions.html as well Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <html>
2 <script>
3 if (window.testRunner)
4 testRunner.dumpAsText();
5
6 </script>
7 <body id="body">
8 <!-- This test ensures that a plugin that is not accessible, will not appear in the AX hierachy-->
9
10 <a href="#a">more</a><BR>
11 <div id="hiddenDiv" style="visibility: hidden; left: 0px; "><a href="#b">hel lo</a></div>
12
13 <div id="result"></div>
14
15
16 <script>
17 if (window.accessibilityController) {
18 var result = document.getElementById("result");
19
20 var body = document.getElementById("body");
21 body.focus();
22 var links1 = accessibilityController.focusedElement.attributesOfDocu mentLinks();
23
24 // toggle the div
25 var divElement = document.getElementById("hiddenDiv");
26 divElement.style.visibility = "visible";
27
28 accessibilityController.focusedElement.attributesOfChildren();
29 var links2 = accessibilityController.focusedElement.attributesOfDocu mentLinks();
30 if (links1 != links2) {
31 result.innerHTML += "PASS";
32 }
33 else {
34 result.innerHTML += "FAIL - The div's visibility was toggled, bu t the new link did not appear\n\n";
35 result.innerHTML += "Links1: " + links1 + "\n\nLinks2: " + links 2 + "\n\n";
36 }
37 }
38 </script>
39 </body>
40 </html>
OLDNEW
« no previous file with comments | « LayoutTests/accessibility/transformed-element-expected.txt ('k') | LayoutTests/accessibility/visible-elements-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698