From ec711dac78750a8417c181cba0285f0753e82ff8 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Fri, 18 Oct 2013 20:57:16 +0100 Subject: [PATCH] CSS: fix tests. --- src/components/style/tests/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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. }