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

Unified Diff: LayoutTests/fast/mediastream/RTCPeerConnection-lifetime.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-lifetime.html
diff --git a/LayoutTests/fast/mediastream/RTCPeerConnection-lifetime.html b/LayoutTests/fast/mediastream/RTCPeerConnection-lifetime.html
deleted file mode 100644
index 8ca415eb4af0955a8ec72206dbdaeef84b8889f2..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/mediastream/RTCPeerConnection-lifetime.html
+++ /dev/null
@@ -1,62 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="../../resources/js-test.js"></script>
-</head>
-<body>
-<script>
-description("Tests the RTCPeerConnection lifetime.");
-
-var dc = null;
-
-function dataChannelMessage(m)
-{
- testPassed("dataChannelMessage");
- finishJSTest();
-}
-
-function dataChannelOpen()
-{
- testPassed("dataChannelOpen");
- dc.onmessage = dataChannelMessage;
- shouldNotThrow("dc.send('xyzzy');");
-}
-
-function createPeerConnectionAndDataChannel()
-{
- // The Peer Connection object is leaked
- var pc = new webkitRTCPeerConnection({iceServers:[]}, null);
- dc = pc.createDataChannel("label");
- dc.onopen = dataChannelOpen;
-}
-
-var pcB = null;
-var observationB = null;
-
-// Test that the PeerConnection object is gc'd if close is called.
-var pcA = new webkitRTCPeerConnection(null, null);
-var observationA = internals.observeGC(pcA);
-pcA.close();
-pcA = null;
-asyncGC(function() {
- shouldBeTrue('observationA.wasCollected');
- observationA = null;
-
- // Test that the PeerConnection object is not gc'd if close is not called.
- pcB = new webkitRTCPeerConnection(null, null);
- observationB = internals.observeGC(pcB);
- pcB = null;
- asyncGC(function() {
- shouldBeFalse('observationB.wasCollected');
- observationB = null;
-
- // This test times out if the Peer connection object is garbage collected.
- createPeerConnectionAndDataChannel();
- gc();
- });
-});
-
-window.jsTestIsAsync = true;
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698