Fix some errors found in impress and thunderbird examples

This commit is contained in:
Timothyxxx
2024-01-29 13:23:06 +08:00
parent cc21c3a6b1
commit 37e09a994e
3 changed files with 4 additions and 4 deletions

View File

@@ -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, \
compare_insert_equation, compare_highlighted_text
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 .gimp import increase_saturation, decrease_brightness, check_file_exists, compare_triangle_positions
from .libreoffice import check_libre_locale

View File

@@ -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.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)):
return False
return 0.
return True
return 1.
def is_red_color(color):

View File

@@ -74,7 +74,7 @@
"type": "style",
"sheet_idx0": 0,
"sheet_idx1": "EI0",
"props": "bgcolor"
"props": ["bgcolor"]
}
]
}