Index: third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-lifetime.html |
diff --git a/third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-lifetime.html b/third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-lifetime.html |
index 8ca415eb4af0955a8ec72206dbdaeef84b8889f2..9229be39dc75cc71eb46d363b1f05b8cb6e296ee 100644 |
--- a/third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-lifetime.html |
+++ b/third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-lifetime.html |
@@ -2,6 +2,7 @@ |
<html> |
<head> |
<script src="../../resources/js-test.js"></script> |
+<script src="../../resources/observeGC.js"></script> |
</head> |
<body> |
<script> |
@@ -35,7 +36,7 @@ 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); |
+var observationA = observeGC(() => {return pcA;}); |
pcA.close(); |
pcA = null; |
asyncGC(function() { |
@@ -44,7 +45,7 @@ asyncGC(function() { |
// Test that the PeerConnection object is not gc'd if close is not called. |
pcB = new webkitRTCPeerConnection(null, null); |
- observationB = internals.observeGC(pcB); |
+ observationB = observeGC(() => {return pcB;}); |
pcB = null; |
asyncGC(function() { |
shouldBeFalse('observationB.wasCollected'); |