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

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

Issue 2593043003: Convert AudioBufferSource tests using Audit to testharness (Closed)
Patch Set: Missed a couple testFailed calls. Created 3 years, 11 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 31fd3b0b7f1178f64df63b0442ec89db72ffca94..c5ec2f2c15bb597416fcedabf0a1cb3bb62cb102 100644
--- a/third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-playbackrate-zero.html
+++ b/third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-playbackrate-zero.html
@@ -2,15 +2,14 @@
<html>
<head>
- <script src="../../resources/js-test.js"></script>
+ <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>
</head>
<body>
<script>
- description('AudioBufferSourceNode: test the "zero" playbackRate.');
- window.jsTestIsAsync = true;
// Sample rate should be power of 128 to observe the change of AudioParam at
// the beginning of rendering quantum. (playbackRate is k-rate) This is the
@@ -63,18 +62,15 @@
}
}
- if (passed) {
- testPassed('The zero playbackRate held the sample value correctly.');
- } else {
- testFailed('The zero playbackRate should hold the sample value. ' +
- 'Expected ' + rampData[half] + ' but got ' + data[i] + ' at the index ' +
- i + '.');
- }
+ Should('The zero playbackRate', passed)
+ .summarize(
+ 'held the sample value correctly',
+ 'should hold the sample value. ' + 'Expected ' + rampData[half] +
+ ' but got ' + data[i] + ' at the index ' + i);
}).then(done);
});
audit.defineTask('finish', function (done) {
- finishJSTest();
done();
});

Powered by Google App Engine
This is Rietveld 408576698