OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="/resources/testharness.js"></script> | 3 <script src="/resources/testharness.js"></script> |
4 <script src="/resources/testharnessreport.js"></script> | 4 <script src="/resources/testharnessreport.js"></script> |
5 <script> | 5 <script> |
6 var test = async_test( | 6 var test = async_test( |
7 "Testing vibrate 3 times in a x-origin iframe: " + | 7 "Testing vibrate 3 times in an iframe: " + |
8 " 1. blocked before user gesture;" + | 8 " 1. blocked before user gesture;" + |
9 " 2. succeed during the click event;" + | 9 " 2. succeed during the click event;" + |
10 " 3. succeed after user click."); | 10 " 3. succeed after user click."); |
11 function loaded() | 11 function loaded() |
12 { | 12 { |
13 document.getElementsByTagName('h4')[0].innerHTML = document.domain; | 13 document.getElementsByTagName('h4')[0].innerHTML = document.domain; |
14 } | 14 } |
15 | 15 |
16 function startTest(event) | 16 function startTest(event) |
17 { | 17 { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 } | 51 } |
52 | 52 |
53 window.addEventListener("message", startTest, false); | 53 window.addEventListener("message", startTest, false); |
54 </script> | 54 </script> |
55 </head> | 55 </head> |
56 <body onload="loaded();"> | 56 <body onload="loaded();"> |
57 <h4>DOMAIN</h4> | 57 <h4>DOMAIN</h4> |
58 <button id="b" onclick="performTestWithClick();">Perform Test</button> | 58 <button id="b" onclick="performTestWithClick();">Perform Test</button> |
59 </body> | 59 </body> |
60 </html> | 60 </html> |
| 61 |
OLD | NEW |