[WK2] selection does not disappear after coping the text
[framework/web/webkit-efl.git] / LayoutTests / fast / mediastream / constructors.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <link rel="stylesheet" href="../js/resources/js-test-style.css">
5 <script src="../js/resources/js-test-pre.js"></script>
6 </head>
7 <body>
8 <p id="description"></p>
9 <div id="console"></div>
10 <script>
11 description("Tests the JSEP PeerConnection related constructors.");
12
13 shouldBeTrue("typeof webkitPeerConnection00 === 'function'");
14 shouldBeTrue("typeof SessionDescription === 'function'");
15 shouldBeTrue("typeof IceCandidate === 'function'");
16
17 shouldNotThrow("new webkitPeerConnection00('STUN foobar.com:12345', function(){});");
18 shouldThrow("new webkitPeerConnection00('STUN foobar.com:12345');");
19 shouldThrow("new webkitPeerConnection00('STUN foobar.com:12345', null);");
20 shouldThrow("new webkitPeerConnection00('STUN foobar.com:12345', undefined);");
21 shouldThrow("new webkitPeerConnection00('STUN foobar.com:12345', 'STUN');");
22
23 shouldNotThrow("new SessionDescription('');");
24 shouldNotThrow("new IceCandidate('', '');");
25
26 window.jsTestIsAsync = false;
27 </script>
28 <script src="../js/resources/js-test-post.js"></script>
29 </body>
30 </html>