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

Unified Diff: LayoutTests/fast/canvas/draw-focus-if-needed-on-event.html

Issue 208003003: Rename drawSystemFocusRing() to drawFocusIfNeeded() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 9 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
Index: LayoutTests/fast/canvas/draw-focus-if-needed-on-event.html
diff --git a/LayoutTests/fast/canvas/draw-system-focus-ring-on-event.html b/LayoutTests/fast/canvas/draw-focus-if-needed-on-event.html
similarity index 87%
rename from LayoutTests/fast/canvas/draw-system-focus-ring-on-event.html
rename to LayoutTests/fast/canvas/draw-focus-if-needed-on-event.html
index d7227ef02467f1e944d8257e6437de503027261d..aef285b0b6f831f36021809d0ea9bb63caba0780 100644
--- a/LayoutTests/fast/canvas/draw-system-focus-ring-on-event.html
+++ b/LayoutTests/fast/canvas/draw-focus-if-needed-on-event.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">
@@ -19,13 +19,13 @@ document.getElementById("button1").addEventListener('focus', function() {
canvas.rect(50, 50, 200, 100);
canvas.fillStyle = "#ccf";
canvas.fill();
- canvas.drawSystemFocusRing(document.getElementById("button1"));
+ 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"));
});
document.getElementById("button1").focus();

Powered by Google App Engine
This is Rietveld 408576698