diff options
author | Chris Adams <christopher.adams@nokia.com> | 2011-05-06 13:18:19 +1000 |
---|---|---|
committer | Chris Adams <christopher.adams@nokia.com> | 2011-05-06 13:56:10 +1000 |
commit | 24bb6f90f828c0dbed06a56536a3f33b35d36506 (patch) | |
tree | c5358296315a856f08e219c9c4fcebf300ed72b4 /tests/auto/declarative/qdeclarativeecmascript/testtypes.cpp | |
parent | e50b7c92998905efdd40314724480e3070bdbcb5 (diff) |
Add unit test and documentation for module API
Related to commit ae6c7a44394d4a5f943f1fc92f4de015ec7bcc96.
Previously, only property access on module API was tested.
This commit adds a test which calls a method on a module API.
It also adds documentation for the qmlRegisterModuleApi functions.
Task-number: QMLNG-33
Reviewed-by: Martin Jones
Diffstat (limited to 'tests/auto/declarative/qdeclarativeecmascript/testtypes.cpp')
-rw-r--r-- | tests/auto/declarative/qdeclarativeecmascript/testtypes.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/auto/declarative/qdeclarativeecmascript/testtypes.cpp b/tests/auto/declarative/qdeclarativeecmascript/testtypes.cpp index 7256d442e3..44d0046b74 100644 --- a/tests/auto/declarative/qdeclarativeecmascript/testtypes.cpp +++ b/tests/auto/declarative/qdeclarativeecmascript/testtypes.cpp @@ -104,7 +104,6 @@ public: static QScriptValue script_api(QDeclarativeEngine *engine, QScriptEngine *scriptEngine) { Q_UNUSED(engine) - Q_UNUSED(scriptEngine) static int testProperty = 13; QScriptValue v = scriptEngine->newObject(); |