https://github.com/web-platform-tests/wpt
Raw File
Tip revision: ce1ce6065b70a59939b184582587b7578da06b72 authored by Chris Nardi on 07 April 2018, 03:56:07 UTC
Update serialization of timing functions
Tip revision: ce1ce60
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