Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed #1306 correct some mistake for add comments

  • Loading branch information...
commit 27531965f1f4edbcc0d4708118b1e8557c1087f0 1 parent 0fcb572
@dingpinglv authored
Showing with 3 additions and 10 deletions.
  1. +0 −10 tests/Classes/tests/SpriteTest/SpriteTest.js
  2. +3 −0  tests/build.xml
View
10 tests/Classes/tests/SpriteTest/SpriteTest.js
@@ -1446,7 +1446,6 @@ var SpriteFrameTest = SpriteTestDemo.extend({
// IMPORTANT:
// The sprite frames will be cached AND RETAINED, and they won't be released unless you call
- // cc.SpriteFrameCache.sharedSpriteFrameCache().removeUnusedSpriteFrames);
var cache = cc.SpriteFrameCache.sharedSpriteFrameCache();
cache.addSpriteFramesWithFile(s_grossiniPlist);
cache.addSpriteFramesWithFile(s_grossini_grayPlist, s_grossini_gray);
@@ -1579,7 +1578,6 @@ var SpriteFrameAliasNameTest = SpriteTestDemo.extend({
// IMPORTANT:
// The sprite frames will be cached AND RETAINED, and they won't be released unless you call
- // [[cc.SpriteFrameCache sharedSpriteFrameCache] removeUnusedSpriteFrames];
//
// cc.SpriteFrameCache is a cache of cc.SpriteFrames
// cc.SpriteFrames each contain a texture id and a rect (frame).
@@ -2366,7 +2364,6 @@ var SpriteAnimationSplit = SpriteTestDemo.extend({
},
onExit:function () {
this._super();
- cc.SpriteFrameCache.sharedSpriteFrameCache().removeUnusedSpriteFrames();
}
});
@@ -2389,7 +2386,6 @@ var SpriteHybrid = SpriteTestDemo.extend({
// IMPORTANT:
// The sprite frames will be cached AND RETAINED, and they won't be released unless you call
- // cc.SpriteFrameCache.sharedSpriteFrameCache().removeUnusedSpriteFrames);
cc.SpriteFrameCache.sharedSpriteFrameCache().addSpriteFramesWithFile(s_grossiniPlist);
// create 250 sprites
@@ -2521,7 +2517,6 @@ var SpriteBatchNodeChildren = SpriteTestDemo.extend({
},
onExit:function () {
this._super();
- cc.SpriteFrameCache.sharedSpriteFrameCache().removeUnusedSpriteFrames();
}
});
@@ -2606,7 +2601,6 @@ var SpriteBatchNodeChildren2 = SpriteTestDemo.extend({
},
onExit:function () {
this._super();
- cc.SpriteFrameCache.sharedSpriteFrameCache().removeUnusedSpriteFrames();
}
});
@@ -2697,7 +2691,6 @@ var SpriteBatchNodeChildrenZ = SpriteTestDemo.extend({
},
onExit:function () {
this._super();
- cc.SpriteFrameCache.sharedSpriteFrameCache().removeUnusedSpriteFrames();
}
});
@@ -2761,7 +2754,6 @@ var SpriteChildrenVisibility = SpriteTestDemo.extend({
},
onExit:function () {
this._super();
- cc.SpriteFrameCache.sharedSpriteFrameCache().removeUnusedSpriteFrames();
}
});
@@ -2923,7 +2915,6 @@ var SpriteChildrenAnchorPoint = SpriteTestDemo.extend({
},
onExit:function () {
this._super();
- cc.SpriteFrameCache.sharedSpriteFrameCache().removeUnusedSpriteFrames();
}
});
@@ -3025,7 +3016,6 @@ var SpriteBatchNodeChildrenAnchorPoint = SpriteTestDemo.extend({
},
onExit:function () {
this._super();
- cc.SpriteFrameCache.sharedSpriteFrameCache().removeUnusedSpriteFrames();
}
});
View
3  tests/build.xml
@@ -134,6 +134,9 @@
<sources dir="${basedir}/../CocosDenshion">
<file name="SimpleAudioEngine.js"/>
</sources>
+ <sources dir="${basedir}/../box2d">
+ <file name="box2d.js"/>
+ </sources>
<sources dir="${basedir}">
<file name="Classes/AppDelegate.js"/>
<file name="testbasic.js"/>
Please sign in to comment.
Something went wrong with that request. Please try again.