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(); |
}); |