| Index: LayoutTests/webaudio/stereopannernode-basic.html
|
| diff --git a/LayoutTests/webaudio/stereopannernode-basic.html b/LayoutTests/webaudio/stereopannernode-basic.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b522db51d6449d5f750c21cf8a0c341c4fa8f71a
|
| --- /dev/null
|
| +++ b/LayoutTests/webaudio/stereopannernode-basic.html
|
| @@ -0,0 +1,44 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +
|
| +<head>
|
| + <script src="resources/compatibility.js"></script>
|
| + <script src="resources/audio-testing.js"></script>
|
| + <script src="../resources/js-test.js"></script>
|
| +</head>
|
| +
|
| +<body>
|
| + <div id="description"></div>
|
| + <div id="console"></div>
|
| + <script>
|
| + description("Test attribute and basic functionality of StereoPannerNode.");
|
| +
|
| + function runTest() {
|
| +
|
| + window.jsTestIsAsync = true;
|
| +
|
| + context = new AudioContext();
|
| + var panner = context.createStereoPanner();
|
| + window.panner = panner;
|
| +
|
| + shouldBeTrue('panner.numberOfInputs === 1');
|
| + shouldBeTrue('panner.numberOfOutputs === 1');
|
| + shouldBeTrue('panner.pan.defaultValue === 0.0');
|
| + shouldBeTrue('panner.pan.value === 0.0');
|
| + panner.pan.value = 1.0;
|
| + shouldBeTrue('panner.pan.value === 1.0');
|
| +
|
| + shouldNotThrow('panner.channelCount = 1');
|
| + shouldThrow('panner.channelCount = 3');
|
| + shouldNotThrow('panner.channelCountMode = "explicit"');
|
| + shouldThrow('panner.channelCountMode = "max"');
|
| +
|
| + finishJSTest();
|
| + }
|
| +
|
| + runTest();
|
| + successfullyParsed = true;
|
| + </script>
|
| +</body>
|
| +
|
| +</html>
|
|
|