diff options
Diffstat (limited to 'testing/web-platform/tests/infrastructure/reftest/reftest_wait_TestRendered.html')
-rw-r--r-- | testing/web-platform/tests/infrastructure/reftest/reftest_wait_TestRendered.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/testing/web-platform/tests/infrastructure/reftest/reftest_wait_TestRendered.html b/testing/web-platform/tests/infrastructure/reftest/reftest_wait_TestRendered.html new file mode 100644 index 0000000000..4316d338b5 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/reftest_wait_TestRendered.html @@ -0,0 +1,14 @@ +<html class="reftest-wait"> +<title>Test with reftest-wait</title> +<link rel=match href=green.html> +<style> +:root {background-color:red} +</style> +<script> +document.addEventListener("TestRendered", + function() { + document.documentElement.style.backgroundColor = "green"; + document.documentElement.className = ""; + }); +</script> +</html> |