summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppcompletion_test.cpp
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2013-12-27 00:05:59 +0200
committerOrgad Shaneh <orgads@gmail.com>2013-12-28 19:17:58 +0100
commitf7e6c400945ac47e05819e6bc6828a1f6a29757d (patch)
treef8eaa24e6dec1a5adff282c4a8cf1b2a65b70673 /src/plugins/cpptools/cppcompletion_test.cpp
parented13ba2d0c7a3e984f580eb032df690c9e45330c (diff)
downloadqt-creator-f7e6c400945ac47e05819e6bc6828a1f6a29757d.tar.gz
CppTools: Uncomment a test and fix it
The bug was fixed long time ago, the test is missing a semicolon Change-Id: I0236048d2da059fe208591469fb69541705463cf Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
Diffstat (limited to 'src/plugins/cpptools/cppcompletion_test.cpp')
-rw-r--r--src/plugins/cpptools/cppcompletion_test.cpp47
1 files changed, 23 insertions, 24 deletions
diff --git a/src/plugins/cpptools/cppcompletion_test.cpp b/src/plugins/cpptools/cppcompletion_test.cpp
index 8ed54b8057..4171cc7593 100644
--- a/src/plugins/cpptools/cppcompletion_test.cpp
+++ b/src/plugins/cpptools/cppcompletion_test.cpp
@@ -707,30 +707,29 @@ void CppToolsPlugin::test_completion_data()
<< QLatin1String("Final")
<< QLatin1String("Global"));
- // This test does not work due to the bug QTCREATORBUG-7912
-// QTest::newRow("use_global_identifier_as_base_class: derived is enclosed by template. "
-// "base as global") << _(
-// "struct Global\n"
-// "{\n"
-// " int int_global;\n"
-// "};\n"
-// "\n"
-// "template <typename T>\n"
-// "struct Enclosing\n"
-// "{\n"
-// "struct Final : ::Global\n"
-// "{\n"
-// " int int_final;\n"
-// "};\n"
-// "}\n"
-// "\n"
-// "Enclosing<int>::Final c;\n"
-// "@\n"
-// ) << _("c.") << (QStringList()
-// << QLatin1String("int_global")
-// << QLatin1String("int_final")
-// << QLatin1String("Final")
-// << QLatin1String("Global"));
+ QTest::newRow("use_global_identifier_as_base_class: derived is enclosed by template. "
+ "base as global") << _(
+ "struct Global\n"
+ "{\n"
+ " int int_global;\n"
+ "};\n"
+ "\n"
+ "template <typename T>\n"
+ "struct Enclosing\n"
+ "{\n"
+ "struct Final : ::Global\n"
+ "{\n"
+ " int int_final;\n"
+ "};\n"
+ "};\n"
+ "\n"
+ "Enclosing<int>::Final c;\n"
+ "@\n"
+ ) << _("c.") << (QStringList()
+ << QLatin1String("int_global")
+ << QLatin1String("int_final")
+ << QLatin1String("Final")
+ << QLatin1String("Global"));
QTest::newRow("base_class_has_name_the_same_as_derived: base class is derived class") << _(
"struct A : A\n"