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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/audiobuffersource.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/audiobuffersource.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/audiobuffersource.html b/third_party/WebKit/LayoutTests/webaudio/audiobuffersource.html
deleted file mode 100644
index 75e0724efe2cbb6729e24156f663b105769470b0..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/webaudio/audiobuffersource.html
+++ /dev/null
@@ -1,57 +0,0 @@
-<!DOCTYPE html>
-
-<!--
-See if we can load an AudioBuffer, create an AudioBufferSourceNode, attach the buffer to it, then play it.
--->
-
-<html>
-<head>
-<script src="resources/audit-util.js"></script>
-<script src="resources/audio-testing.js"></script>
-<script type="text/javascript" src="resources/buffer-loader.js"></script>
-
-<script>
-
-window.onload = init;
-
-var sampleRate = 44100.0;
-var lengthInSeconds = 2;
-
-var context = 0;
-var bufferLoader = 0;
-
-function init() {
- if (!window.testRunner)
- return;
-
- // Create offline audio context.
- context = new OfflineAudioContext(2, sampleRate * lengthInSeconds, sampleRate);
-
- bufferLoader = new BufferLoader(
- context,
- [
- "resources/hyper-reality/br-jam-loop.wav",
- ],
- finishedLoading
- );
-
- bufferLoader.load();
- testRunner.waitUntilDone();
-}
-
-function finishedLoading(bufferList) {
- var bufferSource = context.createBufferSource();
- bufferSource.buffer = bufferList[0];
-
- bufferSource.connect(context.destination);
- bufferSource.start(0);
-
- context.oncomplete = finishAudioTest;
- context.startRendering();
-}
-
-</script>
-</head>
-<body>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698