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

Unified Diff: LayoutTests/fast/domurl/url-constructor.html

Issue 870053004: Make URL constructor failure throw TypeError (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Change test expectation Created 5 years, 11 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
« no previous file with comments | « no previous file | Source/core/dom/DOMURL.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/domurl/url-constructor.html
diff --git a/LayoutTests/fast/domurl/url-constructor.html b/LayoutTests/fast/domurl/url-constructor.html
index 1091b3e7c960adf8f1fc5eb0aff384d0e121130c..3291ef6b588cba83940b5f4c1f40f7b11e694563 100644
--- a/LayoutTests/fast/domurl/url-constructor.html
+++ b/LayoutTests/fast/domurl/url-constructor.html
@@ -33,16 +33,16 @@ test(function() {
}, 'TypeError: Failed to construct \'URL\': 1 argument required, but only 0 present.');
assertThrows(function() {
new URL('abc');
- }, 'SyntaxError: Failed to construct \'URL\': Invalid URL');
+ }, 'TypeError: Failed to construct \'URL\': Invalid URL');
assertThrows(function() {
new URL('//abc');
- }, 'SyntaxError: Failed to construct \'URL\': Invalid URL');
+ }, 'TypeError: Failed to construct \'URL\': Invalid URL');
assertThrows(function() {
new URL('http:///www.domain.com/', 'abc');
- }, 'SyntaxError: Failed to construct \'URL\': Invalid base URL');
+ }, 'TypeError: Failed to construct \'URL\': Invalid base URL');
assertThrows(function() {
new URL('http:///www.domain.com/', null);
- }, 'SyntaxError: Failed to construct \'URL\': Invalid base URL');
+ }, 'TypeError: Failed to construct \'URL\': Invalid base URL');
}, 'Invalid URL parameters');
</script>
« no previous file with comments | « no previous file | Source/core/dom/DOMURL.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698