diff --git a/src/components/style/tests/mod.rs b/src/components/style/tests/mod.rs index 8c2771a9a0a..e9a67a302c1 100644 --- a/src/components/style/tests/mod.rs +++ b/src/components/style/tests/mod.rs @@ -2,11 +2,11 @@ * 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/. */ -use super::stylesheets::parse_stylesheet; +use super::stylesheets::Stylesheet; #[test] fn test_bootstrap() { // Test that parsing bootstrap does not trigger an assertion or otherwise fail. - let stylesheet = parse_stylesheet(include_str!("bootstrap-v3.0.0.css")); + let stylesheet = Stylesheet::from_str(include_str!("bootstrap-v3.0.0.css")); assert!(stylesheet.rules.len() > 100); // This depends on whet selectors are supported. }