Merge pull request #13257 from ZhangMenghe/v3-UItestcase

UIScene testcase modification
This commit is contained in:
pandamicro 2015-08-07 09:47:42 +08:00
commit d182c37f29
1 changed files with 6 additions and 4 deletions

View File

@ -674,10 +674,12 @@
currentUIScene: function () {
var test = currentTestingArray[this._currentUISceneId];
var sence = test.func();
sence.init();
sence.setSceneTitle(test.title);
return sence;
var layer = test.func();
layer.init();
layer.setSceneTitle(test.title);
var scene = new UIScene();
scene.addChild(layer);
return scene;
}
};