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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/canvas/canvas-toDataURL-crash.html
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/canvas-toDataURL-crash.html b/third_party/WebKit/LayoutTests/fast/canvas/canvas-toDataURL-crash.html
index 703600d2c027c5d6690ad709804d5ae0f2d5c7f4..8e1248ef6cf897781de627405465b0ac428d4c1a 100644
--- a/third_party/WebKit/LayoutTests/fast/canvas/canvas-toDataURL-crash.html
+++ b/third_party/WebKit/LayoutTests/fast/canvas/canvas-toDataURL-crash.html
@@ -1,11 +1,10 @@
-<p id="console"></p>
-<p>Calling toDataURL() on a huge canvas shouldn't crash. If the text above is "PASS", the test passed.</p>
-<canvas id="foo" width="65536" height="65536"></canvas>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+
+<canvas><canvas id="foo" width="65536" height="65536"></canvas>
<script>
-var canvas = document.getElementById('foo');
-var url = canvas.toDataURL();
-var p = document.getElementById('console');
-p.innerHTML = "PASS";
-if (window.testRunner)
- testRunner.dumpAsText();
+test(function() {
+ var canvas = document.getElementById('foo');
+ var url = canvas.toDataURL();
+}, "Calling toDataURL() on a huge canvas shouldn't crash.");
</script>

Powered by Google App Engine
This is Rietveld 408576698