| Index: third_party/WebKit/LayoutTests/webaudio/Gain/gain-basic.html
|
| diff --git a/third_party/WebKit/LayoutTests/webaudio/Gain/gain-basic.html b/third_party/WebKit/LayoutTests/webaudio/Gain/gain-basic.html
|
| index 14b4275f2b4134f55621ca453ac86b74fb3df925..de22de19818306e4a15a92a4f533a2362a3b6a33 100644
|
| --- a/third_party/WebKit/LayoutTests/webaudio/Gain/gain-basic.html
|
| +++ b/third_party/WebKit/LayoutTests/webaudio/Gain/gain-basic.html
|
| @@ -6,34 +6,33 @@ Verifies GainNode attributes and their type.
|
|
|
| <html>
|
| <head>
|
| -<script src="../../resources/js-test.js"></script>
|
| +<script src="../../resources/testharness.js"></script>
|
| +<script src="../../resources/testharnessreport.js"></script>
|
| <script src="../resources/audit-util.js"></script>
|
| -<script src="../resources/audio-testing.js"></script>
|
| +<script src="../resources/audit.js"></script>
|
|
|
| </head>
|
| <body>
|
|
|
| <script>
|
| -description("Tests GainNode attributes in IDL.");
|
| +let audit = Audit.createTaskRunner();
|
|
|
| -function runTest() {
|
| - if (window.testRunner) {
|
| - testRunner.dumpAsText();
|
| - }
|
| +audit.define('test', function(task, should) {
|
| + // Create audio context.
|
| + let context = new AudioContext();
|
|
|
| - // Create audio context.
|
| - var context = new AudioContext();
|
| + // Create gain node.
|
| + let gainNode = context.createGain();
|
|
|
| - // Create gain node.
|
| - var gainNode = context.createGain();
|
| + should(
|
| + gainNode.gain instanceof AudioParam,
|
| + 'gainNode.gain instanceof AudioParam')
|
| + .beTrue();
|
|
|
| - if (gainNode.gain.toString().indexOf("AudioParam") > -1)
|
| - testPassed("gain is of AudioParam type.");
|
| - else
|
| - testFailed("gain is not of AudioParam type.");
|
| -}
|
| + task.done();
|
| +});
|
|
|
| -runTest();
|
| +audit.run();
|
| </script>
|
|
|
| </body>
|
|
|