Update web-platform-tests to revision b'468d01bbd84da2babf265c6af46947be68713440'

This commit is contained in:
WPT Sync Bot 2021-09-07 11:16:33 +00:00 committed by cybai
parent 35e95f55a1
commit 58e8ee674b
9438 changed files with 266112 additions and 106976 deletions

View file

@ -1,9 +1,5 @@
<!doctype html>
<title>basic messagechannel test</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<script>
// META: title=basic messagechannel test
async_test(function(t) {
var channel = new MessageChannel();
channel.port1.postMessage(1);
@ -14,4 +10,3 @@ async_test(function(t) {
});
channel.port2.start();
});
</script>

View file

@ -1,9 +1,3 @@
<!DOCTYPE html>
<meta charset=utf-8>
<link rel="help" href="https://html.spec.whatwg.org/multipage/comms.html#dom-messageport-close">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
// How long (in ms) these tests should wait before deciding no further messages
// will be received.
const time_to_wait_for_messages = 100;
@ -60,9 +54,9 @@ async_test(t => {
}, 'Close in onmessage should not cancel inflight messages.');
test(() => {
const c = new MessageChannel();
c.port1.close();
assert_throws_dom("DataCloneError", () => self.postMessage(null, "*", [c.port1]));
self.postMessage(null, "*", [c.port2]);
const c1 = new MessageChannel();
const c2 = new MessageChannel();
c1.port1.close();
assert_throws_dom("DataCloneError", () => c2.port1.postMessage(null, [c1.port1]));
c2.port1.postMessage(null, [c1.port2]);
}, "close() detaches a MessagePort (but not the one its entangled with)");
</script>

View file

@ -2,7 +2,7 @@
<title>cross-document channel</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<iframe src=004-1.html></iframe><iframe src=004-2.html></iframe>
<iframe src=resources/cross-document-1.html></iframe><iframe src=resources/cross-document-2.html></iframe>
<div id="log"></div>
<script>
var t = async_test();

View file

@ -1,9 +1,5 @@
<!doctype html>
<title>basic messagechannel with transfer</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<script>
// META: title=basic messagechannel with transfer
async_test(function(t) {
var channel = new MessageChannel();
var ab = new ArrayBuffer(1);
@ -15,4 +11,3 @@ async_test(function(t) {
});
channel.port2.start();
});
</script>

View file

@ -1,9 +1,5 @@
<!doctype html>
<title>onmessage implied start()</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<script>
// META: title=onmessage implied start()
async_test(function(t) {
var channel = new MessageChannel();
channel.port1.postMessage(1);
@ -16,4 +12,3 @@ async_test(function(t) {
});
}; // implies start()
});
</script>

View file

@ -1,9 +1,5 @@
<!doctype html>
<title>without start()</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<script>
// META: title=without start()
async_test(function(t) {
var channel = new MessageChannel();
channel.port1.postMessage(1);
@ -11,4 +7,3 @@ async_test(function(t) {
channel.port2.addEventListener('message', function() { i++; }, false);
setTimeout(t.step_func(function() { assert_equals(i, 0); t.done();}), 50);
});
</script>

View file

@ -1,5 +1,5 @@
<!doctype html>
<title>004-1</title>
<title>crosss-document-1</title>
<script>
onmessage = function(e) {
var port = e.ports[0];

View file

@ -1,9 +1,5 @@
<!doctype html>
<title>user activation messagechannel test</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<script>
// META: title=user activation messagechannel test
async_test(function(t) {
var channel = new MessageChannel();
channel.port1.postMessage(1, {includeUserActivation: true});
@ -23,4 +19,3 @@ async_test(function(t) {
});
channel.port2.start();
});
</script>

View file

@ -1,10 +1,3 @@
<!DOCTYPE html>
<meta charset=utf-8>
<link rel="help" href="https://html.spec.whatwg.org/multipage/comms.html#messageevent">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
async_test(t => {
function workerCode() {
onmessage = function(e) {
@ -33,4 +26,3 @@ async_test(t => {
}
}, 'MessageChannel/MessagePort should not work after a worker self.close()');
</script>

View file

@ -1,10 +1,3 @@
<!DOCTYPE html>
<meta charset=utf-8>
<link rel="help" href="https://html.spec.whatwg.org/multipage/comms.html#messageevent">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
async_test(t => {
function workerCode() {
close();
@ -22,5 +15,3 @@ async_test(t => {
t.done();
}
}, 'MessageChannel/MessagePort created and used after a worker self.close()');
</script>