mirror of
https://github.com/servo/servo.git
synced 2025-08-10 16:05:43 +01:00
Remove testing feature from style crate
This commit is contained in:
parent
a6369149dc
commit
2ebce54d75
33 changed files with 63 additions and 1181 deletions
|
@ -242,6 +242,7 @@ fn mock_stylist() -> Stylist {
|
|||
|
||||
#[test]
|
||||
fn test_stylist_device_accessors() {
|
||||
thread_state::initialize(thread_state::LAYOUT);
|
||||
let stylist = mock_stylist();
|
||||
assert_eq!(stylist.device().media_type(), MediaType::Screen);
|
||||
let mut stylist_mut = mock_stylist();
|
||||
|
@ -250,6 +251,7 @@ fn test_stylist_device_accessors() {
|
|||
|
||||
#[test]
|
||||
fn test_stylist_rule_tree_accessors() {
|
||||
thread_state::initialize(thread_state::LAYOUT);
|
||||
let stylist = mock_stylist();
|
||||
stylist.rule_tree();
|
||||
stylist.rule_tree().root();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue