| Index: LayoutTests/fast/canvas/draw-focus-if-needed.html
|
| diff --git a/LayoutTests/fast/canvas/draw-system-focus-ring.html b/LayoutTests/fast/canvas/draw-focus-if-needed.html
|
| similarity index 78%
|
| rename from LayoutTests/fast/canvas/draw-system-focus-ring.html
|
| rename to LayoutTests/fast/canvas/draw-focus-if-needed.html
|
| index 5204f5c336ebf3ebe08eaae184918a919b8bb29b..f5f48143d1ae27769eed034f123c4e4186120cc2 100644
|
| --- a/LayoutTests/fast/canvas/draw-system-focus-ring.html
|
| +++ b/LayoutTests/fast/canvas/draw-focus-if-needed.html
|
| @@ -1,6 +1,6 @@
|
| <!DOCTYPE HTML>
|
| <head>
|
| -<title>Canvas test: drawSystemFocusRing</title>
|
| +<title>Canvas test: drawFocusIfNeeded</title>
|
| <script src="../../resources/js-test.js"></script>
|
| </head>
|
| <body style="padding: 0; margin: 0">
|
| @@ -16,22 +16,22 @@ document.getElementById("button1").focus();
|
|
|
| var canvas = document.getElementById("canvas").getContext("2d");
|
|
|
| -shouldNotThrow('canvas.drawSystemFocusRing(null);');
|
| -shouldThrow('canvas.drawSystemFocusRing();');
|
| +shouldNotThrow('canvas.drawFocusIfNeeded(null);');
|
| +shouldThrow('canvas.drawFocusIfNeeded();');
|
|
|
| canvas.beginPath();
|
| canvas.rect(50, 50, 200, 100);
|
| canvas.fillStyle = "#ccf";
|
| canvas.fill();
|
| // re-test null case after having defined a path (regression test for crbug.com/353248)
|
| -shouldNotThrow('canvas.drawSystemFocusRing(null);');
|
| -canvas.drawSystemFocusRing(document.getElementById("button1"));
|
| +shouldNotThrow('canvas.drawFocusIfNeeded(null);');
|
| +canvas.drawFocusIfNeeded(document.getElementById("button1"));
|
|
|
| canvas.beginPath();
|
| canvas.rect(50, 200, 200, 100);
|
| canvas.fillStyle = "#cfc";
|
| canvas.fill();
|
| -canvas.drawSystemFocusRing(document.getElementById("button2"));
|
| +canvas.drawFocusIfNeeded(document.getElementById("button2"));
|
|
|
| // The top rect"s focus ring is tied to button1, which is focused.
|
| // It should have an outline in some color other than the background color.
|
|
|