Update web-platform-tests to revision 14cfa4d648cc1c853b4153268df672d21425f8c1

This commit is contained in:
Josh Matthews 2017-10-30 09:31:22 -04:00
parent 1b73cf3352
commit 75736751d9
1213 changed files with 19434 additions and 12344 deletions

View file

@ -3,7 +3,6 @@
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
async_test(t => {
const c1 = new BroadcastChannel('blob');
const c2 = new BroadcastChannel('blob');
@ -25,7 +24,12 @@ async_test(t => {
reader.readAsText(e.data.blob);
});
c3.onmessage = c2.onmessage;
c1.postMessage({blob: new Blob(['foo', 'bar'])});
(() => {
c1.postMessage({blob: new Blob(['foo', 'bar'])});
})();
// TODO(https://github.com/w3c/web-platform-tests/issues/7899): Change to
// some sort of cross-browser GC trigger.
if (self.gc) self.gc();
}, 'Blobs work on BroadcastChannel');
async_test(t => {

View file

@ -6,7 +6,12 @@ function handler(e, reply) {
return;
}
if (e.data.blob) {
c.postMessage({blob: new Blob(e.data.blob)});
(() => {
c.postMessage({blob: new Blob(e.data.blob)});
})();
// TODO(https://github.com/w3c/web-platform-tests/issues/7899): Change to
// some sort of cross-browser GC trigger.
if (self.gc) self.gc();
}
c = new BroadcastChannel(e.data.channel);
let messages = [];