mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +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)));
|
||||
|
||||
do list.borrow |l| {
|
||||
match l[0].item {
|
||||
dl::SolidColor(*) => { }
|
||||
match l[0].data {
|
||||
dl::SolidColorData(*) => { }
|
||||
_ => { 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)));
|
||||
|
||||
do list.borrow |l| {
|
||||
match l[1].item {
|
||||
dl::Text(_) => { }
|
||||
match l[1].data {
|
||||
dl::TextData(_) => { }
|
||||
_ => { fail }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue