diff options
author | Laurent Godard <lgodard.libre@laposte.net> | 2015-06-08 10:24:42 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2015-06-23 06:38:56 +0000 |
commit | 187445b2d2885ced92be37ffb11cd2a9bb11f8d6 (patch) | |
tree | 1aef8d03508376156d4f987083a9f148da4602f5 /unotest/source/python/org | |
parent | 77cc71476bae2b3655102e2c29d36af40a393201 (diff) |
Uno api sidebar unit test tdf#91806
- python test subsequentcheck
- correct deck setTitle APi (UI update)
- enhance UnoInProcess for flexiility in loading parameter
Change-Id: Id04cb78c6162ac84fb3bfd8577f84763109d993e
Reviewed-on: https://gerrit.libreoffice.org/16180
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'unotest/source/python/org')
-rw-r--r-- | unotest/source/python/org/libreoffice/unotest.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/unotest/source/python/org/libreoffice/unotest.py b/unotest/source/python/org/libreoffice/unotest.py index eb13d374e83c..ab3cd8a4919d 100644 --- a/unotest/source/python/org/libreoffice/unotest.py +++ b/unotest/source/python/org/libreoffice/unotest.py @@ -186,6 +186,20 @@ class UnoInProcess: assert(self.xDoc) return self.xDoc + def openEmptyCalcDoc(self): + self.xDoc = self.openEmptyDoc("private:factory/scalc") + return self.xDoc + + def openEmptyDoc(self, url, bHidden = True, bReadOnly = False): + assert(self.xContext) + smgr = self.getContext().ServiceManager + desktop = smgr.createInstanceWithContext("com.sun.star.frame.Desktop", self.getContext()) + props = [("Hidden", bHidden), ("ReadOnly", bReadOnly)] + loadProps = tuple([mkPropertyValue(name, value) for (name, value) in props]) + self.xDoc = desktop.loadComponentFromURL(url, "_blank", 0, loadProps) + assert(self.xDoc) + return self.xDoc + def openWriterTemplateDoc(self, file): assert(self.xContext) smgr = self.getContext().ServiceManager |