[common][behavior][DPTTIZEN-3241 remove H.263 and MPEG-4 cases] 88/287688/1
authortangkaiyuan <kaiyuan.tang@samsung.com>
Thu, 2 Feb 2023 09:33:26 +0000 (17:33 +0800)
committertangkaiyuan <kaiyuan.tang@samsung.com>
Thu, 2 Feb 2023 09:33:34 +0000 (17:33 +0800)
Change-Id: Iae69aeab46b0ed5e1be7404b1698b0ca6caad35f
Signed-off-by: tangkaiyuan <kaiyuan.tang@samsung.com>
iot/tct-behavior-tests/tests/MediaPlayback/index.html
iot/tct-behavior-tests/tests/MediaPlayback/js/main.js
ivi/tests/MediaPlayback/index.html
ivi/tests/MediaPlayback/js/main.js
mobile/tct-behavior-tests/tests/MediaPlayback/index.html
mobile/tct-behavior-tests/tests/MediaPlayback/js/main.js
tv/tct-behavior-tests/tests/MediaPlayback/index.html
tv/tct-behavior-tests/tests/MediaPlayback/js/main.js
wearable/tct-behavior-tests/tests/MediaPlayback/index.html
wearable/tct-behavior-tests/tests/MediaPlayback/js/main.js

index a25d6e1f636a24a58f2a705df4be982adbc722f7..1cc497f419ac8e4eedf1839594fe13526bceec51 100755 (executable)
@@ -54,17 +54,13 @@ Authors:
         <label for="slider-1">Volume</label>
         <input name="slider-1" id="slider-1" min="0" max="1" step="0.01" value="0.60" data-highlight="true" data-show-value="true" type="range">
       </div>
-      <div id="buttondiv">
-        <a href="javascript:Previous()" id="previous" data-role="button">Retest Previous Video</a>
-        <a href="javascript:Next()" id="next" data-role="button">Test Next Video</a>
-      </div>
     </div>
     <div data-role="footer" data-position="fixed">
     </div>
     <div data-role="popup" id="popup_info">
       <font class="fontSize">
         <p>Test Purpose: </p>
-        <p>Verifies the video playback of 3GP and MP4 files works correctly. And tests the functionality of playback operations including play and pause, volume up and down, time bar sliding forward and backward, full screen and normal screen switching, device rotate, foreground and background switching on every video files.</p>
+        <p>Verifies the video playback of H.264 MP4 files works correctly. And tests the functionality of playback operations including play and pause, volume up and down, time bar sliding forward and backward, full screen and normal screen switching, device rotate, foreground and background switching.</p>
         <p>Note: Press back key to exit fullscreen</p>
         <p>Expected Result: </p>
         <p>Test passes if all the check points work well during the video playback.</p>
index 88f581ffdaacd76d347c23d5504dc1a66f5d9c4c..1de8de41121151d6d8ce1164aa8a265d7c21882a 100755 (executable)
@@ -29,16 +29,14 @@ Authors:
 
 */
 
-var videoFileList = new Array("3GP_h263_CIF_30FPS_507Kbps_eAAC+_Stereo_64Kbps_60sec(4.1Mb)_BBB.3gp", "MP4_h264_CIF_15FPS_387Kbps_MP3_44.1KHz_64Kbps_60sec(3.4Mb)_BBB(hinted).mp4", "MP4_MPEG4_CIF_15FPS_387Kbps_MP3_44.1KHz_64Kbps_60sec(3Mb)_BBB(hinted).mp4");
+var videoFile = "MP4_h264_CIF_15FPS_387Kbps_MP3_44.1KHz_64Kbps_60sec(3.4Mb)_BBB(hinted).mp4";
 var testTarget='';
 
 $(document).ready(function(){
-    $("#previous").addClass("ui-disabled");
-
     //add contentdiv style
     $("#contentdiv").css({"width":"340px","margin":"0px auto"});
     //set default video.src
-    $("#MediaPlayback").attr("src", "../../res/media/" + videoFileList[0]);
+    $("#MediaPlayback").attr("src", "../../res/media/" + videoFile);
     document.getElementById("MediaPlayback").play();
 
     document.getElementById("MediaPlayback").volume = 0.6;
@@ -67,51 +65,3 @@ window.onload = function() {
         }
     });
 };
