summaryrefslogtreecommitdiffstats
path: root/tests/auto/core/qwebengineframe/resources/iframes.html
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/core/qwebengineframe/resources/iframes.html')
-rw-r--r--tests/auto/core/qwebengineframe/resources/iframes.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/auto/core/qwebengineframe/resources/iframes.html b/tests/auto/core/qwebengineframe/resources/iframes.html
new file mode 100644
index 000000000..648acb166
--- /dev/null
+++ b/tests/auto/core/qwebengineframe/resources/iframes.html
@@ -0,0 +1,17 @@
+<!doctype html>
+<html>
+ <head><title>Test-title</title></head>
+ <script>
+ window.name = 'test-main-frame'
+ onload = (e) => {
+ const frames = window.frames;
+ for (let i = 0; i < frames.length; i++) {
+ frames[i].name = 'test-subframe' + i;
+ }
+ };
+ </script>
+ <body>
+ <iframe name="iframe0-300x200" width="300" height="200"></iframe>
+ <iframe name="iframe1-350x250" width="350" height="250"></iframe>
+ </body>
+</html>