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

Side by Side Diff: LayoutTests/accessibility/adjacent-continuations-cause-assertion-failure.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 PUBLIC "-//IETF//DTD HTML//EN"> 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html> 2 <html>
3 <head> 3 <head>
4 <script> 4 <script>
5 5
6 function buildAccessibilityTree(accessibilityObject, indent) { 6 function buildAccessibilityTree(accessibilityObject, indent) {
7 var str = ""; 7 var str = "";
8 for (var i = 0; i < indent; i++) 8 for (var i = 0; i < indent; i++)
9 str += " "; 9 str += " ";
10 str += accessibilityObject.role; 10 str += accessibilityObject.role;
11 str += " " + accessibilityObject.stringValue; 11 str += " " + accessibilityObject.stringValue;
12 str += "\n"; 12 str += "\n";
13 document.getElementById("tree").innerText += str; 13 document.getElementById("tree").innerText += str;
14 14
15 if (accessibilityObject.stringValue.indexOf('End of test') >= 0) 15 if (accessibilityObject.stringValue.indexOf('End of test') >= 0)
16 return false; 16 return false;
17 17
18 var count = accessibilityObject.childrenCount; 18 var count = accessibilityObject.childrenCount;
19 for (var i = 0; i < count; ++i) { 19 for (var i = 0; i < count; ++i) {
20 if (!buildAccessibilityTree(accessibilityObject.childAtIndex(i), ind ent + 1)) 20 if (!buildAccessibilityTree(accessibilityObject.childAtIndex(i), ind ent + 1))
21 return false; 21 return false;
22 } 22 }
23 23
24 return true; 24 return true;
25 } 25 }
26 </script> 26 </script>
27 <script src="../fast/js/resources/js-test-pre.js"></script> 27 <script src="../resources/js-test.js"></script>
28 </head> 28 </head>
29 <body> 29 <body>
30 30
31 <span><div></div></span><span>x<div>y</div>z</span> 31 <span><div></div></span><span>x<div>y</div>z</span>
32 32
33 <div>End of test</div> 33 <div>End of test</div>
34 34
35 <p id="description"></p> 35 <p id="description"></p>
36 <pre id="tree"></pre> 36 <pre id="tree"></pre>
37 <div id="console"></div> 37 <div id="console"></div>
38 38
39 <script> 39 <script>
40 description("Make sure that a debug assert is not triggered when constructin g the accessibility tree for this page."); 40 description("Make sure that a debug assert is not triggered when constructin g the accessibility tree for this page.");
41 41
42 if (window.accessibilityController) { 42 if (window.accessibilityController) {
43 // Build the accessibility tree up until 'End of test' is encountered. 43 // Build the accessibility tree up until 'End of test' is encountered.
44 document.body.focus(); 44 document.body.focus();
45 buildAccessibilityTree(accessibilityController.focusedElement, 0); 45 buildAccessibilityTree(accessibilityController.focusedElement, 0);
46 } 46 }
47 47
48 </script> 48 </script>
49 49
50 </body> 50 </body>
51 </html> 51 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698