From b0c50d82199d7503d23ecd452154ddd7825b7da9 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Tue, 18 Oct 2016 20:46:59 +0530 Subject: [PATCH] Fix style unit tests --- python/servo/testing_commands.py | 4 +++- tests/unit/style/properties/serialization.rs | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py index d1158304bff..88a6d7b24ca 100644 --- a/python/servo/testing_commands.py +++ b/python/servo/testing_commands.py @@ -237,7 +237,9 @@ class MachCommands(CommandBase): if features: args += ["--features", "%s" % ' '.join(features)] - return call(args, env=env, cwd=self.servo_crate()) + err = call(args, env=env, cwd=self.servo_crate()) + if err is not 0: + return err # Run style tests with the testing feature if has_style: diff --git a/tests/unit/style/properties/serialization.rs b/tests/unit/style/properties/serialization.rs index 6df1a65278b..1d644be305a 100644 --- a/tests/unit/style/properties/serialization.rs +++ b/tests/unit/style/properties/serialization.rs @@ -421,7 +421,8 @@ mod shorthand_serialization { let position = DeclaredValue::Value(ListStylePosition::inside); let image = DeclaredValue::Value(ListStyleImage::Url( - Url::parse("http://servo/test.png").unwrap() + Url::parse("http://servo/test.png").unwrap(), + UrlExtraData {}, )); let style_type = DeclaredValue::Value(ListStyleType::disc);