summaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qmltests/data/test4.html
diff options
context:
space:
mode:
authorAdam Kallai <kadam@inf.u-szeged.hu>2016-04-28 12:04:10 +0200
committerAdam Kallai <kadam@inf.u-szeged.hu>2016-06-16 08:02:09 +0000
commit57f826abff6155c017f76eba1958979a2bc143a4 (patch)
tree21983e73b522ecb8ea17fc6bd8580bf922286e21 /tests/auto/quick/qmltests/data/test4.html
parent68028b6ea7812609dd7c91b96fa6595a89a049d2 (diff)
Add QML test for scrollPosition
Change-Id: Ia7541befb43d2b6fdd09b13ca51fc7d09b955964 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
Diffstat (limited to 'tests/auto/quick/qmltests/data/test4.html')
-rw-r--r--tests/auto/quick/qmltests/data/test4.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/auto/quick/qmltests/data/test4.html b/tests/auto/quick/qmltests/data/test4.html
index 8f75af606..142b53668 100644
--- a/tests/auto/quick/qmltests/data/test4.html
+++ b/tests/auto/quick/qmltests/data/test4.html
@@ -12,6 +12,17 @@
<meta name="viewport" content="initial-scale=2.0"/>
</head>
<body>
+ <button onclick="scrollWin()", id="scroll">Click me to scroll!</button><br><br>
+
+ <script>
+ window.onload = function() {
+ document.getElementById("scroll").focus();
+ }
+
+ function scrollWin() {
+ window.scrollTo(0, 600);
+ }
+ </script>
<div id="content">
bla00<br/>
bla01<br/>