mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Fix breakage in display_list_builder tests
This commit is contained in:
parent
732f8ce194
commit
ce07edcb56
1 changed files with 4 additions and 4 deletions
|
@ -131,8 +131,8 @@ fn should_convert_text_boxes_to_solid_color_background_items() {
|
||||||
box_to_display_items(list, b, Point2D(px_to_au(0), px_to_au(0)));
|
box_to_display_items(list, b, Point2D(px_to_au(0), px_to_au(0)));
|
||||||
|
|
||||||
do list.borrow |l| {
|
do list.borrow |l| {
|
||||||
match l[0].item {
|
match l[0].data {
|
||||||
dl::SolidColor(*) => { }
|
dl::SolidColorData(*) => { }
|
||||||
_ => { fail }
|
_ => { fail }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -155,8 +155,8 @@ fn should_convert_text_boxes_to_text_items() {
|
||||||
box_to_display_items(list, b, Point2D(px_to_au(0), px_to_au(0)));
|
box_to_display_items(list, b, Point2D(px_to_au(0), px_to_au(0)));
|
||||||
|
|
||||||
do list.borrow |l| {
|
do list.borrow |l| {
|
||||||
match l[1].item {
|
match l[1].data {
|
||||||
dl::Text(_) => { }
|
dl::TextData(_) => { }
|
||||||
_ => { fail }
|
_ => { fail }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue