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

Side by Side Diff: LayoutTests/accessibility/accessibility-object-detached.html

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
1 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <html> 2 <html>
3 <body> 3 <body>
4 <script src="../fast/js/resources/js-test-pre.js"></script> 4 <script src="../resources/js-test.js"></script>
5 5
6 <canvas id="canvas"></canvas> 6 <canvas id="canvas"></canvas>
7 7
8 <div id="console"></div> 8 <div id="console"></div>
9 <script> 9 <script>
10 description("This test makes sure that AccessibilityObjects are detached when th e node they point to is detached."); 10 description("This test makes sure that AccessibilityObjects are detached when th e node they point to is detached.");
11 11
12 if (window.testRunner && window.accessibilityController) { 12 if (window.testRunner && window.accessibilityController) {
13 window.testRunner.dumpAsText(); 13 window.testRunner.dumpAsText();
14 14
15 // Create a button on the page, focus it and get its accessibility role. 15 // Create a button on the page, focus it and get its accessibility role.
16 var button = document.createElement('button'); 16 var button = document.createElement('button');
17 document.body.appendChild(button); 17 document.body.appendChild(button);
18 button.focus(); 18 button.focus();
19 window.axElement = accessibilityController.focusedElement; 19 window.axElement = accessibilityController.focusedElement;
20 window.expectedButtonRole = axElement.role; 20 window.expectedButtonRole = axElement.role;
21 21
22 // Now remove the node from the tree and get the role of the detached access ibility object. 22 // Now remove the node from the tree and get the role of the detached access ibility object.
23 // We detect that it's detached just by checking that the role is different (empty or unknown). 23 // We detect that it's detached just by checking that the role is different (empty or unknown).
24 document.body.removeChild(button); 24 document.body.removeChild(button);
25 window.expectedDetachedRole = axElement.role; 25 window.expectedDetachedRole = axElement.role;
26 shouldBeTrue("expectedButtonRole != expectedDetachedRole"); 26 shouldBeTrue("expectedButtonRole != expectedDetachedRole");
27 } 27 }
28 28
29 </script> 29 </script>
30 30
31 </body> 31 </body>
32 </html> 32 </html>
OLDNEW
« no previous file with comments | « LayoutTests/accessibility/accessibility-node-reparent.html ('k') | LayoutTests/accessibility/add-to-menu-list-crashes.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698