Sha256: 3f61c4ec151ec2636576866e6a0ec7f6451365c3b6a8932d387111178bf7dc41

Contents?: true

Size: 480 Bytes

Versions: 8

Compression:

Stored size: 480 Bytes

Contents

describe('image', function(){
	
  var i;
  var image_comp;
  
  beforeEach(function(){
    image_comp = f('image')
    i = re.e(['image', image_comp.name]);
  })
  
	it('image', function(){
		is(i.image())
    
    //set
    is(i.image(image_comp.image))
    
    eq(i.image(), image_comp.image)
	});
  
  it('visible', function(){
    ok(i.visible())
    
    i._image = null;
    
    not(i.visible())
  })
  
  it('draw', function(){
    is(i.draw(re.sys.context))
  })
  
});

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
entityjs-0.4.4 spec/javascripts/src/display/image_spec.js
entityjs-0.4.3 spec/javascripts/src/display/image_spec.js
entityjs-0.4.2 spec/javascripts/src/display/image_spec.js
entityjs-0.4.1 spec/javascripts/src/display/image_spec.js
entityjs-0.4.0 spec/javascripts/src/display/image_spec.js
entityjs-0.3.2 spec/javascripts/src/display/image_spec.js
entityjs-0.3.1 spec/javascripts/src/display/image_spec.js
entityjs-0.3.0 spec/javascripts/src/display/image_spec.js