From b9bda246abd06381c17f5b90eb5fcdb1262e840f Mon Sep 17 00:00:00 2001 From: Tim Jenssen Date: Tue, 7 May 2013 16:16:14 +0200 Subject: add a check that the component script constructor is called Change-Id: Ie7bed2869bf21933b665ab55bf8b9301e0cf2995 Reviewed-by: Niels Weber --- tests/auto/installer/installerscriptengine/data/component1.qs | 1 + tests/auto/installer/installerscriptengine/tst_installerscriptengine.cpp | 1 + 2 files changed, 2 insertions(+) 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"); -- cgit v1.2.3