diff options
author | Tim Jenssen <tim.jenssen@digia.com> | 2013-05-07 16:16:14 +0200 |
---|---|---|
committer | Tim Jenssen <tim.jenssen@digia.com> | 2013-05-07 16:18:47 +0200 |
commit | b9bda246abd06381c17f5b90eb5fcdb1262e840f (patch) | |
tree | cec69d61be07953b6c9161d0da9c08bfb1b700dd /tests | |
parent | 7b062bd6af86452ed231009b0c48d663ce93976a (diff) |
add a check that the component script constructor is called
Change-Id: Ie7bed2869bf21933b665ab55bf8b9301e0cf2995
Reviewed-by: Niels Weber <niels.weber@digia.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/installer/installerscriptengine/data/component1.qs | 1 | ||||
-rw-r--r-- | tests/auto/installer/installerscriptengine/tst_installerscriptengine.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/installer/installerscriptengine/data/component1.qs b/tests/auto/installer/installerscriptengine/data/component1.qs index 4f9ed571c..af81f5747 100644 --- a/tests/auto/installer/installerscriptengine/data/component1.qs +++ b/tests/auto/installer/installerscriptengine/data/component1.qs @@ -1,5 +1,6 @@ function Component() { + print("Component constructor - OK"); } Component.prototype.retranslateUi = function() diff --git a/tests/auto/installer/installerscriptengine/tst_installerscriptengine.cpp b/tests/auto/installer/installerscriptengine/tst_installerscriptengine.cpp index 58081897c..fa4669b56 100644 --- a/tests/auto/installer/installerscriptengine/tst_installerscriptengine.cpp +++ b/tests/auto/installer/installerscriptengine/tst_installerscriptengine.cpp @@ -100,6 +100,7 @@ private slots: { try { // ignore retranslateUi which is called by loadComponentScript + setExpectedScriptOutput("Component constructor - OK"); setExpectedScriptOutput("retranslateUi - OK"); m_component->loadComponentScript(":///data/component1.qs"); |