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

Unified Diff: LayoutTests/fast/domurl/url-pathname.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-host.html ('k') | Source/core/dom/URL.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/domurl/url-pathname.html
diff --git a/LayoutTests/fast/domurl/url-pathname.html b/LayoutTests/fast/domurl/url-pathname.html
index 080ad972773b5061489766338b75f8bc7054ae31..f5114128f511d8d60ed60f1453c2b40fb4645c3d 100644
--- a/LayoutTests/fast/domurl/url-pathname.html
+++ b/LayoutTests/fast/domurl/url-pathname.html
@@ -51,4 +51,12 @@ test(function() {
assert_equals(url.href, 'invalid');
}, 'pathname property invalid URL');
+test(function() {
+ var url = new URL('http://www.domain.com/');
+ assert_equals(url.pathname, '/');
+
+ url.pathname = '\udc01\ud802a';
+ assert_equals(url.pathname, '/' + encodeURIComponent('\ufffd\ufffda'));
+}, 'pathname with unmatched surrogates');
+
</script>
« no previous file with comments | « LayoutTests/fast/domurl/url-host.html ('k') | Source/core/dom/URL.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698