| Index: third_party/WebKit/LayoutTests/fast/canvas/draw-focus-if-needed-invisible-crash.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/canvas/draw-focus-if-needed-invisible-crash.html b/third_party/WebKit/LayoutTests/fast/canvas/draw-focus-if-needed-invisible-crash.html
|
| index 314268f6376fb61554aea63846ad36bb26a0e858..87f23621d23e3812d51a3b62548352aa9ff5b10b 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/canvas/draw-focus-if-needed-invisible-crash.html
|
| +++ b/third_party/WebKit/LayoutTests/fast/canvas/draw-focus-if-needed-invisible-crash.html
|
| @@ -1,17 +1,20 @@
|
| -<!DOCTYPE HTML>
|
| -<p>This test passes by not crashing.</p>
|
| +<script src="../../resources/testharness.js"></script>
|
| +<script src="../../resources/testharnessreport.js"></script>
|
| +
|
| <canvas id="canvas">
|
| <button id="button"></button>
|
| </canvas>
|
| +
|
| <script>
|
| -if (window.testRunner)
|
| - testRunner.dumpAsText();
|
| +test(function(t) {
|
|
|
| -var button = document.getElementById("button");
|
| -button.focus();
|
| -var canvas = document.getElementById("canvas")
|
| -var ctx = canvas.getContext("2d");
|
| -ctx.rect(0, 0, 10, 10);
|
| -canvas.style.display = "none";
|
| -ctx.drawFocusIfNeeded(button);
|
| -</script>
|
| + var button = document.getElementById("button");
|
| + button.focus();
|
| + var canvas = document.getElementById("canvas")
|
| + var ctx = canvas.getContext("2d");
|
| + ctx.rect(0, 0, 10, 10);
|
| + canvas.style.display = "none";
|
| + ctx.drawFocusIfNeeded(button);
|
| +
|
| +}, 'Test that drawFocusIfNeeded does not crash.');
|
| +</script>
|
|
|