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