| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <title>Test AudioContext.close() closes many contexts</title> | 4 <title>Test AudioContext.close() closes many contexts</title> |
| 5 <script src="../resources/js-test.js"></script> |
| 5 <script src="resources/compatibility.js"></script> | 6 <script src="resources/compatibility.js"></script> |
| 6 <script src="resources/audio-testing.js"></script> | 7 <script src="resources/audio-testing.js"></script> |
| 7 <script src="../resources/js-test.js"></script> | |
| 8 </head> | 8 </head> |
| 9 | 9 |
| 10 <body> | 10 <body> |
| 11 <script> | 11 <script> |
| 12 description("Test that closing a context releases the audio HW context"); | 12 description("Test that closing a context releases the audio HW context"); |
| 13 | 13 |
| 14 var context = null; | 14 var context = null; |
| 15 | 15 |
| 16 // The number of contexts we want to create and close. | 16 // The number of contexts we want to create and close. |
| 17 var MAX_ITERATION = 100; | 17 var MAX_ITERATION = 100; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 47 // Initiate iteration. | 47 // Initiate iteration. |
| 48 function runTest() { | 48 function runTest() { |
| 49 window.jsTestIsAsync = true; | 49 window.jsTestIsAsync = true; |
| 50 createContextAndClose(); | 50 createContextAndClose(); |
| 51 } | 51 } |
| 52 | 52 |
| 53 runTest(); | 53 runTest(); |
| 54 </script> | 54 </script> |
| 55 </body> | 55 </body> |
| 56 </html> | 56 </html> |
| OLD | NEW |