Example #1
0
func TestStylePrinter(t *testing.T) {
	su := []*trees.Style{styles.Width(styles.Px(200))}
	res := trees.SimpleStyleWriter.Print(su)
	tests.StrictExpect(t, expectedStyle, res)
}
Example #2
0
func TestAttrPrinter(t *testing.T) {
	attr := []*trees.Attribute{&trees.Attribute{Name: "data-fax", Value: "butler"}}
	res := trees.SimpleAttrWriter.Print(attr)
	tests.StrictExpect(t, expectedAttr, res)
}