https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 9ac1564951a43a313e49188ee24c90f330215b2e authored by François Beaufort on 06 December 2018, 10:51:49 UTC
[Picture-in-Picture] Don't require user gesture if capturing user media
Tip revision: 9ac1564
WorkerLocation-origin.sub.window.js
async_test(t => {
  const frame = document.createElement("iframe"),
        asciiOrigin = location.protocol + "//{{domains[天気の良い日]}}:" + location.port,
        path = new URL("support/WorkerLocation-origin.html", location).pathname;
  frame.src = asciiOrigin + path;
  self.onmessage = t.step_func_done(e => {
    assert_equals(e.data.origin, asciiOrigin);
  });
  document.body.appendChild(frame);
  t.add_cleanup(() => frame.remove());
}, "workerLocation.origin must use ASCII code points");
back to top