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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/canvas-toDataURL-jpeg-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-jpeg-crash.html
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/canvas-toDataURL-jpeg-crash.html b/third_party/WebKit/LayoutTests/fast/canvas/canvas-toDataURL-jpeg-crash.html
index cd4c042ad41733f1b69ec0fd3ce0ff4104ca43b0..490d1ddcdaa47f658d608fb23245579f3b3d5b58 100644
--- a/third_party/WebKit/LayoutTests/fast/canvas/canvas-toDataURL-jpeg-crash.html
+++ b/third_party/WebKit/LayoutTests/fast/canvas/canvas-toDataURL-jpeg-crash.html
@@ -1,11 +1,11 @@
-Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=69681">bug 69681</a>,
-canvas.toDataURL("image/jpeg") should not crash.<br>
-<p id="log"></p>
-<canvas id="canvas" width="2000" height="2000"></canvas>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+
+<canvas><canvas id="canvas" width="2000" height="2000"></canvas>
<script>
-var test = document.getElementById('canvas').toDataURL('image/jpeg');
-// Test passes if we don't crash.
-document.getElementById('log').innerHTML = 'PASS';
-if (window.testRunner)
- testRunner.dumpAsText();
+test(function() {
+
+ var test = document.getElementById('canvas').toDataURL('image/jpeg');
+
+}, "canvas.toDataURL('image/jpeg') should not crash. (https://bugs.webkit.org/show_bug.cgi?id=69681)");
</script>

Powered by Google App Engine
This is Rietveld 408576698