Skip to content

Commit

Permalink
Make the test async
Browse files Browse the repository at this point in the history
  • Loading branch information
yoavweiss committed Nov 2, 2018
1 parent 1f6db89 commit ba07ade
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions resource-timing/TAO-null-opaque-origin.sub.html
Expand Up @@ -9,11 +9,10 @@
<script src="/resources/testharnessreport.js"></script>
<script>

window.addEventListener("message", e=>{
test(()=> {
assert_equals(e.data, "PASS");
}, "Makes sure that the iframe passed the test and had an entry which passed the timing allow check");
});
const t = async_test("Test null TAO value with opaque origins");
window.addEventListener("message", t.step_func_done(e=>{
assert_equals(e.data, "PASS");
}));
</script>
</head>
<body>
Expand Down

0 comments on commit ba07ade

Please sign in to comment.