blob: b18537beac0efbf929a626f8583e0b8a9f4d4ec6 [file] [log] [blame] [edit]
<!DOCTYPE html>
<!--
Verifies GainNode attributes and their type.
-->
<html>
<head>
<script src="../resources/js-test.js"></script>
<script src="resources/compatibility.js"></script>
<script type="text/javascript" src="resources/audio-testing.js"></script>
</head>
<body>
<script>
description("Tests GainNode attributes in IDL.");
function runTest() {
if (window.testRunner) {
testRunner.dumpAsText();
}
// Create audio context.
var context = new AudioContext();
// Create gain node.
var gainNode = context.createGain();
if (gainNode.gain.toString().indexOf("AudioParam") > -1)
testPassed("gain is of AudioParam type.");
else
testFailed("gain is not of AudioParam type.");
}
runTest();
</script>
</body>
</html>