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

Unified Diff: LayoutTests/fast/mediastream/RTCPeerConnection-events.html

Issue 650063002: Move MediaStream and MediaStreamTrack implementation from modules/mediastream to core/mediastream. Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased. Created 6 years, 2 months 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: LayoutTests/fast/mediastream/RTCPeerConnection-events.html
diff --git a/LayoutTests/fast/mediastream/RTCPeerConnection-events.html b/LayoutTests/fast/mediastream/RTCPeerConnection-events.html
deleted file mode 100644
index 994f40b72a361a7b85008fd2210af60679a0cd96..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/mediastream/RTCPeerConnection-events.html
+++ /dev/null
@@ -1,59 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
-<html>
-<head>
-<script src="../../resources/js-test.js"></script>
-</head>
-<body>
-<script>
-description("Tests that RTCPeerConnection event callbacks are async so that for example close can be called safely. The order of the messages is very important.");
-
-var stream = null;
-var pc = null;
-
-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 onStateChange(event) {
- testPassed('onStateChange was called.');
- shouldBe("pc.signalingState", "'closed'");
- finishJSTest();
-}
-
-function onNegotiationNeeded(event) {
- testPassed('onNegotiationNeeded was called.');
- pc.onsignalingstatechange = onStateChange;
- pc.close();
- testPassed('onNegotiationNeeded done.')
-}
-
-function gotStream(s) {
- testPassed('gotStream was called.');
- stream = s;
-
- pc = new webkitRTCPeerConnection(null, null);
- pc.onnegotiationneeded = onNegotiationNeeded;
-
- pc.addStream(stream);
- testPassed('gotStream done.');
-}
-
-getUserMedia({audio:true, video:true}, gotStream);
-
-window.jsTestIsAsync = true;
-window.successfullyParsed = true;
-
-
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698