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

added browser_tests SUCCESS if dff_bbox is not None but basefilename is test_fail

This commit is contained in:
Stephen Gaito 2020-06-20 10:13:26 +01:00
parent f1abed5a1f
commit 8a04d6a192

View File

@ -95,6 +95,8 @@ class BrowserTests(Common):
if diff_bbox is None: if diff_bbox is None:
print(" SUCCESS: ", basefilename) print(" SUCCESS: ", basefilename)
elif basefilename == "test_fail" :
print(" SUCCESS: ", basefilename)
else: else:
print(" FAILURE: ", basefilename, " diff bounding box: ", diff_bbox, " should be None") print(" FAILURE: ", basefilename, " diff bounding box: ", diff_bbox, " should be None")
diff_size = (diff_bbox[2] - diff_bbox[0]) * (diff_bbox[3] - diff_bbox[1]) diff_size = (diff_bbox[2] - diff_bbox[0]) * (diff_bbox[3] - diff_bbox[1])