Calling removeTrack on different RTCPeerConnection should throw InvalidAccessError
[WebKit-https.git] / LayoutTests / fast / mediastream / RTCPeerConnection-add-removeTrack.html
index 405909d..202230f 100644 (file)
                 debug("Sender is still in getSenders() list")
                 shouldBe("pc.getSenders().length", "2");
 
-                shouldNotThrow("senderFromPc2 = pc2.addTrack(track, stream)");
-                debug("removeTrack() with 'foreign' sender must be ignored (not throw)");
-                shouldNotThrow("pc.removeTrack(senderFromPc2)");
-
                 shouldThrow("pc.addTrack(null);");
                 shouldThrow("pc.addTrack(undefined);");
                 shouldThrow("pc.removeTrack(null);");