| Index: third_party/WebKit/LayoutTests/fast/canvas/resize-while-save-active.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/canvas/resize-while-save-active.html b/third_party/WebKit/LayoutTests/fast/canvas/resize-while-save-active.html
|
| index bcd1e9bdd44d84f6f452908dd5d5825d80563dc6..f431951af7813a2fa799f05bd2fde191767b050b 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/canvas/resize-while-save-active.html
|
| +++ b/third_party/WebKit/LayoutTests/fast/canvas/resize-while-save-active.html
|
| @@ -1,14 +1,9 @@
|
| -<!DOCTYPE HTML>
|
| -<html>
|
| -<head>
|
| -</head>
|
| +<script src="../../resources/testharness.js"></script>
|
| +<script src="../../resources/testharnessreport.js"></script>
|
| <body>
|
| <canvas id="mycanvas" width="512" height="512"></canvas>
|
| <script>
|
| -if (window.testRunner)
|
| - testRunner.dumpAsText()
|
| -onload = function()
|
| -{
|
| +function runTest() {
|
| var canvas = document.getElementById('mycanvas');
|
| var ctx = canvas.getContext('2d');
|
| ctx.fillStyle = "rgb(255,165,0)";
|
| @@ -17,8 +12,13 @@ onload = function()
|
| canvas.width = 256;
|
| ctx.fillStyle = "rgb(255,165,0)";
|
| ctx.fillRect(0, 0, 256, 512);
|
| - document.body.appendChild(document.createElement("p")).appendChild(document.createTextNode("If we got this far without an assertion, this test passed."));
|
| -};
|
| +}
|
| +
|
| +async_test(t => {
|
| + window.onload = function() {
|
| + t.step(runTest);
|
| + t.done();
|
| + }
|
| +}, 'Verify that canvas resize after save does not crash.');
|
| </script>
|
| </body>
|
| -</html>
|
|
|