Video is not started even if play button has been pressed.
[framework/web/webkit-efl.git] / LayoutTests / fast / events / tab-focus-anchor.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
5
6 function pass()
7 {
8     var el = document.querySelector('pre');
9     el.textContent = 'PASS';
10 }
11
12 function fail()
13 {
14     var el = document.querySelector('pre');
15     el.textContent = 'FAIL';
16 }
17
18 if (window.testRunner) {
19     testRunner.dumpAsText();
20     testRunner.overridePreference('WebKitTabToLinksPreferenceKey', false);
21 }
22
23 window.onload = function()
24 {
25     if (!window.testRunner)
26         return;
27
28     for (var i = 0; i < 1; i++) {
29         eventSender.keyDown('\t');
30     }
31 };
32
33 </script>
34 </head>
35 <body>
36
37 <p>This test ensures that we can tab to an a element with a tab index. Press tab
38 to focus the element below.
39
40 <p><a tabindex=0 onfocus="fail()" href="#">Not focusable (given the WebKitTabToLinks pref is set to false)</a>
41 <p><a tabindex=0 onfocus="pass()">Focusable</a>
42
43 <p>Result
44
45 <pre>FAIL</pre>
46
47 </body>
48 </html>