UnitTC: Pass,error count save method has been changed
[platform/framework/web/web-ui-fw.git] / tests / jqm-tchelper / index.html
index 339717c..30cc6f9 100644 (file)
@@ -1,36 +1,10 @@
 <html>
        <head>
                <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
-               <script type="text/javascript">
-                       function setCookie( cookieName, cookieValue, expireDate) {
-                                       var today = new Date();
-                                       today.setDate( today.getDate() + parseInt( expireDate ) );
-                                       document.cookie = cookieName + "=" + escape( cookieValue ) + "; path=/; expires=" + today.toGMTString() + ";";
-                       }
-                       function getCookie(name) {
-                               var cname = name + "=";
-                               var dc = document.cookie;
-                               if (dc.length > 0) {
-                                       begin = dc.indexOf(cname);
-                                       if (begin != -1) {
-                                               begin += cname.length;
-                                               end = dc.indexOf(";", begin);
-                                       if (end == -1) {
-                                               end = dc.length;
-                                       }
-                                       return unescape(dc.substring(begin, end));
-                                       }
-                               }
-                               return null;
-                       }
-                       var Save = function() {
-                               setCookie("OS",$("#OS").val() , 365 );
-                               setCookie("Browser",$("#Browser").val() , 365 );
-                               setCookie("Version",$("#Version").val() , 365 );
-                       }
-               </script>
                <script type="text/javascript" src="../../libs/js/jquery-1.7.1.js"></script>
+               <script type="text/javascript" src="cookie.js"></script>
                <script type="text/javascript" src="jquery.browser.js"></script>
+
                <script type="text/javascript">
                        $(document).ready( function() {
                                if(getCookie("OS") != null ) {
                                }
                        });
                        var startPage = function( jqm ) {
+                               setCookie( "TizenP", 0 );
+                               setCookie( "TizenF", 0 );
+                               setCookie( "TizenR", 0 );
+                               setCookie( "TizenT", 0 );
                                if ( jqm ) {
-                                       location.href = "../../libs/js/jquery-mobile-1.2.0/tests/unit/button/";
+                                       location.href = "../../libs/js/jquery-mobile-1.2.0/tests/unit/listview/";
                                } else {
                                        location.href = "../unit-tests/";
                                }
                                location.href = "../../libs/js/jquery-mobile-1.2.0/tests/unit/" + module;
                        };
                </script>
+               <script type="text/javascript">
+                       var Save = function() {
+                               setCookie("OS",$("#OS").val() , 365 );
+                               setCookie("Browser",$("#Browser").val() , 365 );
+                               setCookie("Version",$("#Version").val() , 365 );
+                       }
+               </script>
        </head>
        <body>
                <div style="font-size:30px;">
@@ -70,7 +55,5 @@
                </div>
                <input type="button" value="WebUIFW_Start" style="font-size:30px" onclick="startPage( false )">
                <input type="button" value="JQMTC_Start" style="font-size:30px" onclick="startPage( true )">
-               <input type="button" value="JQMTC_Listview_Start" style="font-size:30px" onclick="movePage( 'listview' )">
-               <input type="button" value="JQMTC_Event_Start" style="font-size:30px" onclick="movePage( 'event' )">
        </body>
 </html>        
\ No newline at end of file