OLD | NEW |
1 <p id="console"></p> | 1 <script src="../../resources/testharness.js"></script> |
2 <p>Calling toDataURL() on a huge canvas shouldn't crash. If the text above is "
PASS", the test passed.</p> | 2 <script src="../../resources/testharnessreport.js"></script> |
3 <canvas id="foo" width="65536" height="65536"></canvas> | 3 |
| 4 <canvas><canvas id="foo" width="65536" height="65536"></canvas> |
4 <script> | 5 <script> |
5 var canvas = document.getElementById('foo'); | 6 test(function() { |
6 var url = canvas.toDataURL(); | 7 var canvas = document.getElementById('foo'); |
7 var p = document.getElementById('console'); | 8 var url = canvas.toDataURL(); |
8 p.innerHTML = "PASS"; | 9 }, "Calling toDataURL() on a huge canvas shouldn't crash."); |
9 if (window.testRunner) | |
10 testRunner.dumpAsText(); | |
11 </script> | 10 </script> |
OLD | NEW |