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

		setSize item3, 50, 50
		onReady ->
			expectSize flow, 110, 200
			expectMargins flow, 10, 10, 0, 0
			expectPosition item1, 0, 0
			expectPosition item2, 60, 0
			expectSize item2, 50, 140
			expectPosition item3, 0, 150
			done()

	# BUG
	it '13', (done) ->
		flow.width = 110
		flow.height = 200
		flow.collapseMargins = true
		flow.includeBorderMargins = true
		setSize item1, 50, 50
		item2.layout.fillWidth = true
		item2.layout.fillHeight = true
		item2.margin = 10
		setSize item3, 50, 50
		onReady ->
			expectSize flow, 110, 200
			expectMargins flow, 0, 0, 0, 0
			expectPosition item1, 0, 0
			expectPosition item2, 10, 60
			expectSize item2, 90, 80
			expectPosition item3, 0, 150
			done()

'use strict'

unit = require 'neft-unit'
assert = require 'neft-assert'
Renderer = require '../index'

{describe, it, beforeEach} = unit
{Flow, Item} = Renderer

setSize = (item, width, height) ->
