Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Unified Diff: LayoutTests/fast/mediastream/constructors-expected.txt

Issue 23440058: Improve generated TypeError exception messages in bindings. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/mediastream/constructors-expected.txt
diff --git a/LayoutTests/fast/mediastream/constructors-expected.txt b/LayoutTests/fast/mediastream/constructors-expected.txt
index 817cecbe9813bb06fb7802842d0ea481d3759e6a..81cbfc7f9f85d76afbc339fa968de2c027c6a781 100644
--- a/LayoutTests/fast/mediastream/constructors-expected.txt
+++ b/LayoutTests/fast/mediastream/constructors-expected.txt
@@ -6,9 +6,9 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
PASS typeof webkitRTCPeerConnection === 'function' is true
PASS typeof RTCSessionDescription === 'function' is true
PASS typeof RTCIceCandidate === 'function' is true
-PASS webkitRTCPeerConnection() threw exception TypeError: DOM object constructor cannot be called as a function..
-PASS RTCSessionDescription() threw exception TypeError: DOM object constructor cannot be called as a function..
-PASS RTCIceCandidate() threw exception TypeError: DOM object constructor cannot be called as a function..
+PASS webkitRTCPeerConnection() threw exception TypeError: Failed to construct 'RTCPeerConnection': Please use the 'new' operator, this DOM object constructor cannot be called as a function..
+PASS RTCSessionDescription() threw exception TypeError: Failed to construct 'RTCSessionDescription': Please use the 'new' operator, this DOM object constructor cannot be called as a function..
+PASS RTCIceCandidate() threw exception TypeError: Failed to construct 'RTCIceCandidate': Please use the 'new' operator, this DOM object constructor cannot be called as a function..
PASS new webkitRTCPeerConnection({iceServers:[{url:'stun://foobar.com:12345'}]}, null); did not throw exception.
PASS new RTCSessionDescription({type:'offer',sdp:'foobar'}); did not throw exception.
PASS new RTCIceCandidate({candidate:'foo'}); did not throw exception.
« no previous file with comments | « LayoutTests/fast/dom/call-a-constructor-as-a-function-expected.txt ('k') | Source/bindings/scripts/code_generator_v8.pm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698