summaryrefslogtreecommitdiffstats
path: root/dom/media/tests/mochitest/test_peerConnection_bug822674.html
blob: b757ec7cd83487e595734736739da1d5d30d2bba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!DOCTYPE HTML>
<html>
<head>
  <script type="application/javascript" src="pc.js"></script>
</head>
<body>
<pre id="test">
<script type="application/javascript">
  createHTML({
    bug: "822674",
    title: "RTCPeerConnection isn't a true javascript object as it should be"
  });

  runNetworkTest(function () {
    var pc = new RTCPeerConnection();

    pc.thereIsNeverGoingToBeAPropertyWithThisNameOnThisInterface = 1;
    is(pc.thereIsNeverGoingToBeAPropertyWithThisNameOnThisInterface, 1,
       "Can set expandos on an RTCPeerConnection");

    pc = null;
    networkTestFinished();
  });
</script>
</pre>
</body>
</html>