OLD | NEW |
(Empty) | |
| 1 <!-- This is a regression test for crbug.com/537711, in which printing |
| 2 was causing a crash on the main thread of the render process --> |
| 3 <head> |
| 4 <script src="../resources/js-test.js"></script> |
| 5 </head> |
| 6 <body> |
| 7 <div id="console"></div> |
| 8 <script> |
| 9 var can = document.createElement('canvas'); |
| 10 can.width = can.height = 17000; |
| 11 document.body.appendChild(can); |
| 12 var ctx = can.getContext("webgl"); |
| 13 ctx.clearColor(0, 0, 0, 1); |
| 14 ctx.clear(ctx.COLOR_BUFFER_BIT); |
| 15 |
| 16 if (!window.testRunner) { |
| 17 testFailed("Requires window.testRunner"); |
| 18 } else { |
| 19 testRunner.setPrinting(); |
| 20 testRunner.waitUntilDone(); |
| 21 testRunner.capturePixelsAsyncThen(function() { |
| 22 testRunner.clearPrinting(); |
| 23 testPassed("Printed without crashing."); |
| 24 testRunner.notifyDone(); |
| 25 }); |
| 26 } |
| 27 </script> |
| 28 </body> |
OLD | NEW |