| Index: third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-localDescription.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-localDescription.html b/third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-localDescription.html
|
| index a8987914665129244a44fbb560021f856629ebcc..4f9a85d99e7c4ce54b308bb7698dcad5165c1684 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-localDescription.html
|
| +++ b/third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-localDescription.html
|
| @@ -42,12 +42,24 @@ function requestSucceeded1()
|
| shouldNotThrow('pc.setLocalDescription(sessionDescription, requestSucceeded2, requestFailed2);');
|
| }
|
|
|
| +function expectedTypeError(error)
|
| +{
|
| + errorReason = error;
|
| + shouldBe('errorReason.name', '"TypeError"')
|
| + testPassed('expectedTypeError was called.')
|
| +}
|
| +
|
| +function expectedInvalidSessionDescription(error)
|
| +{
|
| + testPassed('expectedInvalidSessionDescription was called.')
|
| +}
|
| +
|
| pc = new webkitRTCPeerConnection(null, null);
|
| -shouldThrow('pc.setLocalDescription(null)');
|
| +shouldNotThrow('pc.setLocalDescription().catch(expectedTypeError)');
|
| +shouldNotThrow('pc.setLocalDescription(null).catch(expectedInvalidSessionDescription)');
|
| var sessionDescription = new RTCSessionDescription({type:"offer", sdp:"local"});
|
| shouldNotThrow('pc.setLocalDescription(sessionDescription, requestSucceeded1, requestFailed1);');
|
|
|
| -
|
| window.jsTestIsAsync = true;
|
| window.successfullyParsed = true;
|
| </script>
|
|
|