Skip to content
This repository was archived by the owner on Jul 10, 2023. It is now read-only.

Commit dcfea5d

Browse files
committed
fix test for font_size
1 parent a742799 commit dcfea5d

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

test.rs

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -334,22 +334,21 @@ fn test_font_family_specific() {
334334
}
335335
336336
#[test]
337-
#[ignore]
338337
fn test_font_size() {
339-
let style = "div { font-size: 10pt; }";
340-
do single_div_test(style) |computed| {
338+
let style = "span { font-size: 10pt; }";
339+
do child_test(style) |computed| {
341340
assert!(computed.font_size() == Specified(CSSFontSizeLength(Pt(10.0))));
342341
}
343-
let style = "div { font-size: 10%; }";
344-
do single_div_test(style) |computed| {
342+
let style = "span { font-size: 10%; }";
343+
do child_test(style) |computed| {
345344
assert!(computed.font_size() == Specified(CSSFontSizePercentage(10.0)));
346345
}
347-
let style = "div { font-size: small; }";
348-
do single_div_test(style) |computed| {
346+
let style = "span { font-size: small; }";
347+
do child_test(style) |computed| {
349348
assert!(computed.font_size() == Specified(CSSFontSizeAbsoluteSize(Small)));
350349
}
351-
let style = "div { font-size: smaller; }";
352-
do single_div_test(style) |computed| {
350+
let style = "span { font-size: smaller; }";
351+
do child_test(style) |computed| {
353352
assert!(computed.font_size() == Specified(CSSFontSizeRelativeSize(Smaller)));
354353
}
355354
}

0 commit comments

Comments
 (0)