| Index: third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-one-sample-loop.html
|
| diff --git a/third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-one-sample-loop.html b/third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-one-sample-loop.html
|
| index af2366d47cf0b86fc5f2c0a3197bf34642452c5f..9d336b1575710241aad3fdbb9ac30bbd0487b2e1 100644
|
| --- a/third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-one-sample-loop.html
|
| +++ b/third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-one-sample-loop.html
|
| @@ -1,24 +1,25 @@
|
| -<!doctype html>
|
| +<!DOCTYPE html>
|
| <html>
|
| <head>
|
| - <title>Test AudioBufferSourceNode With Looping a Single-Sample Buffer</title>
|
| + <title>
|
| + Test AudioBufferSourceNode With Looping a Single-Sample Buffer
|
| + </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>
|
| + <script id="layout-test-code">
|
| let audit = Audit.createTaskRunner();
|
|
|
| let sampleRate = 44100;
|
| let testDurationSamples = 1000;
|
|
|
| - audit.define("one-sample-loop", function (task, should) {
|
| + audit.define('one-sample-loop', function(task, should) {
|
| // Create the offline context for the test.
|
| - let context = new OfflineAudioContext(1, testDurationSamples,
|
| - sampleRate);
|
| + let context =
|
| + new OfflineAudioContext(1, testDurationSamples, sampleRate);
|
|
|
| // Create the single sample buffer
|
| let buffer = createConstantBuffer(context, 1, 1);
|
| @@ -32,11 +33,12 @@
|
|
|
| // Render it!
|
| context.startRendering()
|
| - .then(function(audioBuffer) {
|
| - should(audioBuffer.getChannelData(0), "Rendered data")
|
| - .beConstantValueOf(1);
|
| - })
|
| - .then(task.done.bind(task));;
|
| + .then(function(audioBuffer) {
|
| + should(audioBuffer.getChannelData(0), 'Rendered data')
|
| + .beConstantValueOf(1);
|
| + })
|
| + .then(task.done.bind(task));
|
| + ;
|
| });
|
|
|
| audit.run();
|
|
|