+'use strict'
+
+unit = require 'neft-unit'
+assert = require 'neft-assert'
 Renderer = require '../index'
 
+{describe, it, beforeEach} = unit
 {Flow, Item} = Renderer
 
 setSize = (item, width, height) ->

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

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