Adjust Grid test

This commit is contained in:
gizak 2015-05-12 16:16:08 -04:00
parent 371d184755
commit ba58fa4034

View File

@ -13,13 +13,13 @@ import (
var r *Row var r *Row
func TestRowWidth(t *testing.T) { func TestRowWidth(t *testing.T) {
p0 := NewPar("p0") p0 := NewBlock()
p0.Height = 1 p0.Height = 1
p1 := NewPar("p1") p1 := NewBlock()
p1.Height = 1 p1.Height = 1
p2 := NewPar("p2") p2 := NewBlock()
p2.Height = 1 p2.Height = 1
p3 := NewPar("p3") p3 := NewBlock()
p3.Height = 1 p3.Height = 1
/* test against tree: /* test against tree:
@ -34,24 +34,6 @@ func TestRowWidth(t *testing.T) {
/ /
1100:w 1100:w
*/ */
/*
r = &row{
Span: 12,
Cols: []*row{
&row{Widget: p0, Span: 6},
&row{
Span: 6,
Cols: []*row{
&row{Widget: p1, Span: 6},
&row{
Span: 6,
Cols: []*row{
&row{
Span: 12,
Widget: p2,
Cols: []*row{
&row{Span: 12, Widget: p3}}}}}}}}}
*/
r = NewRow( r = NewRow(
NewCol(6, 0, p0), NewCol(6, 0, p0),