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

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

Issue 331313011: Switch URL and URLUtils interfaces over to use ScalarValueString. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Tidy new url-constructor test Created 6 years, 6 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 | « LayoutTests/fast/domurl/url-hash.html ('k') | LayoutTests/fast/domurl/url-pathname.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/domurl/url-host.html
diff --git a/LayoutTests/fast/domurl/url-host.html b/LayoutTests/fast/domurl/url-host.html
index fe68d4f62b807ab7d1e1c93bf5cebc0bd205f960..1193969b6513e0c0c0bedffcfd5f0c64de5f344f 100644
--- a/LayoutTests/fast/domurl/url-host.html
+++ b/LayoutTests/fast/domurl/url-host.html
@@ -107,4 +107,12 @@ test(function() {
assert_equals(url.href, 'invalid');
}, 'host property invalid URL');
+test(function() {
+ var url = new URL('http://www.domain.com/');
+ assert_equals(url.host, 'www.domain.com');
+
+ url.host = 'www.bo\udc01\ud802gus.org';
+ assert_equals(url.host, '');
+}, 'hostname with unmatched surrogates');
+
</script>
« no previous file with comments | « LayoutTests/fast/domurl/url-hash.html ('k') | LayoutTests/fast/domurl/url-pathname.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698