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

Unified Diff: LayoutTests/svg/custom/a-focus-by-tab.html

Issue 22865021: REGRESSION: SVG <a> elmenet ignores tabsToLinks setting (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Move the test Created 7 years, 4 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/svg/custom/a-focus-by-tab-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/svg/custom/a-focus-by-tab.html
diff --git a/LayoutTests/svg/custom/a-focus-by-tab.html b/LayoutTests/svg/custom/a-focus-by-tab.html
new file mode 100644
index 0000000000000000000000000000000000000000..339ba2d325f0030eed8ae3a6f6a33663f8024ef0
--- /dev/null
+++ b/LayoutTests/svg/custom/a-focus-by-tab.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html>
+<body>
+<input id="input1">
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100" height="100" viewBox="0 0 100 100">
+<a xlink:href="" id="svg-a"><text>Link</text></a>
+</svg>
+<script src="../../fast/js/resources/js-test-pre.js"></script>
+<script>
+var input1 = document.getElementById('input1');
+var tab = '\t';
+testRunner.overridePreference('WebKitTabToLinksPreferenceKey', true);
+debug('tabToLinks=true');
+shouldBe('input1.focus(); document.activeElement', 'input1');
+shouldBe('eventSender.keyDown(tab); document.activeElement', 'document.getElementById("svg-a")');
+document.activeElement.blur();
+
+debug('tabToLinks=false');
+testRunner.overridePreference('WebKitTabToLinksPreferenceKey', false);
+shouldBe('input1.focus(); document.activeElement', 'input1');
+shouldNotBe('eventSender.keyDown(tab); document.activeElement', 'document.getElementById("svg-a")');
+</script>
+<script src="../../fast/js/resources/js-test-post.js"></script>
+</body>
« no previous file with comments | « no previous file | LayoutTests/svg/custom/a-focus-by-tab-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698