Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / custom / a-focus-by-tab.html
blob58480e6de87b7bf1e127bdf7215c809b04940e55
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/xlink" 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="../../resources/js-test.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.getElementById("svg-a")');
16 document.activeElement.blur();
18 debug('tabToLinks=false');
19 testRunner.overridePreference('WebKitTabToLinksPreferenceKey', false);
20 shouldBe('input1.focus(); document.activeElement', 'input1');
21 shouldNotBe('eventSender.keyDown(tab); document.activeElement', 'document.getElementById("svg-a")');
22 </script>
23 </body>