https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 093b0b3d5d041c16ef342790acaf3e9c1b5e01e6 authored by Hayato Ito on 28 March 2018, 12:08:08 UTC
Keep track of all pending slot assignments, and recalc all before UpdateStyle phase
Tip revision: 093b0b3
navigate.window.js
async_test(t => {
  const frame = document.createElement("iframe");
  frame.src = "resources/refresh.py"
  frame.onload = t.step_func(() => {
    // Could be better by verifying that resources/refresh.py loads too
    if(frame.contentWindow.location.href === (new URL("resources/refreshed.txt?\u0080\u00FF", self.location)).href) { // Make sure bytes got mapped to code points of the same value
      t.done();
    }
  });
  document.body.appendChild(frame)
}, "When navigating the Refresh header needs to be followed");

async_test(t => {
  const frame = document.createElement("iframe");
  frame.src = "resources/multiple.asis"
  frame.onload = t.step_func(() => {
    // Could be better by verifying that resources/refresh.py loads too
    if(frame.contentWindow.location.href === (new URL("resources/refreshed.txt", self.location)).href) {
      t.done();
    }
  });
  document.body.appendChild(frame)
}, "When there's both a Refresh header and <meta> the Refresh header wins")
back to top