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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/Panner/distance-exponential.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/Panner/distance-exponential.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/Panner/distance-exponential.html b/third_party/WebKit/LayoutTests/webaudio/Panner/distance-exponential.html
index 37cc0c3facd91236bebf8b5d52fdeea559044bd9..2565431be2ab58c0081fbc803cbef31644cf5843 100644
--- a/third_party/WebKit/LayoutTests/webaudio/Panner/distance-exponential.html
+++ b/third_party/WebKit/LayoutTests/webaudio/Panner/distance-exponential.html
@@ -12,14 +12,19 @@
<script>
let audit = Audit.createTaskRunner();
- audit.define("test", (task, should) => {
- task.describe("Exponential distance model for PannerNode");
- // Create offline audio context.
- context = new OfflineAudioContext(2, sampleRate * renderLengthSeconds, sampleRate);
+ audit.define(
+ {
+ label: 'test',
+ description: 'Exponential distance model for PannerNode'
+ },
+ (task, should) => {
+ // Create offline audio context.
+ context = new OfflineAudioContext(
+ 2, sampleRate * renderLengthSeconds, sampleRate);
- createTestAndRun(context, "exponential", should)
- .then(() => task.done());
- });
+ createTestAndRun(context, 'exponential', should)
+ .then(() => task.done());
+ });
audit.run();
</script>

Powered by Google App Engine
This is Rietveld 408576698