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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/scriptprocessornode-zero-input-channels.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/scriptprocessornode-zero-input-channels.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/scriptprocessornode-zero-input-channels.html b/third_party/WebKit/LayoutTests/webaudio/scriptprocessornode-zero-input-channels.html
deleted file mode 100644
index de90d342da587f82002fd1ff297f157b05544ac5..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/webaudio/scriptprocessornode-zero-input-channels.html
+++ /dev/null
@@ -1,69 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html>
-<head>
-<script src="../resources/js-test.js"></script>
-<script src="resources/compatibility.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("Tests that ScriptProcessorNode accepts 0 input channels.");
-
-var sampleRate = 44100.0;
-var renderLengthInFrames = 512;
-var bufferSize = 512;
-
-function checkResult(e)
-{
- testPassed("ScriptProcessorNode accepts 0 input channels.");
-
- finishJSTest();
-}
-
-function runTest()
-{
- if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
- }
-
- window.jsTestIsAsync = true;
-
- var context = new OfflineAudioContext(1, renderLengthInFrames, sampleRate);
-
- var node;
-
- try {
- node = context.createScriptProcessor(bufferSize, 0, 1);
- testPassed("Successfully created ScriptProcessorNode.");
- } catch (e) {
- testFailed("Failed to create ScriptProcessorNode.");
- }
-
- var source = context.createBufferSource();
- source.buffer = createImpulseBuffer(context, bufferSize);
-
- // The onaudioprocess function doesn't need to do anything. We just need the process to start
- // to test that implementation accepts 0 input channels.
- //
- // FIXME: check the .inputBuffer attribute of the AudioProcessingEvent.
- node.onaudioprocess = function(e) { };
- source.connect(node);
- node.connect(context.destination);
- source.start(0);
-
- context.oncomplete = checkResult;
- context.startRendering();
-}
-
-runTest();
-successfullyParsed = true;
-</script>
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698