Fix some errors found in impress and thunderbird examples
This commit is contained in:
@@ -10,7 +10,7 @@ from .general import exact_match, fuzzy_match
|
|||||||
from .docs import find_default_font, contains_page_break, compare_docx_files, compare_docx_tables, compare_line_spacing, \
|
from .docs import find_default_font, contains_page_break, compare_docx_files, compare_docx_tables, compare_line_spacing, \
|
||||||
compare_insert_equation, compare_highlighted_text
|
compare_insert_equation, compare_highlighted_text
|
||||||
from .docs import is_first_line_centered, check_file_exists, compare_contains_image
|
from .docs import is_first_line_centered, check_file_exists, compare_contains_image
|
||||||
from .general import check_csv, check_accessibility_tree, run_sqlite3, check_json
|
from .general import check_csv, check_accessibility_tree, run_sqlite3, check_json, check_list
|
||||||
from .general import exact_match, fuzzy_match, check_include_exclude
|
from .general import exact_match, fuzzy_match, check_include_exclude
|
||||||
from .gimp import increase_saturation, decrease_brightness, check_file_exists, compare_triangle_positions
|
from .gimp import increase_saturation, decrease_brightness, check_file_exists, compare_triangle_positions
|
||||||
from .libreoffice import check_libre_locale
|
from .libreoffice import check_libre_locale
|
||||||
|
|||||||
@@ -57,9 +57,9 @@ def check_image_stretch_and_center(modified_ppt, original_ppt):
|
|||||||
abs(the_modified_image.height - original_pres.slide_height) > Inches(0.1) or
|
abs(the_modified_image.height - original_pres.slide_height) > Inches(0.1) or
|
||||||
abs(the_modified_image.left - (original_pres.slide_width - the_modified_image.width) / 2) > Inches(0.1) or
|
abs(the_modified_image.left - (original_pres.slide_width - the_modified_image.width) / 2) > Inches(0.1) or
|
||||||
abs(the_modified_image.top - (original_pres.slide_height - the_modified_image.height) / 2) > Inches(0.1)):
|
abs(the_modified_image.top - (original_pres.slide_height - the_modified_image.height) / 2) > Inches(0.1)):
|
||||||
return False
|
return 0.
|
||||||
|
|
||||||
return True
|
return 1.
|
||||||
|
|
||||||
|
|
||||||
def is_red_color(color):
|
def is_red_color(color):
|
||||||
|
|||||||
@@ -74,7 +74,7 @@
|
|||||||
"type": "style",
|
"type": "style",
|
||||||
"sheet_idx0": 0,
|
"sheet_idx0": 0,
|
||||||
"sheet_idx1": "EI0",
|
"sheet_idx1": "EI0",
|
||||||
"props": "bgcolor"
|
"props": ["bgcolor"]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user