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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-playbackrate-zero.html

Issue 2783553002: Convert AudioBufferSource tests to new Audit (Closed)
Patch Set: Indent neatly. Created 3 years, 8 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/AudioBufferSource/audiobuffersource-playbackrate-zero.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-playbackrate-zero.html b/third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-playbackrate-zero.html
index c5ec2f2c15bb597416fcedabf0a1cb3bb62cb102..9dfc522cd36cb91e7cf9ecd86a5c3ab77cf3f8a6 100644
--- a/third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-playbackrate-zero.html
+++ b/third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-playbackrate-zero.html
@@ -5,7 +5,7 @@
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../resources/audit-util.js"></script>
- <script src="../resources/audio-testing.js"></script>
+ <script src="../resources/audit.js"></script>
</head>
<body>
@@ -25,7 +25,7 @@
// Task: Render the actual buffer and compare with the reference.
- audit.defineTask('synthesize-verify', function (done) {
+ audit.define('synthesize-verify', (task, should) => {
var ramp = context.createBufferSource();
var rampBuffer = createLinearRampBuffer(context, renderLength);
ramp.buffer = rampBuffer;
@@ -62,24 +62,15 @@
}
}
- Should('The zero playbackRate', passed)
- .summarize(
+ should(passed, 'The zero playbackRate')
+ .message(
'held the sample value correctly',
'should hold the sample value. ' + 'Expected ' + rampData[half] +
' but got ' + data[i] + ' at the index ' + i);
- }).then(done);
+ }).then(() => task.done());
});
- audit.defineTask('finish', function (done) {
- done();
- });
-
- audit.runTasks(
- 'synthesize-verify',
- 'finish'
- );
-
- successfullyParsed = true;
+ audit.run();
</script>
</body>

Powered by Google App Engine
This is Rietveld 408576698