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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/mediastreamaudiosourcenode.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/mediastreamaudiosourcenode.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/mediastreamaudiosourcenode.html b/third_party/WebKit/LayoutTests/webaudio/mediastreamaudiosourcenode.html
deleted file mode 100644
index 96fe30fb15f530ddda1ed53e67a13b35410e5717..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/webaudio/mediastreamaudiosourcenode.html
+++ /dev/null
@@ -1,97 +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 MediaStreamAudioSourceNode API.");
-
-var context = 0;
-
-function error() {
- testFailed('Stream generation failed.');
- finishJSTest();
-}
-
-function getUserMedia(dictionary, callback) {
- try {
- navigator.webkitGetUserMedia(dictionary, callback, error);
- } catch (e) {
- testFailed('webkitGetUserMedia threw exception :' + e);
- finishJSTest();
- }
-}
-
-function gotStream(stream) {
- s = stream;
- testPassed('{audio:true} generated stream');
- shouldBe('s.getAudioTracks().length', '1');
- shouldBe('s.getVideoTracks().length', '0');
-
- context = new AudioContext();
-
- // Create an AudioNode from the stream.
- var mediaStreamSource = context.createMediaStreamSource(stream);
-
- // Check number of inputs and outputs.
- if (mediaStreamSource.numberOfInputs == 0)
- testPassed("Source AudioNode has no inputs.");
- else
- testFailed("Source AudioNode should not have inputs.");
-
- if (mediaStreamSource.numberOfOutputs == 1)
- testPassed("Source AudioNode has one output.");
- else
- testFailed("Source AudioNode should have one output.");
-
- // Try calling connect() method with illegal values.
-
- try {
- mediaStreamSource.connect(0, 0, 0);
- testFailed("connect() exception should be thrown for illegal destination AudioNode.");
- } catch(e) {
- testPassed("connect() exception thrown for illegal destination AudioNode.");
- }
-
- try {
- mediaStreamSource.connect(context.destination, 5, 0);
- testFailed("connect() exception should be thrown for illegal output index.");
- } catch(e) {
- testPassed("connect() exception thrown for illegal output index.");
- }
-
- try {
- mediaStreamSource.connect(context.destination, 0, 5);
- testFailed("connect() exception should be thrown for illegal input index.");
- } catch(e) {
- testPassed("connect() exception thrown for illegal input index.");
- }
-
- // Try calling connect() with proper values.
- try {
- mediaStreamSource.connect(context.destination, 0, 0);
- testPassed("mediaStreamSource.connect(context.destination) succeeded.");
- } catch(e) {
- testFailed("mediaStreamSource.connect(context.destination) failed.");
- }
-
- finishJSTest();
-}
-
-getUserMedia({audio:true}, gotStream);
-window.jsTestIsAsync = true;
-window.successfullyParsed = true;
-
-</script>
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698