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

Side by Side Diff: LayoutTests/accessibility/loading-iframe-updates-axtree.html

Issue 1312903016: Remove unnecessary 10ms setTimeout in loading-iframe-updates-axtree.html (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove setTimeout entirely Created 5 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../resources/js-test.js"></script> 3 <script src="../resources/js-test.js"></script>
4 4
5 <script> 5 <script>
6 if (window.testRunner) 6 if (window.testRunner)
7 testRunner.waitUntilDone(); 7 testRunner.waitUntilDone();
8 8
9 function runTest() 9 function runTest()
10 { 10 {
(...skipping 24 matching lines...) Expand all
35 }, false); 35 }, false);
36 36
37 // Load content into the iframe. This will trigger the event 37 // Load content into the iframe. This will trigger the event
38 // handler above, which will check that the accessibility tree 38 // handler above, which will check that the accessibility tree
39 // was updated with new content. 39 // was updated with new content.
40 window.iframeElement.src = "data:text/html,<body><button>Click me</butto n></body>"; 40 window.iframeElement.src = "data:text/html,<body><button>Click me</butto n></body>";
41 41
42 } 42 }
43 43
44 window.addEventListener('load', function() { 44 window.addEventListener('load', function() {
45 setTimeout(runTest, 10); 45 runTest();
46 }, false); 46 }, false);
47 47
48 </script> 48 </script>
49 </head> 49 </head>
50 <body> 50 <body>
51 51
52 <p>Before</p> 52 <p>Before</p>
53 53
54 <iframe id="iframe" role="group"></iframe> 54 <iframe id="iframe" role="group"></iframe>
55 55
56 <p>After</p> 56 <p>After</p>
57 57
58 <p>End of test</p> 58 <p>End of test</p>
59 59
60 <p id="description"></p> 60 <p id="description"></p>
61 <div id="console"></div> 61 <div id="console"></div>
62 62
63 </body> 63 </body>
64 </html> 64 </html>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698