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/scriptprocessornode-detached-no-crash.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-detached-no-crash.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/scriptprocessornode-detached-no-crash.html b/third_party/WebKit/LayoutTests/webaudio/scriptprocessornode-detached-no-crash.html
deleted file mode 100644
index 1bcdfc06b3384b9e3f95a2d400da8a7b7730c864..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/webaudio/scriptprocessornode-detached-no-crash.html
+++ /dev/null
@@ -1,59 +0,0 @@
-<!DOCTYPE HTML>
-<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>
-<script>
-description("Tests document-detached use of AudioContext, pass if no crash.");
-
-window.jsTestIsAsync = true;
-
-var sampleRate = 44100.0;
-var renderLengthInFrames = 512;
-var bufferSize = 512;
-var context;
-var node;
-function runTest()
-{
- try {
- node = context.createScriptProcessor(bufferSize, 0, 1);
- var source = context.createBufferSource();
- source.buffer = createImpulseBuffer(context, bufferSize);
- node.onaudioprocess = function(e) { };
- source.connect(node);
- node.connect(context.destination);
- source.start(0);
-
- context.startRendering();
- } catch (e) {
- // The context has been stopped and detached; nothing to test.
- return;
- }
-}
-
-var w;
-function processMessage(event) {
- if (event.data == "opened") {
- context = new w.OfflineAudioContext(1, renderLengthInFrames, sampleRate);
- w.close();
- } else if (event.data == "closed") {
- runTest();
- finishJSTest();
- }
-}
-
-if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
- testRunner.setCanOpenWindows();
-}
-
-w = window.open('../resources/window-postmessage-open-close.html');
-window.addEventListener("message", processMessage, false);
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698