Sha256: d98c0004f6e271c3879a80e917ecae5d9bac1d0d058380fe70c36100414a4d57
Contents?: true
Size: 678 Bytes
Versions: 2
Compression:
Stored size: 678 Bytes
Contents
describe('screen', function(){ var e; beforeEach(function(){ e = re.e('screen'); }); it('pos', function(){ eq(e.pos(), e) eq(e.pos(10, 4), e) eq(e.posX, 10) eq(e.posY, 4) //set with object eq(e.pos({posX:2, posY:3}), e) eq(e.posX, 2) eq(e.posY, 3) }); it('toScreenx', function(){ is(e.toScreenX(10)) }); it('toScreenY', function(){ is(e.toScreenY(10)) }); it('toscreen', function(){ var k = e.toScreen(10, 2); eq(k.x, 10) eq(k.y, 2) k = e.toScreen({posX:3, posY:1}) eq(k.x, 3) eq(k.y, 1) k = e.toScreen({x:6, y:5}) eq(k.x, 6) eq(k.y, 5) }) });
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
entityjs-0.3.1 | spec/javascripts/src/display/screen_spec.js |
entityjs-0.3.0 | spec/javascripts/src/display/screen_spec.js |