https://github.com/web-platform-tests/wpt
Raw File
Tip revision: ff231deb229296a32101776356e1dc06fc51df1c authored by Jake Archibald on 18 May 2018, 13:15:12 UTC
Tests for https://github.com/whatwg/fetch/pull/560
Tip revision: ff231de
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