From 7f21731bb1ac39650ffca92bf9fa298f5e009328 Mon Sep 17 00:00:00 2001 From: samuele3hu Date: Thu, 18 Jun 2015 10:08:13 +0800 Subject: [PATCH] Update UIS9NinePatchTest for jsb --- tests/js-tests/src/GUITest/UISceneManager.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/tests/js-tests/src/GUITest/UISceneManager.js b/tests/js-tests/src/GUITest/UISceneManager.js index b492f45c53..841d0e9ed3 100644 --- a/tests/js-tests/src/GUITest/UISceneManager.js +++ b/tests/js-tests/src/GUITest/UISceneManager.js @@ -528,16 +528,19 @@ return new UIRichTextTest(); } } - ], - "UIS9NinePatchTest": [ - { + ] + }; + + if (cc.sys.isNative) { + testingItems["UIS9NinePatchTest"] = [ + { title: "UIS9NinePatchTest", func: function () { return new UIS9NinePatchTest(); } } - ] - }; + ]; + } if (cc.sys.os == cc.sys.OS_ANDROID || cc.sys.os == cc.sys.OS_IOS || !cc.sys.isNative) {