-
-function Previous() {
-    testTarget=document.getElementById("MediaPlayback");
-    var fileName = getFileName(testTarget.src);
-    for(i=0;i<3;i++) {
-        if(fileName != videoFileList[i])
-            continue;
-        else
-            break;
-    }
-    if(i > 1) {
-        testTarget.src="../../res/media/"+videoFileList[i-1];
-        testTarget.play();
-        $("#next").removeClass("ui-disabled");
-    }else {
-        testTarget.src="../../res/media/"+videoFileList[i-1];
-        testTarget.play();
-        $("#previous").addClass("ui-disabled");
-        $("#next").removeClass("ui-disabled");
-    }
-}
-
-function Next() {
-    testTarget=document.getElementById("MediaPlayback");
-    var fileName = getFileName(testTarget.src);
-    for(i=0;i<3;i++) {
-        if(fileName != videoFileList[i])
-            continue;
-        else
-            break;
-    }
-    if(i < 1) {
-        testTarget.src="../../res/media/"+videoFileList[i+1];
-        testTarget.play();
-        $("#previous").removeClass("ui-disabled");
-    }else {
-        testTarget.src="../../res/media/"+videoFileList[i+1];
-        testTarget.play();
-        $("#next").addClass("ui-disabled");
-        $("#previous").removeClass("ui-disabled");
-        EnablePassButton();
-    }
-}
-
-function getFileName(o){
-    var pos=o.lastIndexOf("/");
-    return o.substring(pos+1);
-}
index 090164cda936176648ceffc59d93ef03fa9533df..fd497a3c986004017e4500054da816ef32083b1a 100755 (executable)
@@ -54,17 +54,13 @@ Authors:
         <label for="slider-1">Volume</label>
         <input name="slider-1" id="slider-1" min="0" max="1" step="0.01" value="0.60" data-highlight="true" data-show-value="true" type="range">
       </div>
-      <div id="buttondiv">
-        <a href="javascript:Previous()" id="previous" data-role="button">Retest Previous Video</a>
-        <a href="javascript:Next()" id="next" data-role="button">Test Next Video</a>
-      </div>
     </div>
     <div data-role="footer" data-position="fixed">
     </div>
     <div data-role="popup" id="popup_info">
       <font class="fontSize">
         <p>Test Purpose: </p>
-        <p>Verifies the video playback of 3GP and MP4 files works correctly. And tests the functionality of playback operations including play and pause, volume up and down, time bar sliding forward and backward, full screen and normal screen switching on every video files.</p>
+        <p>Verifies the video playback of H.264 MP4 files works correctly. And tests the functionality of playback operations including play and pause, volume up and down, time bar sliding forward and backward, full screen and normal screen switching.</p>
         <p>Expected Result: </p>
         <p>Test passes if all the check points work well during the video playback.</p>
       </font>
index 7529951d91e258ca4dbe8756e6be153c6c4aebf1..dccf7f3f4e9be715c53299e3511a9b76f3d5c339 100755 (executable)
@@ -29,67 +29,17 @@ Authors:
 
 */
 
