From 7753a073596e7083f93f1d322ff7732b244acd32 Mon Sep 17 00:00:00 2001 From: ZhangMenghe Date: Fri, 7 Aug 2015 11:20:17 +0800 Subject: [PATCH] TileMap Testcase abnormal --- tests/js-tests/src/TileMapTest/TileMapTest.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/js-tests/src/TileMapTest/TileMapTest.js b/tests/js-tests/src/TileMapTest/TileMapTest.js index e1fbf215c8..3ee0bc3848 100644 --- a/tests/js-tests/src/TileMapTest/TileMapTest.js +++ b/tests/js-tests/src/TileMapTest/TileMapTest.js @@ -759,7 +759,6 @@ var TMXOrthoObjectsTest = TileDemo.extend({ var drawNode = new cc.DrawNode(); drawNode.setLineWidth(3); drawNode.setDrawColor(cc.color(255,255,255,255)); - this.addChild(drawNode); var map = new cc.TMXTiledMap(s_resprefix + "TileMaps/ortho-objects.tmx"); this.addChild(map, 0, TAG_TILE_MAP); @@ -784,7 +783,7 @@ var TMXOrthoObjectsTest = TileDemo.extend({ drawNode.drawSegment(cc.p((x + width), (y + height)), cc.p(x, (y + height))); drawNode.drawSegment(cc.p(x, (y + height)), cc.p(x, y)); } - + map.addChild(drawNode); //Automation parameters this.testObjects = array; },