summaryrefslogtreecommitdiffstats
path: root/tests/auto/installer/scriptengine/data/auto-install.qs
diff options
context:
space:
mode:
authorTim Jenssen <tim.jenssen@digia.com>2013-05-08 13:26:41 +0200
committerTim Jenssen <tim.jenssen@digia.com>2013-05-16 16:12:52 +0200
commit06449248ab638d3ebb23f03e56450f10b4acbb5c (patch)
treea4fb331a237b6ad5bcf2857f75fe689b505386a5 /tests/auto/installer/scriptengine/data/auto-install.qs
parent89ee32bea7d9cdfb426d3400e940a6b006b2b2f7 (diff)
introduce installerscriptengine
- it uses one scriptengine for everything and adds the components or/and the install-controller in javascript closure contexts - added the gui object to the component script context - removed tabController from controlscript context Change-Id: I3bd6c5dcf470666c30add1b7d04a8fdd094f5f11 Reviewed-by: Iikka Eklund <iikka.eklund@digia.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
Diffstat (limited to 'tests/auto/installer/scriptengine/data/auto-install.qs')
-rw-r--r--tests/auto/installer/scriptengine/data/auto-install.qs16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/auto/installer/scriptengine/data/auto-install.qs b/tests/auto/installer/scriptengine/data/auto-install.qs
new file mode 100644
index 000000000..26937fc05
--- /dev/null
+++ b/tests/auto/installer/scriptengine/data/auto-install.qs
@@ -0,0 +1,16 @@
+function Controller()
+{
+ installer.setMessageBoxAutomaticAnswer("OverwriteTargetDirectory", QMessageBox.Yes);
+ installer.setValue("GuiTestValue", "hello");
+}
+
+Controller.prototype.ComponentSelectionPageCallback = function()
+{
+ var notExistingButtonId = 9999999;
+ gui.clickButton(notExistingButtonId);
+}
+
+Controller.prototype.FinishedPageCallback = function()
+{
+ print("FinishedPageCallback - OK")
+}