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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/canvas/canvas-toDataURL-crash.html

Issue 2693043012: Use testharness.js instead of js-test.js in LayoutTests/fast/canvas tests. (Closed)
Patch Set: Addressing comments Created 3 years, 10 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
OLDNEW
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698