summaryrefslogtreecommitdiffstats
path: root/tests/auto/shared/data/loadprogress/page5.html
diff options
context:
space:
mode:
authorJüri Valdmann <juri.valdmann@qt.io>2020-09-16 14:54:39 +0200
committerKirill Burtsev <kirill.burtsev@qt.io>2021-05-06 09:07:09 +0200
commitaa3b04de39c35eef8eecf9d1e512965516815e2b (patch)
treeddebe7958353e564fefa18a8ea9c92dcbf7b7b75 /tests/auto/shared/data/loadprogress/page5.html
parentc3a81005a3bae6cc40e6c2421cabf0137ff8ff00 (diff)
Add more tests to tst_loadsignals
Add new cases for non-same-page navigations, for navigations triggered from the DOMContentLoaded event handler, for navigations triggered by user action (clicks), and for navigation rejected by the acceptNavigationRequest API. Drop the 'no more signals' waiting time from 10 to 1 seconds. Task-number: QTBUG-65223 Change-Id: Ic074eaf5aa58f779e31927296ae84d9e4faeaaae Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
Diffstat (limited to 'tests/auto/shared/data/loadprogress/page5.html')
-rw-r--r--tests/auto/shared/data/loadprogress/page5.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/auto/shared/data/loadprogress/page5.html b/tests/auto/shared/data/loadprogress/page5.html
new file mode 100644
index 000000000..47709ff08
--- /dev/null
+++ b/tests/auto/shared/data/loadprogress/page5.html
@@ -0,0 +1,20 @@
+<html>
+ <head>
+ <title>page5</title>
+ </head>
+ <script>
+ addEventListener('DOMContentLoaded', (event) => {
+ document.getElementById('anchorLink').click();
+ });
+ </script>
+ <style>
+ .fardown {
+ position: absolute;
+ top: 2500px;
+ }
+ </style>
+ <body>
+ <div><a id="anchorLink" href="#anchor">go to the anchor</a></div>
+ <div class="fardown" id="anchor">here is the anchor</div>
+ </body>
+</html>