| Index: third_party/WebKit/LayoutTests/webaudio/ConstantSource/constant-source-onended.html
|
| diff --git a/third_party/WebKit/LayoutTests/webaudio/ConstantSource/constant-source-onended.html b/third_party/WebKit/LayoutTests/webaudio/ConstantSource/constant-source-onended.html
|
| index b0960a8a039b555d3ea7dc97942b2c7dda4a2bbe..87decf58da456ad63fb6e79e05ac6af9f4508f06 100644
|
| --- a/third_party/WebKit/LayoutTests/webaudio/ConstantSource/constant-source-onended.html
|
| +++ b/third_party/WebKit/LayoutTests/webaudio/ConstantSource/constant-source-onended.html
|
| @@ -1,29 +1,30 @@
|
| -<!doctype html>
|
| +<!DOCTYPE html>
|
| <html>
|
| <head>
|
| - <title>Test ConstantSourceNode onended</title>
|
| + <title>
|
| + Test ConstantSourceNode onended
|
| + </title>
|
| <script src="../../resources/testharness.js"></script>
|
| <script src="../../resources/testharnessreport.js"></script>
|
| </head>
|
| -
|
| <body>
|
| - <script>
|
| - var sampleRate = 44100.0;
|
| + <script id="layout-test-code">
|
| + let sampleRate = 44100.0;
|
| // Number of frames that the source will run; fairly arbitrary
|
| - var numberOfFrames = 32;
|
| + let numberOfFrames = 32;
|
| // Number of frames to render; arbitrary, but should be larger than
|
| // numberOfFrames;
|
| - var renderFrames = 16 * numberOfFrames;
|
| + let renderFrames = 16 * numberOfFrames;
|
|
|
| - var context = new OfflineAudioContext(1, renderFrames, sampleRate);
|
| - var src = new ConstantSourceNode(context);
|
| + let context = new OfflineAudioContext(1, renderFrames, sampleRate);
|
| + let src = new ConstantSourceNode(context);
|
| src.connect(context.destination);
|
|
|
| - var tester = async_test("ConstantSourceNode onended event fired");
|
| + let tester = async_test('ConstantSourceNode onended event fired');
|
|
|
| - src.onended = function () {
|
| - tester.step(function () {
|
| - assert_true(true, "ConstantSourceNode.onended fired");
|
| + src.onended = function() {
|
| + tester.step(function() {
|
| + assert_true(true, 'ConstantSourceNode.onended fired');
|
| });
|
| tester.done();
|
| };
|
| @@ -32,7 +33,6 @@
|
| src.stop(numberOfFrames / context.sampleRate);
|
|
|
| context.startRendering();
|
| -
|
| </script>
|
| </body>
|
| </html>
|
|
|