Fix TTS-2047 for improvement behavior
authoryuhanx.xu <yuhanx.xu@intel.com>
Tue, 8 Oct 2013 03:13:52 +0000 (11:13 +0800)
committerLi, HaoX <haox.li@intel.com>
Thu, 10 Oct 2013 06:14:03 +0000 (14:14 +0800)
  * extract the common js and css style into a external file
  * format the wrt wgt install/uninstall process
  * format the tests expected result

Signed-off-by: yuhanx.xu <yuhanx.xu@intel.com>
109 files changed:
css/main.css
js/tests.js
tests/2D3DAnimation/index.html
tests/Accelerometer/index.html
tests/AppControlExtending/index.html
tests/AppControlExtending/js/main.js
tests/ApplicationInvisible/index.html
tests/CSP/index.html
tests/CSP/js/main.js
tests/CSP/js/tests.js
tests/CSP/res/csp-asterisk.html
tests/CSP/res/csp-cross-origin.html
tests/CSP/res/csp-none.html
tests/CSP/res/csp-self.html
tests/CSP/res/default-policy-by-directives-csp.html
tests/CSP/res/default-policy-by-directives-report-only.html
tests/CSP/res/default-src_asterisk.html
tests/CSP/res/default-src_cross_origin.html
tests/CSP/res/default-src_none.html
tests/CSP/res/default-src_self.html
tests/CSP/res/sandbox-empty-ext.html
tests/CSP/res/sandbox-empty-inline.html
tests/CSP/res/sandbox-empty-int.html
tests/CSP/res/sandbox-same-origin-allow-scripts.html
tests/CSP/res/script-src_inline_eval.html
tests/CSP/res/script-src_none.html
tests/CSP/res/style-src_self.html
tests/CSSAnimation/index.html
tests/CSSStyle/index.html
tests/Camera/index.html
tests/CameraViaUserMedia/index.html
tests/Clipboard/index.html
tests/Clipboard/js/main.js
tests/ConfigurationExtension/index.html
tests/ConfigurationExtension/js/main.js
tests/ConfigurationExtension/js/tests.js
tests/ConfigurationExtension/res/application-content.html
tests/ConfigurationExtension/res/setting-an-more.html
tests/ConfigurationExtension/res/setting-an-one.html
tests/ConfigurationExtension/res/setting-an-zero.html
tests/ConfigurationExtension/res/setting-ar-true.html
tests/ConfigurationExtension/res/setting-bs-disable.html
tests/ConfigurationExtension/res/setting-cm-disable.html
tests/ConfigurationExtension/res/setting-cm-enable.html
tests/ConfigurationExtension/res/setting-encrypt-disable.html
tests/ConfigurationExtension/res/setting-encrypt-enable.html
tests/ConfigurationExtension/res/setting-hwkey-default.html
tests/ConfigurationExtension/res/setting-hwkey-disable.html
tests/ConfigurationExtension/res/setting-hwkey-enable.html
tests/ConfigurationExtension/res/setting-install-location-internal-only-with-card.html
tests/ConfigurationExtension/res/setting-install-location-prefer-external-no-card.html
tests/ConfigurationExtension/res/setting-install-location-prefer-external-with-card.html
tests/DragandDrop/index.html
tests/DragandDrop/js/main.js
tests/DynamicBox/index.html
tests/DynamicBox/js/main.js
tests/FileReader/index.html
tests/FullScreen/index.html
tests/HybridApplication/index.html
tests/HybridApplication/js/main.js
tests/LocationGPS/index.html
tests/LocationNetwork/index.html
tests/MediaPlayback/index.html
tests/PackageManagement/index.html
tests/PackageManagement/js/main.js
tests/PackageManagement/js/tests.js
tests/PackageManagement/res/Sample-widget1.html
tests/PackageManagement/res/Sample-widget2.html
tests/PackageManagement/res/Sample-widget3.html
tests/PackageManagement/res/Sample-widget4.html
tests/PackageManagement/res/npruntime-all-on-arm.html
tests/PackageManagement/res/npruntime-arm-on-x86.html
tests/PackageManagement/res/widget-version-1.html
tests/PageVisibility/index.html
tests/SVGTransformation/index.html
tests/Security/index.html
tests/Security/js/main.js
tests/Stability/index.html
tests/Stability/js/main.js
tests/Stability/js/tests.js
tests/Stability/res/test-half-memory.html
tests/Stability/res/test-hd-image.html
tests/Touch/index.html
tests/UserAgentString/index.html
tests/Vibration/index.html
tests/Viewport/index.html
tests/WRTSupport/index.html
tests/WRTSupport/js/main.js
tests/WRTSupport/js/tests.js
tests/WRTSupport/res/debug-web-inspector-ubuntu.html
tests/WRTSupport/res/debug-web-inspector-windows7.html
tests/WRTSupport/res/lifecycle-unload-event.html
tests/WRTSupport/res/other-localization.html
tests/WRTSupport/res/other-uri-schemes-mailto.html
tests/WRTSupport/res/other-uri-schemes.html
tests/WRTSupport/res/other-widget-access-policy.html
tests/WRTSupport/res/protection-encryption-check.html
tests/WRTSupport/res/security-permission.html
tests/WRTSupport/res/security-policy.html
tests/WRTSupport/res/url-access-multi-all.html
tests/WRTSupport/res/url-access-multi-subdomains.html
tests/WRTSupport/res/url-access-multi.html
tests/WRTUI/index.html
tests/WRTUI/js/main.js
tests/WRTUI/js/tests.js
tests/WRTUI/res/application-rotation-sensor-enable.html
tests/WRTUI/res/multiple-browsing-context.html
tests/WRTUI/res/view-mode-fullscreen-rotation.html
tests/WRTUI/res/view-mode-maximized-rotation.html

index 88aa9da..c9ea8a0 100644 (file)
@@ -58,3 +58,16 @@ Authors:
     filter: alpha(opacity=60);
     z-index:50;
 }
+
+.wgtButton {
+    height:40px;
+    line-height:20px;
+}
+
+.hideButton {
+    display:none;
+}
+
+.fontSize {
+    font-size:85%
+}
\ No newline at end of file
index 584061b..546ec30 100755 (executable)
@@ -134,3 +134,14 @@ $(document).ready(function(){
 //    if (!qstr || qstr.indexOf("reenter") < 0)
 //        $("[href='#popup_info']").click();
 });
+
+function checkInstalledPkg(pkgId) {
+    var packageInfo = null;
+    try {
+        if(pkgId && (typeof(tizen) != 'undefined')) {
+            packageInfo = tizen.package.getPackageInfo(pkgId);
+        }
+    } catch (e) {}
+
+    return packageInfo === null ? false : true;
+}
index 326d111..9a80898 100755 (executable)
@@ -34,6 +34,7 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width">
     <link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../css/main.css" />
     <link rel="stylesheet" type="text/css" href="css/style.css" />
     <script src="../../js/thirdparty/jquery.js"></script>
     <script src="../../js/thirdparty/jquery.mobile.js"></script>
@@ -103,19 +104,19 @@ Authors:
             <label for="direction-2">To-Left</label>
         </fieldset>
         <label for="slider-1">Size</label>
-        <input type="range" name="slider-1" id="slider-1" data-highlight="true" min="1" max="5" value="3" data-show-value="true" style="display:none">
+        <input type="range" name="slider-1" id="slider-1" data-highlight="true" min="1" max="5" value="3" data-show-value="true" class="hideButton">
         <label for="speed-1">Speed</label>
-        <input type="range" name="speed-1" id="speed-1" data-highlight="true" min="1" max="10" value="5" data-show-value="true" style="display:none">
+        <input type="range" name="speed-1" id="speed-1" data-highlight="true" min="1" max="10" value="5" data-show-value="true" class="hideButton">
     </div>
 </div>
 <div data-role="footer" data-position="fixed">
 </div>
 <div data-role="popup" id="popup_info">
-  <font style="font-size:85%">
+  <font class="fontSize">
     <p>Test Purpose: </p>
     <p>Verifies the 3D cube is drawn with red, yellow, blue, green and light blue colors, rotate smoothly and correctly. And tests the functionality of play and pause, rotate direction left or right, size of the cube from 1 to 5, rotate speed from 1 to 10 levels.</p>
     <p>Expected Result: </p>
-    <p>This test PASS only if all the check points function well during rotation.</p>
+    <p>Test passes if all the check points function well during rotation.</p>
   </font>
 </div>
 </body>
index 1a0a0bf..3b970ec 100755 (executable)
@@ -34,6 +34,7 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width">
     <link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../css/main.css" />
     <script src="../../js/thirdparty/jquery.js"></script>
     <script src="../../js/thirdparty/jquery.mobile.js"></script>
     <script src="../../js/tests.js"></script>
@@ -69,11 +70,11 @@ Authors:
     <div data-role="footer" data-position="fixed">
     </div>
     <div data-role="popup" id="popup_info">
-      <font style="font-size:85%">
+      <font class="fontSize">
         <p>Test Purpose: </p>
         <p>Verifies the functionality of Accelerometer. And detects the device moving direction is x axis or y axis or z axis.</p>
         <p>Expected Result: </p>
-        <p>This test PASS only if the detected direction reflects the actual device moving direction.</p>
+        <p>Test passes if the detected direction reflects the actual device moving direction.</p>
       </font>
     </div>
   </body>
index 306ea33..3c7d95e 100644 (file)
@@ -31,13 +31,14 @@ Authors:
 -->
 <html>
 <head>
-<meta charset="utf-8" />
-<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
-<link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
-<script src="../../js/thirdparty/jquery.js"></script>
-<script src="../../js/thirdparty/jquery.mobile.js"></script>
-<script src="../../js/tests.js"></script>
-<script src="js/main.js"></script>
+  <meta charset="utf-8" />
+  <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
+  <link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+  <link rel="stylesheet" type="text/css" href="../../css/main.css" />
+  <script src="../../js/thirdparty/jquery.js"></script>
+  <script src="../../js/thirdparty/jquery.mobile.js"></script>
+  <script src="../../js/tests.js"></script>
+  <script src="js/main.js"></script>
 </head>
 <body>
     <div data-role="page" id="main">
@@ -48,28 +49,28 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Test the custom feature</li>
                 <li>
-                    <div data-role="button" id="install1" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install1" class="wgtButton">Install</div>
                 </li>
                 <li>
-                    <div data-role="button" id="launch1" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch1" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Test the regular feature</li>
                 <li>
-                    <div data-role="button" id="install2" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install2" class="wgtButton">Install</div>
                 </li>
                 <li>
-                    <div data-role="button" id="launch2" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch2" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Packages Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Purpose: </p>
             <p>Verifies the functionality of launching the Application which control by user instead of system. Tests the two test Applications could be launched by App ID or customized AppControl's "operation" attribute by user.</p>
             <p>Test Step: </p>
