OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <head> | 2 <head> |
3 <title>Accessibility: slow document load</title> | 3 <title>Accessibility: slow document load</title> |
4 <script src="/js-test-resources/js-test.js"></script> | 4 <script src="/js-test-resources/js-test.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 | 7 |
8 <div id="console"></div> | 8 <div id="console"></div> |
9 | 9 |
10 <script> | 10 <script> |
(...skipping 13 matching lines...) Expand all Loading... |
24 } | 24 } |
25 | 25 |
26 if (notification == "LoadComplete") { | 26 if (notification == "LoadComplete") { |
27 accessibilityController.removeNotificationListener(); | 27 accessibilityController.removeNotificationListener(); |
28 shouldBeGreaterThanOrEqual("elapsedTime", "1000"); | 28 shouldBeGreaterThanOrEqual("elapsedTime", "1000"); |
29 shouldBeTrue("gotLayoutCompleteBeforeOneSecond"); | 29 shouldBeTrue("gotLayoutCompleteBeforeOneSecond"); |
30 finishJSTest(); | 30 finishJSTest(); |
31 } | 31 } |
32 }); | 32 }); |
33 } | 33 } |
| 34 |
| 35 setTimeout(function() { |
| 36 // Cause an incremental layout. |
| 37 document.body.offsetTop; |
| 38 }, 10); |
34 </script> | 39 </script> |
35 | 40 |
36 <!-- This is a cgi script that waits 1 second before loading. --> | 41 <!-- This is a cgi script that waits 1 second before loading. --> |
37 <script src="slow-loading-script.cgi"></script> | 42 <script src="slow-loading-script.cgi"></script> |
38 | 43 |
39 </body> | 44 </body> |
40 </html> | 45 </html> |
OLD | NEW |