-var videoFileList = new Array("3GP_h263_CIF_30FPS_507Kbps_HE-AAC_Stereo_64Kbps_60sec(4.1Mb)_BBB.3gp", "MP4_h264_CIF_15FPS_387Kbps_MP3_44.1KHz_64Kbps_60sec(3.4Mb)_BBB(hinted).mp4", "MP4_MPEG4_CIF_15FPS_387Kbps_MP3_44.1KHz_64Kbps_60sec(3Mb)_BBB(hinted).mp4");
+var videoFile = "MP4_h264_CIF_15FPS_387Kbps_MP3_44.1KHz_64Kbps_60sec(3.4Mb)_BBB(hinted).mp4";
 var testTarget='';
 
 $(document).ready(function(){
-    $("#previous").addClass("ui-disabled");
-
     //add contentdiv style
     $("#contentdiv").css({"width":"340px","margin":"0px auto"});
     //set default video.src
-    $("#MediaPlayback").attr("src", "../../res/media/meego/" + videoFileList[0]);
+    $("#MediaPlayback").attr("src", "../../res/media/meego/" + videoFile);
     document.getElementById("MediaPlayback").play();
 
     document.getElementById("MediaPlayback").volume = 0.6;
     $("#slider-1").hide();
     DisablePassButton();
 });
-
-function Previous() {
-    testTarget=document.getElementById("MediaPlayback");
-    var fileName = getFileName(testTarget.src);
-    for(i=0;i<3;i++) {
-        if(fileName != videoFileList[i])
-            continue;
-        else
-            break;
-    }
-    if(i > 1) {
-        testTarget.src="../../res/media/meego/"+videoFileList[i-1];
-        testTarget.play();
-        $("#next").removeClass("ui-disabled");
-    }else {
-        testTarget.src="../../res/media/meego/"+videoFileList[i-1];
-        testTarget.play();
-        $("#previous").addClass("ui-disabled");
-        $("#next").removeClass("ui-disabled");
-    }
-}
-
-function Next() {
-    testTarget=document.getElementById("MediaPlayback");
-    var fileName = getFileName(testTarget.src);
-    for(i=0;i<3;i++) {
-        if(fileName != videoFileList[i])
-            continue;
-        else
-            break;
-    }
-    if(i < 1) {
-        testTarget.src="../../res/media/meego/"+videoFileList[i+1];
-        testTarget.play();
-        $("#previous").removeClass("ui-disabled");
-    }else {
-        testTarget.src="../../res/media/meego/"+videoFileList[i+1];
-        testTarget.play();
-        $("#next").addClass("ui-disabled");
-        $("#previous").removeClass("ui-disabled");
-        EnablePassButton();
-    }
-}
-
-function getFileName(o){
-    var pos=o.lastIndexOf("/");
-    return o.substring(pos+1);
-}
index a25d6e1f636a24a58f2a705df4be982adbc722f7..1cc497f419ac8e4eedf1839594fe13526bceec51 100755 (executable)
@@ -54,17 +54,13 @@ Authors:
         <label for="slider-1">Volume</label>
         <input name="slider-1" id="slider-1" min="0" max="1" step="0.01" value="0.60" data-highlight="true" data-show-value="true" type="range">
       </div>
-      <div id="buttondiv">
-        <a href="javascript:Previous()" id="previous" data-role="button">Retest Previous Video</a>
-        <a href="javascript:Next()" id="next" data-role="button">Test Next Video</a>
-      </div>
     </div>
     <div data-role="footer" data-position="fixed">
     </div>
     <div data-role="popup" id="popup_info">
       <font class="fontSize">
         <p>Test Purpose: </p>
-        <p>Verifies the video playback of 3GP and MP4 files works correctly. And tests the functionality of playback operations including play and pause, volume up and down, time bar sliding forward and backward, full screen and normal screen switching, device rotate, foreground and background switching on every video files.</p>
+        <p>Verifies the video playback of H.264 MP4 files works correctly. And tests the functionality of playback operations including play and pause, volume up and down, time bar sliding forward and backward, full screen and normal screen switching, device rotate, foreground and background switching.</p>
         <p>Note: Press back key to exit fullscreen</p>
         <p>Expected Result: </p>
         <p>Test passes if all the check points work well during the video playback.</p>
index 88f581ffdaacd76d347c23d5504dc1a66f5d9c4c..1de8de41121151d6d8ce1164aa8a265d7c21882a 100755 (executable)
@@ -29,16 +29,14 @@ Authors:
 
 */
 
