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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/mediaelementaudiosourcenode.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/mediaelementaudiosourcenode.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/mediaelementaudiosourcenode.html b/third_party/WebKit/LayoutTests/webaudio/mediaelementaudiosourcenode.html
deleted file mode 100644
index d82393e534d745de4a8f027cd381a9efd5c46966..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/webaudio/mediaelementaudiosourcenode.html
+++ /dev/null
@@ -1,55 +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>
-<div id="description"></div>
-<div id="console"></div>
-
-<script>
-description("Basic tests for MediaElementAudioSourceNode API.");
-
-var context = 0;
-var audioElement = 0;
-var audioNode = 0;
-
-function runTest() {
- window.jsTestIsAsync = true;
-
- context = new AudioContext();
-
- audioElement = new Audio();
- mediaSource = context.createMediaElementSource(audioElement);
- audioNode = mediaSource;
-
- // Check number of inputs and outputs.
- shouldBeEqualToNumber("audioNode.numberOfInputs", 0);
- shouldBeEqualToNumber("audioNode.numberOfOutputs", 1);
-
- // Try calling connect() method with illegal values: illegal destination, illegal output index,
- // and illegal input index.
- shouldThrow("audioNode.connect(0, 0, 0)");
- shouldThrow("audioNode.connect(context.destination, 5, 0)");
- shouldThrow("audioNode.connect(context.destination, 0, 5)");
-
- // Try calling connect() with proper values.
- shouldNotThrow("audioNode.connect(context.destination, 0, 0)");
-
- // Try creating another MediaElementAudioSourceNode using the same audio element.
- shouldThrow("context.createMediaElementSource(audioElement)");
-
- finishJSTest();
-}
-
-runTest();
-
-</script>
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698