mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +01:00
Bug 1364412: Convert pseudo-elements to an enum. r=hiro,xidorn
This commit is contained in:
parent
0bc185f1c2
commit
5820e3ecac
17 changed files with 2260 additions and 1505 deletions
|
@ -26,28 +26,3 @@ macro_rules! check_enum_value_non_static {
|
|||
assert_eq!($a.0 as usize, $b as usize);
|
||||
}
|
||||
}
|
||||
|
||||
// Note that we can't call each_pseudo_element, parse_pseudo_element, or
|
||||
// similar, because we'd need the foreign atom symbols to link.
|
||||
#[test]
|
||||
fn assert_basic_pseudo_elements() {
|
||||
let saw_before;
|
||||
let saw_after;
|
||||
|
||||
macro_rules! pseudo_element {
|
||||
(":before", $atom:expr, false) => {
|
||||
saw_before = true;
|
||||
};
|
||||
(":after", $atom:expr, false) => {
|
||||
saw_after = true;
|
||||
};
|
||||
($pseudo_str_with_colon:expr, $atom:expr, $is_anon_box:expr) => {
|
||||
// Do nothing
|
||||
};
|
||||
}
|
||||
|
||||
include!("../../../components/style/gecko/generated/pseudo_element_helper.rs");
|
||||
|
||||
assert!(saw_before);
|
||||
assert!(saw_after);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue