summaryrefslogtreecommitdiff
path: root/tests/auto/cplusplus/findusages/tst_findusages.cpp
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@nokia.com>2011-01-20 15:05:27 +0100
committerErik Verbruggen <erik.verbruggen@nokia.com>2011-01-20 15:05:27 +0100
commitbe3f3a159d932bce8b71b9836059607c92a443bb (patch)
treeb4dde267e31f09715ab727d7366ceed1ef3da281 /tests/auto/cplusplus/findusages/tst_findusages.cpp
parent6b153c874783efbdffb2a18ee357fc53bbc95412 (diff)
downloadqt-creator-be3f3a159d932bce8b71b9836059607c92a443bb.tar.gz
Corrected fix to the FindUsages auto-tests.
Diffstat (limited to 'tests/auto/cplusplus/findusages/tst_findusages.cpp')
-rw-r--r--tests/auto/cplusplus/findusages/tst_findusages.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/cplusplus/findusages/tst_findusages.cpp b/tests/auto/cplusplus/findusages/tst_findusages.cpp
index f09a07680d..2d423e06f0 100644
--- a/tests/auto/cplusplus/findusages/tst_findusages.cpp
+++ b/tests/auto/cplusplus/findusages/tst_findusages.cpp
@@ -89,7 +89,7 @@ void tst_FindUsages::inlineMethod()
QVERIFY(arg);
QCOMPARE(arg->identifier()->chars(), "arg");
- FindUsages findUsages(QByteArray(), doc, snapshot);
+ FindUsages findUsages(src, doc, snapshot);
findUsages(arg);
QCOMPARE(findUsages.usages().size(), 2);
QCOMPARE(findUsages.references().size(), 2);
@@ -148,7 +148,7 @@ void tst_FindUsages::objc_args()
Argument *arg = methodImpl->argumentAt(0)->asArgument();
QCOMPARE(arg->identifier()->chars(), "arg");
- FindUsages findUsages(QByteArray(), doc, snapshot);
+ FindUsages findUsages(objcSource, doc, snapshot);
findUsages(arg);
QCOMPARE(findUsages.usages().size(), 2);
QCOMPARE(findUsages.references().size(), 2);
@@ -186,7 +186,7 @@ void tst_FindUsages::qproperty_1()
QCOMPARE(setX_method->identifier()->chars(), "setX");
QCOMPARE(setX_method->argumentCount(), 1U);
- FindUsages findUsages(QByteArray(), doc, snapshot);
+ FindUsages findUsages(src, doc, snapshot);
findUsages(setX_method);
QCOMPARE(findUsages.usages().size(), 2);
QCOMPARE(findUsages.references().size(), 2);