summaryrefslogtreecommitdiffstats
path: root/tests/auto/qscriptengine/script
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-07-07 11:49:20 (GMT)
committerKent Hansen <khansen@trolltech.com>2009-07-07 11:49:52 (GMT)
commitda1dee6894f96b416bb123578cc6e61c6444ddd8 (patch)
tree2b9699d0839bcdc28741aec975e96aef34b7167a /tests/auto/qscriptengine/script
parent5c756b368f5a76eeeff9e8e762a89368ba0b8149 (diff)
downloadQt-da1dee6894f96b416bb123578cc6e61c6444ddd8.zip
Qt-da1dee6894f96b416bb123578cc6e61c6444ddd8.tar.gz
Qt-da1dee6894f96b416bb123578cc6e61c6444ddd8.tar.bz2
improve the QScriptEngine::importExtension() autotest
Error messages and __postInit__.
Diffstat (limited to 'tests/auto/qscriptengine/script')
-rw-r--r--tests/auto/qscriptengine/script/com/__init__.js4
-rw-r--r--tests/auto/qscriptengine/script/com/trolltech/__init__.js4
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/qscriptengine/script/com/__init__.js b/tests/auto/qscriptengine/script/com/__init__.js
index 381816a..7db3ee4 100644
--- a/tests/auto/qscriptengine/script/com/__init__.js
+++ b/tests/auto/qscriptengine/script/com/__init__.js
@@ -3,3 +3,7 @@ __setupPackage__("com");
com.wasDefinedAlready = wasDefinedAlready;
com.name = __extension__;
com.level = 1;
+
+com.postInitCallCount = 0;
+com.originalPostInit = __postInit__;
+__postInit__ = function() { ++com.postInitCallCount; };
diff --git a/tests/auto/qscriptengine/script/com/trolltech/__init__.js b/tests/auto/qscriptengine/script/com/trolltech/__init__.js
index f12b17d..a55b132 100644
--- a/tests/auto/qscriptengine/script/com/trolltech/__init__.js
+++ b/tests/auto/qscriptengine/script/com/trolltech/__init__.js
@@ -3,3 +3,7 @@ __setupPackage__("com.trolltech");
com.trolltech.wasDefinedAlready = wasDefinedAlready;
com.trolltech.name = __extension__;
com.trolltech.level = com.level + 1;
+
+com.trolltech.postInitCallCount = 0;
+com.trolltech.originalPostInit = __postInit__;
+__postInit__ = function() { ++com.trolltech.postInitCallCount; };