| Index: third_party/WebKit/LayoutTests/webaudio/WaveShaper/waveshaper-simple.html
|
| diff --git a/third_party/WebKit/LayoutTests/webaudio/WaveShaper/waveshaper-simple.html b/third_party/WebKit/LayoutTests/webaudio/WaveShaper/waveshaper-simple.html
|
| index 1ad889a2e0f548c2a957406b51ac80f236c3f014..4e6acd4664e48cbb1b395e31542aeb0904948b66 100644
|
| --- a/third_party/WebKit/LayoutTests/webaudio/WaveShaper/waveshaper-simple.html
|
| +++ b/third_party/WebKit/LayoutTests/webaudio/WaveShaper/waveshaper-simple.html
|
| @@ -1,44 +1,48 @@
|
| -<!doctype html>
|
| +<!DOCTYPE html>
|
| <html>
|
| <head>
|
| - <title>Simple Tests of WaveShaperNode</title>
|
| + <title>
|
| + Simple Tests of WaveShaperNode
|
| + </title>
|
| <script src="../../resources/testharness.js"></script>
|
| <script src="../../resources/testharnessreport.js"></script>
|
| <script src="../resources/audit-util.js"></script>
|
| <script src="../resources/audit.js"></script>
|
| </head>
|
| -
|
| <body>
|
| - <script>
|
| - var audit = Audit.createTaskRunner();
|
| + <script id="layout-test-code">
|
| + let audit = Audit.createTaskRunner();
|
|
|
| - audit.define("simple", (task, should) => {
|
| - var context = new OfflineAudioContext(1, 1, 48000);
|
| - var shaper = context.createWaveShaper();
|
| + audit.define('simple', (task, should) => {
|
| + let context = new OfflineAudioContext(1, 1, 48000);
|
| + let shaper = context.createWaveShaper();
|
|
|
| // Verify default values are correct.
|
| - should(shaper.curve, "WaveShaper.curve").beEqualTo(null);
|
| - should(shaper.oversample, "WaveShaper.oversample").beEqualTo("none");
|
| + should(shaper.curve, 'WaveShaper.curve').beEqualTo(null);
|
| + should(shaper.oversample, 'WaveShaper.oversample').beEqualTo('none');
|
|
|
| // Set oversample and verify that it is set correctly.
|
| - shaper.oversample = "2x";
|
| - should(shaper.oversample, 'Waveshaper.oversample = "2x"').beEqualTo("2x");
|
| + shaper.oversample = '2x';
|
| + should(shaper.oversample, 'Waveshaper.oversample = "2x"')
|
| + .beEqualTo('2x');
|
|
|
| - shaper.oversample = "4x";
|
| - should(shaper.oversample, 'Waveshaper.oversample = "4x"').beEqualTo("4x");
|
| + shaper.oversample = '4x';
|
| + should(shaper.oversample, 'Waveshaper.oversample = "4x"')
|
| + .beEqualTo('4x');
|
|
|
| - shaper.oversample = "invalid";
|
| - should(shaper.oversample, 'Waveshaper.oversample = "invalid"').beEqualTo("4x");
|
| + shaper.oversample = 'invalid';
|
| + should(shaper.oversample, 'Waveshaper.oversample = "invalid"')
|
| + .beEqualTo('4x');
|
|
|
| // Set the curve and verify that the returned curve is the same as what
|
| // it was set to.
|
| - var curve = Float32Array.from([-1, 0.25, .75]);
|
| + let curve = Float32Array.from([-1, 0.25, .75]);
|
| shaper.curve = curve;
|
| - should(shaper.curve, "WaveShaper.curve").beEqualToArray(curve);
|
| + should(shaper.curve, 'WaveShaper.curve').beEqualToArray(curve);
|
|
|
| // Verify setting the curve to null works.
|
| shaper.curve = null;
|
| - should(shaper.curve, "Waveshaper.curve = null").beEqualTo(null);
|
| + should(shaper.curve, 'Waveshaper.curve = null').beEqualTo(null);
|
|
|
| task.done();
|
| });
|
|
|