| Index: third_party/WebKit/LayoutTests/webaudio/audio-scheduled-source-basic.html
|
| diff --git a/third_party/WebKit/LayoutTests/webaudio/audio-scheduled-source-basic.html b/third_party/WebKit/LayoutTests/webaudio/audio-scheduled-source-basic.html
|
| index 5fa8268bfc17d5c5f9acb163f27dcacd13d808b0..d67350dbed186be512c7cd442a3fbbc01b8bd030 100644
|
| --- a/third_party/WebKit/LayoutTests/webaudio/audio-scheduled-source-basic.html
|
| +++ b/third_party/WebKit/LayoutTests/webaudio/audio-scheduled-source-basic.html
|
| @@ -13,55 +13,67 @@
|
|
|
| var audit = Audit.createTaskRunner();
|
|
|
| - audit.define("construction", function (task, should) {
|
| - task.describe("Construct AudioScheduledSourceNode");
|
| - should(function () {
|
| - return new AudioScheduledSourceNode(context);
|
| - }, "new AudioScheduledSourceNode(c)").throw("TypeError");
|
| + audit.define(
|
| + {
|
| + label: 'construction',
|
| + description: 'Construct AudioScheduledSourceNode'
|
| + },
|
| + function(task, should) {
|
| + should(function() {
|
| + return new AudioScheduledSourceNode(context);
|
| + }, 'new AudioScheduledSourceNode(c)').throw('TypeError');
|
|
|
| - task.done();
|
| - });
|
| + task.done();
|
| + });
|
|
|
| - audit.define("properties", function (task, should) {
|
| - task.describe("Test properties on derived nodes");
|
| - var expectedProperties = ["start", "stop", "onended"];
|
| + audit.define(
|
| + {
|
| + label: 'properties',
|
| + description: 'Test properties on derived nodes'
|
| + },
|
| + function(task, should) {
|
| + var expectedProperties = ['start', 'stop', 'onended'];
|
|
|
| - // AudioScheduledSourceNode must have these properties.
|
| - for (p in expectedProperties) {
|
| - should(AudioScheduledSourceNode.prototype.hasOwnProperty(
|
| - expectedProperties[p]),
|
| - "AudioScheduledSourceNode." + expectedProperties[p])
|
| - .beTrue();
|
| - }
|
| + // AudioScheduledSourceNode must have these properties.
|
| + for (p in expectedProperties) {
|
| + should(
|
| + AudioScheduledSourceNode.prototype.hasOwnProperty(
|
| + expectedProperties[p]),
|
| + 'AudioScheduledSourceNode.' + expectedProperties[p])
|
| + .beTrue();
|
| + }
|
|
|
| - // ConstantSource and Oscillator must not
|
| - var nodes = ["ConstantSourceNode", "OscillatorNode"];
|
| - for (n in nodes) {
|
| - for (p in expectedProperties) {
|
| - should(window[nodes[n]].prototype.hasOwnProperty(
|
| - expectedProperties[p]),
|
| - nodes[n] + "." + expectedProperties[p])
|
| - .beFalse();
|
| - }
|
| - }
|
| + // ConstantSource and Oscillator must not
|
| + var nodes = ['ConstantSourceNode', 'OscillatorNode'];
|
| + for (n in nodes) {
|
| + for (p in expectedProperties) {
|
| + should(
|
| + window[nodes[n]].prototype.hasOwnProperty(
|
| + expectedProperties[p]),
|
| + nodes[n] + '.' + expectedProperties[p])
|
| + .beFalse();
|
| + }
|
| + }
|
|
|
| - // AudioBufferSourceNode has it's own start method, but should not have
|
| - // the others.
|
| - for (p in expectedProperties) {
|
| - if (expectedProperties[p] !== "start") {
|
| - should(AudioBufferSourceNode.prototype.hasOwnProperty(
|
| - expectedProperties[p]),
|
| - "AudioBufferSourceNode." + expectedProperties[p])
|
| - .beFalse();
|
| - }
|
| - }
|
| + // AudioBufferSourceNode has it's own start method, but should not
|
| + // have the others.
|
| + for (p in expectedProperties) {
|
| + if (expectedProperties[p] !== 'start') {
|
| + should(
|
| + AudioBufferSourceNode.prototype.hasOwnProperty(
|
| + expectedProperties[p]),
|
| + 'AudioBufferSourceNode.' + expectedProperties[p])
|
| + .beFalse();
|
| + }
|
| + }
|
|
|
| - should(AudioBufferSourceNode.prototype.hasOwnProperty("start"),
|
| - "AudioBufferSourceNode.start")
|
| - .beTrue();
|
| + should(
|
| + AudioBufferSourceNode.prototype.hasOwnProperty('start'),
|
| + 'AudioBufferSourceNode.start')
|
| + .beTrue();
|
|
|
| - task.done();
|
| - });
|
| + task.done();
|
| + });
|
|
|
| audit.run();
|
| </script>
|
|
|