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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/stereo2mono-down-mixing.html

Issue 2702763002: Remove up-mixing* and stereo2mono-down-mixing tests (Closed)
Patch Set: Created 3 years, 10 months 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/webaudio/stereo2mono-down-mixing-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/webaudio/stereo2mono-down-mixing.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/stereo2mono-down-mixing.html b/third_party/WebKit/LayoutTests/webaudio/stereo2mono-down-mixing.html
deleted file mode 100644
index b4a1b3b41c3c94fdfbb1c52abeb2679c897aa66e..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/webaudio/stereo2mono-down-mixing.html
+++ /dev/null
@@ -1,75 +0,0 @@
-<!DOCTYPE html>
-
-<html>
-<head>
-<script src="../resources/js-test.js"></script>
-<script src="resources/audit-util.js"></script>
-<script src="resources/audio-testing.js"></script>
-</head>
-
-<body>
-
-<div id="description"></div>
-<div id="console"></div>
-
-<script>
-description("This test verifies whether down mixing from stereo to mono will cause assertion error.");
-
-var sampleRate = 44100.0;
-var renderLengthSeconds = 0.1;
-
-var context;
-var toneBuffer;
-var bufferSource;
-
-function createDataBuffer(context, lengthInSeconds) {
- var audioBuffer = context.createBuffer(2, lengthInSeconds * sampleRate, sampleRate);
-
- var n = audioBuffer.length;
- var data0 = audioBuffer.getChannelData(0);
- var data1 = audioBuffer.getChannelData(1);
-
- for (var i = 0; i < n; ++i) {
- data0[i] = 1.0;
- data1[i] = 1.0;
- }
-
- return audioBuffer;
-}
-
-function testFinished() {
- testPassed("Test no ASSERT error.");
- finishJSTest();
-}
-
-function runTest() {
- if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
- }
-
- window.jsTestIsAsync = true;
-
- // Create offline audio context, the destination is mono.
- context = new OfflineAudioContext(1, sampleRate * renderLengthSeconds, sampleRate);
- // Create a stereo AudioBuffer.
- toneBuffer = createDataBuffer(context, renderLengthSeconds);
-
- bufferSource = context.createBufferSource();
- bufferSource.buffer = toneBuffer;
-
- bufferSource.connect(context.destination);
-
- bufferSource.start(0);
-
- context.oncomplete = testFinished;
- context.startRendering();
-}
-
-
-runTest();
-
-</script>
-
-</body>
-</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/webaudio/stereo2mono-down-mixing-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698