Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(515)

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-close-basic.html

Issue 2708953003: Move task.describe descriptions to audit.define (Closed)
Patch Set: Address review comments. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698