Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <script src="resources/compatibility.js"></script> | |
| 5 <script src="../resources/js-test.js"></script> | |
| 6 </head> | |
| 7 | |
| 8 <body> | |
| 9 <script> | |
| 10 description("Tests audio context for offline attributes and methods."); | |
| 11 | |
| 12 function runTest() { | |
| 13 // Create an online and offline context for testing. | |
| 14 onlineContext = new AudioContext(); | |
| 15 offlineContext = new OfflineAudioContext(1, 1000, 44100); | |
| 16 | |
| 17 // The online context cannot have oncomplete and startRendering | |
| 18 shouldBeUndefined("onlineContext.oncomplete"); | |
|
Raymond Toy
2016/10/03 20:19:20
Haven't you reduced test coverage by deleting this
hongchan
2016/10/03 20:31:19
This boils down to another question: do we need to
Raymond Toy
2016/10/03 20:36:38
Don't actually know. Probably should in the futur
| |
| 19 shouldBeUndefined("onlineContext.startRendering"); | |
| 20 | |
| 21 // The offline context must have oncomplete and startRendering | |
| 22 shouldBeDefined("offlineContext.oncomplete"); | |
| 23 shouldBeDefined("offlineContext.startRendering"); | |
| 24 | |
| 25 } | |
| 26 | |
| 27 runTest(); | |
| 28 successfullyParsed = true; | |
| 29 </script> | |
| 30 | |
| 31 </body> | |
| 32 </html> | |
| OLD | NEW |