Index: third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-createOffer.html |
diff --git a/third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-createOffer.html b/third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-createOffer.html |
index 38258b1a0c1aab202739a0d98d9485db2f783aaa..ae0eb394476ffd07d5f83db65a18a3735330d03a 100644 |
--- a/third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-createOffer.html |
+++ b/third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-createOffer.html |
@@ -15,12 +15,13 @@ var pc = null; |
function dummy() {} |
-function requestFailed2(reason) |
+function requestFailed2(error) |
{ |
testPassed('requestFailed was called.'); |
- errorReason = reason; |
- shouldBe('errorReason', '"TEST_ERROR"'); |
+ window.error = error; |
+ shouldBe('error.name', '"OperationError"'); |
+ shouldBe('error.toString()', '"OperationError: TEST_ERROR"'); |
shouldNotThrow("pc.createOffer(dummy, dummy);"); |
shouldNotThrow("pc.createOffer(dummy, dummy, {});"); |