diff options
Diffstat (limited to 'dom/tests/mochitest/dom-level0/file_test_background_loading_iframes.html')
-rw-r--r-- | dom/tests/mochitest/dom-level0/file_test_background_loading_iframes.html | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/dom/tests/mochitest/dom-level0/file_test_background_loading_iframes.html b/dom/tests/mochitest/dom-level0/file_test_background_loading_iframes.html new file mode 100644 index 0000000000..27cc47ca72 --- /dev/null +++ b/dom/tests/mochitest/dom-level0/file_test_background_loading_iframes.html @@ -0,0 +1,19 @@ +<html> + <body> + <script> + var onloadFiredAt; + + let start = performance.now(); + while (performance.now() - start < 5000); + + window.onload = function() { + onloadFiredAt = performance.now(); + } + + window.addEventListener('message', function(event) { + window.parent.postMessage(onloadFiredAt, "*"); + }) + + </script> + </body> +</html> |