summaryrefslogtreecommitdiffstats
path: root/tests/auto/installer/scriptengine/data/component1.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/component1.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/component1.qs')
-rw-r--r--tests/auto/installer/scriptengine/data/component1.qs48
1 files changed, 48 insertions, 0 deletions
diff --git a/tests/auto/installer/scriptengine/data/component1.qs b/tests/auto/installer/scriptengine/data/component1.qs
new file mode 100644
index 000000000..af81f5747
--- /dev/null
+++ b/tests/auto/installer/scriptengine/data/component1.qs
@@ -0,0 +1,48 @@
+function Component()
+{
+ print("Component constructor - OK");
+}
+
+Component.prototype.retranslateUi = function()
+{
+ // arguments.callee to get the current function name doesn't work in that case
+ print("retranslateUi - OK");
+ // no default implementation for this method
+ // component.languageChanged();
+}
+
+Component.prototype.createOperationsForPath = function(path)
+{
+ print("createOperationsForPath - OK");
+ component.createOperationsForPath(path);
+}
+
+Component.prototype.createOperationsForArchive = function(archive)
+{
+ print("createOperationsForArchive - OK");
+ component.createOperationsForArchive(archive);
+}
+
+Component.prototype.beginInstallation = function()
+{
+ print("beginInstallation - OK");
+ component.beginInstallation();
+}
+
+Component.prototype.createOperations = function()
+{
+ print("createOperations - OK");
+ component.createOperations();
+}
+
+Component.prototype.isAutoDependOn = function()
+{
+ print("isAutoDependOn - OK");
+ return false;
+}
+
+Component.prototype.isDefault = function()
+{
+ print("isDefault - OK");
+ return false;
+}