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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-max-contexts.html

Issue 2727663003: Move task.describe to audit.define arg (Closed)
Patch Set: Fix up expected results 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-max-contexts.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-max-contexts.html b/third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-max-contexts.html
index af8611f75cee27b9329c6bf56e973695a2d6d990..4ff30e0768957080b90de9788e14c2ceabf91cba 100644
--- a/third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-max-contexts.html
+++ b/third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-max-contexts.html
@@ -19,17 +19,21 @@ function reachHardwareContextsLimit() {
}
-audit.define("test-limit", function (task, should) {
- task.describe(
- "Check that the AudioContext constructor throws when the limit on hardware contexts is reached."
- );
- should(function () {
- reachHardwareContextsLimit();
- }, "Create " + contextsToCreate + " concurrent AudioContext's")
- .throw("NotSupportedError");
+audit.define(
+ {
+ label: 'hardware-context-limit',
+ description: 'AudioContext throws when hardware context limit is reached'
+ },
+ function(task, should) {
+ should(
+ function() {
+ reachHardwareContextsLimit();
+ },
+ 'Create ' + contextsToCreate + ' concurrent AudioContext\'s')
+ .throw('NotSupportedError');
- task.done();
-});
+ task.done();
+ });
audit.run();
</script>

Powered by Google App Engine
This is Rietveld 408576698