https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 4ed222f683a26ea90dcb5eef36cf3ea9c8ef65a0 authored by Josh Matthews on 12 September 2018, 16:20:36 UTC
Work around lint failure.
Tip revision: 4ed222f
Location-href.tentative.html
<!DOCTYPE html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="support/helper.sub.js"></script>
<body>
<script>
  test(t => {
    let p = createURL_policy(window, 1);
    let url = p.createURL(location.href + "#xxx");
    location.href = url;
    assert_equals("" + url, location.href, "location href");
  }, "location.href assigned via policy (successful URL transformation).");
</script>
back to top