Fix missing code snippet in QTest doc.
Change-Id: I6fb1167634b0acddfa61b92d104d98ba8a1a15cb Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
This commit is contained in:
parent
d835ebf39c
commit
1970552e72
@ -246,5 +246,19 @@ void tst_MyXmlParser::parse()
|
||||
}
|
||||
//! [26]
|
||||
|
||||
//! [27]
|
||||
void TestBenchmark::simple()
|
||||
{
|
||||
QString str1 = QLatin1String("This is a test string");
|
||||
QString str2 = QLatin1String("This is a test string");
|
||||
|
||||
QCOMPARE(str1.localeAwareCompare(str2), 0);
|
||||
|
||||
QBENCHMARK {
|
||||
str1.localeAwareCompare(str2);
|
||||
}
|
||||
}
|
||||
//! [27]
|
||||
|
||||
}
|
||||
|
||||
|
@ -483,7 +483,7 @@ QT_BEGIN_NAMESPACE
|
||||
|
||||
For example:
|
||||
|
||||
\snippet qtestlib/tutorial5/benchmarking.cpp 0
|
||||
\snippet code/src_qtestlib_qtestcase.cpp 27
|
||||
|
||||
\sa {Qt Test Overview#Creating a Benchmark}{Creating a Benchmark},
|
||||
{Chapter 5: Writing a Benchmark}{Writing a Benchmark}
|
||||
|
Loading…
Reference in New Issue
Block a user