diff options
author | wout <wout@impinc.co.uk> | 2013-08-22 13:26:11 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2013-08-22 13:26:11 +0100 |
commit | bd58094c43ab78bec28ec97e62e71af9ad2febb4 (patch) | |
tree | b92c6d901089854df58d18493e786a34207bee43 /spec | |
parent | d93be6ca2bce202af05ff0966e7c70195b786299 (diff) | |
download | svg.js-bd58094c43ab78bec28ec97e62e71af9ad2febb4.tar.gz svg.js-bd58094c43ab78bec28ec97e62e71af9ad2febb4.zip |
Fixed bug in memory system
Diffstat (limited to 'spec')
-rw-r--r-- | spec/spec/memory.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/spec/spec/memory.js b/spec/spec/memory.js index b3a60e0..c7bb942 100644 --- a/spec/spec/memory.js +++ b/spec/spec/memory.js @@ -1,8 +1,9 @@ describe('Memory', function () { - var rect + var rect, circle beforeEach(function() { rect = draw.rect(100,120) + circle = draw.circle(100) }) afterEach(function() { @@ -24,6 +25,12 @@ describe('Memory', function () { rect.remember('opacity', 0.85) expect(rect.remember('opacity')).toBe(0.85) }) + it('saves values to individual objects', function() { + rect.remember('opacity', 0.85) + circle.remember('opacity', 0.5) + expect(rect.remember('opacity')).toBe(0.85) + expect(circle.remember('opacity')).toBe(0.5) + }) }) describe('forget()', function() { |