From c06d64bb49c26e13d8aa27275838389484bb64a0 Mon Sep 17 00:00:00 2001 From: Rhys Weatherley Date: Thu, 9 Dec 2010 09:50:27 +1000 Subject: Use QtQuickTest as the uniform name for the module --- doc/testcases.txt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'doc') diff --git a/doc/testcases.txt b/doc/testcases.txt index 68c963a..405edae 100644 --- a/doc/testcases.txt +++ b/doc/testcases.txt @@ -31,7 +31,7 @@ Organization of test cases The test cases are launched by a C++ harness that consists of the following code: - #include + #include QTEST_QUICK_MAIN(qmlexample) Where "qmlexample" is an identifier to use to uniquely identify @@ -72,8 +72,8 @@ Basic test cases Test cases are written as JavaScript functions within a "TestCase" element: ---------------------- -import Qt 4.7 -import QtTest 1.0 +import QtQuick 1.0 +import QtQuickTest 1.0 TestCase { name: "MathTests" @@ -167,8 +167,8 @@ Table data can be provided to a test using a function name that ends with "_data": ---------------------- -import Qt 4.7 -import QtTest 1.0 +import QtQuick 1.0 +import QtQuickTest 1.0 TestCase { name: "DataTests" @@ -209,8 +209,8 @@ only when a certain condition is true. For example, the following example runs a test when the user presses the mouse button: ---------------------- -import Qt 4.7 -import QtTest 1.0 +import QtQuick 1.0 +import QtQuickTest 1.0 Rectangle { id: foo -- cgit v1.2.3