1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 13:00:08 +00:00

update test case references

This commit is contained in:
Lu Wang 2015-03-17 17:31:19 +08:00
parent 2175d667c0
commit d8b86df0e5
12 changed files with 93 additions and 88 deletions

View File

@ -9,7 +9,7 @@ option(ENABLE_SVG "Enable SVG support, for generating SVG background images and
include_directories(${CMAKE_SOURCE_DIR}/src) include_directories(${CMAKE_SOURCE_DIR}/src)
set(PDF2HTMLEX_VERSION "0.13.2") set(PDF2HTMLEX_VERSION "0.13.3")
set(ARCHIVE_NAME pdf2htmlex-${PDF2HTMLEX_VERSION}) set(ARCHIVE_NAME pdf2htmlex-${PDF2HTMLEX_VERSION})
add_custom_target(dist add_custom_target(dist
COMMAND git archive --prefix=${ARCHIVE_NAME}/ HEAD COMMAND git archive --prefix=${ARCHIVE_NAME}/ HEAD

View File

@ -67,12 +67,15 @@ class BrowserTests(Common):
diff_img = ImageChops.difference(ref_img, out_img); diff_img = ImageChops.difference(ref_img, out_img);
if diff_img.getbbox() is not None: diff_bbox = diff_img.getbbox()
if diff_bbox is not None:
diff_size = (diff_bbox[2] - diff_bbox[0]) * (diff_bbox[3] - diff_bbox[1])
img_size = ref_img.size[0] * ref_img.size[1]
if self.SAVE_TMP: if self.SAVE_TMP:
# save the diff image # save the diff image
# http://stackoverflow.com/questions/15721484/saving-in-png-using-pil-library-after-taking-imagechops-difference-of-two-png # http://stackoverflow.com/questions/15721484/saving-in-png-using-pil-library-after-taking-imagechops-difference-of-two-png
diff_img.crop(diff_img.getbbox()).convert('RGB').save(os.path.join(png_out_dir, basefilename + '.diff.png')) diff_img.convert('RGB').save(os.path.join(png_out_dir, basefilename + '.diff.png'))
self.fail('PNG files differ') self.fail('PNG files differ by <= %d pixels, (%f%% of %d pixels in total)' % (diff_size, 1.0*diff_size/img_size, img_size))
@unittest.skipIf(Common.GENERATING_MODE, 'Do not auto generate reference for test_fail') @unittest.skipIf(Common.GENERATING_MODE, 'Do not auto generate reference for test_fail')
def test_fail(self): def test_fail(self):

View File

@ -10,7 +10,7 @@
* Base CSS for pdf2htmlEX * Base CSS for pdf2htmlEX
* Copyright 2012,2013 Lu Wang <coolwanglu@gmail.com> * Copyright 2012,2013 Lu Wang <coolwanglu@gmail.com>
* https://github.com/coolwanglu/pdf2htmlEX/blob/master/share/LICENSE * https://github.com/coolwanglu/pdf2htmlEX/blob/master/share/LICENSE
*/#sidebar{position:absolute;top:0;left:0;bottom:0;width:250px;padding:0;margin:0;overflow:auto}#page-container{position:absolute;top:0;left:0;margin:0;padding:0;border:0}@media screen{#sidebar.opened+#page-container{left:250px}#page-container{bottom:0;right:0;overflow:auto}.loading-indicator{display:none}.loading-indicator.active{display:block;position:absolute;width:64px;height:64px;top:50%;left:50%;margin-top:-32px;margin-left:-32px}.loading-indicator img{position:absolute;top:0;left:0;bottom:0;right:0}}@media print{@page{margin:0}html{margin:0}body{margin:0;-webkit-print-color-adjust:exact}#sidebar{display:none}#page-container{width:auto;height:auto;overflow:visible;background-color:transparent}.d{display:none}}.pf{position:relative;background-color:white;overflow:hidden;margin:0;border:0}.pc{position:absolute;border:0;padding:0;margin:0;top:0;left:0;width:100%;height:100%;overflow:hidden;display:block;transform-origin:0 0;-ms-transform-origin:0 0;-webkit-transform-origin:0 0}.pc.opened{display:block}.bf{position:absolute;border:0;margin:0;top:0;bottom:0;width:100%;height:100%;-ms-user-select:none;-moz-user-select:none;-webkit-user-select:none;user-select:none}.bi{position:absolute;border:0;margin:0;-ms-user-select:none;-moz-user-select:none;-webkit-user-select:none;user-select:none}@media print{.pf{margin:0;box-shadow:none;page-break-after:always;page-break-inside:avoid}@-moz-document url-prefix(){.pf{overflow:visible;border:1px solid #fff}.pc{overflow:visible}}}.c{position:absolute;border:0;padding:0;margin:0;overflow:hidden;display:block}.t{position:absolute;white-space:pre;font-size:1px;transform-origin:0 100%;-ms-transform-origin:0 100%;-webkit-transform-origin:0 100%;unicode-bidi:bidi-override;-moz-font-feature-settings:"liga" 0}.t:after{content:''}.t span{position:relative;display:inline-block;unicode-bidi:bidi-override}._{color:transparent;z-index:-1}::selection{background:rgba(127,255,255,0.4)}::-moz-selection{background:rgba(127,255,255,0.4)}.pi{display:none}.d{position:absolute;transform-origin:0 100%;-ms-transform-origin:0 100%;-webkit-transform-origin:0 100%}</style> */#sidebar{position:absolute;top:0;left:0;bottom:0;width:250px;padding:0;margin:0;overflow:auto}#page-container{position:absolute;top:0;left:0;margin:0;padding:0;border:0}@media screen{#sidebar.opened+#page-container{left:250px}#page-container{bottom:0;right:0;overflow:auto}.loading-indicator{display:none}.loading-indicator.active{display:block;position:absolute;width:64px;height:64px;top:50%;left:50%;margin-top:-32px;margin-left:-32px}.loading-indicator img{position:absolute;top:0;left:0;bottom:0;right:0}}@media print{@page{margin:0}html{margin:0}body{margin:0;-webkit-print-color-adjust:exact}#sidebar{display:none}#page-container{width:auto;height:auto;overflow:visible;background-color:transparent}.d{display:none}}.pf{position:relative;background-color:white;overflow:hidden;margin:0;border:0}.pc{position:absolute;border:0;padding:0;margin:0;top:0;left:0;width:100%;height:100%;overflow:hidden;display:block;transform-origin:0 0;-ms-transform-origin:0 0;-webkit-transform-origin:0 0}.pc.opened{display:block}.bf{position:absolute;border:0;margin:0;top:0;bottom:0;width:100%;height:100%;-ms-user-select:none;-moz-user-select:none;-webkit-user-select:none;user-select:none}.bi{position:absolute;border:0;margin:0;-ms-user-select:none;-moz-user-select:none;-webkit-user-select:none;user-select:none}@media print{.pf{margin:0;box-shadow:none;page-break-after:always;page-break-inside:avoid}@-moz-document url-prefix(){.pf{overflow:visible;border:1px solid #fff}.pc{overflow:visible}}}.c{position:absolute;border:0;padding:0;margin:0;overflow:hidden;display:block}.t{position:absolute;white-space:pre;font-size:1px;transform-origin:0 100%;-ms-transform-origin:0 100%;-webkit-transform-origin:0 100%;unicode-bidi:bidi-override;-moz-font-feature-settings:"liga" 0}.t:after{content:''}.t:before{content:'';display:inline-block}.t span{position:relative;unicode-bidi:bidi-override}._{display:inline-block;color:transparent;z-index:-1}::selection{background:rgba(127,255,255,0.4)}::-moz-selection{background:rgba(127,255,255,0.4)}.pi{display:none}.d{position:absolute;transform-origin:0 100%;-ms-transform-origin:0 100%;-webkit-transform-origin:0 100%}.it{border:0;background-color:rgba(255,255,255,0.0)}.ir:hover{cursor:pointer}</style>
<style type="text/css"> <style type="text/css">
/* CSS for test cases */ /* CSS for test cases */
#page-container { #page-container {
@ -36,9 +36,9 @@
.sc0{-webkit-text-stroke:0.015em transparent;text-shadow:none;} .sc0{-webkit-text-stroke:0.015em transparent;text-shadow:none;}
} }
.ws0{word-spacing:0.000000px;} .ws0{word-spacing:0.000000px;}
._1{display:inline;margin-left:-3.997949px;} ._1{margin-left:-3.997949px;}
._2{display:inline;margin-left:-1.115811px;} ._2{margin-left:-1.115811px;}
._0{display:inline-block;width:39.850619px;} ._0{width:39.850619px;}
.fc0{color:rgb(0,0,0);} .fc0{color:rgb(0,0,0);}
.fs1{font-size:19.925200px;} .fs1{font-size:19.925200px;}
.fs0{font-size:39.850400px;} .fs0{font-size:39.850400px;}
@ -69,9 +69,9 @@
.ls1{letter-spacing:20.400000pt;} .ls1{letter-spacing:20.400000pt;}
.ls2{letter-spacing:20.483469pt;} .ls2{letter-spacing:20.483469pt;}
.ws0{word-spacing:0.000000pt;} .ws0{word-spacing:0.000000pt;}
._1{display:inline;margin-left:-4.077908pt;} ._1{margin-left:-4.077908pt;}
._2{display:inline;margin-left:-1.138127pt;} ._2{margin-left:-1.138127pt;}
._0{display:inline-block;width:40.647631pt;} ._0{width:40.647631pt;}
.fs1{font-size:20.323704pt;} .fs1{font-size:20.323704pt;}
.fs0{font-size:40.647408pt;} .fs0{font-size:40.647408pt;}
.fs2{font-size:40.813722pt;} .fs2{font-size:40.813722pt;}

View File

@ -10,7 +10,7 @@
* Base CSS for pdf2htmlEX * Base CSS for pdf2htmlEX
* Copyright 2012,2013 Lu Wang <coolwanglu@gmail.com> * Copyright 2012,2013 Lu Wang <coolwanglu@gmail.com>
* https://github.com/coolwanglu/pdf2htmlEX/blob/master/share/LICENSE * https://github.com/coolwanglu/pdf2htmlEX/blob/master/share/LICENSE
*/#sidebar{position:absolute;top:0;left:0;bottom:0;width:250px;padding:0;margin:0;overflow:auto}#page-container{position:absolute;top:0;left:0;margin:0;padding:0;border:0}@media screen{#sidebar.opened+#page-container{left:250px}#page-container{bottom:0;right:0;overflow:auto}.loading-indicator{display:none}.loading-indicator.active{display:block;position:absolute;width:64px;height:64px;top:50%;left:50%;margin-top:-32px;margin-left:-32px}.loading-indicator img{position:absolute;top:0;left:0;bottom:0;right:0}}@media print{@page{margin:0}html{margin:0}body{margin:0;-webkit-print-color-adjust:exact}#sidebar{display:none}#page-container{width:auto;height:auto;overflow:visible;background-color:transparent}.d{display:none}}.pf{position:relative;background-color:white;overflow:hidden;margin:0;border:0}.pc{position:absolute;border:0;padding:0;margin:0;top:0;left:0;width:100%;height:100%;overflow:hidden;display:block;transform-origin:0 0;-ms-transform-origin:0 0;-webkit-transform-origin:0 0}.pc.opened{display:block}.bf{position:absolute;border:0;margin:0;top:0;bottom:0;width:100%;height:100%;-ms-user-select:none;-moz-user-select:none;-webkit-user-select:none;user-select:none}.bi{position:absolute;border:0;margin:0;-ms-user-select:none;-moz-user-select:none;-webkit-user-select:none;user-select:none}@media print{.pf{margin:0;box-shadow:none;page-break-after:always;page-break-inside:avoid}@-moz-document url-prefix(){.pf{overflow:visible;border:1px solid #fff}.pc{overflow:visible}}}.c{position:absolute;border:0;padding:0;margin:0;overflow:hidden;display:block}.t{position:absolute;white-space:pre;font-size:1px;transform-origin:0 100%;-ms-transform-origin:0 100%;-webkit-transform-origin:0 100%;unicode-bidi:bidi-override;-moz-font-feature-settings:"liga" 0}.t:after{content:''}.t span{position:relative;display:inline-block;unicode-bidi:bidi-override}._{color:transparent;z-index:-1}::selection{background:rgba(127,255,255,0.4)}::-moz-selection{background:rgba(127,255,255,0.4)}.pi{display:none}.d{position:absolute;transform-origin:0 100%;-ms-transform-origin:0 100%;-webkit-transform-origin:0 100%}</style> */#sidebar{position:absolute;top:0;left:0;bottom:0;width:250px;padding:0;margin:0;overflow:auto}#page-container{position:absolute;top:0;left:0;margin:0;padding:0;border:0}@media screen{#sidebar.opened+#page-container{left:250px}#page-container{bottom:0;right:0;overflow:auto}.loading-indicator{display:none}.loading-indicator.active{display:block;position:absolute;width:64px;height:64px;top:50%;left:50%;margin-top:-32px;margin-left:-32px}.loading-indicator img{position:absolute;top:0;left:0;bottom:0;right:0}}@media print{@page{margin:0}html{margin:0}body{margin:0;-webkit-print-color-adjust:exact}#sidebar{display:none}#page-container{width:auto;height:auto;overflow:visible;background-color:transparent}.d{display:none}}.pf{position:relative;background-color:white;overflow:hidden;margin:0;border:0}.pc{position:absolute;border:0;padding:0;margin:0;top:0;left:0;width:100%;height:100%;overflow:hidden;display:block;transform-origin:0 0;-ms-transform-origin:0 0;-webkit-transform-origin:0 0}.pc.opened{display:block}.bf{position:absolute;border:0;margin:0;top:0;bottom:0;width:100%;height:100%;-ms-user-select:none;-moz-user-select:none;-webkit-user-select:none;user-select:none}.bi{position:absolute;border:0;margin:0;-ms-user-select:none;-moz-user-select:none;-webkit-user-select:none;user-select:none}@media print{.pf{margin:0;box-shadow:none;page-break-after:always;page-break-inside:avoid}@-moz-document url-prefix(){.pf{overflow:visible;border:1px solid #fff}.pc{overflow:visible}}}.c{position:absolute;border:0;padding:0;margin:0;overflow:hidden;display:block}.t{position:absolute;white-space:pre;font-size:1px;transform-origin:0 100%;-ms-transform-origin:0 100%;-webkit-transform-origin:0 100%;unicode-bidi:bidi-override;-moz-font-feature-settings:"liga" 0}.t:after{content:''}.t:before{content:'';display:inline-block}.t span{position:relative;unicode-bidi:bidi-override}._{display:inline-block;color:transparent;z-index:-1}::selection{background:rgba(127,255,255,0.4)}::-moz-selection{background:rgba(127,255,255,0.4)}.pi{display:none}.d{position:absolute;transform-origin:0 100%;-ms-transform-origin:0 100%;-webkit-transform-origin:0 100%}.it{border:0;background-color:rgba(255,255,255,0.0)}.ir:hover{cursor:pointer}</style>
<style type="text/css"> <style type="text/css">
/* CSS for test cases */ /* CSS for test cases */
#page-container { #page-container {
@ -31,37 +31,37 @@
.sc0{-webkit-text-stroke:0.015em transparent;text-shadow:none;} .sc0{-webkit-text-stroke:0.015em transparent;text-shadow:none;}
} }
.ws0{word-spacing:0.000000px;} .ws0{word-spacing:0.000000px;}
._1d{display:inline;margin-left:-6.519460px;} ._1d{margin-left:-6.519460px;}
._a{display:inline;margin-left:-3.443040px;} ._a{margin-left:-3.443040px;}
._1{display:inline;margin-left:-1.586368px;} ._1{margin-left:-1.586368px;}
._1e{display:inline-block;width:1.012808px;} ._1e{width:1.012808px;}
._9{display:inline-block;width:3.793720px;} ._9{width:3.793720px;}
._7{display:inline-block;width:5.228320px;} ._7{width:5.228320px;}
._4{display:inline-block;width:6.376000px;} ._4{width:6.376000px;}
._6{display:inline-block;width:7.491800px;} ._6{width:7.491800px;}
._8{display:inline-block;width:8.607600px;} ._8{width:8.607600px;}
._5{display:inline-block;width:10.105960px;} ._5{width:10.105960px;}
._2{display:inline-block;width:11.419416px;} ._2{width:11.419416px;}
._d{display:inline-block;width:12.528840px;} ._d{width:12.528840px;}
._19{display:inline-block;width:13.676520px;} ._19{width:13.676520px;}
._16{display:inline-block;width:14.776380px;} ._16{width:14.776380px;}
._15{display:inline-block;width:15.971880px;} ._15{width:15.971880px;}
._17{display:inline-block;width:17.263020px;} ._17{width:17.263020px;}
._3{display:inline-block;width:18.525548px;} ._3{width:18.525548px;}
._0{display:inline-block;width:19.730452px;} ._0{width:19.730452px;}
._10{display:inline-block;width:20.773088px;} ._10{width:20.773088px;}
._12{display:inline-block;width:21.805920px;} ._12{width:21.805920px;}
._1c{display:inline-block;width:23.448000px;} ._1c{width:23.448000px;}
._1a{display:inline-block;width:25.657576px;} ._1a{width:25.657576px;}
._e{display:inline-block;width:26.922660px;} ._e{width:26.922660px;}
._1b{display:inline-block;width:28.164808px;} ._1b{width:28.164808px;}
._14{display:inline-block;width:30.891720px;} ._14{width:30.891720px;}
._b{display:inline-block;width:36.779040px;} ._b{width:36.779040px;}
._f{display:inline-block;width:37.873440px;} ._f{width:37.873440px;}
._13{display:inline-block;width:40.312260px;} ._13{width:40.312260px;}
._11{display:inline-block;width:43.516200px;} ._11{width:43.516200px;}
._18{display:inline-block;width:47.820000px;} ._18{width:47.820000px;}
._c{display:inline-block;width:57.986452px;} ._c{width:57.986452px;}
.fc0{color:rgb(0,0,0);} .fc0{color:rgb(0,0,0);}
.fs5{font-size:19.924000px;} .fs5{font-size:19.924000px;}
.fs4{font-size:23.912000px;} .fs4{font-size:23.912000px;}
@ -381,37 +381,37 @@
.v0{vertical-align:0.000000pt;} .v0{vertical-align:0.000000pt;}
.ls0{letter-spacing:0.000000pt;} .ls0{letter-spacing:0.000000pt;}
.ws0{word-spacing:0.000000pt;} .ws0{word-spacing:0.000000pt;}
._1d{display:inline;margin-left:-6.468174pt;} ._1d{margin-left:-6.468174pt;}
._a{display:inline;margin-left:-3.415955pt;} ._a{margin-left:-3.415955pt;}
._1{display:inline;margin-left:-1.573889pt;} ._1{margin-left:-1.573889pt;}
._1e{display:inline-block;width:1.004841pt;} ._1e{width:1.004841pt;}
._9{display:inline-block;width:3.763876pt;} ._9{width:3.763876pt;}
._7{display:inline-block;width:5.187191pt;} ._7{width:5.187191pt;}
._4{display:inline-block;width:6.325842pt;} ._4{width:6.325842pt;}
._6{display:inline-block;width:7.432865pt;} ._6{width:7.432865pt;}
._8{display:inline-block;width:8.539887pt;} ._8{width:8.539887pt;}
._5{display:inline-block;width:10.026460pt;} ._5{width:10.026460pt;}
._2{display:inline-block;width:11.329583pt;} ._2{width:11.329583pt;}
._d{display:inline-block;width:12.430280pt;} ._d{width:12.430280pt;}
._19{display:inline-block;width:13.568931pt;} ._19{width:13.568931pt;}
._16{display:inline-block;width:14.660139pt;} ._16{width:14.660139pt;}
._15{display:inline-block;width:15.846235pt;} ._15{width:15.846235pt;}
._17{display:inline-block;width:17.127218pt;} ._17{width:17.127218pt;}
._3{display:inline-block;width:18.379814pt;} ._3{width:18.379814pt;}
._0{display:inline-block;width:19.575239pt;} ._0{width:19.575239pt;}
._10{display:inline-block;width:20.609673pt;} ._10{width:20.609673pt;}
._12{display:inline-block;width:21.634380pt;} ._12{width:21.634380pt;}
._1c{display:inline-block;width:23.263542pt;} ._1c{width:23.263542pt;}
._1a{display:inline-block;width:25.455736pt;} ._1a{width:25.455736pt;}
._e{display:inline-block;width:26.710868pt;} ._e{width:26.710868pt;}
._1b{display:inline-block;width:27.943245pt;} ._1b{width:27.943245pt;}
._14{display:inline-block;width:30.648705pt;} ._14{width:30.648705pt;}
._b{display:inline-block;width:36.489712pt;} ._b{width:36.489712pt;}
._f{display:inline-block;width:37.575502pt;} ._f{width:37.575502pt;}
._13{display:inline-block;width:39.995137pt;} ._13{width:39.995137pt;}
._11{display:inline-block;width:43.173873pt;} ._11{width:43.173873pt;}
._18{display:inline-block;width:47.443816pt;} ._18{width:47.443816pt;}
._c{display:inline-block;width:57.530292pt;} ._c{width:57.530292pt;}
.fs5{font-size:19.767265pt;} .fs5{font-size:19.767265pt;}
.fs4{font-size:23.723892pt;} .fs4{font-size:23.723892pt;}
.fs3{font-size:31.629211pt;} .fs3{font-size:31.629211pt;}

