Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Side by Side Diff: LayoutTests/webaudio/stereopannernode-basic.html

Issue 691143007: Implement StereoPannerNode for robust stereo panning (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/webaudio/stereopannernode-basic-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 checkAttributes() {
17 window.jsTestIsAsync = true;
18
19 var context = new AudioContext();
20 var panner = context.createStereoPanner();
21 window.panner = panner;
22
23 shouldBeTrue('panner.numberOfInputs === 1');
24 shouldBeTrue('panner.numberOfOutputs === 1');
25 shouldBeTrue('panner.pan.defaultValue === 0.0');
26 shouldBeTrue('panner.pan.value === 0.0');
27 panner.pan.value = 1.0;
28 shouldBeTrue('panner.pan.value === 1.0');
29
30 shouldNotThrow('panner.channelCount = 1');
31 shouldThrow('panner.channelCount = 3');
32 shouldNotThrow('panner.channelCountMode = "explicit"');
33 shouldThrow('panner.channelCountMode = "max"');
34
35 finishJSTest();
36 }
37
38 checkAttributes();
39 successfullyParsed = true;
40 </script>
41 </body>
42
43 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/webaudio/stereopannernode-basic-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698