Squish: Adjust expectations in tst_CSUP06

Task-number: QTCREATORBUG-22729
Change-Id: If945eaf188358a69e32e659a4bfa97a6a5e20083
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Robert Loehning
2020-06-30 22:03:36 +02:00
parent 2dddc8520b
commit 2bb89a0fb2

View File

@@ -97,14 +97,12 @@ def checkSymbolCompletion(editor, isClangCodeModel):
"dummy.o":["one", "ONE"], "Dummy::In":["Internal", "INT"], "dummy.o":["one", "ONE"], "Dummy::In":["Internal", "INT"],
"Dummy::Internal::":["DOUBLE", "one"] "Dummy::Internal::":["DOUBLE", "one"]
} }
missing = ["Dummy::s", "Dummy::P", "dummy.b", "dummy.bla(", "internal.o", "freefunc2", missing = ["Dummy::s", "Dummy::P", "dummy.b", "dummy.bla(", "internal.o", "freefunc2"]
"afun"]
expectedResults = {"dummy.":"dummy.foo(", "Dummy::s":"Dummy::sfunc()", expectedResults = {"dummy.":"dummy.foo(", "Dummy::s":"Dummy::sfunc()",
"Dummy::P":"Dummy::PI", "dummy.b":"dummy.bla(", "dummy.bla(":"dummy.bla(", "Dummy::P":"Dummy::PI", "dummy.b":"dummy.bla(", "dummy.bla(":"dummy.bla(",
"internal.o":"internal.one", "freefunc2":"freefunc2(", "internal.o":"internal.one", "freefunc2":"freefunc2(",
"using namespace st":"using namespace std", "afun":"afunc()"} "using namespace st":"using namespace std", "afun":"afunc()"}
if isClangCodeModel: if isClangCodeModel:
missing.remove("Dummy::s") # QTCREATORBUG-22729
missing.remove("internal.o") missing.remove("internal.o")
expectedSuggestion["in"] = ["internal", "int"] # QTCREATORBUG-22728 expectedSuggestion["in"] = ["internal", "int"] # QTCREATORBUG-22728
expectedSuggestion["internal.o"] = ["one", "operator="] expectedSuggestion["internal.o"] = ["one", "operator="]
@@ -113,7 +111,6 @@ def checkSymbolCompletion(editor, isClangCodeModel):
else: else:
expectedSuggestion["using namespace st"] = ["std", "struct ", "struct template"] expectedSuggestion["using namespace st"] = ["std", "struct ", "struct template"]
else: else:
missing.remove("afun")
expectedSuggestion["using namespace st"] = ["std", "st"] expectedSuggestion["using namespace st"] = ["std", "st"]
# define test function to perform the _real_ auto completion test on the current line # define test function to perform the _real_ auto completion test on the current line
def testSymb(currentLine, *args): def testSymb(currentLine, *args):