Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / webaudio / gain-basic.html
blobb18537beac0efbf929a626f8583e0b8a9f4d4ec6
1 <!DOCTYPE html>
3 <!--
4 Verifies GainNode attributes and their type.
5 -->
7 <html>
8 <head>
9 <script src="../resources/js-test.js"></script>
10 <script src="resources/compatibility.js"></script>
11 <script type="text/javascript" src="resources/audio-testing.js"></script>
13 </head>
14 <body>
16 <script>
17 description("Tests GainNode attributes in IDL.");
19 function runTest() {
20 if (window.testRunner) {
21 testRunner.dumpAsText();
24 // Create audio context.
25 var context = new AudioContext();
27 // Create gain node.
28 var gainNode = context.createGain();
30 if (gainNode.gain.toString().indexOf("AudioParam") > -1)
31 testPassed("gain is of AudioParam type.");
32 else
33 testFailed("gain is not of AudioParam type.");
36 runTest();
37 </script>
39 </body>
40 </html>