Add unit test and documentation for module API
authorChris Adams <christopher.adams@nokia.com>
Fri, 6 May 2011 03:18:19 +0000 (13:18 +1000)
committerChris Adams <christopher.adams@nokia.com>
Fri, 6 May 2011 03:56:10 +0000 (13:56 +1000)
commit24bb6f90f828c0dbed06a56536a3f33b35d36506
treec5358296315a856f08e219c9c4fcebf300ed72b4
parente50b7c92998905efdd40314724480e3070bdbcb5
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
src/declarative/qml/qdeclarative.h
tests/auto/declarative/qdeclarativeecmascript/data/moduleApi.qml
tests/auto/declarative/qdeclarativeecmascript/testtypes.cpp
tests/auto/declarative/qdeclarativeecmascript/testtypes.h
tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp