Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / mediastream / constructors.html
bloba12199628621245e81bd932a47cb7fe3ab1ccf25
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <p id="description"></p>
8 <div id="console"></div>
9 <script>
10 description("Tests the JSEP PeerConnection related constructors.");
12 shouldBeTrue("typeof webkitRTCPeerConnection === 'function'");
13 shouldBeTrue("typeof RTCSessionDescription === 'function'");
14 shouldBeTrue("typeof RTCIceCandidate === 'function'");
16 shouldThrow("webkitRTCPeerConnection()");
17 shouldThrow("RTCSessionDescription()");
18 shouldThrow("RTCIceCandidate()");
20 shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{url:'stun://foobar.com:12345'}]}, null);");
21 shouldNotThrow("new RTCSessionDescription({type:'offer',sdp:'foobar'});");
22 shouldNotThrow("new RTCIceCandidate({candidate:'foo'});");
24 window.jsTestIsAsync = false;
25 </script>
26 </body>
27 </html>