diff options
author | Christian Stenger <christian.stenger@qt.io> | 2019-05-16 11:50:11 +0200 |
---|---|---|
committer | Christian Stenger <christian.stenger@qt.io> | 2019-05-29 04:48:26 +0000 |
commit | 6505799c443a839be6dfc99a104d0caf848d3aea (patch) | |
tree | 1498f92702d0a387e43cfc76e37ea394e55ef956 | |
parent | 83f37d0838ddf990939717bf96d24f32518c85f4 (diff) |
Squish: Remove unused functions
Change-Id: If53390d65b9013c42f7dcf5834b4caee2bcb8766
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
-rwxr-xr-x | tests/system/shared/suites_qtta.py | 16 | ||||
-rw-r--r-- | tests/system/suite_editors/tst_qml_editor/test.py | 14 |
2 files changed, 0 insertions, 30 deletions
diff --git a/tests/system/shared/suites_qtta.py b/tests/system/shared/suites_qtta.py index 79d5ee3eda..73eb4ee413 100755 --- a/tests/system/shared/suites_qtta.py +++ b/tests/system/shared/suites_qtta.py @@ -79,19 +79,3 @@ def checkIfObjectItemExists(object, item, timeout = 3000): return True except: return False - -# this function creates a string holding the real name of a Qml Item -# param type defines the Qml type (support is limited) -# param container defines the container of the Qml item - can be a real or symbolic name -# param clip defines the state of the clip property (true/false) -# param text a string holding the complete text property (e.g. "text='example'", "text~='ex.*'") -def getQmlItem(type, container, clip, text=""): - if (container.startswith(":")): - container = "'%s'" % container - if clip != None: - clip = ("%s" % __builtin__.bool(clip)).lower() - return ("{clip='%s' container=%s enabled='true' %s type='%s' unnamed='1' visible='true'}" - % (clip, container, text, type)) - else: - return ("{container=%s enabled='true' %s type='%s' unnamed='1' visible='true'}" - % (container, text, type)) diff --git a/tests/system/suite_editors/tst_qml_editor/test.py b/tests/system/suite_editors/tst_qml_editor/test.py index c66c8b8bba..c8e5a66a01 100644 --- a/tests/system/suite_editors/tst_qml_editor/test.py +++ b/tests/system/suite_editors/tst_qml_editor/test.py @@ -175,17 +175,3 @@ def testHovering(): expectedValues = ["#D1DBBD", {"text":'<table><tr><td valign=middle>number</td><td> <img src=":/utils/tooltip/images/f1.png"></td></tr></table>'}] alternativeValues = ["#D6DBBD", None] verifyHoveringOnEditor(editor, lines, additionalKeyPresses, expectedTypes, expectedValues, alternativeValues) - -def __getUnmaskedFilename__(maskedFilename): - name = maskedFilename.split("\\.") - path = name[0].rsplit(".", 1) - if len(path) < 2: - return ".".join(name) - else: - return ".".join((path[1], ".".join(name[1:]))) - -def maskSpecialCharsForProjectTree(filename): - filename = filename.replace("\\", "/").replace("_", "\\_").replace(".","\\.") - # undoing mask operations on chars masked by mistake - filename = filename.replace("/?","\\?").replace("/*","\\*") - return filename |