Index: third_party/WebKit/LayoutTests/fast/domurl/url-constructor.html |
diff --git a/third_party/WebKit/LayoutTests/fast/domurl/url-constructor.html b/third_party/WebKit/LayoutTests/fast/domurl/url-constructor.html |
index 3291ef6b588cba83940b5f4c1f40f7b11e694563..c379f3821985a1eb24e81b32fffbacece17ef815 100644 |
--- a/third_party/WebKit/LayoutTests/fast/domurl/url-constructor.html |
+++ b/third_party/WebKit/LayoutTests/fast/domurl/url-constructor.html |
@@ -32,6 +32,12 @@ test(function() { |
new URL(); |
}, 'TypeError: Failed to construct \'URL\': 1 argument required, but only 0 present.'); |
assertThrows(function() { |
+ new URL(''); |
+ }, 'TypeError: Failed to construct \'URL\': Invalid URL'); |
+ assertThrows(function() { |
+ new URL('','about:blank'); |
+ }, 'TypeError: Failed to construct \'URL\': Invalid URL'); |
+ assertThrows(function() { |
new URL('abc'); |
}, 'TypeError: Failed to construct \'URL\': Invalid URL'); |
assertThrows(function() { |