Update web-platform-tests to revision 3678c44dfe811f93a796285e9531ee34d7d15682

This commit is contained in:
WPT Sync Bot 2018-02-27 20:17:24 -05:00
parent 6fbf2c1e3c
commit b3ccbe1a35
27 changed files with 808 additions and 100 deletions

View file

@ -40,7 +40,7 @@ assert_worker_throws('indexedDB is inaccessible', 'self.indexedDB.open("someDBNa
assert_worker_sends_pass('cross-origin worker', '', 'fetch("/").then(() => port.postMessage("FAIL"), () => port.postMessage("PASS"))');
// 'data:' workers have opaque origin
assert_worker_sends_pass('worker has opaque origin', 'application/javascript', 'if (self.location.origin == "null") port.postMessage("PASS"); else { port.postMessage("FAIL"); }');
assert_worker_sends_pass('worker has opaque origin', 'application/javascript', 'port.postMessage(self.location.origin == "null" ? "PASS" : "FAIL")');
function openWindow(url) {
return new Promise(resolve => {