spec/javascripts/src/display/text_spec.js in entityjs-0.3.2 vs spec/javascripts/src/display/text_spec.js in entityjs-0.4.0
- old
+ new
@@ -21,9 +21,17 @@
ok(f.visible())
is(f.text(''))
not(f.visible())
})
+ it('should join strings', function(){
+
+ f.text('blah',10,"nice");
+
+ eq(f.text(), 'blah 10 nice');
+
+ });
+
it('should draw', function(){
f.text('m\nlinesdfsdfsdfsdsdfsdfsdfsdfsdfsfsf')
is(f.draw(re.sys.context))
//make sure correct width is set
\ No newline at end of file