UIScene testcase modification

This commit is contained in:
ZhangMenghe 2015-08-07 09:30:22 +08:00
parent f01f21d06f
commit 0ddd4e4a5b
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;
}
};