| <script src="../resources/js-test.js"></script> |
| description("Tests that calling an AudioContext does not start rendering when adding a node if suspend() was called right after creation."); |
| audioContext = new AudioContext(); |
| shouldBeEqualToString("audioContext.state", "suspended"); |
| await audioContext.suspend(); |
| shouldBeEqualToString("audioContext.state", "suspended"); |
| node = audioContext.createOscillator(); |
| shouldBeEqualToString("audioContext.state", "suspended"); |
| shouldBeEqualToString("audioContext.state", "suspended"); |