started setting up new caching system

This commit is contained in:
Eric Rowell
2013-08-09 21:09:06 -07:00
parent 7700ecc70b
commit cb5cb66256
2 changed files with 50 additions and 33 deletions

View File

@@ -105,20 +105,24 @@ Test.Modules.NODE = {
strokeWidth: 4
});
test(!circle.cachedTransform, 'circle transform cache should be empty');
test(!circle.cache.transform, '1) circle transform cache should be empty');
layer.add(circle);
stage.add(layer);
test(circle.cachedTransform, 'circle transform cache should be present');
test(circle.cache.transform, '2) circle transform cache should be present');
console.log(circle.cache.transform)
circle.setX(100);
test(!circle.cachedTransform, 'circle transform cache should be empty');
console.log(circle.cache.transform)
test(!circle.cache.transform, '3) circle transform cache should be empty');
layer.draw();
test(circle.cachedTransform, 'circle transform cache should be present');
test(circle.cache.transform, '4) circle transform cache should be present');
},
'test pixel ratio toDataURL': function(containerId) {