summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/loadsignals/resources
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2018-04-12 10:48:38 +0200
committerMichal Klocek <michal.klocek@qt.io>2018-07-03 08:03:35 +0000
commit89bc70bf1389bdbc2133ac58b0f0b60aae167c25 (patch)
tree979e062b9a96dfa38c90793772a6b782dbeb3b69 /tests/auto/widgets/loadsignals/resources
parent0c2091e2a30d22b57fbef31f852794975d71961f (diff)
Add tst_loadsignals
Because of the recent problems with unexpected or missing loadStarted and loadFinished signals (which sometimes interfere with other load's signals), we add a set of auto-tests for load-signals. Done-By: Viktor Engelmann <viktor.engelmann@qt.io> Change-Id: Ia3b65c7b3c4d1ed44e94f409e047db6c6defb821 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'tests/auto/widgets/loadsignals/resources')
-rw-r--r--tests/auto/widgets/loadsignals/resources/downloadable.tar.gzbin0 -> 131 bytes
-rw-r--r--tests/auto/widgets/loadsignals/resources/page1.html8
-rw-r--r--tests/auto/widgets/loadsignals/resources/page2.html14
-rw-r--r--tests/auto/widgets/loadsignals/resources/page3.html20
-rw-r--r--tests/auto/widgets/loadsignals/resources/page4.html8
5 files changed, 50 insertions, 0 deletions
diff --git a/tests/auto/widgets/loadsignals/resources/downloadable.tar.gz b/tests/auto/widgets/loadsignals/resources/downloadable.tar.gz
new file mode 100644
index 000000000..741cb8ca6
--- /dev/null
+++ b/tests/auto/widgets/loadsignals/resources/downloadable.tar.gz
Binary files differ
diff --git a/tests/auto/widgets/loadsignals/resources/page1.html b/tests/auto/widgets/loadsignals/resources/page1.html
new file mode 100644
index 000000000..5cd479ab6
--- /dev/null
+++ b/tests/auto/widgets/loadsignals/resources/page1.html
@@ -0,0 +1,8 @@
+<html>
+ <head>
+ <title>page1</title>
+ </head>
+ <body>
+ <h1>page1</h1>
+ </body>
+</html>
diff --git a/tests/auto/widgets/loadsignals/resources/page2.html b/tests/auto/widgets/loadsignals/resources/page2.html
new file mode 100644
index 000000000..e3031f56a
--- /dev/null
+++ b/tests/auto/widgets/loadsignals/resources/page2.html
@@ -0,0 +1,14 @@
+<html>
+ <head>
+ <title>page2</title>
+ </head>
+ <style>
+ .fardown {
+ position: absolute;
+ top: 2500px;
+ }
+ </style>
+ <body>
+ <div class="fardown" id="anchor">page2 anchor</div>
+ </body>
+</html>
diff --git a/tests/auto/widgets/loadsignals/resources/page3.html b/tests/auto/widgets/loadsignals/resources/page3.html
new file mode 100644
index 000000000..d38ca31f0
--- /dev/null
+++ b/tests/auto/widgets/loadsignals/resources/page3.html
@@ -0,0 +1,20 @@
+<html>
+ <head>
+ <title>page3</title>
+ </head>
+ <script>
+ setTimeout(function(){
+ document.getElementById('anchorLink').click();
+ },500);
+ </script>
+ <style>
+ .fardown {
+ position: absolute;
+ top: 2500px;
+ }
+ </style>
+ <body>
+ <div><a id="anchorLink" href="#anchor">page3</a></div>
+ <div class="fardown" id="anchor">page3 anchor</div>
+ </body>
+</html>
diff --git a/tests/auto/widgets/loadsignals/resources/page4.html b/tests/auto/widgets/loadsignals/resources/page4.html
new file mode 100644
index 000000000..61976b4fb
--- /dev/null
+++ b/tests/auto/widgets/loadsignals/resources/page4.html
@@ -0,0 +1,8 @@
+<html>
+ <head>
+ <title>page4</title>
+ </head>
+ <body onload="document.getElementById('downloadLink').focus();">
+ <a id="downloadLink" href="downloadable.tar.gz">download</a>
+ </body>
+</html>