mirror of
https://github.com/servo/servo.git
synced 2025-07-19 13:23:46 +01:00
Replace rustc_serialize with serde_json in style_tests #12410 Stop using rustc_serialize Replaced rustc_serialize with serde_json in - [ ] ~~components/config/Cargo.toml~~ - [ ] ~~components/config/lib.rs~~ - [ ] ~~components/config/prefs.rs~~ - [ ] ~~components/script_traits/Cargo.toml~~ - [ ] ~~components/script_traits/lib.rs~~ - [ ] ~~components/script_traits/webdriver_msg.rs~~ - [ ] ~~components/webdriver_server/Cargo.toml~~ - [ ] ~~components/webdriver_server/lib.rs~~ - [X] tests/unit/style/Cargo.toml - [X] test/unit/style/lib.rs - [X] test/unit/style/properties/scaffolding.rs PR checks: - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [X] These changes fix (partially) #12410. - [X] These changes do not require tests because functionality was not changed or a test itself was edited <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18710) <!-- Reviewable:end -->
50 lines
1.2 KiB
Rust
50 lines
1.2 KiB
Rust
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* 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/. */
|
|
|
|
#![cfg(test)]
|
|
#![feature(test)]
|
|
|
|
extern crate app_units;
|
|
extern crate cssparser;
|
|
extern crate euclid;
|
|
#[macro_use] extern crate html5ever;
|
|
extern crate parking_lot;
|
|
extern crate rayon;
|
|
extern crate selectors;
|
|
extern crate serde_json;
|
|
extern crate servo_arc;
|
|
extern crate servo_atoms;
|
|
extern crate servo_config;
|
|
extern crate servo_url;
|
|
#[macro_use] extern crate size_of_test;
|
|
#[macro_use] extern crate style;
|
|
extern crate style_traits;
|
|
extern crate test;
|
|
|
|
mod animated_properties;
|
|
mod attr;
|
|
mod custom_properties;
|
|
mod keyframes;
|
|
mod logical_geometry;
|
|
mod media_queries;
|
|
mod parsing;
|
|
mod properties;
|
|
mod rule_tree;
|
|
mod size_of;
|
|
#[path = "../stylo/specified_values.rs"]
|
|
mod specified_values;
|
|
mod str;
|
|
mod stylesheets;
|
|
mod stylist;
|
|
mod viewport;
|
|
|
|
mod writing_modes {
|
|
use style::logical_geometry::WritingMode;
|
|
use style::properties::{INITIAL_SERVO_VALUES, get_writing_mode};
|
|
|
|
#[test]
|
|
fn initial_writing_mode_is_empty() {
|
|
assert_eq!(get_writing_mode(INITIAL_SERVO_VALUES.get_inheritedbox()), WritingMode::empty())
|
|
}
|
|
}
|