Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/webaudio/Analyser/realtimeanalyser-freq-data-smoothing.html |
| diff --git a/third_party/WebKit/LayoutTests/webaudio/Analyser/realtimeanalyser-freq-data-smoothing.html b/third_party/WebKit/LayoutTests/webaudio/Analyser/realtimeanalyser-freq-data-smoothing.html |
| index 2bf47914e863684e9e9043780d33c323536b955b..191ebd2a3d667c283d033608b0ec08b3dcbb1bab 100644 |
| --- a/third_party/WebKit/LayoutTests/webaudio/Analyser/realtimeanalyser-freq-data-smoothing.html |
| +++ b/third_party/WebKit/LayoutTests/webaudio/Analyser/realtimeanalyser-freq-data-smoothing.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/compatibility.js"></script> |
| <script src="../resources/audit-util.js"></script> |
| <script src="../resources/audio-testing.js"></script> |
| @@ -13,7 +14,6 @@ |
| <body> |
| <script> |
| - description("Test AnalyserNode getFloatFrequencyData and getByteFrequencyData, Smoothing"); |
| window.jsTestIsAsync = true; |
|
hongchan
2016/12/20 23:04:31
ditto.
|
| // Use a power of two to eliminate any round-off in the computation of the times for |
| @@ -117,18 +117,16 @@ |
| }).then(context.resume.bind(context)); |
| context.startRendering().then(function (buffer) { |
| - var prefix = "FFT smoothing performed "; |
| - var suffix = " with smoothing constant " + analyser.smoothingTimeConstant + ".\n" |
| + var prefix = "FFT smoothing performed"; |
| + var suffix = " with smoothing constant " + analyser.smoothingTimeConstant; |
| - if (success) |
| - testPassed(prefix + "correctly" + suffix); |
| - else |
| - testFailed(prefix + "incorrectly" + suffix); |
| + Should(prefix, success) |
| + .summarize("correctly" + suffix, |
| + "incorrectly" + suffix); |
| }).then(done); |
| }); |
| audit.defineTask("finish", function (done) { |
| - finishJSTest(); |
| done(); |
| }); |