https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 83f41fa104eaf113509fffb10504b9afcba5b7e8 authored by Simon Pieters on 18 August 2016, 21:50:33 UTC
innerText setter should replace existing text node
Tip revision: 83f41fa
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