Index: LayoutTests/fast/canvas/draw-custom-focus-ring.html |
diff --git a/LayoutTests/fast/canvas/draw-custom-focus-ring.html b/LayoutTests/fast/canvas/draw-custom-focus-ring.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1e333cdbb7fc8cced27acadf0efcef2b0943b16c |
--- /dev/null |
+++ b/LayoutTests/fast/canvas/draw-custom-focus-ring.html |
@@ -0,0 +1,27 @@ |
+<!DOCTYPE HTML> |
+<head> |
+<title>Canvas test: drawCustomFocusRing</title> |
+<script src="../js/resources/js-test-pre.js"></script> |
+</head> |
+<body style="padding: 0; margin: 0"> |
+<canvas id="canvas" class="output" width="300" height="350"> |
+ <button id="button1"></button> |
+ <button id="button2"></button> |
+</canvas> |
+<script> |
+if (window.testRunner) |
+ testRunner.dumpAsText(false); |
+ |
+window.button1 = document.getElementById("button1"); |
+window.button2 = document.getElementById("button2"); |
+ |
+var canvas = document.getElementById("canvas").getContext("2d"); |
+canvas.beginPath(); |
+canvas.rect(50, 50, 200, 100); |
+canvas.fill(); |
+shouldBe("canvas.drawCustomFocusRing(button1)", "false"); |
+shouldBe("canvas.drawCustomFocusRing(button2)", "false"); |
+shouldBe("button1.focus(); canvas.drawCustomFocusRing(button1)", "true"); |
+</script> |
+<script src="../js/resources/js-test-post.js"></script> |
+</body> |