| Index: third_party/WebKit/LayoutTests/fast/canvas/change-context.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/canvas/change-context.html b/third_party/WebKit/LayoutTests/fast/canvas/change-context.html
|
| index 9e247594c3e5bcaaafb4f4a98e6a524a59b06eab..675742dcab9dbd8e8a86df78857281f569029c02 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/canvas/change-context.html
|
| +++ b/third_party/WebKit/LayoutTests/fast/canvas/change-context.html
|
| @@ -1,19 +1,22 @@
|
| -This test ensures that changing the context does not crash.
|
| +<script src="../../resources/testharness.js"></script>
|
| +<script src="../../resources/testharnessreport.js"></script>
|
| <canvas id="canvas"></canvas><br />
|
| -<script>
|
| -if (window.testRunner)
|
| - testRunner.dumpAsText();
|
| -
|
| -var canvas = document.getElementById("canvas");
|
| -var ctx1 = canvas.getContext("2d");
|
| -var ctx2 = canvas.getContext("");
|
| -ctx1.save();
|
|
|
| -canvas.parentNode.removeChild(canvas);
|
| +<script>
|
| +test(function(t) {
|
|
|
| -if (window.GCController)
|
| - GCController.collect();
|
| + var canvas = document.getElementById("canvas");
|
| + var ctx1 = canvas.getContext("2d");
|
| + var ctx2 = canvas.getContext("");
|
| + ctx1.save();
|
|
|
| -ctx1.save();
|
| -
|
| + canvas.parentNode.removeChild(canvas);
|
| +
|
| + if (window.GCController)
|
| + GCController.collect();
|
| +
|
| + ctx1.save();
|
| +
|
| +}, 'This test ensures that changing the context does not crash.');
|
| </script>
|
| +</body>
|
|
|