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/testharness.js"></script> | 5 <script src="../../resources/testharness.js"></script> |
6 <script src="../../resources/testharnessreport.js"></script> | 6 <script src="../../resources/testharnessreport.js"></script> |
7 <script src="../resources/audit-util.js"></script> | 7 <script src="../resources/audit-util.js"></script> |
8 <script src="../resources/audit.js"></script> | 8 <script src="../resources/audit.js"></script> |
9 </head> | 9 </head> |
10 | 10 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 task.done(); | 46 task.done(); |
47 }); | 47 }); |
48 } | 48 } |
49 } | 49 } |
50 | 50 |
51 function onFailure(should) { | 51 function onFailure(should) { |
52 should(context.state, "Context " + counter + "failed to close") | 52 should(context.state, "Context " + counter + "failed to close") |
53 .beEqualTo("closed"); | 53 .beEqualTo("closed"); |
54 } | 54 } |
55 | 55 |
56 audit.define("test", function (task, should) { | 56 audit.define({ |
57 task.describe("Test that closing a context releases the audio HW context
"); | 57 label: "test", |
| 58 description: "Test that closing a context releases the audio HW context" |
| 59 }, function (task, should) { |
58 createContextAndClose(task, should); | 60 createContextAndClose(task, should); |
59 }); | 61 }); |
60 | 62 |
61 audit.run(); | 63 audit.run(); |
62 </script> | 64 </script> |
63 </body> | 65 </body> |
64 </html> | 66 </html> |
OLD | NEW |