View File

@ -10,7 +10,7 @@
* Base CSS for pdf2htmlEX * Base CSS for pdf2htmlEX
* Copyright 2012,2013 Lu Wang <coolwanglu@gmail.com> * Copyright 2012,2013 Lu Wang <coolwanglu@gmail.com>
* https://github.com/coolwanglu/pdf2htmlEX/blob/master/share/LICENSE * https://github.com/coolwanglu/pdf2htmlEX/blob/master/share/LICENSE
*/#sidebar{position:absolute;top:0;left:0;bottom:0;width:250px;padding:0;margin:0;overflow:auto}#page-container{position:absolute;top:0;left:0;margin:0;padding:0;border:0}@media screen{#sidebar.opened+#page-container{left:250px}#page-container{bottom:0;right:0;overflow:auto}.loading-indicator{display:none}.loading-indicator.active{display:block;position:absolute;width:64px;height:64px;top:50%;left:50%;margin-top:-32px;margin-left:-32px}.loading-indicator img{position:absolute;top:0;left:0;bottom:0;right:0}}@media print{@page{margin:0}html{margin:0}body{margin:0;-webkit-print-color-adjust:exact}#sidebar{display:none}#page-container{width:auto;height:auto;overflow:visible;background-color:transparent}.d{display:none}}.pf{position:relative;background-color:white;overflow:hidden;margin:0;border:0}.pc{position:absolute;border:0;padding:0;margin:0;top:0;left:0;width:100%;height:100%;overflow:hidden;display:block;transform-origin:0 0;-ms-transform-origin:0 0;-webkit-transform-origin:0 0}.pc.opened{display:block}.bf{position:absolute;border:0;margin:0;top:0;bottom:0;width:100%;height:100%;-ms-user-select:none;-moz-user-select:none;-webkit-user-select:none;user-select:none}.bi{position:absolute;border:0;margin:0;-ms-user-select:none;-moz-user-select:none;-webkit-user-select:none;user-select:none}@media print{.pf{margin:0;box-shadow:none;page-break-after:always;page-break-inside:avoid}@-moz-document url-prefix(){.pf{overflow:visible;border:1px solid #fff}.pc{overflow:visible}}}.c{position:absolute;border:0;padding:0;margin:0;overflow:hidden;display:block}.t{position:absolute;white-space:pre;font-size:1px;transform-origin:0 100%;-ms-transform-origin:0 100%;-webkit-transform-origin:0 100%;unicode-bidi:bidi-override;-moz-font-feature-settings:"liga" 0}.t:after{content:''}.t span{position:relative;display:inline-block;unicode-bidi:bidi-override}._{color:transparent;z-index:-1}::selection{background:rgba(127,255,255,0.4)}::-moz-selection{background:rgba(127,255,255,0.4)}.pi{display:none}.d{position:absolute;transform-origin:0 100%;-ms-transform-origin:0 100%;-webkit-transform-origin:0 100%}</style> */#sidebar{position:absolute;top:0;left:0;bottom:0;width:250px;padding:0;margin:0;overflow:auto}#page-container{position:absolute;top:0;left:0;margin:0;padding:0;border:0}@media screen{#sidebar.opened+#page-container{left:250px}#page-container{bottom:0;right:0;overflow:auto}.loading-indicator{display:none}.loading-indicator.active{display:block;position:absolute;width:64px;height:64px;top:50%;left:50%;margin-top:-32px;margin-left:-32px}.loading-indicator img{position:absolute;top:0;left:0;bottom:0;right:0}}@media print{@page{margin:0}html{margin:0}body{margin:0;-webkit-print-color-adjust:exact}#sidebar{display:none}#page-container{width:auto;height:auto;overflow:visible;background-color:transparent}.d{display:none}}.pf{position:relative;background-color:white;overflow:hidden;margin:0;border:0}.pc{position:absolute;border:0;padding:0;margin:0;top:0;left:0;width:100%;height:100%;overflow:hidden;display:block;transform-origin:0 0;-ms-transform-origin:0 0;-webkit-transform-origin:0 0}.pc.opened{display:block}.bf{position:absolute;border:0;margin:0;top:0;bottom:0;width:100%;height:100%;-ms-user-select:none;-moz-user-select:none;-webkit-user-select:none;user-select:none}.bi{position:absolute;border:0;margin:0;-ms-user-select:none;-moz-user-select:none;-webkit-user-select:none;user-select:none}@media print{.pf{margin:0;box-shadow:none;page-break-after:always;page-break-inside:avoid}@-moz-document url-prefix(){.pf{overflow:visible;border:1px solid #fff}.pc{overflow:visible}}}.c{position:absolute;border:0;padding:0;margin:0;overflow:hidden;display:block}.t{position:absolute;white-space:pre;font-size:1px;transform-origin:0 100%;-ms-transform-origin:0 100%;-webkit-transform-origin:0 100%;unicode-bidi:bidi-override;-moz-font-feature-settings:"liga" 0}.t:after{content:''}.t:before{content:'';display:inline-block}.t span{position:relative;unicode-bidi:bidi-override}._{display:inline-block;color:transparent;z-index:-1}::selection{background:rgba(127,255,255,0.4)}::-moz-selection{background:rgba(127,255,255,0.4)}.pi{display:none}.d{position:absolute;transform-origin:0 100%;-ms-transform-origin:0 100%;-webkit-transform-origin:0 100%}.it{border:0;background-color:rgba(255,255,255,0.0)}.ir:hover{cursor:pointer}</style>
<style type="text/css"> <style type="text/css">
/* CSS for test cases */ /* CSS for test cases */
#page-container { #page-container {
@ -35,12 +35,12 @@
.sc0{-webkit-text-stroke:0.015em transparent;text-shadow:none;} .sc0{-webkit-text-stroke:0.015em transparent;text-shadow:none;}
} }
.ws0{word-spacing:0.000000px;} .ws0{word-spacing:0.000000px;}
._0{display:inline-block;width:1.114017px;} ._0{width:1.114017px;}
._3{display:inline-block;width:12.413330px;} ._3{width:12.413330px;}
._1{display:inline-block;width:14.323073px;} ._1{width:14.323073px;}
._5{display:inline-block;width:26.028589px;} ._5{width:26.028589px;}
._4{display:inline-block;width:36.921698px;} ._4{width:36.921698px;}
._2{display:inline-block;width:42.650928px;} ._2{width:42.650928px;}
.fc1{color:transparent;} .fc1{color:transparent;}
.fc0{color:rgb(0,0,0);} .fc0{color:rgb(0,0,0);}
.fs3{font-size:34.350544px;} .fs3{font-size:34.350544px;}
@ -91,12 +91,12 @@
.v0{vertical-align:0.000000pt;} .v0{vertical-align:0.000000pt;}
.ls0{letter-spacing:0.000000pt;} .ls0{letter-spacing:0.000000pt;}
.ws0{word-spacing:0.000000pt;} .ws0{word-spacing:0.000000pt;}
._0{display:inline-block;width:1.105245pt;} ._0{width:1.105245pt;}
._3{display:inline-block;width:12.315587pt;} ._3{width:12.315587pt;}
._1{display:inline-block;width:14.210292pt;} ._1{width:14.210292pt;}
._5{display:inline-block;width:25.823638pt;} ._5{width:25.823638pt;}
._4{display:inline-block;width:36.630975pt;} ._4{width:36.630975pt;}
._2{display:inline-block;width:42.315093pt;} ._2{width:42.315093pt;}
.fs3{font-size:34.080066pt;} .fs3{font-size:34.080066pt;}
.fs4{font-size:51.120099pt;} .fs4{font-size:51.120099pt;}
.fs2{font-size:157.892134pt;} .fs2{font-size:157.892134pt;}

View File

@ -68,7 +68,9 @@ class Common(object):
'--dest-dir', self.cur_output_dir '--dest-dir', self.cur_output_dir
] + args ] + args
return_code = subprocess.call(list(map(str, args))) with open(os.devnull, 'w') as fnull:
return_code = subprocess.call(list(map(str, args)), stderr=fnull)
self.assertEquals(return_code, 0, 'cannot execute pdf2htmlEX') self.assertEquals(return_code, 0, 'cannot execute pdf2htmlEX')
files = os.listdir(self.cur_output_dir) files = os.listdir(self.cur_output_dir)