summaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qmltests/data/test3.html
diff options
context:
space:
mode:
authorAdam Kallai <kadam@inf.u-szeged.hu>2014-01-16 09:09:25 -0800
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-20 13:56:06 +0100
commit0d85992198886cfb2b55087bcf9fe2acb9da84de (patch)
tree7f95294859ee37614e55444da78c97ffd901da98 /tests/auto/quick/qmltests/data/test3.html
parent13416b2db167dc1849e4af94391d3c6ae602ec76 (diff)
Add QML test framework and titleChanged test case
Change-Id: Ie38ee02e485702d10d0c171f2168f2685c2de2a6 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu> Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com> Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Diffstat (limited to 'tests/auto/quick/qmltests/data/test3.html')
-rw-r--r--tests/auto/quick/qmltests/data/test3.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/auto/quick/qmltests/data/test3.html b/tests/auto/quick/qmltests/data/test3.html
new file mode 100644
index 000000000..0c0e4eebf
--- /dev/null
+++ b/tests/auto/quick/qmltests/data/test3.html
@@ -0,0 +1,18 @@
+<html>
+<head>
+<title>Test page 3</title>
+</head>
+<script type="text/javascript">
+function kickOffTitleChange()
+{
+ var t = setTimeout("changeTitle('New Title')",3000);
+}
+function changeTitle(title)
+{
+ document.title = title;
+}
+</script>
+<body onload="kickOffTitleChange()">
+Hello.
+</body>
+</html>