https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 1614d65d2cd50d167c605cf212f35db792a38c31 authored by Yutaka Hirano on 03 April 2018, 01:48:59 UTC
fix
Tip revision: 1614d65
Document-URL.sub.html
<!doctype html>
<meta charset=utf-8>
<title>Document.URL with redirect</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id=log></div>
<script>
async_test(function() {
  var iframe = document.createElement("iframe");
  iframe.src = "/common/redirect.py?location=/common/blank.html";
  document.body.appendChild(iframe);
  this.add_cleanup(function() { document.body.removeChild(iframe); });
  iframe.onload = this.step_func_done(function() {
    assert_equals(iframe.contentDocument.URL,
                  "http://{{host}}:{{ports[http][0]}}/common/blank.html");
  });
})
</script>
back to top