Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / tabindex-focus-chain.html
blob0432e8099244277f311ee2dca28d8bcb2f2d44ac
1 <script>
2 if (window.testRunner)
3 testRunner.dumpAsText();
5 var key = 0;
6 function test()
8 if (!window.testRunner)
9 return;
11 var elem = document.getElementById('focusMe')
12 key = -1;
13 elem.focus();
14 eventSender.keyDown("\t");
16 if (!key) { // first test passed, continue with second test
17 key = 1;
18 elem.focus();
19 eventSender.keyDown("\t",["shiftKey"]);
21 if (!key) { // second test passed
22 document.write("PASSED");
23 document.close();
24 return;
27 document.write("FAILED");
28 document.close();
30 </script>
31 <body onload="test()">
32 <input onfocus="key-=1">
33 <input id="focusMe" tabindex="-1">
34 <input onfocus="key+=1">
35 <div id="results"></div>
36 </body>