Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <style> | |
| 5 body { | |
| 6 height: 2000px; | |
| 7 width: 2000px; | |
| 8 } | |
| 9 </style> | |
| 10 <script> | |
| 11 function run() | |
| 12 { | |
| 13 window.internals.setPageScaleFactor(-1); | |
| 14 if (window.testRunner) { | |
| 15 testRunner.capturePixelsAsyncThen(function() {}); | |
| 16 testRunner.waitUntilDone(); | |
| 17 window.setTimeout(notifyDone, 1200); | |
|
ajuma
2016/09/19 18:58:57
Using setTimeout can make tests flaky, so using re
| |
| 18 } | |
| 19 } | |
| 20 function notifyDone() | |
| 21 { | |
| 22 testRunner.notifyDone(); | |
| 23 } | |
| 24 </script> | |
| 25 </head> | |
| 26 <body onload="run()"> | |
| 27 <div id="description"> | |
| 28 The test passes if the page does not crash. | |
| 29 </div> | |
| 30 </body> | |
| 31 </html> | |
| OLD | NEW |