| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <title>Test statechange event</title> | 4 <title>Test statechange event</title> |
| 5 <script src="../resources/js-test.js"></script> | 5 <script src="../resources/js-test.js"></script> |
| 6 <script src="resources/audio-testing.js"/> | 6 <script src="resources/audit-util.js"/></script> |
| 7 <script src="resources/audio-testing.js"/></script> |
| 7 <script src="resources/compatibility.js"></script> | 8 <script src="resources/compatibility.js"></script> |
| 8 </head> | 9 </head> |
| 9 | 10 |
| 10 <body> | 11 <body> |
| 11 <script> | 12 <script> |
| 12 description("Test statechange event is properly signaled") | 13 description("Test statechange event is properly signaled") |
| 13 | 14 |
| 14 window.jsTestIsAsync = true; | 15 window.jsTestIsAsync = true; |
| 15 | 16 |
| 16 var secondsToRender = 2; | 17 var secondsToRender = 2; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 // the order of the state change event and resolving the promise is not
specified. Thus, | 71 // the order of the state change event and resolving the promise is not
specified. Thus, |
| 71 // just wait for a bit and then finish the test. We assume the offline
context runs faster | 72 // just wait for a bit and then finish the test. We assume the offline
context runs faster |
| 72 // than realtime. | 73 // than realtime. |
| 73 setTimeout(finalCheck, secondsToRender * 1000); | 74 setTimeout(finalCheck, secondsToRender * 1000); |
| 74 } | 75 } |
| 75 | 76 |
| 76 runTest(); | 77 runTest(); |
| 77 </script> | 78 </script> |
| 78 </body> | 79 </body> |
| 79 </html> | 80 </html> |
| OLD | NEW |