OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../resources/js-test.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
5 <script src="resources/compatibility.js"></script> | 5 <script src="../resources/compatibility.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 </head> | 8 </head> |
9 | 9 |
10 <body> | 10 <body> |
11 <script> | 11 <script> |
12 description('Test promise resolution of OfflineAudioContext.resume() and O
fflineAudioContext.suspend().'); | 12 description('Test promise resolution of OfflineAudioContext.resume() and O
fflineAudioContext.suspend().'); |
13 window.jsTestIsAsync = true; | 13 window.jsTestIsAsync = true; |
14 | 14 |
15 var context; | 15 var context; |
16 | 16 |
17 // The sample rate is multiple of the rendering quantum, so suspension | 17 // The sample rate is multiple of the rendering quantum, so suspension |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 | 60 |
61 context.startRendering().then(function () { | 61 context.startRendering().then(function () { |
62 Should('Promise context.state', context.state).beEqualTo('closed'); | 62 Should('Promise context.state', context.state).beEqualTo('closed'); |
63 }).then(finishJSTest); | 63 }).then(finishJSTest); |
64 | 64 |
65 successfullyParsed = true; | 65 successfullyParsed = true; |
66 </script> | 66 </script> |
67 | 67 |
68 </body> | 68 </body> |
69 </html> | 69 </html> |
OLD | NEW |