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

Unified Diff: third_party/WebKit/LayoutTests/fast/mediastream/MediaStreamTrack-getSources.html

Issue 2493823002: Revert of Revert "Remove MediaStreamTrack.getSources()." (Closed)
Patch Set: Created 4 years, 1 month 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/fast/mediastream/MediaStreamTrack-getSources.html
diff --git a/third_party/WebKit/LayoutTests/fast/mediastream/MediaStreamTrack-getSources.html b/third_party/WebKit/LayoutTests/fast/mediastream/MediaStreamTrack-getSources.html
deleted file mode 100644
index 4dcbeceb4e396164220e8156b45e5dfb49d94a8f..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/mediastream/MediaStreamTrack-getSources.html
+++ /dev/null
@@ -1,60 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
-<html>
-<head>
-<script src="../../resources/js-test.js"></script>
-</head>
-<body>
-<p id="description"></p>
-<div id="console"></div>
-<script>
-description("Tests MediaStreamTrack::getSources.");
-
-var sources = null;
-var previousId;
-
-function error() {
- testFailed('Stream generation failed.');
- finishJSTest();
-}
-
-function getUserMedia(constraints, callback) {
- try {
- navigator.webkitGetUserMedia(constraints, callback, error);
- } catch (e) {
- testFailed('webkitGetUserMedia threw exception :' + e);
- finishJSTest();
- }
-}
-
-function gotSources2(s) {
- testPassed('gotSources2 was called.');
- sources = s;
- shouldBeTrue('sources.length > 0');
- shouldBeTrue('sources[0].id === previousId');
- shouldBeTrue('sources[0].label.length > 0');
-
- finishJSTest();
-}
-
-function gotStream(s) {
- testPassed('gotStream was called.');
-
- shouldNotThrow('MediaStreamTrack.getSources(gotSources2);');
-}
-
-function gotSources1(s) {
- testPassed('gotSources1 was called.');
- sources = s;
- shouldBeTrue('sources.length > 0');
- previousId = sources[0].id;
-
- getUserMedia({audio:true, video:true}, gotStream);
-}
-
-shouldNotThrow('MediaStreamTrack.getSources(gotSources1);');
-
-window.jsTestIsAsync = true;
-window.successfullyParsed = true;
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698