OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <html> | |
3 | |
4 <head> | |
5 <script src="resources/compatibility.js"></script> | |
6 <script src="resources/audio-testing.js"></script> | |
7 <script src="../resources/js-test.js"></script> | |
8 </head> | |
9 | |
10 <body> | |
11 <div id="description"></div> | |
12 <div id="console"></div> | |
13 <script> | |
14 description("Test attribute and basic functionality of StereoPannerNode."); | |
15 | |
16 function runTest() { | |
17 if (window.testRunner) { | |
18 testRunner.dumpAsText(); | |
19 testRunner.waitUntilDone(); | |
20 } | |
Raymond Toy
2014/11/11 19:41:46
I think the if statement is no longer needed.
hongchan
2014/11/12 00:06:53
Done.
Raymond Toy
2014/11/12 00:16:44
I think the style is to say "Done", after you uplo
| |
21 | |
22 window.jsTestIsAsync = true; | |
23 | |
24 context = new AudioContext(); | |
25 var panner = context.createStereoPanner(); | |
26 window.panner = panner; | |
27 | |
28 shouldBeTrue("panner.numberOfInputs === 1"); | |
29 shouldBeTrue("panner.numberOfOutputs === 1"); | |
30 shouldBeTrue("panner.pan.defaultValue === 0.0"); | |
31 shouldBeTrue("panner.pan.value === 0.0"); | |
32 panner.pan.value = 1.0; | |
33 shouldBeTrue("panner.pan.value === 1.0"); | |
34 | |
Raymond Toy
2014/11/11 19:41:46
The spec says channelCount cannot be increased abo
hongchan
2014/11/12 00:06:53
For this CL, I have decided to fix the channelCoun
Raymond Toy
2014/11/12 00:16:44
Will the spec say the channelCount is fixed to 2?
| |
35 finishJSTest(); | |
36 } | |
37 | |
38 runTest(); | |
39 successfullyParsed = true; | |
40 </script> | |
41 </body> | |
42 | |
43 </html> | |
OLD | NEW |