| Index: third_party/WebKit/LayoutTests/webaudio/Oscillator/oscillator-ended.html
|
| diff --git a/third_party/WebKit/LayoutTests/webaudio/Oscillator/oscillator-ended.html b/third_party/WebKit/LayoutTests/webaudio/Oscillator/oscillator-ended.html
|
| index 506eeb0d9a5697915a40751fb55b11b0b65344f6..0465ca74c2c6e0ddd262ecceb84696935dbc9ed4 100644
|
| --- a/third_party/WebKit/LayoutTests/webaudio/Oscillator/oscillator-ended.html
|
| +++ b/third_party/WebKit/LayoutTests/webaudio/Oscillator/oscillator-ended.html
|
| @@ -1,37 +1,41 @@
|
| <!DOCTYPE html>
|
| -<head>
|
| +<html>
|
| + <head>
|
| + <title>
|
| + oscillator-ended.html
|
| + </title>
|
| <script src="../../resources/testharness.js"></script>
|
| - <script src="../../resources/testharnessreport.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>
|
| - var audit = Audit.createTaskRunner();
|
| + </head>
|
| + <body>
|
| + <script id="layout-test-code">
|
| + let audit = Audit.createTaskRunner();
|
|
|
| - var context;
|
| - var source;
|
| + let context;
|
| + let source;
|
|
|
| - audit.define("test", function (task, should) {
|
| + audit.define('test', function(task, should) {
|
|
|
| - var sampleRate = 44100.0;
|
| - var lengthInSeconds = 0.1;
|
| - context = new OfflineAudioContext(1, sampleRate * lengthInSeconds, sampleRate);
|
| - osc = context.createOscillator();
|
| - osc.type = "sine";
|
| - osc.connect(context.destination);
|
| - osc.onended = function()
|
| - {
|
| - should(true, "osc.onended was called")
|
| - .beTrue();
|
| - task.done();
|
| - };
|
| - osc.start(0);
|
| - osc.stop(0.1);
|
| - context.startRendering();
|
| - });
|
| + let sampleRate = 44100.0;
|
| + let lengthInSeconds = 0.1;
|
| + context = new OfflineAudioContext(
|
| + 1, sampleRate * lengthInSeconds, sampleRate);
|
| + osc = context.createOscillator();
|
| + osc.type = 'sine';
|
| + osc.connect(context.destination);
|
| + osc.onended = function() {
|
| + should(true, 'osc.onended was called').beTrue();
|
| + task.done();
|
| + };
|
| + osc.start(0);
|
| + osc.stop(0.1);
|
| + context.startRendering();
|
| + });
|
|
|
| - audit.run();
|
| + audit.run();
|
| </script>
|
| -</body>
|
| + </body>
|
| +</html>
|
|
|