Skip to content

Commit

Permalink
style: fix tidy issues and update test expectations.
Browse files Browse the repository at this point in the history
  • Loading branch information
emilio committed Oct 9, 2018
1 parent 912d65a commit f287691
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 56 deletions.
2 changes: 1 addition & 1 deletion components/style/font_face.rs
Expand Up @@ -161,7 +161,7 @@ impl FontWeightRange {
/// The font-stretch descriptor:
///
/// https://drafts.csswg.org/css-fonts-4/#descdef-font-face-font-stretch
#[derive(Clone, Debug, PartialEq,)]
#[derive(Clone, Debug, PartialEq)]
pub struct FontStretchRange(pub FontStretch, pub FontStretch);
impl_range!(FontStretchRange, FontStretch);

Expand Down
2 changes: 1 addition & 1 deletion components/style/gecko/conversions.rs
Expand Up @@ -110,8 +110,8 @@ impl From<nsStyleCoord_CalcValue> for LengthOrPercentageOrAuto {
// disappear as we move more stuff to cbindgen.
impl From<nsStyleCoord_CalcValue> for NonNegativeLengthOrPercentageOrAuto {
fn from(other: nsStyleCoord_CalcValue) -> Self {
use values::generics::NonNegative;
use style_traits::values::specified::AllowedNumericType;
use values::generics::NonNegative;
NonNegative(if other.mLength < 0 || other.mPercent < 0. {
LengthOrPercentageOrAuto::Calc(
CalcLengthOrPercentage::with_clamping_mode(
Expand Down
2 changes: 1 addition & 1 deletion components/style/gecko/url.rs
Expand Up @@ -276,7 +276,7 @@ impl ToComputedValue for SpecifiedImageUrl {
fn serialize_computed_url<W>(
url_value_data: &URLValueData,
dest: &mut CssWriter<W>,
get_url: unsafe extern "C" fn(*const URLValueData, *mut nsCString) -> (),
get_url: unsafe extern "C" fn(*const URLValueData, *mut nsCString),
) -> fmt::Result
where
W: Write,
Expand Down
@@ -1,51 +1,4 @@
[color-stops-parsing.html]
[linear-gradient(black 0% 50%, white) [ parsable \]]
expected: FAIL

[linear-gradient(black 0% 50%, white 50% 100%) [ parsable \]]
expected: FAIL

[linear-gradient(black 0% 50%, green 25% 75%, white 50% 100%) [ parsable \]]
expected: FAIL

[linear-gradient(black 0% calc(100% / 5), 25%, green 30% 60%, calc(100% * 3 / 4), white calc(100% - 20%) 100%) [ parsable \]]
expected: FAIL

[repeating-linear-gradient(black 0% 50%, white) [ parsable \]]
expected: FAIL

[repeating-linear-gradient(black 0% 50%, white 50% 100%) [ parsable \]]
expected: FAIL

[repeating-linear-gradient(black 0% 50%, green 25% 75%, white 50% 100%) [ parsable \]]
expected: FAIL

[repeating-linear-gradient(black 0% calc(100% / 5), 25%, green 30% 60%, calc(100% * 3 / 4), white calc(100% - 20%) 100%) [ parsable \]]
expected: FAIL

[radial-gradient(black 0% 50%, white) [ parsable \]]
expected: FAIL

[radial-gradient(black 0% 50%, white 50% 100%) [ parsable \]]
expected: FAIL

[radial-gradient(black 0% 50%, green 25% 75%, white 50% 100%) [ parsable \]]
expected: FAIL

[radial-gradient(black 0% calc(100% / 5), 25%, green 30% 60%, calc(100% * 3 / 4), white calc(100% - 20%) 100%) [ parsable \]]
expected: FAIL

[repeating-radial-gradient(black 0% 50%, white) [ parsable \]]
expected: FAIL

[repeating-radial-gradient(black 0% 50%, white 50% 100%) [ parsable \]]
expected: FAIL

[repeating-radial-gradient(black 0% 50%, green 25% 75%, white 50% 100%) [ parsable \]]
expected: FAIL

[repeating-radial-gradient(black 0% calc(100% / 5), 25%, green 30% 60%, calc(100% * 3 / 4), white calc(100% - 20%) 100%) [ parsable \]]
expected: FAIL

[conic-gradient(black, white) [ parsable \]]
expected: FAIL
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit f287691

Please sign in to comment.