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

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

Powered by Google App Engine
This is Rietveld 408576698