Fix style unit tests

This commit is contained in:
Manish Goregaokar 2016-10-18 20:46:59 +05:30
parent 6ca2c7ba77
commit b0c50d8219
2 changed files with 5 additions and 2 deletions

View file

@ -237,7 +237,9 @@ class MachCommands(CommandBase):
if features: if features:
args += ["--features", "%s" % ' '.join(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 # Run style tests with the testing feature
if has_style: if has_style:

View file

@ -421,7 +421,8 @@ mod shorthand_serialization {
let position = DeclaredValue::Value(ListStylePosition::inside); let position = DeclaredValue::Value(ListStylePosition::inside);
let image = DeclaredValue::Value(ListStyleImage::Url( 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); let style_type = DeclaredValue::Value(ListStyleType::disc);