Update web-platform-tests to revision d04c0d50dbbf7752c27957005a5a659701b781ad

This commit is contained in:
WPT Sync Bot 2018-02-15 20:09:00 -05:00
parent ff58cb0a3f
commit 44c252aede
56 changed files with 1921 additions and 67 deletions

View file

@ -2,6 +2,7 @@
<title>USVString test relate to url</title>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script src="../../webrtc/RTCPeerConnection-helper.js"></script>
<div id=log></div>
<script>
// Unpaired surrogate codepoints present in USVString are replaced
@ -109,4 +110,20 @@ test(() => {
assert_equals(w.document.documentURI, 'about:blank#%EF%BF%BD');
}, "Document URLs: unpaired surrogate codepoint should be replaced with U+FFFD")
promise_test(t => {
const sendString = 'hello\uD999';
const receiveString = 'hello\uFFFD';
return createDataChannelPair()
.then(([channel1, channel2]) => {
channel1.send(sendString);
return awaitMessage(channel2)
}).then(message => {
assert_equals(typeof message, 'string',
'Expect message to be a string');
assert_equals(message, receiveString);
});
}, "RTCDataChannel.send: unpaired surrogate codepoint should be replaced with U+FFFD.")
</script>