Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: LayoutTests/accessibility/draw-custom-focus-ring.html

Issue 299823003: Enable canvas.drawFocusIfNeeded() by default. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: remove test Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/accessibility/draw-custom-focus-ring-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/accessibility/draw-custom-focus-ring.html
diff --git a/LayoutTests/accessibility/draw-custom-focus-ring.html b/LayoutTests/accessibility/draw-custom-focus-ring.html
deleted file mode 100644
index be148a200918b5187365af2294ecc7ee23c24545..0000000000000000000000000000000000000000
--- a/LayoutTests/accessibility/draw-custom-focus-ring.html
+++ /dev/null
@@ -1,56 +0,0 @@
-<!DOCTYPE HTML>
-<head>
-<title>Canvas test: drawSystemFocusRing</title>
-<script src="../resources/js-test.js"></script>
-</head>
-<body style="padding: 0; margin: 0">
-<canvas id="canvas" class="output" width="300" height="350">
- <button id="button1"></button>
- <div id="container">
- <button id="button2"></button>
- </div>
-</canvas>
-<script>
-if (window.testRunner)
- testRunner.dumpAsText();
-
-if (window.accessibilityController) {
- window.axButton1 = window.accessibilityController.accessibleElementById("button1");
- window.axContainer = window.accessibilityController.accessibleElementById("container");
- window.axButton2 = window.accessibilityController.accessibleElementById("button2");
-}
-
-var canvas = document.getElementById("canvas").getContext("2d");
-canvas.save();
-canvas.translate(50, 50);
-
-canvas.beginPath();
-canvas.rect(0, 0, 200, 100);
-canvas.fillStyle = '#ccf';
-canvas.fill();
-canvas.drawCustomFocusRing(document.getElementById('button1'));
-
-canvas.beginPath();
-canvas.rect(0, 150, 200, 100);
-canvas.fillStyle = '#cfc';
-canvas.fill();
-canvas.drawCustomFocusRing(document.getElementById('button2'));
-
-canvas.restore();
-
-shouldBe("axButton1.x", "50");
-shouldBe("axButton1.y", "50");
-shouldBe("axButton1.width", "200");
-shouldBe("axButton1.height", "100");
-
-shouldBe("axContainer.x", "50");
-shouldBe("axContainer.y", "200");
-shouldBe("axContainer.width", "200");
-shouldBe("axContainer.height", "100");
-
-shouldBe("axButton2.x", "50");
-shouldBe("axButton2.y", "200");
-shouldBe("axButton2.width", "200");
-shouldBe("axButton2.height", "100");
-</script>
-</body>
« no previous file with comments | « no previous file | LayoutTests/accessibility/draw-custom-focus-ring-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698