Auto merge of #16815 - Manishearth:cssup, r=metajack

Bump cssparser to 0.13.3

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16815)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2017-05-11 16:10:23 -05:00 committed by GitHub
commit d1f2cdfb3d
14 changed files with 29 additions and 29 deletions

View file

@ -15,7 +15,7 @@ testing = ["style/testing"]
[dependencies]
byteorder = "1.0"
app_units = "0.4"
cssparser = "0.13"
cssparser = "0.13.3"
euclid = "0.11"
html5ever = "0.16"
parking_lot = "0.3"

View file

@ -16,7 +16,7 @@ fn test_rgba_color_interepolation_preserves_transparent() {
fn test_rgba_color_interepolation_alpha() {
assert_eq!(Color::RGBA(RGBA::new(200, 0, 0, 100))
.interpolate(&Color::RGBA(RGBA::new(0, 200, 0, 200)), 0.5).unwrap(),
Color::RGBA(RGBA::new(66, 133, 0, 150)));
Color::RGBA(RGBA::new(67, 133, 0, 150)));
}
#[test]
@ -25,14 +25,14 @@ fn test_rgba_color_interepolation_out_of_range_1() {
// Unclamped cases.
assert_eq!(Color::RGBA(RGBA::from_floats(0.3, 0.0, 0.0, 0.4)).interpolate(
&Color::RGBA(RGBA::from_floats(0.0, 1.0, 0.0, 0.6)), -0.5).unwrap(),
Color::RGBA(RGBA::new(152, 0, 0, 76)));
Color::RGBA(RGBA::new(154, 0, 0, 77)));
}
#[test]
fn test_rgba_color_interepolation_out_of_range_2() {
assert_eq!(Color::RGBA(RGBA::from_floats(1.0, 0.0, 0.0, 0.6)).interpolate(
&Color::RGBA(RGBA::from_floats(0.0, 0.3, 0.0, 0.4)), 1.5).unwrap(),
Color::RGBA(RGBA::new(0, 152, 0, 76)));
Color::RGBA(RGBA::new(0, 154, 0, 77)));
}
#[test]

View file

@ -16,7 +16,7 @@ testing = ["style/testing"]
[dependencies]
atomic_refcell = "0.1"
cssparser = "0.13"
cssparser = "0.13.3"
env_logger = "0.4"
euclid = "0.11"
libc = "0.2"