Fixed autotests.

This commit is contained in:
Erik Verbruggen
2010-06-23 12:45:02 +02:00
parent 5adb6559e2
commit e7088e9c42
4 changed files with 30 additions and 23 deletions

View File

@@ -6,7 +6,6 @@
#include <AST.h>
#include <ASTVisitor.h>
#include <TranslationUnit.h>
#include <CppBindings.h>
#include <CppDocument.h>
#include <FindUsages.h>
#include <Literals.h>
@@ -90,7 +89,6 @@ void tst_FindUsages::inlineMethod()
QCOMPARE(arg->identifier()->chars(), "arg");
FindUsages findUsages(doc, snapshot);
findUsages.setGlobalNamespaceBinding(bind(doc, snapshot));
findUsages(arg);
QCOMPARE(findUsages.usages().size(), 2);
QCOMPARE(findUsages.references().size(), 2);
@@ -150,7 +148,6 @@ void tst_FindUsages::objc_args()
QCOMPARE(arg->identifier()->chars(), "arg");
FindUsages findUsages(doc, snapshot);
findUsages.setGlobalNamespaceBinding(bind(doc, snapshot));
findUsages(arg);
QCOMPARE(findUsages.usages().size(), 2);
QCOMPARE(findUsages.references().size(), 2);
@@ -189,7 +186,6 @@ void tst_FindUsages::qproperty_1()
QCOMPARE(setX_method->argumentCount(), 1U);
FindUsages findUsages(doc, snapshot);
findUsages.setGlobalNamespaceBinding(bind(doc, snapshot));
findUsages(setX_method);
QCOMPARE(findUsages.usages().size(), 2);
QCOMPARE(findUsages.references().size(), 2);