-var videoFileList = new Array("3GP_h263_CIF_30FPS_507Kbps_eAAC+_Stereo_64Kbps_60sec(4.1Mb)_BBB.3gp", "MP4_h264_CIF_15FPS_387Kbps_MP3_44.1KHz_64Kbps_60sec(3.4Mb)_BBB(hinted).mp4", "MP4_MPEG4_CIF_15FPS_387Kbps_MP3_44.1KHz_64Kbps_60sec(3Mb)_BBB(hinted).mp4");
+var videoFile = "MP4_h264_CIF_15FPS_387Kbps_MP3_44.1KHz_64Kbps_60sec(3.4Mb)_BBB(hinted).mp4";
 var testTarget='';
 
 $(document).ready(function(){
-    $("#previous").addClass("ui-disabled");
-
     //add contentdiv style
     $("#contentdiv").css({"width":"340px","margin":"0px auto"});
     //set default video.src
-    $("#MediaPlayback").attr("src", "../../res/media/" + videoFileList[0]);
+    $("#MediaPlayback").attr("src", "../../res/media/" + videoFile);
     document.getElementById("MediaPlayback").play();
 
     document.getElementById("MediaPlayback").volume = 0.6;
@@ -67,51 +65,3 @@ window.onload = function() {
         }
     });
 };
-
-function Previous() {
-    testTarget=document.getElementById("MediaPlayback");
-    var fileName = getFileName(testTarget.src);
-    for(i=0;i<3;i++) {
-        if(fileName != videoFileList[i])
-            continue;
-        else
-            break;
-    }
-    if(i > 1) {
-        testTarget.src="../../res/media/"+videoFileList[i-1];
-        testTarget.play();
-        $("#next").removeClass("ui-disabled");
-    }else {
-        testTarget.src="../../res/media/"+videoFileList[i-1];
-        testTarget.play();
-        $("#previous").addClass("ui-disabled");
-        $("#next").removeClass("ui-disabled");
-    }
-}
-
-function Next() {
-    testTarget=document.getElementById("MediaPlayback");
-    var fileName = getFileName(testTarget.src);
-    for(i=0;i<3;i++) {
-        if(fileName != videoFileList[i])
-            continue;
-        else
-            break;
-    }
-    if(i < 1) {
-        testTarget.src="../../res/media/"+videoFileList[i+1];
-        testTarget.play();
-        $("#previous").removeClass("ui-disabled");
-    }else {
-        testTarget.src="../../res/media/"+videoFileList[i+1];
-        testTarget.play();
-        $("#next").addClass("ui-disabled");
-        $("#previous").removeClass("ui-disabled");
-        EnablePassButton();
-    }
-}
-
-function getFileName(o){
-    var pos=o.lastIndexOf("/");
-    return o.substring(pos+1);
-}
index a25d6e1f636a24a58f2a705df4be982adbc722f7..1cc497f419ac8e4eedf1839594fe13526bceec51 100755 (executable)
@@ -54,17 +54,13 @@ Authors:
         <label for="slider-1">Volume</label>
         <input name="slider-1" id="slider-1" min="0" max="1" step="0.01" value="0.60" data-highlight="true" data-show-value="true" type="range">
       </div>
-      <div id="buttondiv">
-        <a href="javascript:Previous()" id="previous" data-role="button">Retest Previous Video</a>
-        <a href="javascript:Next()" id="next" data-role="button">Test Next Video</a>
-      </div>
     </div>
     <div data-role="footer" data-position="fixed">
     </div>
     <div data-role="popup" id="popup_info">
       <font class="fontSize">
         <p>Test Purpose: </p>
