https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 930e144a5b889a9c0251d99a01a86df5dd5610b8 authored by Ben Kelly on 11 April 2018, 09:35:46 UTC
Add a WPT test to verify dedicated workers have a separate client ID from their owning document.
Tip revision: 930e144
reftest-wait.html
<!DOCTYPE html>
<html class="reftest-wait">
<title>Test infrastructure should support 'reftest-wait'</title>
<link rel="match" href="reftest-wait-ref.html">
<style>
.marker {
    margin-bottom: 10px;
    background: red;
    height: 50px;
    width: 50px;
}
</style>
<script>
setTimeout(function() {
    document.querySelector(".marker").style.background = 'green';
    document.documentElement.classList.remove("reftest-wait");
}, 1000);
</script>
<div class="marker"></div>
<div>The box above should be green.</div>
</html>
back to top