| Index: third_party/WebKit/LayoutTests/fast/canvas/access-zero-sized-canvas.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/canvas/access-zero-sized-canvas.html b/third_party/WebKit/LayoutTests/fast/canvas/access-zero-sized-canvas.html
|
| index 3796142dc60b8122fb629ec208ac732d970e34b1..9e7a48810386ce831ffbc1b37be64fa1192bed95 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/canvas/access-zero-sized-canvas.html
|
| +++ b/third_party/WebKit/LayoutTests/fast/canvas/access-zero-sized-canvas.html
|
| @@ -1,10 +1,16 @@
|
| -This test ensures that accessing the context of a zero sized canvas does not crash.
|
| -<canvas id="canvas" width="0" height="0"></canvas><br />
|
| +<html>
|
| +<head>
|
| +<script src="../../resources/testharness.js"></script>
|
| +<script src="../../resources/testharnessreport.js"></script>
|
| +</head>
|
| +<canvas id="canvas" width="0" height="0"></canvas>
|
| +<body>
|
| <script>
|
| -if (window.testRunner)
|
| - testRunner.dumpAsText();
|
| -
|
| -var context = document.getElementById("canvas").getContext("2d");
|
| -context.fillStyle = "green";
|
| -
|
| +test(function(t) {
|
| + var context = document.getElementById("canvas").getContext("2d");
|
| + context.fillStyle = "green";
|
| +}, 'This test ensures that accessing the context of a zero sized canvas does not crash.');
|
| </script>
|
| +</body>
|
| +</html>
|
| +
|
|
|