Skip to content

Commit

Permalink
Bug 1591668 [wpt PR 19926] - [html] Convert srcdoc_change_hash.html t…
Browse files Browse the repository at this point in the history
…o promise_test, a=testonly

Automatic update from web-platform-tests
[html] Convert srcdoc_change_hash.html to promise_test

This is an alternative to adding `setup({ single_test: true })` in
web-platform-tests/wpt#19918.
--

wpt-commits: 2127be728a1d785b3443eaec5955070c0908aa62
wpt-pr: 19926

Differential Revision: https://phabricator.services.mozilla.com/D53517
  • Loading branch information
foolip authored and moz-wptsync-bot committed Nov 20, 2019
1 parent 7446fe5 commit 8308b31
Showing 1 changed file with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
<!--
Test same-document navigation inside an srcdoc iframe using location.hash
-->
<title>same-document navigation inside an srcdoc iframe using location.hash</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-vendor.js"></script>
<script>
async function test() {
promise_test(async () => {
// Wait until 'document' is available.
await new Promise(resolve => window.addEventListener('load', resolve));

Expand Down Expand Up @@ -66,8 +64,5 @@
await hash_changed;
assert_equals(iframe.contentWindow.location.href, "about:srcdoc#2");
}

done();
}
test();
});
</script>

0 comments on commit 8308b31

Please sign in to comment.