axmol/tests/cpp-tests/Classes
j-jorge 6bbf01537d Allow to unbind asynchronous texture loading callback with a custom key. (#17206)
* Allow to unbind asynchronous texture loading callback with a custom key.

In order to unbind the callback passed to
`cocos2d::TextureCache::addImageAsync(path, callback)`, one has to
call `cocos2d::TextureCache::unbindImageAsync(path)`. In the cases
where the loading of the same texture is requested from several sources
simultaneously, then none of the source can unbind its own callback
unambiguously.

This commit adds an overload of the `addImageAsync` function taking an extra
argument identifying the callback, thus allowing to unbind it unambiguously
in cases where the loading of path is requested by several sources
simultaneously.

* Add a test case for TextureCache::addImageAsync with a custom key.
2017-02-04 09:38:54 +08:00
..
ActionManagerTest fix: add testcase for issue #14050 fix 2016-06-28 17:08:56 -07:00
ActionsEaseTest Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
ActionsProgressTest Fixes jsval_to_std_string could not convert number to string. (#16504) 2016-09-05 10:02:05 +08:00
ActionsTest fix #14936 (#17190) 2017-01-17 09:48:30 +08:00
AllocatorTest Remove unneeded include files and fixed warns. 2015-06-25 23:15:39 +08:00
BillBoardTest Sprite scale9 (#16702) 2016-10-26 18:45:40 -07:00
Box2DTest Fixed compile error. 2015-06-11 14:42:03 +08:00
Box2DTestBed Remove redundant semicolons (#16558) 2016-09-12 09:45:34 +08:00
BugsTest Update BugsTest.cpp (#17125) 2017-01-09 09:36:00 +08:00
Camera3DTest Sprite scale9 (#16702) 2016-10-26 18:45:40 -07:00
ChipmunkTest Squashed commit of the following: 2016-02-29 13:53:00 -08:00
ClickAndMoveTest
ClippingNodeTest Replace String::createWithFormat() with StringUtils::format() 2015-10-16 15:02:14 +09:00
CocosDenshionTest No CC_UNUSED_PARAM (#16812) 2016-11-16 09:48:37 +08:00
ConfigurationTest Remove unneeded include files and fixed warns. 2015-06-25 23:15:39 +08:00
ConsoleTest use std::srand() instead 2016-07-11 11:17:28 +08:00
CurlTest Refactor WebSocket to support SSL (wss) (#17172) 2017-01-19 13:55:14 +08:00
CurrentLanguageTest
DataVisitorTest fix tons of warnings 2015-07-15 12:04:48 +08:00
DownloaderTest fix url (#16922) 2016-11-30 10:28:51 +08:00
DrawPrimitivesTest test: add test case for Github issue #11942 2016-07-06 17:21:58 -07:00
EffectsAdvancedTest
EffectsTest Remove redundant semicolons (#16558) 2016-09-12 09:45:34 +08:00
ExtensionsTest Refactor WebSocket to support SSL (wss) (#17172) 2017-01-19 13:55:14 +08:00
FileUtilsTest Adding async version of common CCFileUtil functions. This will allow engine users to interact with the file system, without blocking the main thread and disrupting rendering. (#17140) 2017-01-13 10:05:46 +08:00
FontTest Use resolved file name (through dictionary lookup) in font atlas creation (#16797) 2016-11-18 09:23:44 +08:00
InputTest
IntervalTest
JNITest Add tizen support (#15518) 2016-04-28 09:49:55 +08:00
LabelTest [label] Fixes shadow is drawn incorrect while also enabling outline. (#17024) 2016-12-16 14:56:36 +08:00
LayerTest ignoreAnchorPointForPosition() -> set ~ from missing files 2016-04-25 20:43:42 +09:00
LightTest
MaterialSystemTest Sprite scale9 (#16702) 2016-10-26 18:45:40 -07:00
MenuTest Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
MotionStreakTest test: add test case for Github issue #12226 2016-07-06 16:37:15 -07:00
MutiTouchTest
NavMeshTest Prevent the compilation of NavMeshTest if CC_USE_PHYSICS=0. (#17205) 2017-01-19 10:28:20 +08:00
NewAudioEngineTest [mac, ios] 'ExtAudioFileRead' may return 0 frame while it doesn’t reach the end of very short audio file. (#17011) 2016-12-15 09:58:47 +08:00
NewEventDispatcherTest Fixes NewEventDispatcherTest. (#16983) 2016-12-12 09:39:20 +08:00
NewRendererTest fix: TriangleCommands with custom uniforms can be batched (#16329) 2016-08-07 14:51:02 -07:00
NodeTest fixed #16735: [native] The behavior of (setRotation + setSkewX) is wrong (#16736) 2016-10-31 10:29:04 +08:00
OpenURLTest
ParallaxTest
Particle3DTest Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
ParticleTest Particle set display frame (#17163) 2017-01-12 11:48:30 +08:00
Physics3DTest No CC_UNUSED_PARAM (#16812) 2016-11-16 09:48:37 +08:00
PhysicsTest [lua-tests] Fixes PhysicsDemoBug5482 crashes. (#16979) 2016-12-09 14:12:57 +08:00
ReleasePoolTest
RenderTextureTest fixed #16894: RenderTexture does not support Sprite3D (#16909) 2016-11-28 09:50:54 +08:00
RotateWorldTest ignoreAnchorPointForPosition() -> set ~ from missing files 2016-04-25 20:43:42 +09:00
Scene3DTest Correct the Skybox fov (#16655) 2016-10-17 13:46:26 +08:00
SceneTest
SchedulerTest Fixed Scheduler bug occured when unschedule target during update. (#17203) 2017-01-18 16:32:36 +08:00
ShaderTest Fix some minor typos in local variable names 2016-06-29 11:04:11 +09:00
SpineTest Adds Spine binary-file format support (#16629) 2016-10-11 10:56:14 -07:00
Sprite3DTest Sprite scale9 (#16702) 2016-10-26 18:45:40 -07:00
SpriteFrameCacheTest Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
SpritePolygonTest Sprite scale9 (#16702) 2016-10-26 18:45:40 -07:00
SpriteTest Fix typo in Sprite (strech -> stretch) (#17241) 2017-01-23 09:25:56 +08:00
TerrainTest add terrain test with light map 2015-08-03 14:02:46 +08:00
TextInputTest Fix password style text in UTF-16 (#15620) 2016-05-23 09:48:15 +08:00
Texture2dTest Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
TextureCacheTest Allow to unbind asynchronous texture loading callback with a custom key. (#17206) 2017-02-04 09:38:54 +08:00
TexturePackerEncryptionTest fix tons of warnings 2015-07-15 12:04:48 +08:00
TileMapTest fix: staggered hex maps returns correct tile (#16552) 2016-09-13 21:47:36 -07:00
TouchesTest Roll back disable force GC change on windows platform, this cause lua binding can not respond mouse click 2015-12-22 18:41:44 +08:00
TransitionsTest Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
UITest Merge v3.14.1 (#17231) 2017-01-20 09:59:30 +08:00
UnitTest No CC_UNUSED_PARAM (#16812) 2016-11-16 09:48:37 +08:00
UserDefaultTest add UserDefault api deleteValueForKey 2015-07-06 17:01:17 +08:00
VRTest Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
VibrateTest fix tons of warnings 2015-07-15 12:04:48 +08:00
WindowTest fix tizen compile issue (#17002) 2016-12-14 11:55:38 +08:00
ZwoptexTest
AppDelegate.cpp [cpp-tests] Reverts code change by mistake. (#16996) 2016-12-13 11:42:12 +08:00
AppDelegate.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
BaseTest.cpp Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
BaseTest.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
VisibleRect.cpp Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
VisibleRect.h
controller.cpp Refactor WebSocket to support SSL (wss) (#17172) 2017-01-19 13:55:14 +08:00
controller.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
testBasic.cpp
testBasic.h
testResource.h
tests.h Toggle between windowed/fullscreen on desktop (#16762) 2016-10-31 14:02:02 +08:00