OLD | NEW |
(Empty) | |
| 1 <!doctype html> |
| 2 <title>activation behavior using accesskey</title> |
| 3 <script src="../resources/testharness.js"></script> |
| 4 <script src="../resources/testharnessreport.js"></script> |
| 5 <video controls accesskey="x"></video> |
| 6 <script> |
| 7 function pressAccessKey(key) |
| 8 { |
| 9 if (navigator.userAgent.search(/\bMac OS X\b/) != -1) |
| 10 modifiers = ["ctrlKey", "altKey"]; |
| 11 else |
| 12 modifiers = ["altKey"]; |
| 13 eventSender.keyDown(key, modifiers); |
| 14 } |
| 15 |
| 16 test(function() |
| 17 { |
| 18 var v = document.querySelector("video"); |
| 19 assert_true(v.paused, "paused state before access key press"); |
| 20 pressAccessKey("x"); |
| 21 assert_false(v.paused, "paused state before access key press"); |
| 22 }); |
| 23 </script> |
OLD | NEW |