aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/style/lib.rs
blob: 7b6c48814bd2dbe02f0d2d5886591a9d183b7f8d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* 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/. */

#![feature(plugin)]
#![plugin(string_cache_plugin)]

extern crate cssparser;
extern crate euclid;
extern crate selectors;
extern crate string_cache;
extern crate style;
extern crate url;
extern crate util;


#[cfg(test)] mod stylesheets;
#[cfg(test)] mod media_queries;
#[cfg(test)] mod viewport;

#[cfg(test)] mod writing_modes {
    use util::logical_geometry::WritingMode;
    use style::properties::{INITIAL_VALUES, get_writing_mode};

    #[test]
    fn initial_writing_mode_is_empty() {
        assert_eq!(get_writing_mode(INITIAL_VALUES.get_inheritedbox()), WritingMode::empty())
    }
}