1 /* This Source Code Form is subject to the terms of the Mozilla Public
2  * License, v. 2.0. If a copy of the MPL was not distributed with this
3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4 
5 use parsing::parse;
6 use style::properties::longhands::font_weight;
7 
8 #[test]
font_weight_keyword_should_preserve_keyword()9 fn font_weight_keyword_should_preserve_keyword() {
10     use style::properties::longhands::font_weight::SpecifiedValue;
11 
12     let result = parse(font_weight::parse, "normal").unwrap();
13     assert_eq!(result, SpecifiedValue::Normal);
14 
15     let result = parse(font_weight::parse, "bold").unwrap();
16     assert_eq!(result, SpecifiedValue::Bold);
17 }
18