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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/svg/custom/a-focus-by-tab-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <input id="input1">
5 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin k" width="100" height="100" viewBox="0 0 100 100">
6 <a xlink:href="" id="svg-a"><text>Link</text></a>
7 </svg>
8 <script src="../../fast/js/resources/js-test-pre.js"></script>
9 <script>
10 var input1 = document.getElementById('input1');
11 var tab = '\t';
12 testRunner.overridePreference('WebKitTabToLinksPreferenceKey', true);
13 debug('tabToLinks=true');
14 shouldBe('input1.focus(); document.activeElement', 'input1');
15 shouldBe('eventSender.keyDown(tab); document.activeElement', 'document.getElemen tById("svg-a")');
16 document.activeElement.blur();
17
18 debug('tabToLinks=false');
19 testRunner.overridePreference('WebKitTabToLinksPreferenceKey', false);
20 shouldBe('input1.focus(); document.activeElement', 'input1');
21 shouldNotBe('eventSender.keyDown(tab); document.activeElement', 'document.getEle mentById("svg-a")');
22 </script>
23 <script src="../../fast/js/resources/js-test-post.js"></script>
24 </body>
OLDNEW
« 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