axmol/tests/cpp-tests/Classes
rh101 fd7f7ba085 Fix for Label and UIRichEdit text trailing space trimming (#18876)
* [UIRichText.cpp] Allow user to select if they want to trim trailing spaces for a RichElementText. Also fixed crash if estimatedIdx is less than 0 in certain conditions.
[UIRichText.h] New flag added for enabling trailing space trimming.
[CCLabelTextFormatter.cpp] Only trim trailing whitespace if lines are being split. This will trim all whitespace up to the next non-whitespace token in a line.

* Fix for oversized sprites that need to be offset by X and Y to be aligned correctly in the UIRichText

* Revert "Fix for oversized sprites that need to be offset by X and Y to be aligned correctly in the UIRichText"

This reverts commit fc5492e878a982ff748488bf1de4ffa88a3d4755.

* [UIRichText] Reverted changes made for trimming since they are no longer required. The changes made to CCLabelTextFormatter.cpp fixed all the current issues.

* Added test cases from #18869

* Removed the forced trailing space clipping since it is not required here, and causing side-effects.

* Removed comment that no longer applies to that section of code
2018-06-08 17:06:29 +08:00
..
ActionManagerTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
ActionsEaseTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
ActionsProgressTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
ActionsTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
AllocatorTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
BillBoardTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
Box2DTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
Box2DTestBed update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
BugsTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
Camera3DTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
ChipmunkTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
ClickAndMoveTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
ClippingNodeTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CocosDenshionTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
ConfigurationTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
ConsoleTest Fix no-break space size (#18661) 2018-03-13 09:40:24 +08:00
CurlTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CurrentLanguageTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
DataVisitorTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
DownloaderTest add download multi task test case (#18795) 2018-05-17 09:10:51 +08:00
DrawPrimitivesTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
EffectsAdvancedTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
EffectsTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
ExtensionsTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
FileUtilsTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
FontTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
InputTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
IntervalTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
JNITest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
LabelTest check test cases and fix small bugs before 3.17 release (#18786) 2018-04-25 09:50:53 +08:00
LayerTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
LightTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
MaterialSystemTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
MenuTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
MotionStreakTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
MultiTouchTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
NavMeshTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
NewAudioEngineTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
NewEventDispatcherTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
NewRendererTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
NodeTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
OpenURLTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
ParallaxTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
Particle3DTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
ParticleTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
Physics3DTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
PhysicsTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
ReleasePoolTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
RenderTextureTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
RotateWorldTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
Scene3DTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
SceneTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
SchedulerTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
ShaderTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
SpineTest Update spine (#18427) 2017-11-02 09:06:13 +08:00
Sprite3DTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
SpriteFrameCacheTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
SpritePolygonTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
SpriteTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
TerrainTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
TextInputTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
Texture2dTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
TextureCacheTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
TexturePackerEncryptionTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
TileMapTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
TouchesTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
TransitionsTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
UITest Fix for Label and UIRichEdit text trailing space trimming (#18876) 2018-06-08 17:06:29 +08:00
UnitTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
UserDefaultTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
VRTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
VibrateTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
WindowTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
ZwoptexTest update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
AppDelegate.cpp update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
AppDelegate.h update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
BaseTest.cpp update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
BaseTest.h update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
VisibleRect.cpp update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
VisibleRect.h update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
controller.cpp beauty cmake format, reduce duplicate defines (#18799) 2018-05-02 15:33:01 +08:00
controller.h update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
precheader.cpp Speed up windows build (#18662) 2018-01-29 16:36:38 +08:00
precheader.h Speed up windows build (#18662) 2018-01-29 16:36:38 +08:00
testBasic.h update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
testResource.h update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
tests.h beauty cmake format, reduce duplicate defines (#18799) 2018-05-02 15:33:01 +08:00