| Index: third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-setValueCurve-duration.html
|
| diff --git a/third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-setValueCurve-duration.html b/third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-setValueCurve-duration.html
|
| index 00f04b36ed2c21b68ff62fdfc56e09e46522f47f..0368e130a86c28c780d2ccc52def5114389c80e5 100644
|
| --- a/third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-setValueCurve-duration.html
|
| +++ b/third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-setValueCurve-duration.html
|
| @@ -1,7 +1,8 @@
|
| <!doctype html>
|
| <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>
|
| <script src="../resources/audioparam-testing.js"></script>
|
| @@ -10,8 +11,6 @@
|
|
|
| <body>
|
| <script>
|
| - description("Test AudioParam setValueCurveAtTime() with Huge Duration.");
|
| - window.jsTestIsAsync = true;
|
|
|
| var sampleRate = 48000;
|
| var renderFrames = 1000;
|
| @@ -41,7 +40,6 @@
|
|
|
| context.startRendering().then(function (result) {
|
| // Find the maximum value of the buffer.
|
| - console.log(result);
|
| var max = Math.max.apply(null, result.getChannelData(0));
|
|
|
| // The automation does linear interpolation between 0 and 1 from time 0 to duration.
|
| @@ -56,15 +54,13 @@
|
| brief: true
|
| }).beLessThanOrEqualTo(expectedMax);
|
|
|
| - if (success)
|
| - testPassed(message + " correctly rendered.")
|
| - else
|
| - testFailed(message + " incorrectly rendered with a peak value of " + max);
|
| + Should(message, success)
|
| + .summarize("correctly rounded",
|
| + "incorrectly rendered with a peak value of " + max);
|
| }).then(done);
|
| });
|
|
|
| audit.defineTask("finish", function (done) {
|
| - finishJSTest();
|
| done();
|
| });
|
|
|
|
|