Skip to content

Commit 098dd34

Browse files
committed
Update web pack tests
1 parent 20c5d29 commit 098dd34

File tree

5 files changed

+256
-111
lines changed

5 files changed

+256
-111
lines changed

core/osutils/image_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ def image_match(actual_image_path, expected_image_path, tolerance=0.05):
99
Compare two images.
1010
:param actual_image_path: Path to actual image.
1111
:param expected_image_path: Path to expected image.
12+
:param tolerance: Tolerance in percents.
1213
:return: match (boolean value), diff_percent (diff %), diff_image (diff image)
1314
"""
1415
actual_image = Image.open(actual_image_path)

core/tns/tns.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ def build_android(attributes={}, assert_success=True, tns_path=None, log_trace=F
390390
"Platform folder contains wrong tns-core-modules! " + os.linesep + "Modules version: " \
391391
+ modules_version + os.linesep + "package.json: " + os.linesep + modules_json_in_platforms
392392
else:
393-
# assert "Webpack compilation complete" in output
393+
assert "Webpack compilation complete" in output
394394
assert "after-prepare/nativescript-dev-webpack.js" in output
395395
assert File.exists(os.path.join(app_name, TnsAsserts.PLATFORM_ANDROID_APP_PATH, "bundle.js"))
396396
assert File.exists(os.path.join(app_name, TnsAsserts.PLATFORM_ANDROID_APP_PATH, "package.json"))
@@ -490,7 +490,7 @@ def build_ios(attributes={}, assert_success=True, tns_path=None, log_trace=False
490490
if "--bundle" not in attributes.keys():
491491
assert "Webpack compilation complete" not in output
492492
else:
493-
# assert "Webpack compilation complete" in output
493+
assert "Webpack compilation complete" in output
494494
assert "after-prepare/nativescript-dev-webpack.js" in output
495495

496496
return output
Loading
40.6 KB
Loading

0 commit comments

Comments
 (0)