Commit b143f4a3 authored by Nikolai Kosjar's avatar Nikolai Kosjar Committed by Erik Verbruggen

CppEditor: Mark a test case as expected to fail.

Contributor works on a fix.

Change-Id: I998558b53b6506bcb1398cd2cd783b748b358240
Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@digia.com>
parent c983053c
......@@ -143,7 +143,7 @@ public:
TestCase(CppEditorAction action, const QList<TestDocumentPtr> theTestFiles);
~TestCase();
void run();
void run(bool expectedFail = false);
private:
TestCase(const TestCase &);
......@@ -278,7 +278,7 @@ TestDocumentPtr TestCase::testFileWithTargetCursorMarker()
return TestDocumentPtr();
}
void TestCase::run()
void TestCase::run(bool expectedFail)
{
TestDocumentPtr initialTestFile = testFileWithInitialCursorMarker();
QVERIFY(initialTestFile);
......@@ -318,6 +318,8 @@ void TestCase::run()
&expectedLine, &expectedColumn);
// qDebug() << "Expected line:" << expectedLine;
// qDebug() << "Expected column:" << expectedColumn;
if (expectedFail)
QEXPECT_FAIL("", "Contributor works on a fix.", Abort);
QCOMPARE(currentTextEditor->currentLine(), expectedLine);
QCOMPARE(currentTextEditor->currentColumn() - 1, expectedColumn);
}
......@@ -583,7 +585,7 @@ void CppEditorPlugin::test_FollowSymbolUnderCursor_globalVarFromEnum()
;
TestCase test(TestCase::FollowSymbolUnderCursor, source);
test.run();
test.run(/*expectedFail =*/ true);
}
void CppEditorPlugin::test_FollowSymbolUnderCursor_selfInitialization()
......
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