From 44c37c676e3c77911dbe4f586bd891e70c15d211 Mon Sep 17 00:00:00 2001 From: VisualSJ Date: Thu, 18 Jun 2015 11:54:25 +0800 Subject: [PATCH] change the seek to time --- .../js-tests/src/GUITest/UIVideoPlayerTest/UIVideoPlayerTest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/js-tests/src/GUITest/UIVideoPlayerTest/UIVideoPlayerTest.js b/tests/js-tests/src/GUITest/UIVideoPlayerTest/UIVideoPlayerTest.js index af6afd3355..8461604551 100644 --- a/tests/js-tests/src/GUITest/UIVideoPlayerTest/UIVideoPlayerTest.js +++ b/tests/js-tests/src/GUITest/UIVideoPlayerTest/UIVideoPlayerTest.js @@ -53,7 +53,7 @@ var UIVideoPlayerTest = UIScene.extend({ video.resume(); }}, { name: "SEEKTO", func: function(){ - var sec = ((Math.random() * 3) * 100 | 0) / 100; + var sec = ((Math.random() * 59) * 100 | 0) / 100; cc.log("seekTo %f sec!", sec); video.seekTo(sec); }},