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

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

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 | « LayoutTests/svg/custom/SVGException.html ('k') | LayoutTests/svg/custom/acid3-test-77.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <body> 3 <body>
4 <input id="input1"> 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"> 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> 6 <a xlink:href="" id="svg-a"><text>Link</text></a>
7 </svg> 7 </svg>
8 <script src="../../fast/js/resources/js-test-pre.js"></script> 8 <script src="../../resources/js-test.js"></script>
9 <script> 9 <script>
10 var input1 = document.getElementById('input1'); 10 var input1 = document.getElementById('input1');
11 var tab = '\t'; 11 var tab = '\t';
12 testRunner.overridePreference('WebKitTabToLinksPreferenceKey', true); 12 testRunner.overridePreference('WebKitTabToLinksPreferenceKey', true);
13 debug('tabToLinks=true'); 13 debug('tabToLinks=true');
14 shouldBe('input1.focus(); document.activeElement', 'input1'); 14 shouldBe('input1.focus(); document.activeElement', 'input1');
15 shouldBe('eventSender.keyDown(tab); document.activeElement', 'document.getElemen tById("svg-a")'); 15 shouldBe('eventSender.keyDown(tab); document.activeElement', 'document.getElemen tById("svg-a")');
16 document.activeElement.blur(); 16 document.activeElement.blur();
17 17
18 debug('tabToLinks=false'); 18 debug('tabToLinks=false');
19 testRunner.overridePreference('WebKitTabToLinksPreferenceKey', false); 19 testRunner.overridePreference('WebKitTabToLinksPreferenceKey', false);
20 shouldBe('input1.focus(); document.activeElement', 'input1'); 20 shouldBe('input1.focus(); document.activeElement', 'input1');
21 shouldNotBe('eventSender.keyDown(tab); document.activeElement', 'document.getEle mentById("svg-a")'); 21 shouldNotBe('eventSender.keyDown(tab); document.activeElement', 'document.getEle mentById("svg-a")');
22 </script> 22 </script>
23 </body> 23 </body>
OLDNEW
« no previous file with comments | « LayoutTests/svg/custom/SVGException.html ('k') | LayoutTests/svg/custom/acid3-test-77.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698