Commit e07f6e8e authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

CppEditor: Refactor tests



* Use more data functions
* Better use of QEXPECT_FAIL
* Less noise when adding a test

Change-Id: I0ebc4eaf2bf9f2bcff3be25bbe6c14e3087f8c56
Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@digia.com>
parent 08df0e47
......@@ -95,46 +95,24 @@ private slots:
#ifdef WITH_TESTS
private slots:
// The following tests expect that no projects are loaded on start-up.
void test_SwitchMethodDeclarationDefinition_fromFunctionDeclarationSymbol();
void test_SwitchMethodDeclarationDefinition_fromFunctionDefinitionSymbol();
void test_SwitchMethodDeclarationDefinition_fromFunctionBody();
void test_SwitchMethodDeclarationDefinition_fromReturnType();
void test_FollowSymbolUnderCursor_globalVarFromFunction();
void test_FollowSymbolUnderCursor_funLocalVarHidesClassMember();
void test_FollowSymbolUnderCursor_funLocalVarHidesNamespaceMemberIntroducedByUsingDirective();
void test_FollowSymbolUnderCursor_loopLocalVarHidesOuterScopeVariable1();
void test_FollowSymbolUnderCursor_loopLocalVarHidesOuterScopeVariable2();
void test_FollowSymbolUnderCursor_subsequentDefinedClassMember();
void test_FollowSymbolUnderCursor_classMemberHidesOuterTypeDef();
void test_FollowSymbolUnderCursor_globalVarFromEnum();
void test_FollowSymbolUnderCursor_selfInitialization();
void test_FollowSymbolUnderCursor_pointerToClassInClassDefinition();
void test_FollowSymbolUnderCursor_previouslyDefinedMemberFromArrayDefinition();
void test_FollowSymbolUnderCursor_outerStaticMemberVariableFromInsideSubclass();
void test_FollowSymbolUnderCursor_memberVariableFollowingDotOperator();
void test_FollowSymbolUnderCursor_memberVariableFollowingArrowOperator();
void test_FollowSymbolUnderCursor_staticMemberVariableFollowingScopeOperator();
void test_FollowSymbolUnderCursor_staticMemberVariableFollowingDotOperator();
void test_FollowSymbolUnderCursor_staticMemberVariableFollowingArrowOperator();
void test_FollowSymbolUnderCursor_previouslyDefinedEnumValueFromInsideEnum();
void test_FollowSymbolUnderCursor_nsMemberHidesNsMemberIntroducedByUsingDirective();
void test_FollowSymbolUnderCursor_baseClassFunctionIntroducedByUsingDeclaration();
void test_FollowSymbolUnderCursor_funWithSameNameAsBaseClassFunIntroducedByUsingDeclaration();
void test_FollowSymbolUnderCursor_funLocalVarHidesOuterClass();
void test_FollowSymbolUnderCursor_classConstructor();
void test_FollowSymbolUnderCursor_classDestructor();
void test_SwitchMethodDeclarationDefinition_data();
void test_SwitchMethodDeclarationDefinition();
void test_FollowSymbolUnderCursor_data();
void test_FollowSymbolUnderCursor();
void test_FollowSymbolUnderCursor_QObject_connect_data();
void test_FollowSymbolUnderCursor_QObject_connect();
void test_FollowSymbolUnderCursor_classOperator_onOperatorToken_data();
void test_FollowSymbolUnderCursor_classOperator_onOperatorToken();
void test_FollowSymbolUnderCursor_classOperator_data();
void test_FollowSymbolUnderCursor_classOperator();
void test_FollowSymbolUnderCursor_classOperator_inOp_data();
void test_FollowSymbolUnderCursor_classOperator_inOp();
void test_FollowSymbolUnderCursor_using_QTCREATORBUG7903_globalNamespace();
void test_FollowSymbolUnderCursor_using_QTCREATORBUG7903_namespace();
void test_FollowSymbolUnderCursor_using_QTCREATORBUG7903_insideFunction();
void test_FollowSymbolUnderCursor_virtualFunctionCall_allOverrides();
void test_FollowSymbolUnderCursor_virtualFunctionCall_possibleOverrides1();
void test_FollowSymbolUnderCursor_virtualFunctionCall_possibleOverrides2();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment