spec/javascripts/src/display/text_spec.js in entityjs-0.3.1 vs spec/javascripts/src/display/text_spec.js in entityjs-0.3.2
- old
+ new
@@ -22,9 +22,13 @@
is(f.text(''))
not(f.visible())
})
it('should draw', function(){
+ f.text('m\nlinesdfsdfsdfsdsdfsdfsdfsdfsdfsfsf')
is(f.draw(re.sys.context))
+
+ //make sure correct width is set
+ ok(f.sizeX > 40)
})
})
\ No newline at end of file