Index: LayoutTests/fast/domurl/url-constructor.html |
diff --git a/LayoutTests/fast/domurl/url-constructor.html b/LayoutTests/fast/domurl/url-constructor.html |
index 0205a12c3016bcaeed307e30334ac3eddb0b243a..1091b3e7c960adf8f1fc5eb0aff384d0e121130c 100644 |
--- a/LayoutTests/fast/domurl/url-constructor.html |
+++ b/LayoutTests/fast/domurl/url-constructor.html |
@@ -21,6 +21,10 @@ test(function() { |
var base = new URL('http://www.domain.com/a/b'); |
assert_equals(new URL('b/c', base).toString(), 'http://www.domain.com/a/b/c'); |
+ |
+ // Unmatched surrogate handling |
+ var encodedReplacementCharacter = encodeURIComponent('\ufffd'); |
+ assert_equals(new URL('b/c', 'http://www.domain.com/\ud801/b').toString(), 'http://www.domain.com/' + encodedReplacementCharacter + '/b/c'); |
}, 'Valid URLs'); |
test(function() { |