[Libreoffice-commits] .: test/doc
Miklos Vajna
vmiklos at kemper.freedesktop.org
Sat Jan 5 06:19:40 PST 2013
test/doc/test.py | 6 ++++++
test/doc/zoom.doc |binary
test/doc/zoom.rtf | 1 +
3 files changed, 7 insertions(+)
New commits:
commit 8a896106388a4c0bfb1b8a889e9dba48611a703d
Author: Miklos Vajna <vmiklos at suse.cz>
Date: Sat Jan 5 15:19:08 2013 +0100
doc: add zoom testcase
diff --git a/test/doc/test.py b/test/doc/test.py
index cbb866b..43c7f16 100755
--- a/test/doc/test.py
+++ b/test/doc/test.py
@@ -114,6 +114,12 @@ class Test(unittest.TestCase):
self.assertEqual('Hello', commentEnds[0].findall('transformed')[0].attrib['value'])
self.assertEqual('This', commentEnds[1].findall('transformed')[0].attrib['value'])
+ def test_zoom(self):
+ self.dump('zoom')
+ dopBase = self.root.findall('stream[@name="WordDocument"]/fib/fibRgFcLcbBlob/lcbDop/dop/dop2007/dop2003/dop2002/dop2000/dop97/dop95/dopBase')[0]
+ # Zoom is 42%
+ self.assertEqual('0x2a', dopBase.findall('pctWwdSaved')[0].attrib['value'])
+
if __name__ == '__main__':
unittest.main()
diff --git a/test/doc/zoom.doc b/test/doc/zoom.doc
new file mode 100644
index 0000000..0d6cf6e
Binary files /dev/null and b/test/doc/zoom.doc differ
diff --git a/test/doc/zoom.rtf b/test/doc/zoom.rtf
new file mode 100644
index 0000000..c7fd19b
--- /dev/null
+++ b/test/doc/zoom.rtf
@@ -0,0 +1 @@
+{\rtf1\viewscale42 Hello world!\par}
More information about the Libreoffice-commits
mailing list