-        <p>Verifies the video playback of 3GP and MP4 files works correctly. And tests the functionality of playback operations including play and pause, volume up and down, time bar sliding forward and backward, full screen and normal screen switching, device rotate, foreground and background switching on every video files.</p>
+        <p>Verifies the video playback of H.264 MP4 files works correctly. And tests the functionality of playback operations including play and pause, volume up and down, time bar sliding forward and backward, full screen and normal screen switching, device rotate, foreground and background switching.</p>
         <p>Note: Press back key to exit fullscreen</p>
         <p>Expected Result: </p>
         <p>Test passes if all the check points work well during the video playback.</p>
index 88f581ffdaacd76d347c23d5504dc1a66f5d9c4c..1de8de41121151d6d8ce1164aa8a265d7c21882a 100755 (executable)
@@ -29,16 +29,14 @@ Authors:
 
 */
 
-var videoFileList = new Array("3GP_h263_CIF_30FPS_507Kbps_eAAC+_Stereo_64Kbps_60sec(4.1Mb)_BBB.3gp", "MP4_h264_CIF_15FPS_387Kbps_MP3_44.1KHz_64Kbps_60sec(3.4Mb)_BBB(hinted).mp4", "MP4_MPEG4_CIF_15FPS_387Kbps_MP3_44.1KHz_64Kbps_60sec(3Mb)_BBB(hinted).mp4");
+var videoFile = "MP4_h264_CIF_15FPS_387Kbps_MP3_44.1KHz_64Kbps_60sec(3.4Mb)_BBB(hinted).mp4";
 var testTarget='';
 
 $(document).ready(function(){
-    $("#previous").addClass("ui-disabled");
-
     //add contentdiv style
     $("#contentdiv").css({"width":"340px","margin":"0px auto"});
     //set default video.src
-    $("#MediaPlayback").attr("src", "../../res/media/" + videoFileList[0]);
+    $("#MediaPlayback").attr("src", "../../res/media/" + videoFile);
     document.getElementById("MediaPlayback").play();
 
     document.getElementById("MediaPlayback").volume = 0.6;
@@ -67,51 +65,3 @@ window.onload = function() {
         }
     });
 };
-
-function Previous() {
-    testTarget=document.getElementById("MediaPlayback");
-    var fileName = getFileName(testTarget.src);
-    for(i=0;i<3;i++) {
-        if(fileName != videoFileList[i])
-            continue;
-        else
-            break;
-    }
-    if(i > 1) {
-        testTarget.src="../../res/media/"+videoFileList[i-1];
-        testTarget.play();
-        $("#next").removeClass("ui-disabled");
-    }else {
-        testTarget.src="../../res/media/"+videoFileList[i-1];
-        testTarget.play();
-        $("#previous").addClass("ui-disabled");
-        $("#next").removeClass("ui-disabled");
-    }
-}
-
-function Next() {
-    testTarget=document.getElementById("MediaPlayback");
-    var fileName = getFileName(testTarget.src);
-    for(i=0;i<3;i++) {
-        if(fileName != videoFileList[i])
-            continue;
-        else
-            break;
-    }
-    if(i < 1) {
-        testTarget.src="../../res/media/"+videoFileList[i+1];
-        testTarget.play();
-        $("#previous").removeClass("ui-disabled");
-    }else {
-        testTarget.src="../../res/media/"+videoFileList[i+1];
-        testTarget.play();
-        $("#next").addClass("ui-disabled");
-        $("#previous").removeClass("ui-disabled");
-        EnablePassButton();
-    }
-}
-
-function getFileName(o){
-    var pos=o.lastIndexOf("/");
-    return o.substring(pos+1);
-}
index 179aa628d5644c37762cf13e2b40833cd518cdd1..2e138c0de2fd02c225c3e2d7b541279e20ebca56 100755 (executable)
@@ -54,17 +54,13 @@ Authors:
                 <label for="slider-1">Volume</label>
                 <input name="slider-1" id="slider-1" min="0" max="1" step="0.01" value="0.60" data-highlight="true" data-show-value="true" type="range">
             </div>
