forked from qt-creator/qt-creator
Squish: Replaced duplicate bugreport
Change-Id: I73bc3a633e47ddd0580976dd355da323e2426b4f Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
@@ -64,7 +64,7 @@ def widgetContainsPoint(widget, point):
|
||||
def openContextMenuOnTextCursorPosition(editor):
|
||||
rect = editor.cursorRect(editor.textCursor())
|
||||
if platform.system() == 'Darwin':
|
||||
JIRA.performWorkaroundIfStillOpen(6918, JIRA.Bug.CREATOR, editor)
|
||||
JIRA.performWorkaroundIfStillOpen(8735, JIRA.Bug.CREATOR, editor)
|
||||
openContextMenu(editor, rect.x+rect.width/2, rect.y+rect.height/2, 0)
|
||||
menuInList = [None]
|
||||
waitFor("menuVisibleAtEditor(editor, menuInList)", 5000)
|
||||
|
@@ -201,7 +201,7 @@ class JIRA:
|
||||
def __initBugDict__(self):
|
||||
self.__bugs__= {
|
||||
'QTCREATORBUG-6853':self._workaroundCreator6853_,
|
||||
'QTCREATORBUG-6918':self._workaroundCreator_MacEditorFocus_
|
||||
'QTCREATORBUG-8735':self._workaroundCreator_MacEditorFocus_
|
||||
}
|
||||
# helper function - will be called if no workaround for the requested bug is deposited
|
||||
def _exitFatal_(self, bugType, number):
|
||||
|
@@ -39,7 +39,7 @@ def main():
|
||||
# Creator will show you the declaration of the variable.
|
||||
|
||||
if platform.system() == "Darwin":
|
||||
JIRA.performWorkaroundIfStillOpen(6918, JIRA.Bug.CREATOR, cppwindow)
|
||||
JIRA.performWorkaroundIfStillOpen(8735, JIRA.Bug.CREATOR, cppwindow)
|
||||
|
||||
type(cppwindow, "<Ctrl+F>")
|
||||
type(waitForObject(":*Qt Creator.findEdit_Utils::FilterLineEdit"), " xi")
|
||||
|
@@ -39,7 +39,7 @@ def main():
|
||||
continue
|
||||
|
||||
if platform.system() == 'Darwin':
|
||||
JIRA.performWorkaroundIfStillOpen(6918, JIRA.Bug.CREATOR, editor)
|
||||
JIRA.performWorkaroundIfStillOpen(8735, JIRA.Bug.CREATOR, editor)
|
||||
contentBefore = readFile(currentFile)
|
||||
popupText = "The file %s was removed. Do you want to save it under a different name, or close the editor?"
|
||||
os.remove(currentFile)
|
||||
|
@@ -63,7 +63,7 @@ def __modifyProFile__():
|
||||
def __modifyHeader__():
|
||||
global cppEditorStr, homeShortCut, endShortCut
|
||||
if platform.system() == "Darwin":
|
||||
JIRA.performWorkaroundIfStillOpen(6918, JIRA.Bug.CREATOR, waitForObject(cppEditorStr, 1000))
|
||||
JIRA.performWorkaroundIfStillOpen(8735, JIRA.Bug.CREATOR, waitForObject(cppEditorStr, 1000))
|
||||
if placeCursorToLine(cppEditorStr, "class.+", True):
|
||||
type(cppEditorStr, homeShortCut)
|
||||
markText(cppEditorStr, "Down", 5)
|
||||
|
@@ -30,7 +30,7 @@ def main():
|
||||
"Skipping this file for now.")
|
||||
continue
|
||||
if platform.system() == 'Darwin':
|
||||
JIRA.performWorkaroundIfStillOpen(6918, JIRA.Bug.CREATOR, editor)
|
||||
JIRA.performWorkaroundIfStillOpen(8735, JIRA.Bug.CREATOR, editor)
|
||||
for key in ["<Up>", "<Down>", "<Left>", "<Right>"]:
|
||||
test.log("Selecting everything")
|
||||
invokeMenuItem("Edit", "Select All")
|
||||
|
Reference in New Issue
Block a user