tests: fix debug_project.sikuli again.
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Fri, 15 Jul 2022 14:40:55 +0200
changeset 3540 75a83cc07f27
parent 3539 c2eec6aae07e
child 3541 916f553a74c3
tests: fix debug_project.sikuli again.
- tooltip and context menu overlap
- text not being replaced in forcing dialog
editors/Viewer.py
tests/ide_tests/debug_project.sikuli/debug_project.py
--- a/editors/Viewer.py	Fri Jul 15 14:38:33 2022 +0200
+++ b/editors/Viewer.py	Fri Jul 15 14:40:55 2022 +0200
@@ -1909,9 +1909,9 @@
 
     def OnViewerMouseEvent(self, event):
         self.ResetBuffer()
-        if (event.Leaving() or event.RightDown()) and self.ToolTipElement is not None:
+        if (event.Leaving() or event.RightUp()) and self.ToolTipElement is not None:
             self.ToolTipElement.DestroyToolTip()
-        elif (not event.Entering() and not event.RightDown() and
+        elif (not event.Entering() and not event.RightUp() and
               gettime() - self.LastToolTipCheckTime > REFRESH_PERIOD):
             self.LastToolTipCheckTime = gettime()
             element = None
--- a/tests/ide_tests/debug_project.sikuli/debug_project.py	Fri Jul 15 14:38:33 2022 +0200
+++ b/tests/ide_tests/debug_project.sikuli/debug_project.py	Fri Jul 15 14:40:55 2022 +0200
@@ -58,6 +58,8 @@
 
     app.k.SelectAll()
 
+    app.type(Key.DELETE)
+
     app.type("'sys.stdout.write(\"DEBUG TEST OK\\n\")'")
 
     app.type(Key.ENTER)