mirror of
https://github.com/servo/servo.git
synced 2025-09-30 00:29:14 +01:00
Use size_of_test! macro in style and stylo tests.
This commit is contained in:
parent
864f5509d8
commit
5e60865d19
8 changed files with 12 additions and 34 deletions
|
@ -24,6 +24,7 @@ rustc-serialize = "0.3"
|
|||
selectors = {path = "../../../components/selectors"}
|
||||
servo_atoms = {path = "../../../components/atoms"}
|
||||
servo_config = {path = "../../../components/config"}
|
||||
servo_url = {path = "../../../components/url"}
|
||||
size_of_test = {path = "../../../components/size_of_test"}
|
||||
style = {path = "../../../components/style"}
|
||||
style_traits = {path = "../../../components/style_traits"}
|
||||
servo_url = {path = "../../../components/url"}
|
||||
|
|
|
@ -17,6 +17,7 @@ extern crate selectors;
|
|||
extern crate servo_atoms;
|
||||
extern crate servo_config;
|
||||
extern crate servo_url;
|
||||
#[macro_use] extern crate size_of_test;
|
||||
extern crate style;
|
||||
extern crate style_traits;
|
||||
extern crate test;
|
||||
|
|
|
@ -2,10 +2,9 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#[test]
|
||||
fn size_of_property_declaration() {
|
||||
::style::properties::test_size_of_property_declaration();
|
||||
}
|
||||
use style::properties;
|
||||
|
||||
size_of_test!(test_size_of_property_declaration, properties::PropertyDeclaration, 32);
|
||||
|
||||
#[test]
|
||||
fn size_of_specified_values() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue