summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/dom/render-blocking/support/utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/html/dom/render-blocking/support/utils.js')
-rw-r--r--testing/web-platform/tests/html/dom/render-blocking/support/utils.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/dom/render-blocking/support/utils.js b/testing/web-platform/tests/html/dom/render-blocking/support/utils.js
new file mode 100644
index 0000000000..8a9a537e96
--- /dev/null
+++ b/testing/web-platform/tests/html/dom/render-blocking/support/utils.js
@@ -0,0 +1,5 @@
+function generateParserDelay(seconds = 1) {
+ document.write(`
+ <script src="/loading/resources/dummy.js?pipe=trickle(d${seconds})"></script>
+ `);
+}