diff --git a/tests/js-tests/src/VibrateTest/VibrateTest.js b/tests/js-tests/src/VibrateTest/VibrateTest.js index 84f61f261b..e52fd86388 100644 --- a/tests/js-tests/src/VibrateTest/VibrateTest.js +++ b/tests/js-tests/src/VibrateTest/VibrateTest.js @@ -58,9 +58,9 @@ var VibrateTest = BaseTestLayer.extend({ var durationSlider = new ccui.Slider(); durationSlider.setPercent(0); durationSlider.setTouchEnabled(true); - durationSlider.loadBarTexture("res/ccs-res/cocosui/sliderTrack.png"); - durationSlider.loadSlidBallTextures("res/ccs-res/cocosui/sliderThumb.png", "res/ccs-res/cocosui/sliderThumb.png", ""); - durationSlider.loadProgressBarTexture("res/ccs-res/cocosui/sliderProgress.png"); + durationSlider.loadBarTexture("ccs-res/cocosui/sliderTrack.png"); + durationSlider.loadSlidBallTextures("ccs-res/cocosui/sliderThumb.png", "ccs-res/cocosui/sliderThumb.png", ""); + durationSlider.loadProgressBarTexture("ccs-res/cocosui/sliderProgress.png"); durationSlider.x = s.width * 0.5; durationSlider.y = s.height * 0.35; durationSlider.addEventListener(this.durationSliderEvent, this); diff --git a/tests/js-tests/src/tests-main.js b/tests/js-tests/src/tests-main.js index dcbea19e4e..b6efec7e19 100644 --- a/tests/js-tests/src/tests-main.js +++ b/tests/js-tests/src/tests-main.js @@ -721,7 +721,7 @@ var testNames = [ }, { title:"Vibrate Test", - platforms: PLATFORM_ALL, + platforms: PLATFORM_JSB, linksrc:"src/VibrateTest/VibrateTest.js", testScene:function () { return new VibrateTestScene();