diff options
author | Szabolcs David <davidsz@inf.u-szeged.hu> | 2015-03-10 07:18:31 -0700 |
---|---|---|
committer | Szabolcs David <davidsz@inf.u-szeged.hu> | 2015-03-11 15:57:51 +0000 |
commit | d3905d85925a950ca32aa78eead6db7228be1330 (patch) | |
tree | 19c09ceafa14c87bf335b52992d98a90b3fbaddf /tests/auto/quick/qmltests/data/confirm.html | |
parent | 769b3a61f5d2abcb3f694ade95e1e8f1c505b75a (diff) |
Add tst_javaScriptDialogs QML testv5.5.0-alpha1
Test alert, confirm and prompt dialogs via test support API.
Change-Id: I9057a887491ac68e86ccd87181d4091323f6ee6f
Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
Diffstat (limited to 'tests/auto/quick/qmltests/data/confirm.html')
-rw-r--r-- | tests/auto/quick/qmltests/data/confirm.html | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/auto/quick/qmltests/data/confirm.html b/tests/auto/quick/qmltests/data/confirm.html new file mode 100644 index 000000000..d7256a883 --- /dev/null +++ b/tests/auto/quick/qmltests/data/confirm.html @@ -0,0 +1,19 @@ +<!doctype html> +<html> +<head> + <script> + document.title = ""; + function updateTitle(accepted) { + if (accepted) + document.title += " ACCEPTED"; + else + document.title += " REJECTED"; + } + + updateTitle(confirm("ACCEPT")); + updateTitle(confirm("REJECT")); + </script> +</head> +<body> +</body> +</html> |