| 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>
|
|
|