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

Unified 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 side-by-side diff with in-line comments
Download patch
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"');
Raymond Toy 2014/11/12 18:06:52 Is it possible to set the pan value outside the ra
hongchan 2014/11/12 22:01:42 For this CL, the clamping only happens internally.
+
+ finishJSTest();
+ }
+
+ runTest();
+ successfullyParsed = true;
+ </script>
+</body>
+
+</html>

Powered by Google App Engine
This is Rietveld 408576698