| 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>
|
|
|