summaryrefslogtreecommitdiffstats
path: root/remote/test/puppeteer/test/assets/frames/nested-frames.html
diff options
context:
space:
mode:
Diffstat (limited to 'remote/test/puppeteer/test/assets/frames/nested-frames.html')
-rw-r--r--remote/test/puppeteer/test/assets/frames/nested-frames.html25
1 files changed, 25 insertions, 0 deletions
diff --git a/remote/test/puppeteer/test/assets/frames/nested-frames.html b/remote/test/puppeteer/test/assets/frames/nested-frames.html
new file mode 100644
index 0000000000..de1987586f
--- /dev/null
+++ b/remote/test/puppeteer/test/assets/frames/nested-frames.html
@@ -0,0 +1,25 @@
+<style>
+body {
+ display: flex;
+}
+
+body iframe {
+ flex-grow: 1;
+ flex-shrink: 1;
+}
+::-webkit-scrollbar{
+ display: none;
+}
+</style>
+<script>
+async function attachFrame(frameId, url) {
+ var frame = document.createElement('iframe');
+ frame.src = url;
+ frame.id = frameId;
+ document.body.appendChild(frame);
+ await new Promise(x => frame.onload = x);
+ return 'kazakh';
+}
+</script>
+<iframe src='./two-frames.html' name='2frames'></iframe>
+<iframe src='./frame.html' name='aframe'></iframe>