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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/oscillator-ended.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/oscillator-ended.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/oscillator-ended.html b/third_party/WebKit/LayoutTests/webaudio/oscillator-ended.html
deleted file mode 100644
index 1463580fb74594fb25f72c5da265f8b0bc56533c..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/webaudio/oscillator-ended.html
+++ /dev/null
@@ -1,42 +0,0 @@
-<!DOCTYPE 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>
- <script src="resources/audiobuffersource-testing.js"></script>
- <script>
- var context;
- var source;
-
- function runTest()
- {
- if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
- }
-
- var sampleRate = 44100.0;
- var lengthInSeconds = 0.1;
- context = new OfflineAudioContext(1, sampleRate * lengthInSeconds, sampleRate);
- osc = context.createOscillator();
- osc.type = "sine";
- osc.connect(context.destination);
- osc.onended = function()
- {
- testPassed("osc.onended called.");
- finishJSTest();
- if (window.testRunner)
- testRunner.notifyDone();
-
- }
- osc.start(0);
- osc.stop(0.1);
- context.startRendering();
- }
- </script>
-</head>
-<body onload="runTest()">
- <div>Tests that OscillatorNode calls its onended EventListener.</div>
- <div id="console"></div>
-</body>

Powered by Google App Engine
This is Rietveld 408576698