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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/delaynode-maxdelaylimit.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/delaynode-maxdelaylimit.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/delaynode-maxdelaylimit.html b/third_party/WebKit/LayoutTests/webaudio/delaynode-maxdelaylimit.html
deleted file mode 100644
index b163781a7b4f11dd0baf179f5540ba368cf083c2..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/webaudio/delaynode-maxdelaylimit.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>
-<script src="resources/delay-testing.js"></script>
-</head>
-
-<body>
-
-<div id="description"></div>
-<div id="console"></div>
-
-<script>
-description("Tests attribute and maximum allowed delay of DelayNode.");
-
-function runTest() {
- if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
- }
-
- window.jsTestIsAsync = true;
-
- // Create offline audio context.
- var context = new OfflineAudioContext(1, sampleRate * renderLengthSeconds, sampleRate);
- var toneBuffer = createToneBuffer(context, 20, 20 * toneLengthSeconds, sampleRate); // 20Hz tone
-
- var bufferSource = context.createBufferSource();
- bufferSource.buffer = toneBuffer;
-
- window.context = context;
- shouldThrow("context.createDelay(180)");
- shouldThrow("context.createDelay(0)");
- shouldThrow("context.createDelay(-1)");
- shouldThrow("context.createDelay(NaN)");
-
- var delay = context.createDelay(179);
- delay.delayTime.value = delayTimeSeconds;
- window.delay = delay;
- shouldBeTrue("delay.delayTime.value === 0.5");
-
- bufferSource.connect(delay);
- delay.connect(context.destination);
- bufferSource.start(0);
-
- context.oncomplete = checkDelayedResult(toneBuffer);
- context.startRendering();
-}
-
-runTest();
-
-</script>
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698