summaryrefslogtreecommitdiffstats
path: root/remote/test/puppeteer/test/assets/cached/bfcache
diff options
context:
space:
mode:
Diffstat (limited to 'remote/test/puppeteer/test/assets/cached/bfcache')
-rw-r--r--remote/test/puppeteer/test/assets/cached/bfcache/index.html2
-rw-r--r--remote/test/puppeteer/test/assets/cached/bfcache/target.html2
-rw-r--r--remote/test/puppeteer/test/assets/cached/bfcache/worker-iframe-container.html11
-rw-r--r--remote/test/puppeteer/test/assets/cached/bfcache/worker-iframe.html3
-rw-r--r--remote/test/puppeteer/test/assets/cached/bfcache/worker.mjs1
5 files changed, 19 insertions, 0 deletions
diff --git a/remote/test/puppeteer/test/assets/cached/bfcache/index.html b/remote/test/puppeteer/test/assets/cached/bfcache/index.html
new file mode 100644
index 0000000000..3d79312828
--- /dev/null
+++ b/remote/test/puppeteer/test/assets/cached/bfcache/index.html
@@ -0,0 +1,2 @@
+<!DOCTYPE html>
+<body>BFCached<a href="target.html">next</a></body>
diff --git a/remote/test/puppeteer/test/assets/cached/bfcache/target.html b/remote/test/puppeteer/test/assets/cached/bfcache/target.html
new file mode 100644
index 0000000000..eafc537b64
--- /dev/null
+++ b/remote/test/puppeteer/test/assets/cached/bfcache/target.html
@@ -0,0 +1,2 @@
+<!DOCTYPE html>
+<body>target</body>
diff --git a/remote/test/puppeteer/test/assets/cached/bfcache/worker-iframe-container.html b/remote/test/puppeteer/test/assets/cached/bfcache/worker-iframe-container.html
new file mode 100644
index 0000000000..857914bb6d
--- /dev/null
+++ b/remote/test/puppeteer/test/assets/cached/bfcache/worker-iframe-container.html
@@ -0,0 +1,11 @@
+<body>BFCached<a href="target.html">next</a></body>
+<script>
+ window.addEventListener('DOMContentLoaded', () => {
+ const iframe = document.createElement('iframe');
+ const url = new URL(location.href);
+ url.hostname = url.hostname === 'localhost' ? '127.0.0.1' : 'localhost';
+ url.pathname = '/cached/bfcache/worker-iframe.html';
+ iframe.src = url.toString();
+ document.body.appendChild(iframe);
+ }, false);
+</script>
diff --git a/remote/test/puppeteer/test/assets/cached/bfcache/worker-iframe.html b/remote/test/puppeteer/test/assets/cached/bfcache/worker-iframe.html
new file mode 100644
index 0000000000..9233f557c5
--- /dev/null
+++ b/remote/test/puppeteer/test/assets/cached/bfcache/worker-iframe.html
@@ -0,0 +1,3 @@
+<script>
+ const worker = new Worker('worker.mjs', {type: 'module'})
+</script>
diff --git a/remote/test/puppeteer/test/assets/cached/bfcache/worker.mjs b/remote/test/puppeteer/test/assets/cached/bfcache/worker.mjs
new file mode 100644
index 0000000000..72a8036e68
--- /dev/null
+++ b/remote/test/puppeteer/test/assets/cached/bfcache/worker.mjs
@@ -0,0 +1 @@
+console.log('HELLO');