mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
CSS: fix tests.
This commit is contained in:
parent
168261074c
commit
ec711dac78
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue