diff options
author | Henry Castro <hcastro@collabora.com> | 2023-09-20 07:44:43 -0400 |
---|---|---|
committer | Henry Castro <hcastro@collabora.com> | 2023-10-04 19:46:13 +0200 |
commit | 3d665f4ee60d994257a29d5fc607d6c88593aed7 (patch) | |
tree | 30f657c6532e126c03aff03801535b5296c5fe1b /uitest | |
parent | a29841ccbdf1e71b9a7c943c5c430d1a1b96234b (diff) |
uitest: add load properties parameters
Add the option to include the load properties
when invoked load_file function.
Signed-off-by: Henry Castro <hcastro@collabora.com>
Change-Id: I27cb31e2470bc76bcc5b760661e50f00fc334d64
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157102
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157567
Tested-by: Jenkins
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/uitest/test.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/uitest/uitest/test.py b/uitest/uitest/test.py index 23ca7f39bc4e..d160b9564d0f 100644 --- a/uitest/uitest/test.py +++ b/uitest/uitest/test.py @@ -81,9 +81,9 @@ class UITest(object): return time.sleep(DEFAULT_SLEEP) - def load_component_from_url(self, url, eventName="OnLoad"): + def load_component_from_url(self, url, eventName="OnLoad", load_props=()): with EventListener(self._xContext, eventName) as event: - component = self.get_desktop().loadComponentFromURL(url, "_default", 0, tuple()) + component = self.get_desktop().loadComponentFromURL(url, "_default", 0, load_props) while True: if event.executed: frames = self.get_frames() @@ -94,9 +94,9 @@ class UITest(object): # Calls UITest.close_doc at exit @contextmanager - def load_file(self, url): + def load_file(self, url, load_props=()): try: - yield self.load_component_from_url(url) + yield self.load_component_from_url(url, "OnLoad", load_props) finally: self.close_doc() |