4 Verifies GainNode attributes and their type.
9 <script src="../resources/js-test.js"></script>
10 <script type="text/javascript" src="resources/audio-testing.js"></script>
16 description("Tests GainNode attributes in IDL.");
19 if (window.testRunner) {
20 testRunner.dumpAsText();
23 // Create audio context.
24 var context = new webkitAudioContext();
27 var gainNode = context.createGain();
29 if (gainNode.gain.toString().indexOf("AudioParam") > -1)
30 testPassed("gain is of AudioParam type.");
32 testFailed("gain is not of AudioParam type.");