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