Add init_data() function for default data driven testing
authorCharles Yin <yinyunqiao@gmail.com>
Fri, 30 Mar 2012 12:59:20 +0000 (22:59 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 3 Apr 2012 05:50:17 +0000 (07:50 +0200)
commit5b090cd9bc642582d214addba154ed022f6e537e
treee4474c9bc23cf2b90ca3b2d7702b55ad2b9d6192
parent817c0741d1d3e1dc1c505652ba764fe96b584aac
Add init_data() function for default data driven testing

If all or some test functions share the same test data, the test data
can be put into init_data() function, this can reduce unnecessary code
duplications.

Change-Id: I118dd9c3c1d0f2f238aab6e25e5d8af80b3d3049
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
src/imports/testlib/TestCase.qml
src/imports/testlib/testcase.qdoc