-            <div id="buttondiv">
-                <a href="javascript:Previous()" id="previous" data-role="button">Retest Previous Video</a>
-                <a href="javascript:Next()" id="next" data-role="button">Test Next Video</a>
-            </div>
         </div>
         <div data-role="footer" data-position="inline">
         </div>
         <div data-role="popup" id="popup_info">
             <div class="fontSize">
                 <p>Test Purpose: </p>
-                <p>Verifies the video playback of 3GP and MP4 files works correctly. And tests the functionality of playback operations including play and pause, volume up and down, time bar sliding forward and backward, full screen and normal screen switching on every video files.</p>
+                <p>Verifies the video playback of H.264 MP4 files works correctly. And tests the functionality of playback operations including play and pause, volume up and down, time bar sliding forward and backward, full screen and normal screen switching.</p>
                 <p>Note: Press back key to exit fullscreen</p>
                 <p>Expected Result: </p>
                 <p>Test passes if all the check points work well during the video playback.</p>
index e8782cf05d9fecb28d811fe26267db1d679874c3..1dc652428b683c3dadcd757e9aca87f238c2ba83 100755 (executable)
 
  */
 
-var videoFileList = [
-        "3GP_h263_CIF_30FPS_507Kbps_eAAC+_Stereo_64Kbps_60sec(4.1Mb)_BBB.3gp",
-        "MP4_h264_CIF_15FPS_387Kbps_MP3_44.1KHz_64Kbps_60sec(3.4Mb)_BBB(hinted).mp4",
-        "MP4_MPEG4_CIF_15FPS_387Kbps_MP3_44.1KHz_64Kbps_60sec(3Mb)_BBB(hinted).mp4"
-    ];
+var videoFile = "MP4_h264_CIF_15FPS_387Kbps_MP3_44.1KHz_64Kbps_60sec(3.4Mb)_BBB(hinted).mp4";
 var testTarget = "";
 
 $(document).ready(function () {
-    $("#previous").addClass("ui-disabled");
-
     //add contentdiv style
     $("#contentdiv").css({"width": "340px", "margin": "0px auto"});
     //set default video.src
-    $("#MediaPlayback").attr("src", "../../res/media/" + videoFileList[0]);
+    $("#MediaPlayback").attr("src", "../../res/media/" + videoFile);
     document.getElementById("MediaPlayback").play();
 
     document.getElementById("MediaPlayback").volume = 0.6;
@@ -71,55 +65,3 @@ window.onload = function() {
         }
     });
 };
-
-function Previous() {
-    var fileName, i;
-    testTarget = document.getElementById("MediaPlayback");
-    fileName = getFileName(testTarget.src);
-    for (i = 0; i < 3; i++) {
-        if (fileName !== videoFileList[i]) {
-            continue;
-        } else {
-            break;
-        }
-    }
-    if (i > 1) {
-        testTarget.src = "../../res/media/" + videoFileList[i - 1];
-        testTarget.play();
-        $("#next").removeClass("ui-disabled");
-    } else {
-        testTarget.src = "../../res/media/" + videoFileList[i - 1];
-        testTarget.play();
-        $("#previous").addClass("ui-disabled");
-        $("#next").removeClass("ui-disabled");
-    }
-}
-
-function Next() {
-    var fileName, i;
-    testTarget = document.getElementById("MediaPlayback");
-    fileName = getFileName(testTarget.src);
-    for (i = 0; i < 3; i++) {
-        if (fileName !== videoFileList[i]) {
-            continue;
-        } else {
-            break;
-        }
-    }
-    if (i < 1) {
-        testTarget.src = "../../res/media/" + videoFileList[i + 1];
-        testTarget.play();
-        $("#previous").removeClass("ui-disabled");
-    } else {
-        testTarget.src = "../../res/media/" + videoFileList[i + 1];
-        testTarget.play();
-        $("#next").addClass("ui-disabled");
-        $("#previous").removeClass("ui-disabled");
-        EnablePassButton();
-    }
-}
-
-function getFileName(o) {
-    var pos = o.lastIndexOf("/");
-    return o.substring(pos + 1);
-}