diff --git a/tests/js-tests/src/tests_resources.js b/tests/js-tests/src/tests_resources.js index 2cad6d76b4..3afaf7da35 100644 --- a/tests/js-tests/src/tests_resources.js +++ b/tests/js-tests/src/tests_resources.js @@ -1097,5 +1097,8 @@ var g_ccs2 = [ "ccs-res/cocosui/UIEditorTest/UILabelBMFont_Editor/GUI/missing-font.png" ]; -res.CCControlColourPickerSpriteSheet_plist = "extensions/CCControlColourPickerSpriteSheet.plist"; -res.CCControlColourPickerSpriteSheet_png = "extensions/CCControlColourPickerSpriteSheet.png"; \ No newline at end of file +if (!cc.sys.isNative) { + var res = res || {}; + res.CCControlColourPickerSpriteSheet_plist = "extensions/CCControlColourPickerSpriteSheet.plist"; + res.CCControlColourPickerSpriteSheet_png = "extensions/CCControlColourPickerSpriteSheet.png"; +} \ No newline at end of file