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