https://github.com/web-platform-tests/wpt
Raw File
Tip revision: ea013631149d8605482d0c56131951a58ecd57d7 authored by Kent Tamura on 26 October 2016, 01:18:11 UTC
[html] Reduce the number of tests in reflection-*.html test files.
Tip revision: ea01363
data-url.html
<!DOCTYPE html>
<title>data URL worker</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id=log></div>
<script>
async_test(t => {
  var worker = new Worker("data:,fetch('/').then(() => self.postMessage('fail'), () => self.postMessage('pass'))") // not same-origin
  worker.onmessage = t.step_func_done(e => {
    assert_equals(e.data, "pass")
  })
})
</script>
back to top