 		item3.margin = 20
 		onReady ->
 			expectSize flow, 230, 90
-			expectMargins flow, 0, 0, 0, 0
 			expectPosition item1, 20, 10
 			expectPosition item2, 90, 0
 			expectPosition item3, 160, 20

	item

expectPosition = (item, x, y) ->
	expect(item.x).toBe x
	expect(item.y).toBe y
	item

expectSize = (item, width, height) ->
	expect(item.width).toBe width
	expect(item.height).toBe height
	item

expectMargins = (item, top, right, bottom, left) ->
	expect(item.margin.top).toBe top
	expect(item.margin.right).toBe right
	expect(item.margin.bottom).toBe bottom
	expect(item.margin.left).toBe left
	item

describe 'Flow', ->

		setSize item3, 50, 50
		onReady ->
			expectSize flow, 100, 170
			expectPosition item1, 0, 0
			expectPosition item2, 10, 60
			expectSize item2, 80, 50
