diff options
author | bors-servo <metajack+bors@gmail.com> | 2014-10-03 09:57:26 -0600 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2014-10-03 09:57:26 -0600 |
commit | d4e977a2be1f1fea81c32d1f7024b228cb161966 (patch) | |
tree | 95cb2d618f151e1e108838113ba71e93276b4850 /components/style/selector_matching.rs | |
parent | a2531cd8aa0463e0941229b2f89f1433ad5b5e5e (diff) | |
parent | 7f6f072b02a50a609ff03c4b095476c83ff4d60e (diff) | |
download | servo-d4e977a2be1f1fea81c32d1f7024b228cb161966.tar.gz servo-d4e977a2be1f1fea81c32d1f7024b228cb161966.zip |
auto merge of #3566 : metajack/servo/fixup-unit-tests, r=mbrubeck
This adds the subpackages to `./mach test-unit`.
Diffstat (limited to 'components/style/selector_matching.rs')
-rw-r--r-- | components/style/selector_matching.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/style/selector_matching.rs b/components/style/selector_matching.rs index 984630deabb..5b64840d491 100644 --- a/components/style/selector_matching.rs +++ b/components/style/selector_matching.rs @@ -999,6 +999,7 @@ mod tests { use sync::Arc; use super::{DeclarationBlock, Rule, SelectorMap}; use selectors::LocalName; + use string_cache::Atom; /// Helper method to get some Rules from selector strings. /// Each sublist of the result contains the Rules for one StyleRule. @@ -1043,7 +1044,7 @@ mod tests { fn test_get_class_name(){ let rules_list = get_mock_rules([".intro.foo", "#top"]); assert_eq!(SelectorMap::get_class_name(&rules_list[0][0]), Some(Atom::from_slice("intro"))); - assert_eq!(SelectorMap::get_class_name(rules_list.get(1).get(0)), None); + assert_eq!(SelectorMap::get_class_name(&rules_list[1][0]), None); } #[test] |