| Index: third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-ended.html
|
| diff --git a/third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-ended.html b/third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-ended.html
|
| index 456ccf6f7db770693c81c3e7e3d20d2b043eb020..343d846905cea83149302ee04f0fa18fe5d3737e 100644
|
| --- a/third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-ended.html
|
| +++ b/third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-ended.html
|
| @@ -1,34 +1,40 @@
|
| <!DOCTYPE html>
|
| -<head>
|
| +<html>
|
| + <head>
|
| + <title>
|
| + audiobuffersource-ended.html
|
| + </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>
|
| <script src="../resources/audiobuffersource-testing.js"></script>
|
| -</head>
|
| -<body>
|
| - <script>
|
| + </head>
|
| + <body>
|
| + <script id="layout-test-code">
|
| let audit = Audit.createTaskRunner();
|
|
|
| let context;
|
| let source;
|
|
|
| - audit.define("AudioBufferSourceNode calls its onended EventListener",
|
| - function (task, should) {
|
| - let sampleRate = 44100.0;
|
| - let numberOfFrames = 32;
|
| - context = new OfflineAudioContext(1, numberOfFrames, sampleRate);
|
| - source = context.createBufferSource();
|
| - source.buffer = createTestBuffer(context, numberOfFrames);
|
| - source.connect(context.destination);
|
| - source.onended = function () {
|
| - should(true, "source.onended called").beTrue();
|
| - task.done();
|
| - };
|
| - source.start(0);
|
| - context.startRendering();
|
| - });
|
| + audit.define(
|
| + 'AudioBufferSourceNode calls its onended EventListener',
|
| + function(task, should) {
|
| + let sampleRate = 44100.0;
|
| + let numberOfFrames = 32;
|
| + context = new OfflineAudioContext(1, numberOfFrames, sampleRate);
|
| + source = context.createBufferSource();
|
| + source.buffer = createTestBuffer(context, numberOfFrames);
|
| + source.connect(context.destination);
|
| + source.onended = function() {
|
| + should(true, 'source.onended called').beTrue();
|
| + task.done();
|
| + };
|
| + source.start(0);
|
| + context.startRendering();
|
| + });
|
|
|
| audit.run();
|
| </script>
|
| -</body>
|
| + </body>
|
| +</html>
|
|
|