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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/channel-mode-interp-basic.html

Issue 2581463002: Refactor WebAudio test directory (Closed)
Patch Set: Use correct path for wav result files Created 4 years 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: third_party/WebKit/LayoutTests/webaudio/channel-mode-interp-basic.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/channel-mode-interp-basic.html b/third_party/WebKit/LayoutTests/webaudio/channel-mode-interp-basic.html
deleted file mode 100644
index ab11e105b388a961eee57a8b92d64238f8852827..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/webaudio/channel-mode-interp-basic.html
+++ /dev/null
@@ -1,58 +0,0 @@
-<!doctype html>
-<html>
- <head>
- <title>Test Setting of channelCountMode and channelInterpretation</title>
- <script src="../resources/testharness.js"></script>
- <script src="../resources/testharnessreport.js"></script>
- <script src="resources/audit-util.js"></script>
- <script src="resources/audio-testing.js"></script>
- </head>
-
- <body>
- <script>
- // Fairly arbitrary sample rate and number of frames, except the number of
- // frames should be more than a few render quantums.
- var sampleRate = 16000;
- var renderFrames = 10 * 128;
-
- var audit = Audit.createTaskRunner();
-
- audit.defineTask("interp", function (taskDone) {
- var context = new OfflineAudioContext(1, renderFrames, sampleRate);
- var node = context.createGain();
-
- // Set a new interpretation and verify that it changed.
- node.channelInterpretation = "discrete";
- var value = node.channelInterpretation;
- Should("node.channelInterpretation", value).beEqualTo("discrete");
- node.connect(context.destination);
-
- context.startRendering().then(function (buffer) {
- // After rendering, the value should have been changed.
- Should("After rendering node.channelInterpretation",
- node.channelInterpretation)
- .beEqualTo("discrete");
- }).then(taskDone);
- });
-
- audit.defineTask("mode", function (taskDone) {
- var context = new OfflineAudioContext(1, renderFrames, sampleRate);
- var node = context.createGain();
-
- // Set a new mode and verify that it changed.
- node.channelCountMode = "explicit";
- var value = node.channelCountMode;
- Should("node.channelCountMode", value).beEqualTo("explicit");
- node.connect(context.destination);
-
- context.startRendering().then(function (buffer) {
- // After rendering, the value should have been changed.
- Should("After rendering node.channelCountMode",
- node.channelCountMode)
- .beEqualTo("explicit");
- }).then(taskDone);
- });
- audit.runTasks();
- </script>
- </body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698