Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
cloudooo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Tyagov
cloudooo
Commits
6fe9f889
Commit
6fe9f889
authored
Jan 14, 2017
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: update for LibreOffice 5.2.4.2.
parent
c4c753f2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
91 deletions
+6
-91
cloudooo/handler/ooo/tests/testOooHandler.py
cloudooo/handler/ooo/tests/testOooHandler.py
+0
-85
cloudooo/handler/ooo/tests/testOooServer.py
cloudooo/handler/ooo/tests/testOooServer.py
+6
-6
No files found.
cloudooo/handler/ooo/tests/testOooHandler.py
View file @
6fe9f889
...
...
@@ -232,12 +232,7 @@ class TestHandler(HandlerTestCase):
(
'image/png'
,
'PNG - Portable Network Graphic'
),
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/x-cmu-raster'
,
'RAS - Sun Raster Image'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'image/x-portable-bitmap'
,
'PBM - Portable Bitmap'
),
(
'image/x-portable-graymap'
,
'PGM - Portable Graymap'
),
(
'image/x-portable-pixmap'
,
'PPM - Portable Pixelmap'
),
(
'image/x-xpixmap'
,
'XPM - X PixMap'
),
(
'text/html'
,
'HTML Document (Draw)'
)
])
def
testGetAllowedConversionFormatList_TextRtf
(
self
):
...
...
@@ -292,12 +287,7 @@ class TestHandler(HandlerTestCase):
(
'image/png'
,
'PNG - Portable Network Graphic'
),
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/x-cmu-raster'
,
'RAS - Sun Raster Image'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'image/x-portable-bitmap'
,
'PBM - Portable Bitmap'
),
(
'image/x-portable-graymap'
,
'PGM - Portable Graymap'
),
(
'image/x-portable-pixmap'
,
'PPM - Portable Pixelmap'
),
(
'image/x-xpixmap'
,
'XPM - X PixMap'
),
(
'text/html'
,
'HTML Document (Draw)'
)
])
def
testGetAllowedConversionFormatList_ImagePng
(
self
):
...
...
@@ -311,12 +301,7 @@ class TestHandler(HandlerTestCase):
(
'image/jpeg'
,
'JPEG - Joint Photographic Experts Group'
),
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/x-cmu-raster'
,
'RAS - Sun Raster Image'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'image/x-portable-bitmap'
,
'PBM - Portable Bitmap'
),
(
'image/x-portable-graymap'
,
'PGM - Portable Graymap'
),
(
'image/x-portable-pixmap'
,
'PPM - Portable Pixelmap'
),
(
'image/x-xpixmap'
,
'XPM - X PixMap'
),
(
'text/html'
,
'HTML Document (Draw)'
)
])
def
testGetAllowedConversionFormatList_TextHtml
(
self
):
...
...
@@ -355,12 +340,7 @@ class TestHandler(HandlerTestCase):
(
'image/png'
,
'PNG - Portable Network Graphic'
),
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/x-cmu-raster'
,
'RAS - Sun Raster Image'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'image/x-portable-bitmap'
,
'PBM - Portable Bitmap'
),
(
'image/x-portable-graymap'
,
'PGM - Portable Graymap'
),
(
'image/x-portable-pixmap'
,
'PPM - Portable Pixelmap'
),
(
'image/x-xpixmap'
,
'XPM - X PixMap'
),
(
'text/html'
,
'HTML Document (Draw)'
)
])
def
testGetAllowedConversionFormatList_ApplicationVndOasisOpendocumentGraphics
(
self
):
...
...
@@ -374,12 +354,7 @@ class TestHandler(HandlerTestCase):
(
'image/png'
,
'PNG - Portable Network Graphic'
),
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/x-cmu-raster'
,
'RAS - Sun Raster Image'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'image/x-portable-bitmap'
,
'PBM - Portable Bitmap'
),
(
'image/x-portable-graymap'
,
'PGM - Portable Graymap'
),
(
'image/x-portable-pixmap'
,
'PPM - Portable Pixelmap'
),
(
'image/x-xpixmap'
,
'XPM - X PixMap'
),
(
'text/html'
,
'HTML Document (Draw)'
)
])
def
testGetAllowedConversionFormatList_ImageGif
(
self
):
...
...
@@ -393,12 +368,7 @@ class TestHandler(HandlerTestCase):
(
'image/png'
,
'PNG - Portable Network Graphic'
),
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/x-cmu-raster'
,
'RAS - Sun Raster Image'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'image/x-portable-bitmap'
,
'PBM - Portable Bitmap'
),
(
'image/x-portable-graymap'
,
'PGM - Portable Graymap'
),
(
'image/x-portable-pixmap'
,
'PPM - Portable Pixelmap'
),
(
'image/x-xpixmap'
,
'XPM - X PixMap'
),
(
'text/html'
,
'HTML Document (Draw)'
)
])
def
testGetAllowedConversionFormatList_ImageSvgXml
(
self
):
...
...
@@ -412,12 +382,7 @@ class TestHandler(HandlerTestCase):
(
'image/jpeg'
,
'JPEG - Joint Photographic Experts Group'
),
(
'image/png'
,
'PNG - Portable Network Graphic'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/x-cmu-raster'
,
'RAS - Sun Raster Image'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'image/x-portable-bitmap'
,
'PBM - Portable Bitmap'
),
(
'image/x-portable-graymap'
,
'PGM - Portable Graymap'
),
(
'image/x-portable-pixmap'
,
'PPM - Portable Pixelmap'
),
(
'image/x-xpixmap'
,
'XPM - X PixMap'
),
(
'text/html'
,
'HTML Document (Draw)'
)
])
def
testGetAllowedConversionFormatList_ImageTiff
(
self
):
...
...
@@ -431,12 +396,7 @@ class TestHandler(HandlerTestCase):
(
'image/jpeg'
,
'JPEG - Joint Photographic Experts Group'
),
(
'image/png'
,
'PNG - Portable Network Graphic'
),
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/x-cmu-raster'
,
'RAS - Sun Raster Image'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'image/x-portable-bitmap'
,
'PBM - Portable Bitmap'
),
(
'image/x-portable-graymap'
,
'PGM - Portable Graymap'
),
(
'image/x-portable-pixmap'
,
'PPM - Portable Pixelmap'
),
(
'image/x-xpixmap'
,
'XPM - X PixMap'
),
(
'text/html'
,
'HTML Document (Draw)'
)
])
def
testGetAllowedConversionFormatList_ImageXCmuRaster
(
self
):
...
...
@@ -452,10 +412,6 @@ class TestHandler(HandlerTestCase):
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'image/x-portable-bitmap'
,
'PBM - Portable Bitmap'
),
(
'image/x-portable-graymap'
,
'PGM - Portable Graymap'
),
(
'image/x-portable-pixmap'
,
'PPM - Portable Pixelmap'
),
(
'image/x-xpixmap'
,
'XPM - X PixMap'
),
(
'text/html'
,
'HTML Document (Draw)'
)
])
def
testGetAllowedConversionFormatList_ImageBmp
(
self
):
...
...
@@ -470,11 +426,6 @@ class TestHandler(HandlerTestCase):
(
'image/png'
,
'PNG - Portable Network Graphic'
),
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/x-cmu-raster'
,
'RAS - Sun Raster Image'
),
(
'image/x-portable-bitmap'
,
'PBM - Portable Bitmap'
),
(
'image/x-portable-graymap'
,
'PGM - Portable Graymap'
),
(
'image/x-portable-pixmap'
,
'PPM - Portable Pixelmap'
),
(
'image/x-xpixmap'
,
'XPM - X PixMap'
),
(
'text/html'
,
'HTML Document (Draw)'
)
])
def
testGetAllowedConversionFormatList_ImageXPortableBitmap
(
self
):
...
...
@@ -489,11 +440,7 @@ class TestHandler(HandlerTestCase):
(
'image/png'
,
'PNG - Portable Network Graphic'
),
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/x-cmu-raster'
,
'RAS - Sun Raster Image'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'image/x-portable-graymap'
,
'PGM - Portable Graymap'
),
(
'image/x-portable-pixmap'
,
'PPM - Portable Pixelmap'
),
(
'image/x-xpixmap'
,
'XPM - X PixMap'
),
(
'text/html'
,
'HTML Document (Draw)'
)
])
def
testGetAllowedConversionFormatList_ImageXPortableGraymap
(
self
):
...
...
@@ -508,11 +455,7 @@ class TestHandler(HandlerTestCase):
(
'image/png'
,
'PNG - Portable Network Graphic'
),
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/x-cmu-raster'
,
'RAS - Sun Raster Image'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'image/x-portable-bitmap'
,
'PBM - Portable Bitmap'
),
(
'image/x-portable-pixmap'
,
'PPM - Portable Pixelmap'
),
(
'image/x-xpixmap'
,
'XPM - X PixMap'
),
(
'text/html'
,
'HTML Document (Draw)'
)
])
def
testGetAllowedConversionFormatList_ImageXPortablePixmap
(
self
):
...
...
@@ -527,11 +470,7 @@ class TestHandler(HandlerTestCase):
(
'image/png'
,
'PNG - Portable Network Graphic'
),
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/x-cmu-raster'
,
'RAS - Sun Raster Image'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'image/x-portable-bitmap'
,
'PBM - Portable Bitmap'
),
(
'image/x-portable-graymap'
,
'PGM - Portable Graymap'
),
(
'image/x-xpixmap'
,
'XPM - X PixMap'
),
(
'text/html'
,
'HTML Document (Draw)'
)
])
def
testGetAllowedConversionFormatList_ImageXXpixmap
(
self
):
...
...
@@ -546,11 +485,7 @@ class TestHandler(HandlerTestCase):
(
'image/png'
,
'PNG - Portable Network Graphic'
),
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/x-cmu-raster'
,
'RAS - Sun Raster Image'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'image/x-portable-bitmap'
,
'PBM - Portable Bitmap'
),
(
'image/x-portable-graymap'
,
'PGM - Portable Graymap'
),
(
'image/x-portable-pixmap'
,
'PPM - Portable Pixelmap'
),
(
'text/html'
,
'HTML Document (Draw)'
)
])
def
testGetAllowedConversionFormatList_ApplicationVndMsExcel
(
self
):
...
...
@@ -658,12 +593,7 @@ class TestHandler(HandlerTestCase):
(
'image/png'
,
'PNG - Portable Network Graphic'
),
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/x-cmu-raster'
,
'RAS - Sun Raster Image'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'image/x-portable-bitmap'
,
'PBM - Portable Bitmap'
),
(
'image/x-portable-graymap'
,
'PGM - Portable Graymap'
),
(
'image/x-portable-pixmap'
,
'PPM - Portable Pixelmap'
),
(
'image/x-xpixmap'
,
'XPM - X PixMap'
),
(
'text/html'
,
'HTML Document (Impress)'
)
])
def
testGetAllowedConversionFormatList_ApplicationVndOpenxmlformatsOfficedocumentPresentationmlPresentation
(
self
):
...
...
@@ -683,12 +613,7 @@ class TestHandler(HandlerTestCase):
(
'image/png'
,
'PNG - Portable Network Graphic'
),
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/x-cmu-raster'
,
'RAS - Sun Raster Image'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'image/x-portable-bitmap'
,
'PBM - Portable Bitmap'
),
(
'image/x-portable-graymap'
,
'PGM - Portable Graymap'
),
(
'image/x-portable-pixmap'
,
'PPM - Portable Pixelmap'
),
(
'image/x-xpixmap'
,
'XPM - X PixMap'
),
(
'text/html'
,
'HTML Document (Impress)'
)
])
def
testGetAllowedConversionFormatList_ApplicationVndOpenxmlformatsOfficedocumentPresentationmlSlideshow
(
self
):
...
...
@@ -708,12 +633,7 @@ class TestHandler(HandlerTestCase):
(
'image/png'
,
'PNG - Portable Network Graphic'
),
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/x-cmu-raster'
,
'RAS - Sun Raster Image'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'image/x-portable-bitmap'
,
'PBM - Portable Bitmap'
),
(
'image/x-portable-graymap'
,
'PGM - Portable Graymap'
),
(
'image/x-portable-pixmap'
,
'PPM - Portable Pixelmap'
),
(
'image/x-xpixmap'
,
'XPM - X PixMap'
),
(
'text/html'
,
'HTML Document (Impress)'
)
])
def
testGetAllowedConversionFormatList_ApplicationVndMsPowerpoint
(
self
):
...
...
@@ -734,12 +654,7 @@ class TestHandler(HandlerTestCase):
(
'image/png'
,
'PNG - Portable Network Graphic'
),
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/x-cmu-raster'
,
'RAS - Sun Raster Image'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'image/x-portable-bitmap'
,
'PBM - Portable Bitmap'
),
(
'image/x-portable-graymap'
,
'PGM - Portable Graymap'
),
(
'image/x-portable-pixmap'
,
'PPM - Portable Pixelmap'
),
(
'image/x-xpixmap'
,
'XPM - X PixMap'
),
(
'text/html'
,
'HTML Document (Impress)'
)
])
def
test_suite
():
...
...
cloudooo/handler/ooo/tests/testOooServer.py
View file @
6fe9f889
...
...
@@ -474,10 +474,10 @@ class TestServer(TestCase):
data
=
encodestring
(
open
(
"./data/granulate_test.odt"
).
read
())
image_list
=
self
.
proxy
.
getImageItemList
(
data
,
"odt"
)
self
.
assertEquals
([[
'10000000000000C80000009CBF079A6E41EE290C.jpg'
,
''
],
[
'10000201000000C80000004E
F26C99A54A61B987
.png'
,
'TioLive Logo'
],
[
'10000201000000C80000004E
F26C99A54A61B987
.png'
,
''
],
[
'10000201000000C80000004E
85B3F70C71E07CE8
.png'
,
'TioLive Logo'
],
[
'10000201000000C80000004E
85B3F70C71E07CE8
.png'
,
''
],
[
'2000004F0000423300001370ADF6545B2997B448.svm'
,
'Python Logo'
],
[
'10000201000000C80000004E
F26C99A54A61B987
.png'
,
'Again TioLive Logo'
]],
[
'10000201000000C80000004E
85B3F70C71E07CE8
.png'
,
'Again TioLive Logo'
]],
image_list
)
def
testGetImageItemListFromDoc
(
self
):
...
...
@@ -485,10 +485,10 @@ class TestServer(TestCase):
data
=
encodestring
(
open
(
"./data/granulate_test.doc"
).
read
())
image_list
=
self
.
proxy
.
getImageItemList
(
data
,
"doc"
)
self
.
assertEquals
([[
'10000000000000C80000009CBF079A6E41EE290C.jpg'
,
''
],
[
'10000201000000C80000004E
F26C99A54A61B987
.png'
,
'TioLive Logo'
],
[
'10000201000000C80000004E
F26C99A54A61B987
.png'
,
''
],
[
'10000201000000C80000004E
85B3F70C71E07CE8
.png'
,
'TioLive Logo'
],
[
'10000201000000C80000004E
85B3F70C71E07CE8
.png'
,
''
],
[
'2000031600004233000013702113A0E70B910778.wmf'
,
'Python Logo'
],
[
'10000201000000C80000004E
F26C99A54A61B987
.png'
,
'Again TioLive Logo'
]],
[
'10000201000000C80000004E
85B3F70C71E07CE8
.png'
,
'Again TioLive Logo'
]],
image_list
)
def
testGetImageFromOdt
(
self
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment