diff options
Diffstat (limited to 'remote/test/puppeteer/test/assets/cached')
9 files changed, 35 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'); diff --git a/remote/test/puppeteer/test/assets/cached/one-style-font.css b/remote/test/puppeteer/test/assets/cached/one-style-font.css new file mode 100644 index 0000000000..6178de0350 --- /dev/null +++ b/remote/test/puppeteer/test/assets/cached/one-style-font.css @@ -0,0 +1,9 @@ +@font-face { + font-family: 'one-style'; + src: url('./one-style.woff') format('woff'); +} + +body { + background-color: pink; + font-family: 'one-style', sans-serif; +} diff --git a/remote/test/puppeteer/test/assets/cached/one-style-font.html b/remote/test/puppeteer/test/assets/cached/one-style-font.html new file mode 100644 index 0000000000..8e7236dfb3 --- /dev/null +++ b/remote/test/puppeteer/test/assets/cached/one-style-font.html @@ -0,0 +1,2 @@ +<link rel='stylesheet' href='./one-style-font.css'> +<div>hello, world!</div> diff --git a/remote/test/puppeteer/test/assets/cached/one-style.css b/remote/test/puppeteer/test/assets/cached/one-style.css new file mode 100644 index 0000000000..04e7110b41 --- /dev/null +++ b/remote/test/puppeteer/test/assets/cached/one-style.css @@ -0,0 +1,3 @@ +body { + background-color: pink; +} diff --git a/remote/test/puppeteer/test/assets/cached/one-style.html b/remote/test/puppeteer/test/assets/cached/one-style.html new file mode 100644 index 0000000000..4760f2b9f7 --- /dev/null +++ b/remote/test/puppeteer/test/assets/cached/one-style.html @@ -0,0 +1,2 @@ +<link rel='stylesheet' href='./one-style.css'> +<div>hello, world!</div> |