Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / mediastream / RTCPeerConnection-createAnswer.html
blobf81374b63b63c9abe90a97f20595fa950f1645bb
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 <script>
8 description("Tests RTCPeerConnection createAnswer.");
10 var pc = null;
12 function requestFailed3(reason)
14 testFailed('createAnswer request failed.');
16 finishJSTest();
19 function requestSucceeded3()
21 testPassed('createAnswer request succeeded.');
23 finishJSTest();
26 function requestFailed2(reason)
28 testFailed('setRemoteDescription request failed.');
30 finishJSTest();
33 function requestSucceeded2()
35 testPassed('setRemoteDescription request succeeded.');
37 shouldNotThrow('pc.createAnswer(requestSucceeded3, requestFailed3);');
40 function requestFailed1()
42 testPassed('createOffer request failed.');
44 sessionDescription = new RTCSessionDescription({type:"answer", sdp:"remote"});
45 shouldNotThrow('pc.setRemoteDescription(sessionDescription, requestSucceeded2, requestFailed2);');
48 function requestSucceeded1(sd)
50 testFailed('createOffer request succeeded.');
51 finishJSTest();
54 pc = new webkitRTCPeerConnection(null, null);
55 pc.createOffer(requestSucceeded1, requestFailed1);
57 window.jsTestIsAsync = true;
58 window.successfullyParsed = true;
59 </script>
60 </body>
61 </html>