From 7c947a5e7841b45f80138143b87c9f8002ec1415 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Tue, 27 Mar 2012 16:56:28 -0700 Subject: [PATCH] servo: make the numbers a bit more interesting Source-Repo: https://github.com/servo/servo Source-Revision: 7f2cae11f21ba7429c3d40cc62f5aed58b284e45 --- servo/src/layout/base.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/servo/src/layout/base.rs b/servo/src/layout/base.rs index 44f6e3bd41a8..bfa597c52ec3 100644 --- a/servo/src/layout/base.rs +++ b/servo/src/layout/base.rs @@ -111,8 +111,8 @@ mod test { #[test] fn do_layout() { let n0 = new_node(nk_img(size(au(10),au(10)))); - let n1 = new_node(nk_img(size(au(10),au(10)))); - let n2 = new_node(nk_img(size(au(10),au(10)))); + let n1 = new_node(nk_img(size(au(10),au(15)))); + let n2 = new_node(nk_img(size(au(10),au(20)))); let n3 = new_node(nk_div); tree::add_child(n3, n0); @@ -131,9 +131,9 @@ mod test { reflow_block(b3, au(100)); let fb = flat_bounds(b3); #debug["fb=%?", fb]; - assert fb == [geom::box(au(0), au(0), au(10), au(10)), - geom::box(au(0), au(10), au(10), au(10)), - geom::box(au(0), au(20), au(10), au(10)), - geom::box(au(0), au(0), au(100), au(30))]; + assert fb == [geom::box(au(0), au(0), au(10), au(10)), // n0 + geom::box(au(0), au(10), au(10), au(15)), // n1 + geom::box(au(0), au(25), au(10), au(20)), // n2 + geom::box(au(0), au(0), au(100), au(45))]; // n3 } } \ No newline at end of file