move specified values size testing entirely into stylo_tests

This change means that stylo_tests doesn't depend on a version of the
style crate with the `testing` feature defined.
This commit is contained in:
Nathan Froyd 2017-08-04 08:34:36 -04:00
parent e962ac365b
commit 018968877a
6 changed files with 54 additions and 48 deletions

View file

@ -19,7 +19,7 @@ extern crate servo_atoms;
extern crate servo_config;
extern crate servo_url;
#[macro_use] extern crate size_of_test;
extern crate style;
#[macro_use] extern crate style;
extern crate style_traits;
extern crate test;
@ -32,6 +32,8 @@ mod parsing;
mod properties;
mod rule_tree;
mod size_of;
#[path = "../stylo/specified_values.rs"]
mod specified_values;
mod str;
mod stylesheets;
mod stylist;

View file

@ -12,8 +12,3 @@ size_of_test!(test_size_of_property_declaration, properties::PropertyDeclaration
// This is huge, but we allocate it on the stack and then never move it,
// we only pass `&mut SourcePropertyDeclaration` references around.
size_of_test!(test_size_of_parsed_declaration, properties::SourcePropertyDeclaration, 576);
#[test]
fn size_of_specified_values() {
::style::properties::test_size_of_specified_values();
}