Kaydet (Commit) 462048b3 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

fix test failure

Change-Id: Ia963b3930b5d2d0ab612619e0165dadd058b3fda
Reviewed-on: https://gerrit.libreoffice.org/29372Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
üst 0fff0211
......@@ -22,10 +22,14 @@ class UITest(object):
def __init__(self, xUITest, xContext):
self._xUITest = xUITest
self._xContext = xContext
self._desktop = None
def get_desktop(self):
desktop = self._xContext.ServiceManager.createInstanceWithContext("com.sun.star.frame.Desktop", self._xContext)
return desktop
if self._desktop:
return self._desktop
self._desktop = self._xContext.ServiceManager.createInstanceWithContext("com.sun.star.frame.Desktop", self._xContext)
return self._desktop
def get_frames(self):
desktop = self.get_desktop()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment