mirror of
https://github.com/servo/servo.git
synced 2025-08-12 08:55:32 +01:00
Use a rulehash for DependencySet.
MozReview-Commit-ID: GXu6O4kiBE6
This commit is contained in:
parent
552bff8fd1
commit
ac40cc629b
2 changed files with 58 additions and 86 deletions
|
@ -24,8 +24,7 @@ fn smoke_restyle_hints() {
|
|||
let selector = (selectors.0).first().unwrap();
|
||||
dependencies.note_selector(selector);
|
||||
assert_eq!(dependencies.len(), 1);
|
||||
let state_deps = dependencies.get_state_deps();
|
||||
assert_eq!(state_deps.len(), 1);
|
||||
assert!(!state_deps[0].sensitivities.states.is_empty());
|
||||
assert!(state_deps[0].hint.contains(RESTYLE_LATER_SIBLINGS));
|
||||
let dep = &dependencies.0.other[0];
|
||||
assert!(!dep.sensitivities.states.is_empty());
|
||||
assert!(dep.hint.contains(RESTYLE_LATER_SIBLINGS));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue