summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppcodegen_test.cpp
diff options
context:
space:
mode:
authorLeandro Melo <leandro.melo@nokia.com>2012-09-06 17:36:40 +0200
committerLeandro Melo <leandro.melo@nokia.com>2012-09-07 10:13:20 +0200
commit8ea4ed6b53a80a3c1a01d24b19263f1991cb4f49 (patch)
tree1dc506a50cbae52216650043739f07df6f77401a /src/plugins/cpptools/cppcodegen_test.cpp
parentb56b1c7d5917a5b4f72b2e0da01b2c2c71002616 (diff)
downloadqt-creator-8ea4ed6b53a80a3c1a01d24b19263f1991cb4f49.tar.gz
C++: Fix add definition test
To be consistent with the change 5b847a66dfc762e3a8049860ca036be195faba89 in the InsertionPointLocator. Nevertheless, there are still issues to be addressed in this class so we probably need more test cases when those are handled. Task-number: QTCREATORBUG-7833 Change-Id: Ie9abdd70566063a94350723432215d030c154fab Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
Diffstat (limited to 'src/plugins/cpptools/cppcodegen_test.cpp')
-rw-r--r--src/plugins/cpptools/cppcodegen_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/cpptools/cppcodegen_test.cpp b/src/plugins/cpptools/cppcodegen_test.cpp
index a994e0b7b1..67a9e4fe50 100644
--- a/src/plugins/cpptools/cppcodegen_test.cpp
+++ b/src/plugins/cpptools/cppcodegen_test.cpp
@@ -416,8 +416,8 @@ void CppToolsPlugin::test_codegen_definition_empty_class()
QCOMPARE(loc.fileName(), dst->fileName());
QCOMPARE(loc.prefix(), QLatin1String("\n\n"));
QCOMPARE(loc.suffix(), QString());
- QCOMPARE(loc.line(), 1U);
- QCOMPARE(loc.column(), 7U);
+ QCOMPARE(loc.line(), 3U);
+ QCOMPARE(loc.column(), 1U);
}
void CppToolsPlugin::test_codegen_definition_first_member()