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

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

Issue 235123002: Should throw TypeError instead of TypeMismatchError (modules) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 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/RTCIceCandidate-expected.txt
diff --git a/LayoutTests/fast/mediastream/RTCIceCandidate-expected.txt b/LayoutTests/fast/mediastream/RTCIceCandidate-expected.txt
index ea0a720cceaa324017ece3d5fec5ea824787e456..e3798570bd5a42a08b59cfe269750f12d44200d8 100644
--- a/LayoutTests/fast/mediastream/RTCIceCandidate-expected.txt
+++ b/LayoutTests/fast/mediastream/RTCIceCandidate-expected.txt
@@ -12,10 +12,10 @@ PASS candidate = new RTCIceCandidate(initializer); did not throw exception.
PASS candidate.candidate is "foo"
PASS candidate.sdpMid is "bar"
PASS candidate.sdpMLineIndex is 6
-PASS new RTCIceCandidate({}); threw exception TypeMismatchError: Failed to construct 'RTCIceCandidate': The 'candidate' property is not a string, or is empty..
+PASS new RTCIceCandidate({}); threw exception TypeError: Failed to construct 'RTCIceCandidate': The 'candidate' property is not a string, or is empty..
PASS new RTCIceCandidate(5); threw exception TypeError: Failed to construct 'RTCIceCandidate': parameter 1 ('dictionary') is not an object..
PASS new RTCIceCandidate("foobar"); threw exception TypeError: Failed to construct 'RTCIceCandidate': parameter 1 ('dictionary') is not an object..
-PASS new RTCIceCandidate({candidate:""}); threw exception TypeMismatchError: Failed to construct 'RTCIceCandidate': The 'candidate' property is not a string, or is empty..
+PASS new RTCIceCandidate({candidate:""}); threw exception TypeError: Failed to construct 'RTCIceCandidate': The 'candidate' property is not a string, or is empty..
PASS new RTCIceCandidate({candidate:"x"}); did not throw exception.
PASS candidate.candidate is "bar"
PASS candidate.sdpMid is "foo"

Powered by Google App Engine
This is Rietveld 408576698