Update web-platform-tests to revision 9659a35d816ff1b32835a2eccf3e0117dea4e5ce

This commit is contained in:
WPT Sync Bot 2018-02-26 20:17:41 -05:00
parent 6df0dc5b27
commit 4f0af2af66
54 changed files with 1873 additions and 137 deletions

View file

@ -104,10 +104,18 @@ test(() => {
}
}, "sendBeacon URL: unpaired surrogate codepoint should not make any exceptions.")
test(() => {
// This shouldn't throw an exception.
window.navigator.registerProtocolHandler('web+myprotocol', "custom-scheme\uD800/url=%s", "title");
}, "RegisterPtotocolHandler URL: unpaired surrogate codepoint should not make any exceptions.")
test(() => {
var w = window.open("about:blank#\uD800");
assert_equals(w.document.URL, 'about:blank#%EF%BF%BD');
assert_equals(w.document.documentURI, 'about:blank#%EF%BF%BD');
// TODO(gyuyoung): How to test document.origin? When opening a URL with an
// unpaired surrogate codepoint, invalid URL exception happens.
// e.g) var w = window.open("http://test.com\uDB89");
}, "Document URLs: unpaired surrogate codepoint should be replaced with U+FFFD")
promise_test(t => {