index e731c54..66acd3f 100644 (file)
@@ -36,23 +36,27 @@ $(document).delegate("#main", "pageinit", function() {
 
     $("#install1").bind("vclick", function() {
         install(installUrl1, "install1");
-        $("#launch1").removeClass("ui-disabled");
     });
     $("#install2").bind("vclick", function() {
         install(installUrl2, "install2");
-        $("#launch2").removeClass("ui-disabled");
     });
     $("#launch1").bind("vclick", function() {
         launch("app-control1");
-        $("#install2").removeClass("ui-disabled");
+        if(checkInstalledPkg("apcontrol2")) {
+            $("#install2").addClass("ui-disabled");
+            $("#launch2").removeClass("ui-disabled");
+        } else {
+            $("#install2").removeClass("ui-disabled");
+        }
     });
     $("#launch2").bind("vclick", function() {
         launch("app-control2");
         $("#uninstall").removeClass("ui-disabled");
-        EnablePassButton();
     });
     $("#uninstall").bind("vclick", function() {
-        uninstall();
+        ["apcontrol1", "apcontrol2"].forEach(function(package_id) {
+            uninstall(package_id);
+        });
     });
     try {
         tizen.package.setPackageInfoEventListener(packageEventCallback);
@@ -64,18 +68,23 @@ $(document).delegate("#main", "pageinit", function() {
     $("#launch2").addClass("ui-disabled");
     $("#install2").addClass("ui-disabled");
     $("#uninstall").addClass("ui-disabled");
+
+    if(checkInstalledPkg("apcontrol1")) {
+        $("#install1").addClass("ui-disabled");
+        $("#launch1").removeClass("ui-disabled");
+    }
 });
 
 var packageEventCallback = {
-        oninstalled: function(packageInfo) {
-            alert("The package " + packageInfo.name + " is installed");
-        },
-        onupdated: function(packageInfo) {
-            alert("The package " + packageInfo.name + " is updated");
-        },
-        onuninstalled: function(packageId) {
-            alert("The package " + packageId + " is uninstalled");
-        }
+    oninstalled: function(packageInfo) {
+        alert("The package " + packageInfo.name + " is installed");
+    },
+    onupdated: function(packageInfo) {
+        alert("The package " + packageInfo.name + " is updated");
+    },
+    onuninstalled: function(packageId) {
+        alert("The package " + packageId + " is uninstalled");
+    }
 };
 
 function fileURI() {
@@ -101,110 +110,83 @@ function fileURI() {
     }
 
     tizen.filesystem.resolve(
-            'documents',
-            function(dir){
-                documentsDir = dir;
-                dir.listFiles(onsuccess, onerror);
-            }, function(e) {
-                alert("Error" + e.message);
-            }, "r"
+        'documents',
+        function(dir){
+            documentsDir = dir;
+            dir.listFiles(onsuccess, onerror);
+        }, function(e) {
+            alert("Error" + e.message);
+        }, "r"
     );
 }
 
-function checkInstalledPkg(pkgId) {
-    var packageInfo = null;
-    try {
-        if(pkgId) {
-            packageInfo = tizen.package.getPackageInfo(pkgId);
-        }
-    } catch (e) {}
-
-    return packageInfo === null ? false : true;
-}
-
-function message(pkg) {
-    alert("The " + pkg + " is already installed");
-}
-
 function install(url, type) {
+
     var onInstallationSuccess = {
-            onprogress: function(packageId, percentage)
-            {
-                console.log("On installation(" + packageId + "): progress(" + percentage + ")");
-                if(type == "install1")
-                    $("#install1").html('<div data-role="button" id="install1" style="height:40px; line-height:40px;">Installing... ' + percentage + "%" + '</div>');
-                if(type == "install2")
-                    $("#install2").html('<div data-role="button" id="install2" style="height:40px; line-height:40px;">Installing... ' + percentage + "%" + '</div>');
-            },
-            oncomplete: function(packageId)
-            {
-                console.log("Installation(" + packageId + ") Complete");
-                if(type == "install1")
-                    $("#install1").html('<div data-role="button" id="install1" style="height:40px; line-height:40px;">Install</div>');
-                if(type == "install2")
-                    $("#install2").html('<div data-role="button" id="install2" style="height:40px; line-height:40px;">Install</div>');
+        onprogress: function(packageId, percentage)
+        {
+            console.log("On installation(" + packageId + "): progress(" + percentage + ")");
+            if(type == "install1") {
+                $("#install1").html('<div data-role="button" id="install1" style="height:40px; line-height:40px;">Installing... ' + percentage + "%" + '</div>');
+            }
+            if(type == "install2") {
+                $("#install2").html('<div data-role="button" id="install2" style="height:40px; line-height:40px;">Installing... ' + percentage + "%" + '</div>');
             }
+        },
+        oncomplete: function(packageId)
+        {
+            console.log("Installation(" + packageId + ") Complete");
+            if(type == "install1") {
+                $("#install1").addClass("ui-disabled");
+                $("#launch1").removeClass("ui-disabled");
+                $("#install1").html('<div data-role="button" id="install1" style="height:40px; line-height:40px;">Install</div>');
+            }
+            if(type == "install2") {
+                $("#install2").addClass("ui-disabled");
+                $("#launch2").removeClass("ui-disabled");
+                $("#install2").html('<div data-role="button" id="install2" style="height:40px; line-height:40px;">Install</div>');
+            }
+        }
     }
 
     var onError = function (err) {
-        alert("Error occured on installation : " + err.message);
+        console.log("Error occured on installation : " + err.message);
     }
 
     try {
-        if(type == "install1" && checkInstalledPkg("apcontrol1")) {
-            message("CustomPackage");
-        } else if(type == "install2" && checkInstalledPkg("apcontrol2")) {
-            message("RegularPackage");
-        } else {
-            tizen.package.install(url, onInstallationSuccess, onError);
-        }
+        tizen.package.install(url, onInstallationSuccess, onError);
     } catch(e) {
         alert("Exception: " + e.name);
     }
 }
 
-function uninstall() {
-
-    var onUninstallationSuccess1 = {
+function uninstall(package_id) {
 
-            onprogress: function(packageId, percentage)
-            {
-                console.log("On uninstallation(" + packageId + "): progress(" + percentage + ")");
-                $("#uninstall").html('<div data-role="button" id="uninstall" style="height:40px; line-height:40px;">' + pkgName + 'UnInstalling... ' + percentage + "%" + '</div>');
-            },
-            oncomplete: function(packageId)
-            {
-                console.log("Uninstallation(" + packageId + ") Complete");
-                alert("Please uninstall the next package.");
-                tizen.package.uninstall("apcontrol2", onUninstallationSuccess2, onError);
-            }
-    }
-
-    var onUninstallationSuccess2 = {
-
-            onprogress: function(packageId, percentage)
-            {
-                console.log("On uninstallation(" + packageId + "): progress(" + percentage + ")");
-                $("#uninstall").html('<div data-role="button" id="uninstall" style="height:40px; line-height:40px;">' + pkgName + 'UnInstalling... ' + percentage + "%" + '</div>');
-            },
-            oncomplete: function(packageId)
-            {
-                console.log("Uninstallation(" + packageId + ") Complete");
+    var onUninstallationSuccess = {
+        onprogress: function(packageId, percentage)
+        {
+            console.log("On uninstallation(" + packageId + "): progress(" + percentage + ")");
+        },
+        oncomplete: function(packageId)
+        {
+            console.log("Uninstallation(" + packageId + ") Complete");
+            if(packageId == "apcontrol1") {
                 $("#launch1").addClass("ui-disabled");
+            }
+            if(packageId == "apcontrol2") {
                 $("#launch2").addClass("ui-disabled");
-                $("#install2").addClass("ui-disabled");
                 $("#uninstall").addClass("ui-disabled");
-                $("#install1").html('<div data-role="button" id="install1" style="height:40px; line-height:40px;">Install</div>');
-                $("#install2").html('<div data-role="button" id="install2" style="height:40px; line-height:40px;">Install</div>');
+                EnablePassButton();
             }
+        }
     }
 
     var onError = function (err) {
-        alert("Error occured on installation : " + err.name);
+        console.log("Error occured on installation : " + err.name);
     }
 
     try {
-        tizen.package.uninstall("apcontrol1", onUninstallationSuccess1, onError);
+        tizen.package.uninstall(package_id, onUninstallationSuccess, onError);
     } catch (e) {
         alert("Exception: " + e.name);
     }
index b2e94d3..bad26bb 100644 (file)
@@ -31,15 +31,16 @@ Authors:
 -->
 <html>
 <head>
-<meta charset="utf-8" />
-<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
-<title>ApplicationInvisible</title>
-<link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
-<script src="../../js/thirdparty/jquery.js"></script>
-<script src="../../js/thirdparty/jquery.mobile.js"></script>
-<script src="../../js/tests.js"></script>
-<script src="js/main.js"></script>
-<link rel="stylesheet" type="text/css" href="css/main.css" />
+  <meta charset="utf-8" />
+  <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
+  <title>ApplicationInvisible</title>
+  <link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+  <link rel="stylesheet" type="text/css" href="../../css/main.css" />
+  <script src="../../js/thirdparty/jquery.js"></script>
+  <script src="../../js/thirdparty/jquery.mobile.js"></script>
+  <script src="../../js/tests.js"></script>
+  <script src="js/main.js"></script>
+  <link rel="stylesheet" type="text/css" href="css/main.css" />
 </head>
 <body>
     <div data-role="page" id="main">
@@ -88,15 +89,17 @@ Authors:
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
+          <font class="fontSize">
             <p>Test Purpose: </p>
             <p>Verifies js and css animation will suspend when application goes invisible.</p>
             <p>Test Step: </p>
             <ol>
-              <li>Push the "Home" button on device to return to the menu.</li>
-              <li>Long touch "Home" button to start the "Task switcher" and select "tct-behavior-tests".</li>
+              <li>Press the "Home" button on device to return to the menu.</li>
+              <li>Long press "Home" button to start the "Task switcher" and select "tct-behavior-tests".</li>
             </ol>
             <p>Expected Result: </p>
             <p>Test passes if the "JS time" is different from the "Difference time" and the "Animation time" is different from the "Difference time" too.</p>
+          </font>
         </div>
     </div>
 </body>
index 811e289..7ab4aa1 100644 (file)
@@ -34,6 +34,7 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../css/main.css" />
     <script src="../../js/thirdparty/jquery.js"></script>
     <script src="../../js/thirdparty/jquery.mobile.js"></script>
     <script src="../../js/tests.js"></script>
@@ -138,14 +139,14 @@ Authors:
                 </li>
                 <li data-role="list-divider" role="heading">Clean all the installed packages</li>
                 <li>
-                    <div data-role="button" id="wgtClean" style="height:40px; line-height:20px;">Clean all test applications</div>
+                    <div data-role="button" id="wgtClean" class="wgtButton">Clean all test applications</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Note: </p>
             <p>Verifies the functionality of CSP worked well.</p>
             <p>Test Pre-condition: </p>
@@ -153,7 +154,7 @@ Authors:
             <p>Test Purpose: </p>
             <p>Verifies the functionality of CSP worked well when script-src, object-src, style-src, img-src, media-src, frame-src, font-src, connect-src directives set different values.</p>
             <p>Expected Result: </p>
-            <p>Test passes if actual result matches expected result in every case.</p>
+            <p>Test passes if all sub-tests pass.</p>
           </font>
         </div>
     </div>
index b0621d8..20a6a91 100644 (file)
@@ -52,6 +52,7 @@ var MOUDLE_NAME = "CSP";
 var RESULT_FILE_NAME = "tct-behavior-child.csp.result.xml";
 
 $(document).delegate("#main", "pageinit", function() {
+    DisablePassButton();
     $("#wgtClean").bind("vclick", function() {
         showTotalBar();
     });
@@ -78,6 +79,7 @@ function checkInstalledPackage(){
     } else {
         $.mobile.hidePageLoadingMsg();
         alert("All widgets is uninstalled!");
+        EnablePassButton();
     }
 }
 
@@ -101,7 +103,7 @@ function uninstall(val) {
     }
 
     var onError = function (err) {
-        alert("Error occured on installation : " + err.name);
+        console.log("Error occured on installation : " + err.name);
         $.mobile.hidePageLoadingMsg();
     }
 
index 0d7eb21..5adacfc 100644 (file)
@@ -35,6 +35,9 @@ var app_id;
 var package_id;
 
 $(document).ready(function(){
+    updateFooterButton();
+    DisablePassButton();
+
     wgt_name = $("#wgt_name").val();
     app_id = $("#app_id").val();
     package_id = $("#package_id").val();
@@ -45,7 +48,6 @@ $(document).ready(function(){
     $("#launch").bind("vclick", function() {
         launch(app_id);
         $('#uninstall').removeClass("ui-disabled");
-        EnablePassButton();
     });
     $("#uninstall").bind("vclick", function() {
         uninstall(package_id);
@@ -59,25 +61,24 @@ $(document).ready(function(){
     packagePre(wgt_name);
     $('#uninstall').addClass("ui-disabled");
     $('#launch').addClass("ui-disabled");
-    updateFooterButton();
-    DisablePassButton();
+
+    if(checkInstalledPkg(package_id)) {
+        $('#install').addClass("ui-disabled");
+        $('#launch').removeClass("ui-disabled");
+    }
 });
 
 var packageEventCallback = {
     oninstalled: function(packageInfo) {
         $.mobile.hidePageLoadingMsg();
-        $('#launch').removeClass("ui-disabled");
         alert("The package " + packageInfo.name + " is installed");
     },
     onupdated: function(packageInfo) {
         $.mobile.hidePageLoadingMsg();
-        $('#launch').removeClass("ui-disabled");
         alert("The package " + packageInfo.name + " is updated");
     },
     onuninstalled: function(packageId) {
         $.mobile.hidePageLoadingMsg();
-        $('#uninstall').addClass("ui-disabled");
-        $('#launch').addClass("ui-disabled");
         alert("The package " + packageId + " is uninstalled");
     }
 }
@@ -91,7 +92,6 @@ function fileURI(wgt_name) {
             {
                 var Url1 = files[i].toURI();
                 installUrl = Url1.replace("file:///", "/");
-                //install();
             }
         }
     }
@@ -101,52 +101,40 @@ function fileURI(wgt_name) {
     }
 
     tizen.filesystem.resolve(
-            'documents',
-            function(dir){
-                documentsDir = dir;
-                dir.listFiles(onsuccess, onerror);
-            }, function(e) {
-                alert("Error" + e.message);
-            }, "r"
+        'documents',
+        function(dir){
+            documentsDir = dir;
+            dir.listFiles(onsuccess, onerror);
+        }, function(e) {
+            alert("Error" + e.message);
+        }, "r"
     );
 }
 
-function checkInstalledPkg() {
-    var packageInfo = null;
-    try {
-        if(package_id) {
-            packageInfo = tizen.package.getPackageInfo(package_id);
-        }
-    } catch (e) {}
-
-    return packageInfo === null ? false : true;
-}
-
 function install() {
     var onInstallationSuccess = {
-            onprogress: function(packageId, percentage)
-            {
-                console.log("On installation(" + packageId + "): progress(" + percentage + ")");
-                $.mobile.showPageLoadingMsg();
-            },
-            oncomplete: function(packageId)
-            {
-                console.log("Installation(" + packageId + ") Complete");
+        onprogress: function(packageId, percentage)
+        {
+            console.log("On installation(" + packageId + "): progress(" + percentage + ")");
+            $.mobile.showPageLoadingMsg();
+        },
+        oncomplete: function(packageId)
+        {
+            console.log("Installation(" + packageId + ") Complete");
+            if(checkInstalledPkg(package_id)) {
+                $('#install').addClass("ui-disabled");
+                $('#launch').removeClass("ui-disabled");
             }
+        }
     }
 
     var onError = function (err) {
-        alert("Error occured on installation : " + err.message);
+        console.log("Error occured on installation : " + err.message);
         $.mobile.hidePageLoadingMsg();
     }
 
     try {
-        if(checkInstalledPkg()) {
-            $('#launch').removeClass("ui-disabled");
-            alert("The package is already installed");
-        } else  {
-            tizen.package.install(installUrl, onInstallationSuccess, onError);
-        }
+        tizen.package.install(installUrl, onInstallationSuccess, onError);
     } catch(e) {
         alert("Exception: " + e.name);
     }
@@ -155,19 +143,22 @@ function install() {
 function uninstall(package_id) {
     var onUninstallationSuccess = {
 
-            onprogress: function(packageId, percentage)
-            {
-                console.log("On uninstallation(" + packageId + "): progress(" + percentage + ")");
-                $.mobile.showPageLoadingMsg();
-            },
-            oncomplete: function(packageId)
-            {
-                console.log("Uninstallation(" + packageId + ") Complete");
-            }
+        onprogress: function(packageId, percentage)
+        {
+            console.log("On uninstallation(" + packageId + "): progress(" + percentage + ")");
+            $.mobile.showPageLoadingMsg();
+        },
+        oncomplete: function(packageId)
+        {
+            console.log("Uninstallation(" + packageId + ") Complete");
+            $('#launch').addClass("ui-disabled");
+            $('#uninstall').addClass("ui-disabled");
+            EnablePassButton();
+        }
     }
 
     var onError = function (err) {
-        alert("Error occured on installation : " + err.name);
+        console.log("Error occured on installation : " + err.name);
         $.mobile.hidePageLoadingMsg();
     }
 
@@ -229,39 +220,8 @@ function packagePre(wgt_name) {
     );
 }
 
-function backAppsHome() {
-    window.close();
-}
-
 function reportResult(res) {
     var jsonStr="[{\"testname\":\"" + wgt_name + "\",\"result\":\"" + res + "\"}]";
     window.opener.postMessage(jsonStr, '*');
     backAppsHome();
 }
-
-function updateFooterButton(){
-    var footbar = $(':jqmData(role=footer)');
-    footbar.empty();
-    footbar.attr("align", "center");
-    footbar.append("<div data-role=\"controlgroup\" data-type=\"horizontal\">" +
-        "<a href=\"javascript:reportResult('PASS');\" id=\"pass_button\" data-role=\"button\" data-icon=\"check\" style=\"color: green\">Pass</a>" +
-        "<a href=\"javascript:reportResult('FAIL');\" id=\"fail_button\" data-role=\"button\" data-icon=\"delete\" style=\"color: red\">Fail</a>" +
-        "<a href=\"#popup_info\" data-role=\"button\" data-icon=\"info\" data-rel=\"popup\" data-transition=\"pop\">Info</a>" +
-        "<a href=\"javascript:backAppsHome();\" data-role=\"button\" data-icon=\"home\">Back</a></div>");
-
-    footbar.trigger("create");
-    footbar.find(':jqmData(role=button) > span:first-child').css('padding', '15px 10px 15px 30px');
-    $("#popup_info").popup( "option", "theme", "a");
-    var maxHeight = $(window).height() - 100 + "px";
-    $("#popup_info").css("max-height", maxHeight);
-    $("#popup_info").css("margin-bottom", "30px");
-    $("#popup_info").css("overflow-y", "auto");
-}
-
-function EnablePassButton(){
-    $('#pass_button').removeClass("ui-disabled");
-}
-
-function DisablePassButton(){
-    $('#pass_button').addClass("ui-disabled");
-}
index 277f3a2..2f35419 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Step: </p>
             <ol>
               <li>Click the "Install" button to install the widget.</li>
@@ -72,7 +74,7 @@ Authors:
               <li>Click the "Uninstall" button to uninstall the widget.</li>
             </ol>
             <p>Expected Result: </p>
-            <p>Test passes if the "Test1","Test2","Test3","Test4","Test5","Test6","Test7" all passed.</p>
+            <p>Test passes if all "TestN", N=1...7, pass.</p>
           </font>
         </div>
     </div>
index 812c780..15baea4 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Step: </p>
             <ol>
               <li>Click the "Install" button to install the widget.</li>
@@ -72,7 +74,7 @@ Authors:
               <li>Click the "Uninstall" button to uninstall the widget.</li>
             </ol>
             <p>Expected Result: </p>
-            <p>Test passes if the "Test1","Test2","Test3","Test4","Test5","Test6","Test7","Test8" all passed.</p>
+            <p>Test passes if all "TestN", N=1...8, pass.</p>
           </font>
         </div>
     </div>
index c0f73ef..6c943e2 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Step: </p>
             <ol>
               <li>Click the "Install" button to install the widget.</li>
@@ -72,7 +74,7 @@ Authors:
               <li>Click the "Uninstall" button to uninstall the widget.</li>
             </ol>
             <p>Expected Result: </p>
-            <p>Test passes if the "Test1","Test2","Test3","Test4","Test5","Test6","Test7" all passed.</p>
+            <p>Test passes if all "TestN", N=1...7, pass.</p>
           </font>
         </div>
     </div>
index 9a0ba98..4ed8eec 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Step: </p>
             <ol>
               <li>Click the "Install" button to install the widget.</li>
@@ -72,7 +74,7 @@ Authors:
               <li>Click the "Uninstall" button to uninstall the widget.</li>
             </ol>
             <p>Expected Result: </p>
-            <p>Test passes if the "Test1","Test2","Test3","Test4","Test5","Test6","Test7" all passed.</p>
+            <p>Test passes if all "TestN", N=1...7, pass.</p>
           </font>
         </div>
     </div>
index 96eeddc..a1818f6 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Step: </p>
             <ol>
               <li>Click the "Install" button to install the widget.</li>
@@ -72,7 +74,7 @@ Authors:
               <li>Click the "Uninstall" button to uninstall the widget.</li>
             </ol>
             <p>Expected Result: </p>
-            <p>Test passes if the "One","Two","Three","Four","Five","Six" all passed.</p>
+            <p>Test passes if the "One","Two","Three","Four","Five","Six" all pass.</p>
           </font>
         </div>
     </div>
index 66fd2af..7a3f978 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Step: </p>
             <ol>
               <li>Click the "Install" button to install the widget.</li>
@@ -72,7 +74,7 @@ Authors:
               <li>Click the "Uninstall" button to uninstall the widget.</li>
             </ol>
             <p>Expected Result: </p>
-            <p>Test passes if the "One","Two","Three","Four","Five","Six" all passed.</p>
+            <p>Test passes if the "One","Two","Three","Four","Five","Six" all pass.</p>
           </font>
         </div>
     </div>
index a6c1a73..9365374 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Step: </p>
             <ol>
               <li>Click the "Install" button to install the widget.</li>
index 3e249e6..ebe5e6e 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Step: </p>
             <ol>
               <li>Click the "Install" button to install the widget.</li>
@@ -72,7 +74,7 @@ Authors:
               <li>Click the "Uninstall" button to uninstall the widget.</li>
             </ol>
             <p>Expected Result: </p>
-            <p>Test passes if the "Test1","Test2" all passed.</p>
+            <p>Test passes if all "TestN", N=1...2, pass.</p>
           </font>
         </div>
     </div>
index fca2117..1b2d0c3 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Step: </p>
             <ol>
               <li>Click the "Install" button to install the widget.</li>
index d437201..f8eab61 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Step: </p>
             <ol>
               <li>Click the "Install" button to install the widget.</li>
@@ -72,7 +74,7 @@ Authors:
               <li>Click the "Uninstall" button to uninstall the widget.</li>
             </ol>
             <p>Expected Result: </p>
-            <p>Test passes if the "Test1","Test2","Test3","Test4","Test5" all passed.</p>
+            <p>Test passes if all "TestN", N=1...5, pass.</p>
           </font>
         </div>
     </div>
index 19715a5..5479c3b 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Step: </p>
             <ol>
               <li>Click the "Install" button to install the widget.</li>
index e948436..bb14fbb 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Step: </p>
             <ol>
               <li>Click the "Install" button to install the widget.</li>
index eeca2ff..2f5f0fe 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Step: </p>
             <ol>
               <li>Click the "Install" button to install the widget.</li>
index e3afa44..f2b474f 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Step: </p>
             <ol>
               <li>Click the "Install" button to install the widget.</li>
index 26e8595..f5f8120 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Step: </p>
             <ol>
               <li>Click the "Install" button to install the widget.</li>
index 7f0bf59..b7dfbe8 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Step: </p>
             <ol>
               <li>Click the "Install" button to install the widget.</li>
index 10d6ed1..70c21eb 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Step: </p>
             <ol>
               <li>Click the "Install" button to install the widget.</li>
index a555a78..574a590 100644 (file)
@@ -34,6 +34,7 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width">
     <link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../css/main.css" />
     <link rel="stylesheet" type="text/css" href="css/style.css" />
     <script src="../../js/thirdparty/jquery.js"></script>
     <script src="../../js/thirdparty/jquery.mobile.js"></script>
@@ -106,11 +107,11 @@ Authors:
     <div data-role="footer" data-position="fixed">
     </div>
     <div data-role="popup" id="popup_info">
-      <font style="font-size:85%">
+      <font class="fontSize">
         <p>Test Purpose: </p>
         <p>Verifies the CSS box is transferring between square and circle when moving from left to right, its background color is changing in the order of red, green and blue, and the counter record the times of CSS animation from 1 to 10.</p>
         <p>Expected Result: </p>
-        <p>This test PASS only if the transformation and animation function well.</p>
+        <p>Test passes if the transformation and animation function well.</p>
       </font>
     </div>
   </body>
index a5d3269..a980ecc 100644 (file)
@@ -35,6 +35,7 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width">
     <link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../css/main.css" />
     <link rel="stylesheet" type="text/css" href="css/style.css" />
     <script src="../../js/thirdparty/jquery.js"></script>
     <script src="../../js/thirdparty/jquery.mobile.js"></script>
@@ -115,11 +116,11 @@ Authors:
     <div data-role="footer" data-position="fixed">
     </div>
     <div data-role="popup" id="popup_info">
-      <font style="font-size:85%">
+      <font class="fontSize">
         <p>Test Purpose: </p>
         <p>Verifies the div box has a white background, red first letter, green dotted border and genera description uses default font in browser, "column span" uses WOFF font. And tests the functionality of all the text color in red, green or blue, background transparence from 0% to 100%, outline offset from 0 to 15, multicolumn enabling and disabling, text align in left or right, text in uppercase or lowercase, test and box shadow in two effects, text decoration in three effects and word break in two effects. The WOFF text shows in random code when using uppercase.</p>
         <p>Expected Result: </p>
-        <p>This test PASS only if all the check points function well in the div box.</p>
+        <p>Test passes if all the check points function well in the div box.</p>
       </font>
     </div>
   </body>
index 7b102f7..1002829 100755 (executable)
@@ -34,6 +34,7 @@ Authors:
         <meta charset="utf-8" />
         <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width">
         <link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+        <link rel="stylesheet" type="text/css" href="../../css/main.css" />
         <script src="../../js/thirdparty/jquery.js"></script>
         <script src="../../js/thirdparty/jquery.mobile.js"></script>
         <script src="../../js/tests.js"></script>
@@ -48,7 +49,7 @@ Authors:
               <p id="filename"></p>
               <div id="photoShow" align="center" style="height: 210px;line-height:210px;"></div>
             </div>
-            <input type="file" id="files" accept="image/*" capture="camera" style="display:none" />
+            <input type="file" id="files" accept="image/*" capture="camera" class="hideButton" />
             <div align="center">
               <input id="button" type="button" value="Launch camera to take a photo" />
             </div>
@@ -56,11 +57,11 @@ Authors:
         <div data-role="footer" data-position="fixed">
         </div>
         <div data-role="popup" id="popup_info">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Purpose: </p>
             <p>Verifies the functionality of Camera. Opens a device camera, previews the image automatically, then presents the captured photo after clicking the "capture" button.</p>
             <p>Expected Result: </p>
-            <p>This test PASS only if the camera preview and capture function well.</p>
+            <p>Test passes if the camera preview and capture function well.</p>
           </font>
         </div>
     </body>
index 1be0d21..d71d0c9 100755 (executable)
@@ -34,6 +34,7 @@ Authors:
         <meta charset="utf-8" />
         <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width">
         <link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+        <link rel="stylesheet" type="text/css" href="../../css/main.css" />
         <script src="../../js/thirdparty/jquery.js"></script>
         <script src="../../js/thirdparty/jquery.mobile.js"></script>
         <script src="../../js/tests.js"></script>
@@ -58,11 +59,11 @@ Authors:
         <div data-role="footer" data-position="fixed">
         </div>
         <div data-role="popup" id="popup_info">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Purpose: </p>
             <p>Verifies the functionality of enabling and disabling the Camera preview.</p>
             <p>Expected Result: </p>
-            <p>This test PASS only if the Camera preview through GetUserMedia functions well.</p>
+            <p>Test passes if the Camera preview through GetUserMedia functions well.</p>
           </font>
         </div>
     </body>
index 97b0276..6e87925 100755 (executable)
@@ -34,6 +34,7 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width">
     <link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../css/main.css" />
     <script src="../../js/thirdparty/jquery.js"></script>
     <script src="../../js/thirdparty/jquery.mobile.js"></script>
     <script src="../../js/tests.js"></script>
@@ -47,16 +48,16 @@ Authors:
       <div id="content">
         <ul data-role="listview">
           <li data-role="list-divider">ClipboardApplication Install</li>
-          <li><div data-role="button" id="install">Install</div></li>
-          <li><div data-role="button" id="launch1">Launch</div></li>
+          <li><div data-role="button" id="install" class="wgtButton">Install</div></li>
+          <li><div data-role="button" id="launch1" class="wgtButton">Launch</div></li>
           <li data-role="list-divider">ClipboardApplication Uninstall</li>
-          <li><div data-role="button" id="uninstall">Uninstall</div></li>
+          <li><div data-role="button" id="uninstall" class="wgtButton">Uninstall</div></li>
         </ul>
       </div>
       <div data-role="footer" data-position="fixed">
       </div>
       <div data-role="popup" id="popup_info">
-        <font style="font-size:85%">
+        <font class="fontSize">
           <p>Test Purpose: </p>
           <p>Verifies the device supports clipboard to copy, cut and paste texts. Tests the functionality by long pressing the selected text, choose the "Copy", "Cut" and "Paste" in popup menu.</p>
           <p>Pre-condition: </p>
index 8936d07..6826f7f 100644 (file)
@@ -30,9 +30,10 @@ Authors:
 
 var installUrl;
 $(document).delegate("#main", "pageinit", function() {
+    DisablePassButton();
+
     $("#install").bind("vclick", function() {
         install(installUrl, "install");
-        $("#launch1").removeClass("ui-disabled");
     });
     $("#launch1").bind("vclick", function() {
         launch();
@@ -46,10 +47,14 @@ $(document).delegate("#main", "pageinit", function() {
     } catch (e) {
         alert("Exception: " + e.message);
     }
-    DisablePassButton();
     packagePre();
     $("#launch1").addClass("ui-disabled");
     $("#uninstall").addClass("ui-disabled");
+
+    if(checkInstalledPkg("bclipboard")) {
+        $("#install").addClass("ui-disabled");
+        $("#launch1").removeClass("ui-disabled");
+    }
 });
 
 var packageEventCallback = {
@@ -91,17 +96,6 @@ function fileURI() {
     );
 }
 
-function checkInstalledPkg(pkgId) {
-    var packageInfo = null;
-    try {
-        if(pkgId) {
-            packageInfo = tizen.package.getPackageInfo(pkgId);
-        }
-    } catch (e) {}
-
-    return packageInfo === null ? false : true;
-}
-
 function install(url, type) {
     var onInstallationSuccess = {
             onprogress: function(packageId, percentage)
@@ -112,20 +106,18 @@ function install(url, type) {
             oncomplete: function(packageId)
             {
                 console.log("Installation(" + packageId + ") Complete");
+                $("#install").addClass("ui-disabled");
+                $("#launch1").removeClass("ui-disabled");
             }
     }
 
     var onError = function (err) {
-        alert("Error occured on installation : " + err.message);
+        console.log("Error occured on installation : " + err.message);
         $.mobile.hidePageLoadingMsg();
     }
 
     try {
-        if(checkInstalledPkg("bclipboard")) {
-            alert("The Clipboard application is already installed");
-        } else {
-            tizen.package.install(url, onInstallationSuccess, onError);
-        }
+        tizen.package.install(url, onInstallationSuccess, onError);
     } catch (e) {
         alert("Exception: " + e.name);
     }
@@ -142,14 +134,15 @@ function uninstall() {
             },
             oncomplete: function(packageId)
             {
+                console.log("Uninstallation(" + packageId + ") Complete");
                 $("#launch1").addClass("ui-disabled");
                 $("#uninstall").addClass("ui-disabled");
-                console.log("Uninstallation(" + packageId + ") Complete");
+                EnablePassButton();
             }
     }
 
     var onError = function (err) {
-        alert("Error occured on installation : " + err.name);
+        console.log("Error occured on installation : " + err.name);
         $.mobile.hidePageLoadingMsg();
     }
 
@@ -168,7 +161,7 @@ function launch() {
     function onError(err) {
         alert("launch failed : Clipboard application is already uninstalled or not installed");
     }
-    EnablePassButton();
+
     try {
         tizen.application.launch("bclipboard.clipboard", onSuccess, onError);
     } catch (exc) {
index 6b9b2f5..c05aee0 100644 (file)
@@ -34,6 +34,7 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../css/main.css" />
     <script src="../../js/thirdparty/jquery.js"></script>
     <script src="../../js/thirdparty/jquery.mobile.js"></script>
     <script src="../../js/tests.js"></script>
@@ -136,20 +137,20 @@ Authors:
                 </li>
                 <li data-role="list-divider" role="heading">Clean all the installed packages</li>
                 <li>
-                    <div data-role="button" id="wgtClean" style="height:40px; line-height:20px;">Clean all test applications</div>
+                    <div data-role="button" id="wgtClean" class="wgtButton">Clean all test applications</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Note: </p>
             <p>Verifies the functionality of tizen-specific widget configuration extension and w3c widget configuration extension.</p>
             <p>Test Purpose: </p>
             <p>Verifies WRT MUST support additional configuration elements that are not included in W3C Widget Packaging and XML Configuration, like "&lt;tizen:application&gt;", "&lt;tizen:privilege&gt;", "&lt;tizen:setting&gt;" etc.</p>
             <p>Expected Result: </p>
-            <p>Test passes only if all sub tests passed.</p>
+            <p>Test passes if all sub-tests pass.</p>
           </font>
         </div>
     </div>
index a1c1c96..382cdbd 100644 (file)
@@ -51,6 +51,7 @@ var MOUDLE_NAME = "ConfigurationExtension";
 var RESULT_FILE_NAME = "tct-behavior-child.ce.result.xml";
 
 $(document).delegate("#main", "pageinit", function() {
+    DisablePassButton();
     $("#wgtClean").bind("vclick", function() {
         showTotalBar();
     });
@@ -77,6 +78,7 @@ function checkInstalledPackage(){
     } else {
         $.mobile.hidePageLoadingMsg();
         alert("All widgets is uninstalled!");
+        EnablePassButton();
     }
 }
 
@@ -86,21 +88,21 @@ function uninstall(val) {
 
     var onUninstallationSuccess = {
 
-            onprogress: function(packageId, percentage)
-            {
-                console.log("On uninstallation(" + packageId + "): progress(" + percentage + ")");
-                $.mobile.showPageLoadingMsg();
-            },
-            oncomplete: function(packageId)
-            {
-                console.log("Uninstallation(" + packageId + ") Complete");
-                alert("The package " + packageId + " is uninstalled");
-                checkInstalledPackage();
-            }
+        onprogress: function(packageId, percentage)
+        {
+            console.log("On uninstallation(" + packageId + "): progress(" + percentage + ")");
+            $.mobile.showPageLoadingMsg();
+        },
+        oncomplete: function(packageId)
+        {
+            console.log("Uninstallation(" + packageId + ") Complete");
+            alert("The package " + packageId + " is uninstalled");
+            checkInstalledPackage();
+        }
     }
 
     var onError = function (err) {
-        alert("Error occured on installation : " + err.name);
+        console.log("Error occured on installation : " + err.name);
         $.mobile.hidePageLoadingMsg();
     }
 
index 1b1aac6..9388f19 100644 (file)
@@ -36,58 +36,58 @@ var package_id;
 var nolaunch_wgt = new Array('setting-encrypt-enable','setting-encrypt-disable');
 
 $(document).ready(function(){
+    updateFooterButton();
+    DisablePassButton();
+
     wgt_name = $("#wgt_name").val();
     app_id = $("#app_id").val();
     package_id = $("#package_id").val();
 
     $("#install").bind("vclick", function() {
         install();
-        if(jQuery.inArray(wgt_name, nolaunch_wgt) != -1){
-            $('#uninstall').removeClass("ui-disabled");
-            EnablePassButton();
-        }
     });
     $("#launch").bind("vclick", function() {
         launch(app_id);
         $('#uninstall').removeClass("ui-disabled");
-        EnablePassButton();
     });
     $("#uninstall").bind("vclick", function() {
         uninstall(package_id);
     });
+    if(jQuery.inArray(wgt_name, nolaunch_wgt) != -1){
+        $('#launch').hide();
+        $('#launch_divider').hide();
+    }
     try {
         tizen.package.setPackageInfoEventListener(packageEventCallback);
     } catch (e) {
         alert("Exception: " + e.message);
     }
 
-    if(jQuery.inArray(wgt_name, nolaunch_wgt) != -1){
-        $('#launch').hide();
-        $('#launch_divider').hide();
-    }
-
     packagePre(wgt_name);
     $('#uninstall').addClass("ui-disabled");
     $('#launch').addClass("ui-disabled");
-    updateFooterButton();
-    DisablePassButton();
+
+    if(checkInstalledPkg(package_id)) {
+        $('#install').addClass("ui-disabled");
+        if(jQuery.inArray(wgt_name, nolaunch_wgt) != -1){
+            $('#uninstall').removeClass("ui-disabled");
+        } else {
+            $('#launch').removeClass("ui-disabled");
+        }
+    }
 });
 
 var packageEventCallback = {
     oninstalled: function(packageInfo) {
         $.mobile.hidePageLoadingMsg();
-        $('#launch').removeClass("ui-disabled");
         alert("The package " + packageInfo.name + " is installed");
     },
     onupdated: function(packageInfo) {
         $.mobile.hidePageLoadingMsg();
-        $('#launch').removeClass("ui-disabled");
         alert("The package " + packageInfo.name + " is updated");
     },
     onuninstalled: function(packageId) {
         $.mobile.hidePageLoadingMsg();
-        $('#uninstall').addClass("ui-disabled");
-        $('#launch').addClass("ui-disabled");
         alert("The package " + packageId + " is uninstalled");
     }
 }
@@ -101,9 +101,6 @@ function fileURI(wgt_name) {
             {
                 var Url1 = files[i].toURI();
                 installUrl = Url1.replace("file:///", "/");
-                //if(jQuery.inArray(wgt_name, install_wgt) == -1){
-                //    install();
-                //}
             }
         }
     }
@@ -123,46 +120,33 @@ function fileURI(wgt_name) {
     );
 }
 
-function checkInstalledPkg() {
-    var packageInfo = null;
-    try {
-        if(package_id) {
-            packageInfo = tizen.package.getPackageInfo(package_id);
-        }
-    } catch (e) {}
-
-    return packageInfo === null ? false : true;
-}
-
 function install() {
     var onInstallationSuccess = {
-            onprogress: function(packageId, percentage)
-            {
-                console.log("On installation(" + packageId + "): progress(" + percentage + ")");
-                $.mobile.showPageLoadingMsg();
-            },
-            oncomplete: function(packageId)
-            {
-                console.log("Installation(" + packageId + ") Complete");
+        onprogress: function(packageId, percentage)
+        {
+            console.log("On installation(" + packageId + "): progress(" + percentage + ")");
+            $.mobile.showPageLoadingMsg();
+        },
+        oncomplete: function(packageId)
+        {
+            console.log("Installation(" + packageId + ") Complete");
+            $('#install').addClass("ui-disabled");
+            if(jQuery.inArray(wgt_name, nolaunch_wgt) != -1){
+                $('#uninstall').removeClass("ui-disabled");
+            } else {
+                $('#launch').removeClass("ui-disabled");
             }
+        }
     }
 
     var onError = function (err) {
-        EnablePassButton();
-        alert("Error occured on installation : " + err.message);
+        console.log("Error occured on installation : " + err.message);
         $.mobile.hidePageLoadingMsg();
     }
 
     try {
-        if(checkInstalledPkg()) {
-            $('#launch').removeClass("ui-disabled");
-            alert("The package is already installed");
-        } else {
-            tizen.package.install(installUrl, onInstallationSuccess, onError);
-        }
+        tizen.package.install(installUrl, onInstallationSuccess, onError);
     } catch(e) {
-        $.mobile.hidePageLoadingMsg();
-        EnablePassButton();
         alert("Exception: " + e.name);
     }
 }
@@ -170,19 +154,22 @@ function install() {
 function uninstall(package_id) {
     var onUninstallationSuccess = {
 
-            onprogress: function(packageId, percentage)
-            {
-                console.log("On uninstallation(" + packageId + "): progress(" + percentage + ")");
-                $.mobile.showPageLoadingMsg();
-            },
-            oncomplete: function(packageId)
-            {
-                console.log("Uninstallation(" + packageId + ") Complete");
-            }
+        onprogress: function(packageId, percentage)
+        {
+            console.log("On uninstallation(" + packageId + "): progress(" + percentage + ")");
+            $.mobile.showPageLoadingMsg();
+        },
+        oncomplete: function(packageId)
+        {
+            console.log("Uninstallation(" + packageId + ") Complete");
+            $('#launch').addClass("ui-disabled");
+            $('#uninstall').addClass("ui-disabled");
+            EnablePassButton();
+        }
     }
 
     var onError = function (err) {
-        alert("Error occured on installation : " + err.name);
+        console.log("Error occured on installation : " + err.name);
         $.mobile.hidePageLoadingMsg();
     }
 
@@ -243,39 +230,8 @@ function packagePre(wgt_name) {
     );
 }
 
-function backAppsHome() {
-    window.close();
-}
-
 function reportResult(res) {
     var jsonStr="[{\"testname\":\"" + wgt_name + "\",\"result\":\"" + res + "\"}]";
     window.opener.postMessage(jsonStr, '*');
     backAppsHome();
-}
-
-function updateFooterButton(){
-    var footbar = $(':jqmData(role=footer)');
-    footbar.empty();
-    footbar.attr("align", "center");
-    footbar.append("<div data-role=\"controlgroup\" data-type=\"horizontal\">" +
-        "<a href=\"javascript:reportResult('PASS');\" id=\"pass_button\" data-role=\"button\" data-icon=\"check\" style=\"color: green\">Pass</a>" +
-        "<a href=\"javascript:reportResult('FAIL');\" id=\"fail_button\" data-role=\"button\" data-icon=\"delete\" style=\"color: red\">Fail</a>" +
-        "<a href=\"#popup_info\" data-role=\"button\" data-icon=\"info\" data-rel=\"popup\" data-transition=\"pop\">Info</a>" +
-        "<a href=\"javascript:backAppsHome();\" data-role=\"button\" data-icon=\"home\">Back</a></div>");
-
-    footbar.trigger("create");
-    footbar.find(':jqmData(role=button) > span:first-child').css('padding', '15px 10px 15px 30px');
-    $("#popup_info").popup( "option", "theme", "a");
-    var maxHeight = $(window).height() - 100 + "px";
-    $("#popup_info").css("max-height", maxHeight);
-    $("#popup_info").css("margin-bottom", "30px");
-    $("#popup_info").css("overflow-y", "auto");
-}
-
-function EnablePassButton(){
-    $('#pass_button').removeClass("ui-disabled");
-}
-
-function DisablePassButton(){
-    $('#pass_button').addClass("ui-disabled");
-}
+}
\ No newline at end of file
index fae0880..bc2e44e 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Pre-condition: </p>
             <p>Make sure the device can access to Internet.</p>
             <p>Test Step: </p>
index 5e46f40..a3ca8d5 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Pre-condition: </p>
             <p>Make sure the device can access to Internet.</p>
             <p>Test Step: </p>
index ad09072..555c79c 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Pre-condition: </p>
             <p>Make sure the device can access to Internet.</p>
             <p>Test Step: </p>
index ea2b7e7..67c810c 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Pre-condition: </p>
             <p>Make sure the device can access to Internet.</p>
             <p>Test Step: </p>
index 10fbb3c..480491c 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Pre-condition: </p>
             <p>Set the auto rotate enable in Setting > Display> Auto rotate screen.</p>
             <p>Test Step: </p>
index 2a4f31d..a76768c 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Step: </p>
             <ol>
               <li>Click the "Install" button to install the widget.</li>
index cbf0e7a..d8b06c6 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Step: </p>
             <ol>
               <li>Click the "Install" button to install the widget.</li>
index e522011..233302d 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Step: </p>
             <ol>
               <li>Click the "Install" button to install the widget.</li>
index 1fb5cc4..7d2d1f9 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider" id="launch_divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Pre-condition: </p>
             <p>Confirm the widget application is not encrypted.</p>
             <p>Test Step: </p>
index 457eada..d31b065 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider" id="launch_divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Pre-condition: </p>
             <p>Confirm the widget application is encrypted.</p>
             <p>Test Step: </p>
index e92444f..e52b061 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Step: </p>
             <ol>
               <li>Click the "Install" button to install the widget.</li>
index d2fb6fa..2db22bf 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Step: </p>
             <ol>
               <li>Click the "Install" button to install the widget.</li>
index f5e377a..a776b29 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Step: </p>
             <ol>
               <li>Click the "Install" button to install the widget.</li>
index 2a8e28a..2f34773 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Pre-condition: </p>
             <p>Insert a memory card into the device.</p>
             <p>Test Step: </p>
index 930e728..d1f8df5 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Pre-condition: </p>
             <p>Make sure there is no memory card inserted into the device.</p>
             <p>Test Step: </p>
index 410f7f4..574ec66 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Pre-condition: </p>
             <p>Insert a memory card into the device.</p>
             <p>Test Step: </p>
index db0a0e5..d547bd7 100644 (file)
@@ -34,6 +34,7 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../css/main.css" />
     <script src="../../js/thirdparty/jquery.js"></script>
     <script src="../../js/thirdparty/jquery.mobile.js"></script>
     <script src="../../js/tests.js"></script>
@@ -47,16 +48,16 @@ Authors:
       <div id="content">
         <ul data-role="listview">
           <li data-role="list-divider">DragandDropApplication Install</li>
-          <li><div data-role="button" id="install">Install</div></li>
-          <li><div data-role="button" id="launch1">Launch</div></li>
+          <li><div data-role="button" id="install" class="wgtButton">Install</div></li>
+          <li><div data-role="button" id="launch1" class="wgtButton">Launch</div></li>
           <li data-role="list-divider">DragandDropApplication Uninstall</li>
-          <li><div data-role="button" id="uninstall">Uninstall</div></li>
+          <li><div data-role="button" id="uninstall" class="wgtButton">Uninstall</div></li>
         </ul>
       </div>
       <div data-role="footer" data-position="fixed" data-tap-toggle="false">
       </div>
       <div data-role="popup" id="popup_info" data-theme="a">
-        <font style="font-size:85%">
+        <font class="fontSize">
           <p>Test Purpose: </p>
           <p>Verifies the device supports drag and drop functions.</p>
           <p>Pre-condition: </p>
index 69e2de4..f142648 100644 (file)
@@ -30,9 +30,10 @@ Authors:
 
 var installUrl;
 $(document).delegate("#main", "pageinit", function() {
+    DisablePassButton();
+
     $("#install").bind("vclick", function() {
         install(installUrl, "install");
-        $("#launch1").removeClass("ui-disabled");
     });
     $("#launch1").bind("vclick", function() {
         launch();
@@ -46,10 +47,15 @@ $(document).delegate("#main", "pageinit", function() {
     } catch (e) {
         alert("Exception: " + e.message);
     }
-    DisablePassButton();
+
     packagePre();
     $("#launch1").addClass("ui-disabled");
     $("#uninstall").addClass("ui-disabled");
+
+    if(checkInstalledPkg("bhdragdrop")) {
+        $("#install").addClass("ui-disabled");
+        $("#launch1").removeClass("ui-disabled");
+    }
 });
 
 var packageEventCallback = {
@@ -91,17 +97,6 @@ function fileURI() {
     );
 }
 
-function checkInstalledPkg(pkgId) {
-    var packageInfo = null;
-    try {
-        if(pkgId) {
-            packageInfo = tizen.package.getPackageInfo(pkgId);
-        }
-    } catch (e) {}
-
-    return packageInfo === null ? false : true;
-}
-
 function install(url, type) {
     var onInstallationSuccess = {
             onprogress: function(packageId, percentage)
@@ -112,20 +107,20 @@ function install(url, type) {
             oncomplete: function(packageId)
             {
                 console.log("Installation(" + packageId + ") Complete");
+                if(checkInstalledPkg("bhdragdrop")) {
+                    $("#install").addClass("ui-disabled");
+                    $("#launch1").removeClass("ui-disabled");
+                }
             }
     }
 
     var onError = function (err) {
-        alert("Error occured on installation : " + err.message);
+        console.log("Error occured on installation : " + err.message);
         $.mobile.hidePageLoadingMsg();
     }
 
     try {
-        if(checkInstalledPkg("bhdragdrop")) {
-            alert("The DragandDrop application is already installed");
-        } else {
-            tizen.package.install(url, onInstallationSuccess, onError);
-        }
+        tizen.package.install(url, onInstallationSuccess, onError);
     } catch(e) {
         alert("Exception: " + e.name);
     }
@@ -142,14 +137,15 @@ function uninstall() {
             },
             oncomplete: function(packageId)
             {
+                console.log("Uninstallation(" + packageId + ") Complete");
                 $("#launch1").addClass("ui-disabled");
                 $("#uninstall").addClass("ui-disabled");
-                console.log("Uninstallation(" + packageId + ") Complete");
+                EnablePassButton();
             }
     }
 
     var onError = function (err) {
-        alert("Error occured on installation : " + err.name);
+        console.log("Error occured on installation : " + err.name);
         $.mobile.hidePageLoadingMsg();
     }
 
@@ -168,7 +164,6 @@ function launch() {
     function onError(err) {
         alert("launch failed : DragandDrop application is already uninstalled or not installed");
     }
-    EnablePassButton();
     try {
         tizen.application.launch("bhdragdrop.DragandDrop", onSuccess, onError);
     } catch (exc) {
index a2e1b6d..14b1925 100644 (file)
@@ -34,6 +34,7 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../css/main.css" />
     <script src="../../js/thirdparty/jquery.js"></script>
     <script src="../../js/thirdparty/jquery.mobile.js"></script>
     <script src="../../js/tests.js"></script>
@@ -48,39 +49,39 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">TestPackage Application Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Purpose: </p>
             <p>Verifies the functionality of DynamicBox application: mouse event, visibility event and unload event for DynamicBox.</p>
             <p>Test Step: </p>
             <ol>
               <li>Click the "Install" button, test step passes if app widgets are successfully installed.</li>
-              <li>Click the "Launch" button to launch the DynamicBox Viewer. After each step below, touch "Back" key (soft or hard key) to go forward next step:</li>
+              <li>Click the "Launch" button to launch the DynamicBox Viewer. After each step below, press "Back" key (soft or hard key) to go forward next step:</li>
               <ol>
                 <li>Click the "Mouse event false"; move the red filled square; test step passes if the square does NOT move without clicking 'Move' button and if the square moves with 'Move' button clicking;</li>
                 <li>Click the "Sample"; test step passes if there is a green 'Pass' text;</li>
                 <li>Click the "AppWidget Unload event"; wait 5 seconds; test step passes if there are several 'pass' displayed;</li>
-                <li>Click the "Dynamic Box"; touch the menu button to select size 354x354; then drag down the box; test step passes if there apears a button "Send message to Box", and click the button, "Hello, Dynamic Box" appends into the box;</li>
+                <li>Click the "Dynamic Box"; press the menu button to select size 354x354; then drag down the box; test step passes if there apears a button "Send message to Box", and click the button, "Hello, Dynamic Box" appends into the box;</li>
 
-                <li>Click the "AppWidget Content mouse event"; touch the red filled square; test step passes if the red square changes to green square;</li>
+                <li>Click the "AppWidget Content mouse event"; press the red filled square; test step passes if the red square changes to green square;</li>
                 <li>Click the "AppWidget Load event"; test step passes if there is a green 'Pass' text;</li>
                 <li>Click the "Visibility widget"; test step passes if there is a green 'Pass' text, and after drag down the 'Pass' there appears 'PD index.html';</li>
-                <li>Click the "Size Decoration"; touch the menu button to select box size; test step passes if the box in '354x354' size has different frame decoration from those in '175x175' and '345x175' sizes;</li>
-                <li>Click the "Size Preview"; touch the menu button; test step passes if there are icons in the size list.</li>
+                <li>Click the "Size Decoration"; press the menu button to select box size; test step passes if the box in '354x354' size has different frame decoration from those in '175x175' and '345x175' sizes;</li>
+                <li>Click the "Size Preview"; press the menu button; test step passes if there are icons in the size list.</li>
               </ol>
               <li>Click the "Uninstall" button, test step passes if app widgets are uninstalled successfully.</li>
             </ol>
index a68ea31..51264a2 100644 (file)
@@ -56,7 +56,9 @@ var package_ids = new Array('wrt6awi014',
                             'wrt6awb003',
                             'wrt6awb005');
 
-var id_maps = {'app-widget-mouse-event-false.wgt':        'wrt6awi014',
+var id_maps = {'rMLtTXzQr2-2.0.0-arm.tpk':                'rMLtTXzQr2',
+               'SD2nFxbyeA-2.0.0-i386.tpk':               'SD2nFxbyeA',
+               'app-widget-mouse-event-false.wgt':        'wrt6awi014',
                'app-widget-sample.wgt':                   'wrt6app001',
                'app-widget-unload-event.wgt':             'wrt6aws017',
                'app-widget-box-appwidgetready-event.wgt': 'wrt6awb006',
@@ -77,7 +79,6 @@ $(document).delegate("#main", "pageinit", function() {
     $("#launch").bind("vclick", function() {
         launch(launch_tpk);
         $("#uninstall").removeClass("ui-disabled");
-        EnablePassButton();
     });
     $("#uninstall").bind("vclick", function() {
         uninstall(package_ids[uninstall_number]);
@@ -89,6 +90,7 @@ $(document).delegate("#main", "pageinit", function() {
     }
     gettpkInfoByPlatForm();
     packagePre(wgt_names[install_number]);
+
     $("#launch").addClass("ui-disabled");
     $("#uninstall").addClass("ui-disabled");
 });
@@ -153,17 +155,6 @@ function fileURI(wgt_name) {
     );
 }
 
-function checkInstalledPkg(pkgId) {
-    var packageInfo = null;
-    try {
-        if(pkgId) {
-            packageInfo = tizen.package.getPackageInfo(pkgId);
-        }
-    } catch (e) {}
-
-    return packageInfo === null ? false : true;
-}
-
 function checkWgtName(filePath) {
     var name = "";
     wgt_names.forEach(function (wgt_name) {
@@ -176,7 +167,6 @@ function checkWgtName(filePath) {
 }
 
 function install() {
-    $("#launch").addClass("ui-disabled");
     var totalBar = Math.floor(install_number / wgt_names.length * 100);
     var onInstallationSuccess = {
             onprogress: function(packageId, percentage)
@@ -193,7 +183,6 @@ function install() {
             oncomplete: function(packageId)
             {
                 console.log("Installation(" + packageId + ") Complete");
-                $("#launch").removeClass("ui-disabled");
                 install_number++;
                 if(install_number < wgt_names.length){
                     packagePre(wgt_names[install_number]);
@@ -201,6 +190,8 @@ function install() {
                     install_number = 0;
                     $.mobile.loading('hide');
                     alert("All widgets is installed!");
+                    $("#install").addClass("ui-disabled");
+                    $("#launch").removeClass("ui-disabled");
                 }
             }
     }
@@ -208,14 +199,12 @@ function install() {
     var onError = function (err) {
         $.mobile.loading('hide');
         $("#launch").removeClass("ui-disabled");
-        alert("Error occured on installation : " + err.message);
+        console.log("Error occured on installation : " + err.message);
     }
 
     try {
         var wgt_name = checkWgtName(installUrl);
         if (wgt_name && checkInstalledPkg(id_maps[wgt_name])) {
-            alert("Package " + id_maps[wgt_name] + " is already installed");
-            $("#launch").removeClass("ui-disabled");
             install_number++;
             if(install_number < wgt_names.length){
                 packagePre(wgt_names[install_number]);
@@ -223,6 +212,8 @@ function install() {
                 install_number = 0;
                 $.mobile.loading('hide');
                 alert("All widgets is installed!");
+                $("#install").addClass("ui-disabled");
+                $("#launch").removeClass("ui-disabled");
             }
         } else {
             tizen.package.install(installUrl, onInstallationSuccess, onError);
@@ -259,13 +250,14 @@ function uninstall(package_id) {
                     $("#launch").addClass("ui-disabled");
                     $("#uninstall").addClass("ui-disabled");
                     alert("All widgets is uninstalled!");
+                    EnablePassButton();
                 }
             }
     }
 
     var onError = function (err) {
         $.mobile.loading('hide');
-        alert("Error occured on installation : " + err.name);
+        console.log("Error occured on installation : " + err.name);
     }
 
     try {
index ba34616..b70525a 100644 (file)
@@ -35,6 +35,7 @@ Authors:
         <meta charset="utf-8" />
         <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width">
         <link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+        <link rel="stylesheet" type="text/css" href="../../css/main.css" />
         <link rel="stylesheet" type="text/css" href="css/style.css" />
         <script src="../../js/thirdparty/jquery.js"></script>
         <script src="../../js/thirdparty/jquery.mobile.js"></script>
@@ -57,13 +58,17 @@ Authors:
         <div data-role="footer" data-position="fixed">
         </div>
         <div data-role="popup" id="popup_info">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Purpose: </p>
             <p>Verifies the functionality of File Reader. Tests the functionality of loading one or multiple files, opening the files one by one by clicking the hyperlink in file name.</p>
             <p>Test Pre-configuration: </p>
             <p>Ensure at least one txt file is located in device.</p>
             <p>Expected Result: </p>
-            <p>This test PASS only if the file uploading functions well, file size shows correctly and file content could be printed on the screen.</p>
+            <p>Test passes if
+              <li>the file uploading function well.</li>
+              <li>file size show correctly.</li>
+              <li>file content could be printed on the screen.</li>
+            </p>
           </font>
         </div>
     </body>
index c87d749..296c3b8 100755 (executable)
@@ -35,6 +35,7 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width">
     <link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../css/main.css" />
     <script src="../../js/thirdparty/jquery.js"></script>
     <script src="../../js/thirdparty/jquery.mobile.js"></script>
     <script src="../../js/tests.js"></script>
@@ -64,23 +65,23 @@ Authors:
         <li data-role="list-divider" id="labelFullScreen">FullScreen</li>
         <li id ="buttonFullScreen">
           <div data-role="button" id="requestFullScreen">Request</div>
-          <div data-role="button" id="cancelFullScreen" style="display: none">Cancle FullScreen</div>
+          <div data-role="button" id="cancelFullScreen" class="hideButton">Cancle FullScreen</div>
         </li>
         <li data-role="list-divider" id="labelcssFullScreen">CSS FullScreen</li>
         <li id ="buttoncssFullScreen">
           <div data-role="button" id="cssFullScreen">Request</div>
-          <div data-role="button" id="cancelCssFullScreen" style="display: none">Cancle CSS FullScreen</div>
+          <div data-role="button" id="cancelCssFullScreen" class="hideButton">Cancle CSS FullScreen</div>
         </li>
       </ul>
     </div>
     <div data-role="footer" data-position="fixed">
     </div>
     <div data-role="popup" id="popup_info">
-      <font style="font-size:85%">
+      <font class="fontSize">
         <p>Test Purpose: </p>
         <p>Verifies the full screen mode and CSS full screen mode could be enabled and cancelled. The CSS full screen mode is filled with green color in background.</p>
         <p>Expected Result: </p>
-        <p>This test PASS only if full screen mode and CSS full screen mode function well.</p>
+        <p>Test passes if full screen mode and CSS full screen mode function well.</p>
       </font>
     </div>
   </body>
index 14fe5df..3f3e185 100755 (executable)
@@ -35,6 +35,7 @@ Authors:
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <title>HybridApplication</title>
     <link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../css/main.css" />
     <script src="../../js/thirdparty/jquery.js"></script>
     <script src="../../js/thirdparty/jquery.mobile.js"></script>
     <script src="../../js/tests.js"></script>
@@ -48,20 +49,20 @@ Authors:
         <div id="content">
             <ul data-role="listview">
                 <li data-role="list-divider">HybridApplication Install</li>
-                <li><div data-role="button" id="install">Install</div></li>
-                <li><div data-role="button" id="launch1">Launch</div></li>
+                <li><div data-role="button" id="install" class="wgtButton">Install</div></li>
+                <li><div data-role="button" id="launch1" class="wgtButton">Launch</div></li>
                 <li data-role="list-divider">HybridApplication Update</li>
-                <li><div data-role="button" id="update">Update</div></li>
-                <li><div data-role="button" id="launch2">Launch</div></li>
+                <li><div data-role="button" id="update" class="wgtButton">Update</div></li>
+                <li><div data-role="button" id="launch2" class="wgtButton">Launch</div></li>
                 <li data-role="list-divider">HybridApplication Uninstall</li>
-                <li><div data-role="button" id="uninstall">Uninstall</div></li>
-                <li><div data-role="button" id="launch3">Try to Launch</div></li>
+                <li><div data-role="button" id="uninstall" class="wgtButton">Uninstall</div></li>
+                <li><div data-role="button" id="launch3" class="wgtButton">Try to Launch</div></li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Purpose: </p>
             <p>Verifies the functionality of hybrid application. Tests the functionality of two hybrid applications installation, uninstallation, launching, update and communicating with the native application by clicking the "START/ STOP" buttons, clearing the messages by clicking the "CLEAR" button. And quit the hybrid application by clicking the "RETURN" button.</p>
             <ol>
@@ -73,7 +74,7 @@ Authors:
               <li>Click the "Try to Launch" button to launch the Hybrid app, it will get an error msg.</li>
             </ol>
             <p>Expected Result: </p>
-            <p>Test passes only if all the test points function well.</p>
+            <p>Test passes if all the test points function well.</p>
           </font>
         </div>
     </div>
index 85a76b1..bf94896 100644 (file)
@@ -30,34 +30,33 @@ Authors:
 */
 
 var installUrl, updateUrl, platformName, packagePath;
-var flag = false;
-var install_flag = false;
-var update_flag = false;
-var uninstall_flag = false;
+var opened_flag = false;
 $(document).delegate("#main", "pageinit", function() {
     DisablePassButton();
+
     $("#install").bind("vclick", function() {
         install(installUrl, "install");
-        $("#launch1").removeClass("ui-disabled");
     });
-    $("#uninstall").bind("vclick", function() {
-        uninstall();
-        $("#launch3").removeClass("ui-disabled");
+    $("#launch1").bind("vclick", function() {
+        launch();
+        if (!opened_flag) {
+            opened_flag = true;
+            $("#update").removeClass("ui-disabled");
+        }
     });
     $("#update").bind("vclick", function() {
         install(updateUrl, "update");
-        $("#launch2").removeClass("ui-disabled");
-    });
-    $("#launch1").bind("vclick", function() {
-        launch();
-        $("#update").removeClass("ui-disabled");
     });
     $("#launch2").bind("vclick", function() {
         launch();
         $("#uninstall").removeClass("ui-disabled");
     });
+    $("#uninstall").bind("vclick", function() {
+        uninstall();
+    });
     $("#launch3").bind("vclick", function() {
         launch();
+        EnablePassButton();
     });
     try {
         tizen.package.setPackageInfoEventListener(packageEventCallback);
@@ -68,28 +67,28 @@ $(document).delegate("#main", "pageinit", function() {
     $("#launch1").addClass("ui-disabled");
     $("#launch2").addClass("ui-disabled");
     $("#launch3").addClass("ui-disabled");
-    $("#uninstall").addClass("ui-disabled");
     $("#update").addClass("ui-disabled");
+    $("#uninstall").addClass("ui-disabled");
+
+    if(checkInstalledPkg("bhtchybrid")) {
+        $("#install").addClass("ui-disabled");
+        $("#launch1").removeClass("ui-disabled");
+    }
 });
 
 var packageEventCallback = {
         oninstalled: function(packageInfo) {
             hideProcess();
             alert("The application " + packageInfo.name + " is installed");
-            flag = true;
-            install_flag = true;
         },
         onupdated: function(packageInfo) {
             hideProcess();
             alert("The application " + packageInfo.name + " is updated");
-            flag = true;
-            update_flag = true;
+            $("#update").removeClass("ui-disabled");
         },
         onuninstalled: function(packageId) {
             hideProcess();
             alert("The Hybrid application is uninstalled");
-            flag = false;
-            uninstall_flag = true;
         }
 };
 
@@ -136,11 +135,19 @@ function install(url, type) {
             oncomplete: function(packageId)
             {
                 console.log("Installation(" + packageId + ") Complete");
+                if (type == "install") {
+                    $("#install").addClass("ui-disabled");
+                    $("#launch1").removeClass("ui-disabled");
+                }
+                if (type == "update") {
+                    $("#update").addClass("ui-disabled");
+                    $("#launch2").removeClass("ui-disabled");
+                }
             }
     }
 
     var onError = function (err) {
-        alert("Error occured on installation : " + err.name);
+        console.log("Error occured on installation : " + err.name);
         $.mobile.hidePageLoadingMsg();
     }
 
@@ -163,19 +170,20 @@ function uninstall() {
             oncomplete: function(packageId)
             {
                 console.log("Uninstallation(" + packageId + ") Complete");
+                $("#launch1").addClass("ui-disabled");
+                $("#launch2").addClass("ui-disabled");
+                $("#uninstall").addClass("ui-disabled");
+                $("#launch3").removeClass("ui-disabled");
             }
     }
 
     var onError = function (err) {
-        alert("Error occured on installation : " + err.name);
+        console.log("Error occured on installation : " + err.name);
         $.mobile.hidePageLoadingMsg();
     }
 
     try {
-        if(flag == false)
-            alert("The Hybrid application is already uninstalled or not installed");
-        else
-            tizen.package.uninstall("bhtchybrid", onUninstallationSuccess, onError);
+        tizen.package.uninstall("bhtchybrid", onUninstallationSuccess, onError);
     } catch (e) {
         alert("Exception: " + e.name);
     }
@@ -191,9 +199,6 @@ function launch() {
     }
 
     try {
-        if(install_flag == true && update_flag == true && uninstall_flag == true) {
-            EnablePassButton();
-        }
         tizen.application.launch("bhtchybrid.HybridApp", onSuccess, onError);
     } catch (exc) {
         alert("launch exc:" + exc.message);
index b03a16b..1ad5033 100755 (executable)
@@ -35,22 +35,33 @@ Authors:
         <meta charset="utf-8" />
         <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width">
         <link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+        <link rel="stylesheet" type="text/css" href="../../css/main.css" />
         <link rel="stylesheet" type="text/css" href="css/style.css"/>
         <script src="../../js/thirdparty/jquery.js"></script>
         <script src="../../js/thirdparty/jquery.mobile.js"></script>
         <script src="../../js/tests.js"></script>
         <script src="js/main.js"></script>
+        <style>
+            .observate {
+                border: #000 solid 1px;
+                height: 220px;
+                margin-bottom: 10px;
+            }
+            .display {
+                margin: 3px;
+            }
+        </style>
     </head>
     <body onload="initialize()">
         <div data-role="header">
             <h1 id="main_page_title"></h1>
         </div>
         <div data-role="content">
-            <div id="observateEare" style="border: #000 solid 1px;height: 220px;margin-bottom: 10px;">
+            <div id="observateEare" class="observate">
               <ul id="coordinate">
-                <li id="latitudeDiv" style="margin: 3px;">Latitude: n/a</li>
-                <li id="longitudeDiv" style="margin: 3px;">Longitude: n/a</li>
-                <li id="speedDiv" style="margin: 3px;">Speed: n/a</li>
+                <li id="latitudeDiv" class="display">Latitude: n/a</li>
+                <li id="longitudeDiv" class="display">Longitude: n/a</li>
+                <li id="speedDiv" class="display">Speed: n/a</li>
               </ul>
               <p id="errormessage"></p>
             </div>
@@ -59,13 +70,13 @@ Authors:
         <div data-role="footer" data-position="fixed">
         </div>
         <div data-role="popup" id="popup_info">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Purpose: </p>
             <p>Verifies the location information of latitude and longitude position can be fetched through GPS.</p>
             <p>Test Pre-configuration: </p>
             <p>Ensure device networking is disabled and GPS is enabled.</p>
             <p>Expected Result: </p>
-            <p>This test PASS only if the latitude and longitude return the correct position data.</p>
+            <p>Test passes if both the latitude and longitude return the correct position data.</p>
           </font>
         </div>
     </body>
index 50d99e0..39373d1 100755 (executable)
@@ -34,21 +34,29 @@ Authors:
         <meta charset="utf-8" />
         <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width">
         <link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+        <link rel="stylesheet" type="text/css" href="../../css/main.css" />
         <link rel="stylesheet" type="text/css" href="css/style.css"/>
         <script src="../../js/thirdparty/jquery.js"></script>
         <script src="../../js/thirdparty/jquery.mobile.js"></script>
         <script src="../../js/tests.js"></script>
         <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
         <script src="js/main.js"></script>
+        <style>
+            .observate {
+                border: #000 solid 1px;
+                height: 442px;
+                margin-bottom: 10px;
+            }
+        </style>
     </head>
     <body onload="initialize()">
         <div data-role="header">
             <h1 id="main_page_title"></h1>
         </div>
         <div data-role="content">
-            <div id="observateEare" style="border: #000 solid 1px;height: 442px;margin-bottom: 10px;">
-              <div id="onLine" class="online_show" style="display:none"></div>
-              <div id="offLine" class="offline_show" style="display:none"></div>
+            <div id="observateEare" class="observate">
+              <div id="onLine" class="online_show" class="hideButton"></div>
+              <div id="offLine" class="offline_show" class="hideButton"></div>
               <div id="latitudeDiv" class="attribute_show">Latitude:</div>
               <div id="longitudeDiv" class="attribute_show">Longitude:</div>
               <div id="errormessage"></div>
@@ -59,13 +67,13 @@ Authors:
         <div data-role="footer" data-position="fixed">
         </div>
         <div data-role="popup" id="popup_info">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Purpose: </p>
             <p>Verifies the location information of latitude and longitude position can be fetched through network.</p>
             <p>Test Pre-configuration: </p>
             <p>Ensure device networking is enabled and GPS is disabled.</p>
             <p>Expected Result: </p>
-            <p>This test PASS only if the latitude and longitude return the correct position data.</p>
+            <p>Test passes if both the latitude and longitude return the correct position data.</p>
           </font>
         </div>
     </body>
index e435bd3..7b28852 100644 (file)
@@ -34,6 +34,7 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width">
     <link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../css/main.css" />
     <link rel="stylesheet" type="text/css" href="css/style.css" />
     <script src="../../js/thirdparty/jquery.js"></script>
     <script src="../../js/thirdparty/jquery.mobile.js"></script>
@@ -61,11 +62,11 @@ Authors:
     <div data-role="footer" data-position="fixed">
     </div>
     <div data-role="popup" id="popup_info">
-      <font style="font-size:85%">
+      <font class="fontSize">
         <p>Test Purpose: </p>
         <p>Verifies the video playback of OGV, 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>Expected Result: </p>
-        <p>This test PASS only if all the check points function well during video playback.</p>
+        <p>Test passes if all the check points function well during video playback.</p>
       </font>
     </div>
   </body>
index 0390c84..69c5093 100644 (file)
@@ -34,6 +34,7 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../css/main.css" />
     <script src="../../js/thirdparty/jquery.js"></script>
     <script src="../../js/thirdparty/jquery.mobile.js"></script>
     <script src="../../js/tests.js"></script>
@@ -84,20 +85,20 @@ Authors:
                 </li>
                 <li data-role="list-divider" role="heading">Clean all the Installed packages</li>
                 <li>
-                    <div data-role="button" id="wgtClean" style="height:40px; line-height:20px;">Clean all test applications</div>
+                    <div data-role="button" id="wgtClean" class="wgtButton">Clean all test applications</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Note: </p>
             <p>Verifies the functionality of installing, updating and uninstalling web applications.</p>
             <p>Test Purpose: </p>
             <p>Verifies WRT can manage web applications by installing, updating and uninstalling web applications.</p>
             <p>Expected Result: </p>
-            <p>Test passes only if all sub tests passed.</p>
+            <p>Test passes if all sub-tests pass.</p>
           </font>
         </div>
     </div>
index b8ca278..82c8c64 100644 (file)
@@ -42,6 +42,7 @@ var MOUDLE_NAME = "PackageManagement";
 var RESULT_FILE_NAME = "tct-behavior-child.pm.result.xml";
 
 $(document).delegate("#main", "pageinit", function() {
+    DisablePassButton();
     $("#wgtClean").bind("vclick", function() {
         showTotalBar();
     });
@@ -67,6 +68,7 @@ function checkInstalledPackage(){
     } else {
         $.mobile.hidePageLoadingMsg();
         alert("All widgets is uninstalled!");
+        EnablePassButton();
     }
 }
 
@@ -95,7 +97,7 @@ function uninstall(val) {
     }
 
     var onError = function (err) {
-        alert("Error occured on installation : " + err.name);
+        console.log("Error occured on installation : " + err.name);
         $.mobile.hidePageLoadingMsg();
     }
 
index c29fece..0b09772 100644 (file)
@@ -33,38 +33,24 @@ var installUrl;
 var wgt_name;
 var app_id;
 var package_id;
-var update_flag = false;
 var update_wgt = new Array('widget-version-1');
 var nolaunch_wgt = new Array('Sample-widget3','Sample-widget4');
 
 $(document).ready(function(){
+    updateFooterButton();
+    DisablePassButton();
+
     wgt_name = $("#wgt_name").val();
     app_id = $("#app_id").val();
     package_id = $("#package_id").val();
 
     $("#install").bind("vclick", function() {
-        install();
-        if(jQuery.inArray(wgt_name, nolaunch_wgt) != -1){
-            $('#uninstall').removeClass("ui-disabled");
-            EnablePassButton();
-        }
-    });
-    $("#uninstall").bind("vclick", function() {
-        uninstall(package_id);
+        install("install");
     });
-    try {
-        tizen.package.setPackageInfoEventListener(packageEventCallback);
-    } catch (e) {
-        alert("Exception: " + e.message);
-    }
-
     if(jQuery.inArray(wgt_name, update_wgt) != -1){
         $("#launch").bind("vclick", function() {
             packagePre("widget-version-1-1");
-            update_flag = true;
-            install();
-            $('#uninstall').removeClass("ui-disabled");
-            EnablePassButton();
+            install("update");
         });
     } else if(jQuery.inArray(wgt_name, nolaunch_wgt) != -1){
         $('#launch').hide();
@@ -73,33 +59,42 @@ $(document).ready(function(){
         $("#launch").bind("vclick", function() {
             launch(app_id);
             $('#uninstall').removeClass("ui-disabled");
-            EnablePassButton();
         });
     }
+    $("#uninstall").bind("vclick", function() {
+        uninstall(package_id);
+    });
+    try {
+        tizen.package.setPackageInfoEventListener(packageEventCallback);
+    } catch (e) {
+        alert("Exception: " + e.message);
+    }
 
     packagePre(wgt_name);
     $('#uninstall').addClass("ui-disabled");
     $('#launch').addClass("ui-disabled");
-    updateFooterButton();
-    DisablePassButton();
+
+    if(checkInstalledPkg(package_id)) {
+        $('#install').addClass("ui-disabled");
+        if(jQuery.inArray(wgt_name, nolaunch_wgt) != -1){
+            $('#uninstall').removeClass("ui-disabled");
+        } else {
+            $('#launch').removeClass("ui-disabled");
+        }
+    }
 });
 
 var packageEventCallback = {
     oninstalled: function(packageInfo) {
         $.mobile.hidePageLoadingMsg();
-        $('#launch').removeClass("ui-disabled");
         alert("The package " + packageInfo.name + " is installed");
     },
     onupdated: function(packageInfo) {
-        update_flag = false;
         $.mobile.hidePageLoadingMsg();
-        $('#launch').removeClass("ui-disabled");
         alert("The package " + packageInfo.name + " is updated");
     },
     onuninstalled: function(packageId) {
         $.mobile.hidePageLoadingMsg();
-        $('#uninstall').addClass("ui-disabled");
-        $('#launch').addClass("ui-disabled");
         alert("The package " + packageId + " is uninstalled");
     }
 }
@@ -113,9 +108,6 @@ function fileURI(wgt_name) {
             {
                 var Url1 = files[i].toURI();
                 installUrl = Url1.replace("file:///", "/");
-                //if(jQuery.inArray(wgt_name, install_wgt) == -1){
-                //    install();
-                //}
             }
         }
     }
@@ -125,52 +117,45 @@ function fileURI(wgt_name) {
     }
 
     tizen.filesystem.resolve(
-            'documents',
-            function(dir){
-                documentsDir = dir;
-                dir.listFiles(onsuccess, onerror);
-            }, function(e) {
-                alert("Error" + e.message);
-            }, "r"
+        'documents',
+        function(dir){
+            documentsDir = dir;
+            dir.listFiles(onsuccess, onerror);
+        }, function(e) {
+            alert("Error" + e.message);
+        }, "r"
     );
 }
 
-function checkInstalledPkg() {
-    var packageInfo = null;
-    try {
-        if(package_id) {
-            packageInfo = tizen.package.getPackageInfo(package_id);
-        }
-    } catch (e) {}
-
-    return packageInfo === null ? false : true;
-}
-
-function install() {
+function install(type) {
     var onInstallationSuccess = {
-            onprogress: function(packageId, percentage)
-            {
-                console.log("On installation(" + packageId + "): progress(" + percentage + ")");
-                $.mobile.showPageLoadingMsg();
-            },
-            oncomplete: function(packageId)
-            {
-                console.log("Installation(" + packageId + ") Complete");
+        onprogress: function(packageId, percentage)
+        {
+            console.log("On installation(" + packageId + "): progress(" + percentage + ")");
+            $.mobile.showPageLoadingMsg();
+        },
+        oncomplete: function(packageId)
+        {
+            console.log("Installation(" + packageId + ") Complete");
+            $('#install').addClass("ui-disabled");
+            if(jQuery.inArray(wgt_name, update_wgt) != -1 && type == "update"){
+                $('#launch').addClass("ui-disabled");
+                $('#uninstall').removeClass("ui-disabled");
+            } else if(jQuery.inArray(wgt_name, nolaunch_wgt) != -1){
+                $('#uninstall').removeClass("ui-disabled");
+            } else {
+                $('#launch').removeClass("ui-disabled");
             }
+        }
     }
 
     var onError = function (err) {
-        alert("Error occured on installation : " + err.message);
+        console.log("Error occured on installation : " + err.message);
         $.mobile.hidePageLoadingMsg();
     }
 
     try {
-        if(checkInstalledPkg() && !update_flag) {
-            $('#launch').removeClass("ui-disabled");
-            alert("The package is already installed");
-        } else {
-            tizen.package.install(installUrl, onInstallationSuccess, onError);
-        }
+        tizen.package.install(installUrl, onInstallationSuccess, onError);
     } catch(e) {
         alert("Exception: " + e.name);
     }
@@ -187,11 +172,14 @@ function uninstall(package_id) {
             oncomplete: function(packageId)
             {
                 console.log("Uninstallation(" + packageId + ") Complete");
+                $('#launch').addClass("ui-disabled");
+                $('#uninstall').addClass("ui-disabled");
+                EnablePassButton();
             }
     }
 
     var onError = function (err) {
-        alert("Error occured on installation : " + err.name);
+        console.log("Error occured on installation : " + err.name);
         $.mobile.hidePageLoadingMsg();
     }
 
@@ -252,39 +240,8 @@ function packagePre(wgt_name) {
     );
 }
 
-function backAppsHome() {
-    window.close();
-}
-
 function reportResult(res) {
     var jsonStr="[{\"testname\":\"" + wgt_name + "\",\"result\":\"" + res + "\"}]";
     window.opener.postMessage(jsonStr, '*');
     backAppsHome();
 }
-
-function updateFooterButton(){
-    var footbar = $(':jqmData(role=footer)');
-    footbar.empty();
-    footbar.attr("align", "center");
-    footbar.append("<div data-role=\"controlgroup\" data-type=\"horizontal\">" +
-        "<a href=\"javascript:reportResult('PASS');\" id=\"pass_button\" data-role=\"button\" data-icon=\"check\" style=\"color: green\">Pass</a>" +
-        "<a href=\"javascript:reportResult('FAIL');\" id=\"fail_button\" data-role=\"button\" data-icon=\"delete\" style=\"color: red\">Fail</a>" +
-        "<a href=\"#popup_info\" data-role=\"button\" data-icon=\"info\" data-rel=\"popup\" data-transition=\"pop\">Info</a>" +
-        "<a href=\"javascript:backAppsHome();\" data-role=\"button\" data-icon=\"home\">Back</a></div>");
-
-    footbar.trigger("create");
-    footbar.find(':jqmData(role=button) > span:first-child').css('padding', '15px 10px 15px 30px');
-    $("#popup_info").popup( "option", "theme", "a");
-    var maxHeight = $(window).height() - 100 + "px";
-    $("#popup_info").css("max-height", maxHeight);
-    $("#popup_info").css("margin-bottom", "30px");
-    $("#popup_info").css("overflow-y", "auto");
-}
-
-function EnablePassButton(){
-    $('#pass_button').removeClass("ui-disabled");
-}
-
-function DisablePassButton(){
-    $('#pass_button').addClass("ui-disabled");
-}
index 9500584..1c2a097 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Step: </p>
             <ol>
               <li>Click the "Install" button to install the widget.</li>
index f66adb0..1a1f5b4 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Pre-condition: </p>
             <p>Make sure the "Sample-widget2" app is not installed.</p>
             <p>Test Step: </p>
index 38388ee..a3c3df1 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider" id="launch_divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Step: </p>
             <ol>
               <li>Copy the "Sample-widget3.wgt" to "Downloads" folder. For example, use the command: "cp -a /opt/usr/apps/tctbhtests/res/wgt/tests/PackageManagement/res/Sample-widget3.wgt /opt/usr/media/Downloads".</li>
index 42e6f10..a1c961b 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider" id="launch_divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Step: </p>
             <ol>
               <li>Click the "Install" button to install the widget.</li>
index 4cc8864..c308508 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Step: </p>
             <ol>
               <li>Click the "Install" button to install the widget.</li>
@@ -73,8 +75,8 @@ Authors:
             </ol>
             <p>Expected result:</p>
             <ul>
-              <li>If this is a ARM device, the test passes if Javascript and NPRuntime multiplication time displayed above the button "Get the multiplication time". </li>
-              <li>If this is a X86 device, the test passes if a popup displayed on the screen.</li>
+              <li>If this is a ARM device, test passes if Javascript and NPRuntime multiplication time displayed above the button "Get the multiplication time". </li>
+              <li>If this is a X86 device, test passes if a popup displayed on the screen.</li>
             </ul>
           </font>
         </div>
index 8c00bd6..e5fecfa 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider" id="launch_divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Step: </p>
             <ol>
               <li>Click the "Install" button to install the widget.</li>
@@ -73,8 +75,8 @@ Authors:
             </ol>
             <p>Expected result:</p>
             <ul>
-              <li>If this is a X86 device, the test passes if Javascript and NPRuntime multiplication time displayed above the button "Get the multiplication time". </li>
-              <li>If this is a ARM device, the test passes if a popup displayed on the screen.</li>
+              <li>If this is a X86 device, test passes if Javascript and NPRuntime multiplication time displayed above the button "Get the multiplication time". </li>
+              <li>If this is a ARM device, test passes if a popup displayed on the screen.</li>
             </ul>
           </font>
         </div>
index 1e2ba77..f65f91a 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">Package Update</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Update</div>
+                    <div data-role="button" id="launch" class="wgtButton">Update</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Step: </p>
             <ol>
               <li>Click the "Install" button to install the widget.</li>
index 7aa06eb..0e4bc51 100755 (executable)
@@ -20,13 +20,14 @@ Authors:
 -->
 <html>
 <head>
-<meta charset="utf-8" />
-<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
-<link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
-<script src="../../js/thirdparty/jquery.js"></script>
-<script src="../../js/thirdparty/jquery.mobile.js"></script>
-<script src="../../js/tests.js"></script>
-<script src="js/main.js"></script>
+  <meta charset="utf-8" />
+  <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
+  <link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+  <link rel="stylesheet" type="text/css" href="../../css/main.css" />
+  <script src="../../js/thirdparty/jquery.js"></script>
+  <script src="../../js/thirdparty/jquery.mobile.js"></script>
+  <script src="../../js/tests.js"></script>
+  <script src="js/main.js"></script>
 </head>
 <body>
     <div data-role="page" id="main">
@@ -36,13 +37,13 @@ Authors:
         <div data-role="content">
             <div data-role="collapsible-set" data-inset="false" data-collapsed-icon="arrow-r" data-expanded-icon="arrow-d" data-theme="b">
                 <div data-role="collapsible" data-collapsed="true" data-theme="b">
-                    <h3 id="homeList">Screen-lock State</h3>
+                    <h3 id="homeList1">Screen-lock State</h3>
                     <ul data-role="listview" data-inset="false">
                         <li class="ui-li ui-li-static" id="lock"></li>
                     </ul>
                 </div>
                 <div data-role="collapsible" data-collapsed="true" data-theme="b">
-                    <h3 id="homeList">Screen-unlock State</h3>
+                    <h3 id="homeList2">Screen-unlock State</h3>
                     <ul data-role="listview" data-inset="false">
                         <li class="ui-li ui-li-static" id="unlock"></li>
                     </ul>
@@ -52,11 +53,12 @@ Authors:
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Purpose: </p>
             <p>Verifies the device is able to handle pageVisible event when lock and unlock the screen by gesture.</p>
             <p>Expected Result: </p>
-            <p>This test PASS only if the screen lock and unlock information displayed correctly on screen.</p>
+            <p>Test passes if the screen lock and unlock information displayed correctly on screen.</p>
+          </font>
         </div>
     </div>
 </body>
index 63da9e3..112f93c 100644 (file)
@@ -35,6 +35,7 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width">
     <link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../css/main.css" />
     <script src="../../js/thirdparty/jquery.js"></script>
     <script src="../../js/thirdparty/jquery.mobile.js"></script>
     <script src="../../js/tests.js"></script>
@@ -63,11 +64,11 @@ Authors:
     <div data-role="footer" data-position="fixed">
     </div>
     <div data-role="popup" id="popup_info">
-      <font style="font-size:85%">
+      <font class="fontSize">
         <p>Test Purpose: </p>
         <p>Verifies the blue circle could be transferred to ellipse, and rotate along with elliptical patch at the same time.</p>
         <p>Expected Result: </p>
-        <p>This test PASS only if the transformation and rotate function well.</p>
+        <p>Test passes if the transformation and rotate function well.</p>
       </font>
     </div>
   </body>
index 33bc756..12f55dd 100755 (executable)
@@ -34,6 +34,7 @@ Authors:
         <meta charset="utf-8" />
         <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width">
         <link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+        <link rel="stylesheet" type="text/css" href="../../css/main.css" />
         <link rel="stylesheet" type="text/css" href="css/style.css" />
         <script src="../../js/thirdparty/jquery.js"></script>
         <script src="../../js/thirdparty/jquery.mobile.js"></script>
@@ -65,7 +66,7 @@ Authors:
         <div data-role="footer" data-position="fixed">
         </div>
         <div data-role="popup" id="popup_info">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Purpose: </p>
             <p>Verifies that (1) this applicaton is running by non-root ID and, (2) it is only allowed to manipulate files in the following locations: home directory, shared media directory.</p>
             <p>Test Step: </p>
index 544ddde..6646f99 100755 (executable)
@@ -35,7 +35,7 @@ var HOME_DIR = "file:///opt/home/app",
     MEDIA_DELETE_DIR = "internal0/",
     ETC_DIR = "file:///etc";
 var count = 0, homeDir, mediaDir, etcDir;
-var gFiles = [], createdNumber = [];
+var gFiles = [], createdId = [];
 var etcFlag = false;
 
 $(document).ready(function(){
@@ -121,7 +121,7 @@ $(document).ready(function(){
                 + count
                 + ')" data-icon="delete" data-theme="c">'
                 + '</a></li>';
-            createdNumber.push(count);
+            createdId.push(count);
             gFiles[count++] = newFile;
             if (str) {
                 $(selector).append(str).trigger("create").listview("refresh");
@@ -164,11 +164,17 @@ $(document).ready(function(){
 });
 
 function deleteFile(id) {
+    var dir, selector, index;
+
     if (id == null) {
         return;
     }
+    //Only delete the file by user created.
+    index = createdId.indexOf(id);
+    if (index == -1) {
+        return;
+    }
 
-    var dir, selector;
     try {
         switch (gFiles[Number(id)].path) {
             case HOME_DELETE_DIR: dir = homeDir; selector = "#home"; break;
@@ -177,6 +183,8 @@ function deleteFile(id) {
         }
         if (dir) {
             dir.deleteFile(gFiles[Number(id)].fullPath, function() {
+                //Delete the id in createdId array.
+                createdId.splice(index, 1);
                 $("#" + gFiles[Number(id)].name).remove();
                 $(selector).trigger("create").listview("refresh");
             }, function (err) {
@@ -195,8 +203,8 @@ function checkEnable() {
 }
 
 function backAppsHome() {
-    createdNumber.forEach(function(number) {
-        deleteFile(number);
+    createdId.forEach(function(id) {
+        deleteFile(id);
     });
     window.close();
 }
index 6a3fec2..4c2fd65 100644 (file)
@@ -34,6 +34,7 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../css/main.css" />
     <script src="../../js/thirdparty/jquery.js"></script>
     <script src="../../js/thirdparty/jquery.mobile.js"></script>
     <script src="../../js/tests.js"></script>
@@ -60,14 +61,14 @@ Authors:
                 </li>
                 <li data-role="list-divider" role="heading">Clean all the installed packages</li>
                 <li>
-                    <div data-role="button" id="wgtClean" style="height:40px; line-height:20px;">Clean all test applications</div>
+                    <div data-role="button" id="wgtClean" class="wgtButton">Clean all test applications</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Note: </p>
             <p>Verifies the stability of the device.</p>
             <p>Test Purpose: </p>
index 4538615..3f8ccac 100644 (file)
@@ -37,6 +37,7 @@ var MOUDLE_NAME = "Stability";
 var RESULT_FILE_NAME = "tct-behavior-child.sta.result.xml";
 
 $(document).delegate("#main", "pageinit", function() {
+    DisablePassButton();
     $("#wgtClean").bind("vclick", function() {
         showTotalBar();
     });
@@ -63,6 +64,7 @@ function checkInstalledPackage(){
     } else {
         $.mobile.hidePageLoadingMsg();
         alert("All widgets is uninstalled!");
+        EnablePassButton();
     }
 }
 
@@ -86,7 +88,7 @@ function uninstall(val) {
     }
 
     var onError = function (err) {
-        alert("Error occured on installation : " + err.name);
+        console.log("Error occured on installation : " + err.name);
         $.mobile.hidePageLoadingMsg();
     }
 
index d31704e..2921a85 100644 (file)
@@ -36,26 +36,16 @@ var package_id;
 var install_wgt = new Array('test-half-memory');
 
 $(document).ready(function(){
+    updateFooterButton();
+    DisablePassButton();
+
     wgt_name = $("#wgt_name").val();
     app_id = $("#app_id").val();
     package_id = $("#package_id").val();
 
     $("#install").bind("vclick", function() {
         install();
-        if(jQuery.inArray(wgt_name, install_wgt) != -1){
-            $('#uninstall').removeClass("ui-disabled");
-            EnablePassButton();
-        }
-    });
-    $("#uninstall").bind("vclick", function() {
-        uninstall(package_id);
     });
-    try {
-        tizen.package.setPackageInfoEventListener(packageEventCallback);
-    } catch (e) {
-        alert("Exception: " + e.message);
-    }
-
     if(jQuery.inArray(wgt_name, install_wgt) != -1){
         $('#launch').hide();
         $('#launch_divider').hide();
@@ -63,32 +53,42 @@ $(document).ready(function(){
         $("#launch").bind("vclick", function() {
             launch(app_id);
             $('#uninstall').removeClass("ui-disabled");
-            EnablePassButton();
         });
     }
+    $("#uninstall").bind("vclick", function() {
+        uninstall(package_id);
+    });
+    try {
+        tizen.package.setPackageInfoEventListener(packageEventCallback);
+    } catch (e) {
+        alert("Exception: " + e.message);
+    }
 
     packagePre(wgt_name);
     $('#uninstall').addClass("ui-disabled");
     $('#launch').addClass("ui-disabled");
-    updateFooterButton();
-    DisablePassButton();
+
+    if(checkInstalledPkg(package_id)) {
+        $('#install').addClass("ui-disabled");
+        if(jQuery.inArray(wgt_name, install_wgt) != -1){
+            $('#uninstall').removeClass("ui-disabled");
+        } else {
+            $('#launch').removeClass("ui-disabled");
+        }
+    }
 });
 
 var packageEventCallback = {
     oninstalled: function(packageInfo) {
         $.mobile.hidePageLoadingMsg();
-        $('#launch').removeClass("ui-disabled");
         alert("The package " + packageInfo.name + " is installed");
     },
     onupdated: function(packageInfo) {
         $.mobile.hidePageLoadingMsg();
-        $('#launch').removeClass("ui-disabled");
         alert("The package " + packageInfo.name + " is updated");
     },
     onuninstalled: function(packageId) {
         $.mobile.hidePageLoadingMsg();
-        $('#uninstall').addClass("ui-disabled");
-        $('#launch').addClass("ui-disabled");
         alert("The package " + packageId + " is uninstalled");
     }
 }
@@ -102,9 +102,6 @@ function fileURI(wgt_name) {
             {
                 var Url1 = files[i].toURI();
                 installUrl = Url1.replace("file:///", "/");
-                //if(jQuery.inArray(wgt_name, install_wgt) == -1){
-                //    install();
-                //}
             }
         }
     }
@@ -114,52 +111,44 @@ function fileURI(wgt_name) {
     }
 
     tizen.filesystem.resolve(
-            'documents',
-            function(dir){
-                documentsDir = dir;
-                dir.listFiles(onsuccess, onerror);
-            }, function(e) {
-                alert("Error" + e.message);
-            }, "r"
+        'documents',
+        function(dir){
+            documentsDir = dir;
+            dir.listFiles(onsuccess, onerror);
+        }, function(e) {
+            alert("Error" + e.message);
+        }, "r"
     );
 }
 
-function checkInstalledPkg() {
-    var packageInfo = null;
-    try {
-        if(package_id) {
-            packageInfo = tizen.package.getPackageInfo(package_id);
-        }
-    } catch (e) {}
-
-    return packageInfo === null ? false : true;
-}
-
 function install() {
     var onInstallationSuccess = {
-            onprogress: function(packageId, percentage)
-            {
-                console.log("On installation(" + packageId + "): progress(" + percentage + ")");
-                $.mobile.showPageLoadingMsg();
-            },
-            oncomplete: function(packageId)
-            {
-                console.log("Installation(" + packageId + ") Complete");
+        onprogress: function(packageId, percentage)
+        {
+            console.log("On installation(" + packageId + "): progress(" + percentage + ")");
+            $.mobile.showPageLoadingMsg();
+        },
+        oncomplete: function(packageId)
+        {
+            console.log("Installation(" + packageId + ") Complete");
+            if(checkInstalledPkg(package_id)) {
+                $('#install').addClass("ui-disabled");
+                if(jQuery.inArray(wgt_name, install_wgt) != -1){
+                    $('#uninstall').removeClass("ui-disabled");
+                } else {
+                    $('#launch').removeClass("ui-disabled");
+                }
             }
+        }
     }
 
     var onError = function (err) {
-        alert("Error occured on installation : " + err.message);
+        console.log("Error occured on installation : " + err.message);
         $.mobile.hidePageLoadingMsg();
     }
 
     try {
-        if(checkInstalledPkg()) {
-            $('#launch').removeClass("ui-disabled");
-            alert("The package is already installed");
-        } else  {
-            tizen.package.install(installUrl, onInstallationSuccess, onError);
-        }
+        tizen.package.install(installUrl, onInstallationSuccess, onError);
     } catch(e) {
         alert("Exception: " + e.name);
     }
@@ -176,11 +165,14 @@ function uninstall(package_id) {
             oncomplete: function(packageId)
             {
                 console.log("Uninstallation(" + packageId + ") Complete");
+                $('#launch').addClass("ui-disabled");
+                $('#uninstall').addClass("ui-disabled");
+                EnablePassButton();
             }
     }
 
     var onError = function (err) {
-        alert("Error occured on installation : " + err.name);
+        console.log("Error occured on installation : " + err.name);
         $.mobile.hidePageLoadingMsg();
     }
 
@@ -241,39 +233,8 @@ function packagePre(wgt_name) {
     );
 }
 
-function backAppsHome() {
-    window.close();
-}
-
 function reportResult(res) {
     var jsonStr="[{\"testname\":\"" + wgt_name + "\",\"result\":\"" + res + "\"}]";
     window.opener.postMessage(jsonStr, '*');
     backAppsHome();
 }
-
-function updateFooterButton(){
-    var footbar = $(':jqmData(role=footer)');
-    footbar.empty();
-    footbar.attr("align", "center");
-    footbar.append("<div data-role=\"controlgroup\" data-type=\"horizontal\">" +
-        "<a href=\"javascript:reportResult('PASS');\" id=\"pass_button\" data-role=\"button\" data-icon=\"check\" style=\"color: green\">Pass</a>" +
-        "<a href=\"javascript:reportResult('FAIL');\" id=\"fail_button\" data-role=\"button\" data-icon=\"delete\" style=\"color: red\">Fail</a>" +
-        "<a href=\"#popup_info\" data-role=\"button\" data-icon=\"info\" data-rel=\"popup\" data-transition=\"pop\">Info</a>" +
-        "<a href=\"javascript:backAppsHome();\" data-role=\"button\" data-icon=\"home\">Back</a></div>");
-
-    footbar.trigger("create");
-    footbar.find(':jqmData(role=button) > span:first-child').css('padding', '15px 10px 15px 30px');
-    $("#popup_info").popup( "option", "theme", "a");
-    var maxHeight = $(window).height() - 100 + "px";
-    $("#popup_info").css("max-height", maxHeight);
-    $("#popup_info").css("margin-bottom", "30px");
-    $("#popup_info").css("overflow-y", "auto");
-}
-
-function EnablePassButton(){
-    $('#pass_button').removeClass("ui-disabled");
-}
-
-function DisablePassButton(){
-    $('#pass_button').addClass("ui-disabled");
-}
index f7cf53f..cb5cbb9 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider" id="launch_divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Pre-condition: </p>
             <p>Make sure the free storage is more than half memory.</p>
             <p>Test Step: </p>
index 21fbc13..abd4326 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Step: </p>
             <ol>
               <li>Click the "Install" button to install the widget.</li>
@@ -72,7 +74,7 @@ Authors:
               <li>Click the "Uninstall" button to uninstall the widget.</li>
             </ol>
             <p>Expected Result: </p>
-            <p>Test passes if the image displayed normally.</p>
+            <p>Test passes if the image display normally.</p>
           </font>
         </div>
     </div>
index b3a4f57..bb098ad 100755 (executable)
@@ -35,10 +35,18 @@ Authors:
         <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width">
         <link rel="stylesheet" type="text/css" href="css/style.css"/>
         <link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+        <link rel="stylesheet" type="text/css" href="../../css/main.css" />
         <script src="../../js/thirdparty/jquery.js"></script>
         <script src="../../js/thirdparty/jquery.mobile.js"></script>
         <script src="../../js/tests.js"></script>
         <script src="js/main.js"></script>
+        <style>
+            .target {
+                left: 145px;
+                top:300px;
+                position: absolute;
+            }
+        </style>
     </head>
     <body>
         <div data-role="header">
@@ -47,14 +55,14 @@ Authors:
         <div data-role="content">
             <table id="tabletouch" cellpadding="5">
                 <tr>
-                    <td><img id="image1" src="img/btn_up.png" height="100" width="100"></img></td>
-                    <td><img id="image2" src="img/btn_up.png" height="100" width="100"></img></td>
-                    <td><img id="image3" src="img/btn_up.png" height="100" width="100"></img></td>
+                    <td><img id="image1" src="img/btn_up.png" height="100" width="100" /></td>
+                    <td><img id="image2" src="img/btn_up.png" height="100" width="100" /></td>
+                    <td><img id="image3" src="img/btn_up.png" height="100" width="100" /></td>
                 </tr>
             </table>
             <p id="testresult">Touch info: no button touched</p>
             <div id="scrollEare" class="scroll_eare">
-              <div id="scrollTarget" style="left: 145px;top:300px;position: absolute;"><img id="imageScroll" src="img/scroll.png" height="80" width="80"></img></div>
+              <div id="scrollTarget" class="target"><img id="imageScroll" src="img/scroll.png" height="80" width="80" /></div>
             </div>
             <p class="ui-li-desc">* Drag this red button in above eare.</p>
             <p id="errormessage"></p>
@@ -62,11 +70,11 @@ Authors:
         <div data-role="footer" data-position="fixed">
         </div>
         <div data-role="popup" id="popup_info">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Purpose: </p>
             <p>Verifies the device supports single touch, two fingers touch and three fingers touch by clicking the blue buttons, and supports move touch by dragging the red button.</p>
             <p>Expected Result: </p>
-            <p>This test PASS only if all the tips "one button touched, two buttons touched at one time, three buttons touched at one time" show and the red button can be dragged.</p>
+            <p>Test passes if all the tips "one button touched, two buttons touched at one time, three buttons touched at one time" show and the red button can be dragged.</p>
           </font>
         </div>
     </body>
index 2366912..cc0ea56 100755 (executable)
@@ -34,6 +34,7 @@ Authors:
         <meta charset="utf-8" />
         <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
         <link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+        <link rel="stylesheet" type="text/css" href="../../css/main.css" />
         <script src="../../js/thirdparty/jquery.js"></script>
         <script src="../../js/thirdparty/jquery.mobile.js"></script>
         <script src="../../js/tests.js"></script>
@@ -85,6 +86,9 @@ Authors:
             #user-agent-string {
                list-style : none;
             }
+            .tips{
+                color: red;
+            }
         </style>
     </head>
     <body>
@@ -95,7 +99,7 @@ Authors:
           <div class="d">
             <ul>
               <li>User-Agent:</li>
-              <li id="user-agent-string"><span style="color: red;">Failed to get user agent string</span></li>
+              <li id="user-agent-string"><span class="tips">Failed to get user agent string</span></li>
               <li>PLATFORM_VER: <span id="user-platform-ver"></span></li>
               <li>MODEL: <span id="user-model-string"></span></li>
               <li>APPLE_WEBKIT_VER: <span id="user-apple-webkit-ver"></span></li>
@@ -107,11 +111,11 @@ Authors:
         <div data-role="footer" data-position="fixed">
         </div>
         <div data-role="popup" id="popup_info">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Purpose: </p>
             <p>Verifies the user agent string follow correct format.</p>
             <p>Expected Result: </p>
-            <p>The user agent string reported by the Web View MUST follow this format:</p>
+            <p>Test passes if the user agent string reported by the Web View follow this format:</p>
             <p>Mozilla/5.0 (Linux; Tizen PLATFORM_VER; MODEL) AppleWebKit/APPLE_WEBKIT_VER (KHTML, like Gecko) APP_NAME/APP_VER Mobile Safari/APPLE_WEBKIT_VER</p>
             <ul>
                 <li>The value of the PLATFORM_VER string MUST be the platform version of the device.</li>
index 3a50769..c092637 100755 (executable)
@@ -34,12 +34,21 @@ Authors:
         <meta charset="utf-8" />
         <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width">
         <link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+        <link rel="stylesheet" type="text/css" href="../../css/main.css" />
         <link rel="stylesheet" type="text/css" href="css/style.css" />
         <script src="../../js/thirdparty/jquery.js"></script>
         <script src="../../js/thirdparty/jquery.mobile.js"></script>
         <script src="../../js/tests.js"></script>
         <script src="js/main.js"></script>
         <script src="js/slider.tooltip.js"></script>
+        <style>
+            .vibration {
+                text-align: left
+            }
+            .opt {
+                text-align: left
+            }
+        </style>
     </head>
     <body>
         <div data-role="header">
@@ -47,24 +56,24 @@ Authors:
         </div>
         <div data-role="content">
           <div class="containing-element">
-            <label for="slider-1" style="text-align: left">Vibration Time(s)</label>
-            <input type="range" name="slider-1" id="slider-1" data-highlight="true" min="0.50" max="3" step="0.10" value="1" data-show-value="true" style="display:none">
-            <label for="slider-1" style="text-align: left">Vibration Periods(s)</label>
-            <input type="range" name="slider-2" id="slider-2" data-highlight="true" min="0.10" max="2" step="0.10" value="0.50" data-show-value="true" style="display:none">
-            <label for="slider-1" style="text-align: left">Vibration Number</label>
-            <input type="range" name="slider-3" id="slider-3" data-highlight="true" min="1" max="20" value="2" data-show-value="true" style="display:none">
-            <p><a href="javascript:startVibration()" id="start" data-role="button" style="height: 40px; line-height:10px">Start Vibration</a></p>
-            <a href="javascript:stopVibration()" id="stop" data-role="button" style="height: 40px; line-height:10px">Stop Vibration</a>
+            <label for="slider-1" class="vibration">Vibration Time(s)</label>
+            <input type="range" name="slider-1" id="slider-1" data-highlight="true" min="0.50" max="3" step="0.10" value="1" data-show-value="true" class="hideButton">
+            <label for="slider-1" class="vibration">Vibration Periods(s)</label>
+            <input type="range" name="slider-2" id="slider-2" data-highlight="true" min="0.10" max="2" step="0.10" value="0.50" data-show-value="true" class="hideButton">
+            <label for="slider-1" class="vibration">Vibration Number</label>
+            <input type="range" name="slider-3" id="slider-3" data-highlight="true" min="1" max="20" value="2" data-show-value="true" class="hideButton">
+            <p><a href="javascript:startVibration()" id="start" data-role="button" class="opt">Start Vibration</a></p>
+            <a href="javascript:stopVibration()" id="stop" data-role="button" class="opt">Stop Vibration</a>
           </div>
         </div>
         <div data-role="footer" data-position="fixed">
         </div>
         <div data-role="popup" id="popup_info">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Purpose: </p>
             <p>Verifies the vibration is able to adjust vibration time from 500ms to 3000ms, vibration period from 100ms to 2000ms, and vibration number from 1 to 100. E.g, if vibration time is 1000ms, vibration period is 2000ms and vibration number is 3, then the test device vibrates 3 times in 6 seconds, and vibrates 1 second a time.</p>
             <p>Expected Result: </p>
-            <p>This test PASS only if the vibration functions well.</p>
+            <p>Test passes if the vibration functions well.</p>
           </font>
         </div>
     </body>
index 58d33d2..8efc89f 100644 (file)
@@ -34,6 +34,7 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width">
     <link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../css/main.css" />
     <script src="../../js/thirdparty/jquery.js"></script>
     <script src="../../js/thirdparty/jquery.mobile.js"></script>
     <script src="../../js/tests.js"></script>
@@ -59,11 +60,11 @@ Authors:
     <div data-role="footer" data-position="fixed">
     </div>
     <div data-role="popup" id="popup_info">
-      <font style="font-size:85%">
+      <font class="fontSize">
         <p>Test Purpose: </p>
         <p>Verifies the functionalities of viewport. Tests the functionality of getting screen height and width, enabling or disabling screen saleable to allow or disallow zoom in/out screen, sliding the screen by figure.</p>
         <p>Expected Result: </p>
-        <p>This test PASS only if the all the check points function well.</p>
+        <p>Test passes if all the check points function well.</p>
       </font>
     </div>
   </body>
index 09470c4..29d7638 100644 (file)
@@ -34,6 +34,7 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../css/main.css" />
     <script src="../../js/thirdparty/jquery.js"></script>
     <script src="../../js/thirdparty/jquery.mobile.js"></script>
     <script src="../../js/tests.js"></script>
@@ -120,20 +121,20 @@ Authors:
                 </li>
                 <li data-role="list-divider" role="heading">Clean all the installed packages</li>
                 <li>
-                    <div data-role="button" id="wgtClean" style="height:40px; line-height:20px;">Clean all test applications</div>
+                    <div data-role="button" id="wgtClean" class="wgtButton">Clean all test applications</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Note: </p>
             <p>Verifies the functionality of uri scheme support.</p>
             <p>Test Purpose: </p>
             <p>Verifies WRT MUST support at least the following URI schemes: "sms://", "mmsto://", "mailto://", "&lt;mailto:&gt;" and support localization funxtionality.</p>
             <p>Expected Result: </p>
-            <p>Test passes only if all sub tests passed.</p>
+            <p>Test passes if all sub-tests pass.</p>
           </font>
         </div>
     </div>
index cda8b0e..d15e149 100644 (file)
@@ -46,6 +46,7 @@ var MOUDLE_NAME = "WRTSupport";
 var RESULT_FILE_NAME = "tct-behavior-child.wrts.result.xml";
 
 $(document).delegate("#main", "pageinit", function() {
+    DisablePassButton();
     $("#wgtClean").bind("vclick", function() {
         showTotalBar();
     });
@@ -72,6 +73,7 @@ function checkInstalledPackage(){
     } else {
         $.mobile.hidePageLoadingMsg();
         alert("All widgets is uninstalled!");
+        EnablePassButton();
     }
 }
 
@@ -95,7 +97,7 @@ function uninstall(val) {
     }
 
     var onError = function (err) {
-        alert("Error occured on installation : " + err.name);
+        console.log("Error occured on installation : " + err.name);
         $.mobile.hidePageLoadingMsg();
     }
 
index e82c029..22a95de 100644 (file)
@@ -36,8 +36,12 @@ var package_id;
 var install_wgt = new Array('debug-web-inspector-windows7','debug-web-inspector-ubuntu');
 
 $(document).ready(function(){
+    updateFooterButton();
+
     wgt_name = $("#wgt_name").val();
     if(jQuery.inArray(wgt_name, install_wgt) == -1){
+        DisablePassButton();
+
         app_id = $("#app_id").val();
         package_id = $("#package_id").val();
 
@@ -47,7 +51,6 @@ $(document).ready(function(){
         $("#launch").bind("vclick", function() {
             launch(app_id);
             $('#uninstall').removeClass("ui-disabled");
-            EnablePassButton();
         });
         $("#uninstall").bind("vclick", function() {
             uninstall(package_id);
@@ -61,28 +64,25 @@ $(document).ready(function(){
         packagePre(wgt_name);
         $('#uninstall').addClass("ui-disabled");
         $('#launch').addClass("ui-disabled");
-        updateFooterButton();
-        DisablePassButton();
-    } else {
-        updateFooterButton();
+
+        if(checkInstalledPkg(package_id)) {
+            $('#install').addClass("ui-disabled");
+            $('#launch').removeClass("ui-disabled");
+        }
     }
 });
 
 var packageEventCallback = {
     oninstalled: function(packageInfo) {
         $.mobile.hidePageLoadingMsg();
-        $('#launch').removeClass("ui-disabled");
         alert("The package " + packageInfo.name + " is installed");
     },
     onupdated: function(packageInfo) {
         $.mobile.hidePageLoadingMsg();
-        $('#launch').removeClass("ui-disabled");
         alert("The package " + packageInfo.name + " is updated");
     },
     onuninstalled: function(packageId) {
         $.mobile.hidePageLoadingMsg();
-        $('#uninstall').addClass("ui-disabled");
-        $('#launch').addClass("ui-disabled");
         alert("The package " + packageId + " is uninstalled");
     }
 }
@@ -106,52 +106,38 @@ function fileURI(wgt_name) {
     }
 
     tizen.filesystem.resolve(
-            'documents',
-            function(dir){
-                documentsDir = dir;
-                dir.listFiles(onsuccess, onerror);
-            }, function(e) {
-                alert("Error" + e.message);
-            }, "r"
+        'documents',
+        function(dir){
+            documentsDir = dir;
+            dir.listFiles(onsuccess, onerror);
+        }, function(e) {
+            alert("Error" + e.message);
+        }, "r"
     );
 }
 
-function checkInstalledPkg() {
-    var packageInfo = null;
-    try {
-        if(package_id) {
-            packageInfo = tizen.package.getPackageInfo(package_id);
-        }
-    } catch (e) {}
-
-    return packageInfo === null ? false : true;
-}
-
 function install() {
     var onInstallationSuccess = {
-            onprogress: function(packageId, percentage)
-            {
-                console.log("On installation(" + packageId + "): progress(" + percentage + ")");
-                $.mobile.showPageLoadingMsg();
-            },
-            oncomplete: function(packageId)
-            {
-                console.log("Installation(" + packageId + ") Complete");
-            }
+        onprogress: function(packageId, percentage)
+        {
+            console.log("On installation(" + packageId + "): progress(" + percentage + ")");
+            $.mobile.showPageLoadingMsg();
+        },
+        oncomplete: function(packageId)
+        {
+            console.log("Installation(" + packageId + ") Complete");
+            $('#install').addClass("ui-disabled");
+            $('#launch').removeClass("ui-disabled");
+        }
     }
 
     var onError = function (err) {
-        alert("Error occured on installation : " + err.message);
+        console.log("Error occured on installation : " + err.message);
         $.mobile.hidePageLoadingMsg();
     }
 
     try {
-        if(checkInstalledPkg()) {
-            $('#launch').removeClass("ui-disabled");
-            alert("The package is already installed");
-        } else {
-            tizen.package.install(installUrl, onInstallationSuccess, onError);
-        }
+        tizen.package.install(installUrl, onInstallationSuccess, onError);
     } catch(e) {
         alert("Exception: " + e.name);
     }
@@ -160,19 +146,22 @@ function install() {
 function uninstall(package_id) {
     var onUninstallationSuccess = {
 
-            onprogress: function(packageId, percentage)
-            {
-                console.log("On uninstallation(" + packageId + "): progress(" + percentage + ")");
-                $.mobile.showPageLoadingMsg();
-            },
-            oncomplete: function(packageId)
-            {
-                console.log("Uninstallation(" + packageId + ") Complete");
-            }
+        onprogress: function(packageId, percentage)
+        {
+            console.log("On uninstallation(" + packageId + "): progress(" + percentage + ")");
+            $.mobile.showPageLoadingMsg();
+        },
+        oncomplete: function(packageId)
+        {
+            console.log("Uninstallation(" + packageId + ") Complete");
+            $('#launch').addClass("ui-disabled");
+            $('#uninstall').addClass("ui-disabled");
+            EnablePassButton();
+        }
     }
 
     var onError = function (err) {
-        alert("Error occured on installation : " + err.name);
+        console.log("Error occured on installation : " + err.name);
         $.mobile.hidePageLoadingMsg();
     }
 
@@ -233,39 +222,8 @@ function packagePre(wgt_name) {
     );
 }
 
-function backAppsHome() {
-    window.close();
-}
-
 function reportResult(res) {
     var jsonStr="[{\"testname\":\"" + wgt_name + "\",\"result\":\"" + res + "\"}]";
     window.opener.postMessage(jsonStr, '*');
     backAppsHome();
 }
-
-function updateFooterButton(){
-    var footbar = $(':jqmData(role=footer)');
-    footbar.empty();
-    footbar.attr("align", "center");
-    footbar.append("<div data-role=\"controlgroup\" data-type=\"horizontal\">" +
-        "<a href=\"javascript:reportResult('PASS');\" id=\"pass_button\" data-role=\"button\" data-icon=\"check\" style=\"color: green\">Pass</a>" +
-        "<a href=\"javascript:reportResult('FAIL');\" id=\"fail_button\" data-role=\"button\" data-icon=\"delete\" style=\"color: red\">Fail</a>" +
-        "<a href=\"#popup_info\" data-role=\"button\" data-icon=\"info\" data-rel=\"popup\" data-transition=\"pop\">Info</a>" +
-        "<a href=\"javascript:backAppsHome();\" data-role=\"button\" data-icon=\"home\">Back</a></div>");
-
-    footbar.trigger("create");
-    footbar.find(':jqmData(role=button) > span:first-child').css('padding', '15px 10px 15px 30px');
-    $("#popup_info").popup( "option", "theme", "a");
-    var maxHeight = $(window).height() - 100 + "px";
-    $("#popup_info").css("max-height", maxHeight);
-    $("#popup_info").css("margin-bottom", "30px");
-    $("#popup_info").css("overflow-y", "auto");
-}
-
-function EnablePassButton(){
-    $('#pass_button').removeClass("ui-disabled");
-}
-
-function DisablePassButton(){
-    $('#pass_button').addClass("ui-disabled");
-}
index 76c152c..3c97de3 100644 (file)
@@ -34,6 +34,7 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
     <script src="../js/tests.js"></script>
@@ -89,7 +90,7 @@ Authors:
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Purpose: </p>
             <p>Verifies 'web inspector' supported on PC(ubuntu).</p>
           </font>
index c0247cd..f18585a 100644 (file)
@@ -34,6 +34,7 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
     <script src="../js/tests.js"></script>
@@ -89,7 +90,7 @@ Authors:
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Purpose: </p>
             <p>Verifies 'web inspector' supported on PC(windows).</p>
           </font>
index c98959b..c70d346 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Step: </p>
             <ol>
               <li>Click the "Install" button to install the widget.</li>
index f3968de..a929492 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Pre-condition: </p>
             <p>Make sure the local language is English (check the installed widget's name on the device idle screen, it should be "english-ol").</p>
             <p>Test Step: </p>
index 4f794cb..8bd3441 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Step: </p>
             <ol>
               <li>Click the "Install" button to install the widget.</li>
index 9631b24..2e437bb 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Step: </p>
             <ol>
               <li>Click the "Install" button to install the widget.</li>
index 55c67a5..c23e6b3 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Pre-condition: </p>
             <p>Make sure the device can connect to the Internet.</p>
             <p>Test Step: </p>
index 361ed68..9892495 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Pre-condition: </p>
             <p>Confirm the widget application is encrypted.The resources(js, CSS, HTML files) of protection-encryption-check application is encrypted.<br>
                For example: use the command: "vi /opt/usr/apps/wrt5pec002/res/wgt/index.html" to show the content of "index.html" in terminal, the content of "index.html" is encrypted.</p>
index 86c636a..d46b176 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Step: </p>
             <ol>
               <li>Click the "Install" button to install the widget.</li>
index f54a286..93c90e5 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Step: </p>
             <ol>
               <li>Click the "Install" button to install the widget.</li>
index d473e67..1483ba9 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Pre-condition: </p>
             <p>Make sure the device can connect to the Internet.</p>
             <p>Test Step: </p>
index df03dce..13bf786 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Pre-condition: </p>
             <p>Make sure the device can connect to the Internet.</p>
             <p>Test Step: </p>
index e49daa1..efac804 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Pre-condition: </p>
             <p>Make sure the device can connect to the Internet.</p>
             <p>Test Step: </p>
index 0863ef6..81b5396 100644 (file)
@@ -34,6 +34,7 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../css/main.css" />
     <script src="../../js/thirdparty/jquery.js"></script>
     <script src="../../js/thirdparty/jquery.mobile.js"></script>
     <script src="../../js/tests.js"></script>
@@ -70,20 +71,20 @@ Authors:
                 </li>
                 <li data-role="list-divider" role="heading">Clean all the installed packages</li>
                 <li>
-                    <div data-role="button" id="wgtClean" style="height:40px; line-height:20px;">Clean all test applications</div>
+                    <div data-role="button" id="wgtClean" class="wgtButton">Clean all test applications</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Note: </p>
             <p>Verifies the functionality of view mode and multiple browsing context support.</p>
             <p>Test Purpose: </p>
             <p>Verifies WRT support two view modes: “maximized” and “fullscreen” of W3C 'view-mode' Media Feature.</p>
             <p>Expected Result: </p>
-            <p>Test passes only if all sub tests passed.</p>
+            <p>Test passes if all sub-tests pass.</p>
           </font>
         </div>
     </div>
index ff5d26f..c3e78d0 100644 (file)
@@ -39,6 +39,7 @@ var MOUDLE_NAME = "WRTUI";
 var RESULT_FILE_NAME = "tct-behavior-child.wrtui.result.xml";
 
 $(document).delegate("#main", "pageinit", function() {
+    DisablePassButton();
     $("#wgtClean").bind("vclick", function() {
         showTotalBar();
     });
@@ -65,6 +66,7 @@ function checkInstalledPackage(){
     } else {
         $.mobile.hidePageLoadingMsg();
         alert("All widgets is uninstalled!");
+        EnablePassButton();
     }
 }
 
@@ -88,7 +90,7 @@ function uninstall(val) {
     }
 
     var onError = function (err) {
-        alert("Error occured on installation : " + err.name);
+        console.log("Error occured on installation : " + err.name);
         $.mobile.hidePageLoadingMsg();
     }
 
index 8e3afb7..16d840a 100644 (file)
@@ -35,6 +35,9 @@ var app_id;
 var package_id;
 
 $(document).ready(function(){
+    updateFooterButton();
+    DisablePassButton();
+
     wgt_name = $("#wgt_name").val();
     app_id = $("#app_id").val();
     package_id = $("#package_id").val();
@@ -45,7 +48,6 @@ $(document).ready(function(){
     $("#launch").bind("vclick", function() {
         launch(app_id);
         $('#uninstall').removeClass("ui-disabled");
-        EnablePassButton();
     });
     $("#uninstall").bind("vclick", function() {
         uninstall(package_id);
@@ -59,25 +61,24 @@ $(document).ready(function(){
     packagePre(wgt_name);
     $('#uninstall').addClass("ui-disabled");
     $('#launch').addClass("ui-disabled");
-    updateFooterButton();
-    DisablePassButton();
+
+    if(checkInstalledPkg(package_id)) {
+        $('#install').addClass("ui-disabled");
+        $('#launch').removeClass("ui-disabled");
+    }
 });
 
 var packageEventCallback = {
     oninstalled: function(packageInfo) {
         $.mobile.hidePageLoadingMsg();
-        $('#launch').removeClass("ui-disabled");
         alert("The package " + packageInfo.name + " is installed");
     },
     onupdated: function(packageInfo) {
         $.mobile.hidePageLoadingMsg();
-        $('#launch').removeClass("ui-disabled");
         alert("The package " + packageInfo.name + " is updated");
     },
     onuninstalled: function(packageId) {
         $.mobile.hidePageLoadingMsg();
-        $('#uninstall').addClass("ui-disabled");
-        $('#launch').addClass("ui-disabled");
         alert("The package " + packageId + " is uninstalled");
     }
 }
@@ -101,52 +102,38 @@ function fileURI(wgt_name) {
     }
 
     tizen.filesystem.resolve(
-            'documents',
-            function(dir){
-                documentsDir = dir;
-                dir.listFiles(onsuccess, onerror);
-            }, function(e) {
-                alert("Error" + e.message);
-            }, "r"
+        'documents',
+        function(dir){
+            documentsDir = dir;
+            dir.listFiles(onsuccess, onerror);
+        }, function(e) {
+            alert("Error" + e.message);
+        }, "r"
     );
 }
 
-function checkInstalledPkg() {
-    var packageInfo = null;
-    try {
-        if(package_id) {
-            packageInfo = tizen.package.getPackageInfo(package_id);
-        }
-    } catch (e) {}
-
-    return packageInfo === null ? false : true;
-}
-
 function install() {
     var onInstallationSuccess = {
-            onprogress: function(packageId, percentage)
-            {
-                console.log("On installation(" + packageId + "): progress(" + percentage + ")");
-                $.mobile.showPageLoadingMsg();
-            },
-            oncomplete: function(packageId)
-            {
-                console.log("Installation(" + packageId + ") Complete");
-            }
+        onprogress: function(packageId, percentage)
+        {
+            console.log("On installation(" + packageId + "): progress(" + percentage + ")");
+            $.mobile.showPageLoadingMsg();
+        },
+        oncomplete: function(packageId)
+        {
+            console.log("Installation(" + packageId + ") Complete");
+            $('#install').addClass("ui-disabled");
+            $('#launch').removeClass("ui-disabled");
+        }
     }
 
     var onError = function (err) {
-        alert("Error occured on installation : " + err.message);
+        console.log("Error occured on installation : " + err.message);
         $.mobile.hidePageLoadingMsg();
     }
 
     try {
-        if(checkInstalledPkg()) {
-            $('#launch').removeClass("ui-disabled");
-            alert("The package is already installed");
-        } else {
-            tizen.package.install(installUrl, onInstallationSuccess, onError);
-        }
+        tizen.package.install(installUrl, onInstallationSuccess, onError);
     } catch(e) {
         alert("Exception: " + e.name);
     }
@@ -155,19 +142,22 @@ function install() {
 function uninstall(package_id) {
     var onUninstallationSuccess = {
 
-            onprogress: function(packageId, percentage)
-            {
-                console.log("On uninstallation(" + packageId + "): progress(" + percentage + ")");
-                $.mobile.showPageLoadingMsg();
-            },
-            oncomplete: function(packageId)
-            {
-                console.log("Uninstallation(" + packageId + ") Complete");
-            }
+        onprogress: function(packageId, percentage)
+        {
+            console.log("On uninstallation(" + packageId + "): progress(" + percentage + ")");
+            $.mobile.showPageLoadingMsg();
+        },
+        oncomplete: function(packageId)
+        {
+            console.log("Uninstallation(" + packageId + ") Complete");
+            $('#uninstall').addClass("ui-disabled");
+            $('#launch').addClass("ui-disabled");
+            EnablePassButton();
+        }
     }
 
     var onError = function (err) {
-        alert("Error occured on installation : " + err.name);
+        console.log("Error occured on installation : " + err.name);
         $.mobile.hidePageLoadingMsg();
     }
 
@@ -229,39 +219,8 @@ function packagePre(wgt_name) {
     );
 }
 
-function backAppsHome() {
-    window.close();
-}
-
 function reportResult(res) {
     var jsonStr="[{\"testname\":\"" + wgt_name + "\",\"result\":\"" + res + "\"}]";
     window.opener.postMessage(jsonStr, '*');
     backAppsHome();
 }
-
-function updateFooterButton(){
-    var footbar = $(':jqmData(role=footer)');
-    footbar.empty();
-    footbar.attr("align", "center");
-    footbar.append("<div data-role=\"controlgroup\" data-type=\"horizontal\">" +
-        "<a href=\"javascript:reportResult('PASS');\" id=\"pass_button\" data-role=\"button\" data-icon=\"check\" style=\"color: green\">Pass</a>" +
-        "<a href=\"javascript:reportResult('FAIL');\" id=\"fail_button\" data-role=\"button\" data-icon=\"delete\" style=\"color: red\">Fail</a>" +
-        "<a href=\"#popup_info\" data-role=\"button\" data-icon=\"info\" data-rel=\"popup\" data-transition=\"pop\">Info</a>" +
-        "<a href=\"javascript:backAppsHome();\" data-role=\"button\" data-icon=\"home\">Back</a></div>");
-
-    footbar.trigger("create");
-    footbar.find(':jqmData(role=button) > span:first-child').css('padding', '15px 10px 15px 30px');
-    $("#popup_info").popup( "option", "theme", "a");
-    var maxHeight = $(window).height() - 100 + "px";
-    $("#popup_info").css("max-height", maxHeight);
-    $("#popup_info").css("margin-bottom", "30px");
-    $("#popup_info").css("overflow-y", "auto");
-}
-
-function EnablePassButton(){
-    $('#pass_button').removeClass("ui-disabled");
-}
-
-function DisablePassButton(){
-    $('#pass_button').addClass("ui-disabled");
-}
index 16cf6d6..6ee475b 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Pre-condition: </p>
             <p>Turn on the auto-rotate screen. (Maybe this option can be found in the "setting" menu of the device).</p>
             <p>Test Step: </p>
index 96f4dbd..7f488d5 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Step: </p>
             <ol>
               <li>Click the "Install" button to install the widget.</li>
index d238620..9f22049 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Step: </p>
             <ol>
               <li>Click the "Install" button to install the widget.</li>
index a692fab..59c4b76 100644 (file)
@@ -34,8 +34,10 @@ Authors:
     <meta charset="utf-8" />
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
     <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+    <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
     <script src="../../../js/thirdparty/jquery.js"></script>
     <script src="../../../js/thirdparty/jquery.mobile.js"></script>
+    <script src="../../../js/tests.js"></script>
     <script src="../js/tests.js"></script>
   </head>
   <body>
@@ -49,22 +51,22 @@ Authors:
             <ul data-role="listview">
                 <li data-role="list-divider">Package Install</li>
                 <li>
-                    <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+                    <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
                 <li data-role="list-divider">Package Launch</li>
                 <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+                    <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
                 <li data-role="list-divider">Package Uninstall</li>
                 <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+                    <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
                 </li>
             </ul>
         </div>
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
+          <font class="fontSize">
             <p>Test Step: </p>
             <ol>
               <li>Click the "Install" button to install the widget.</li>