Fix TTS-2047 for behavior optimization
authoryuhanx.xu <yuhanx.xu@intel.com>
Fri, 11 Oct 2013 08:41:07 +0000 (16:41 +0800)
committerLi, HaoX <haox.li@intel.com>
Thu, 17 Oct 2013 03:16:27 +0000 (11:16 +0800)
  * Add and format test step
  * format css style
  * format the operation tips of install/launch/uninstall
  * handle pass button enable

Signed-off-by: yuhanx.xu <yuhanx.xu@intel.com>
57 files changed:
subtestresult.xml
tests/2D3DAnimation/index.html
tests/AppControlExtending/js/main.js
tests/ApplicationInvisible/index.html
tests/CSP/js/main.js
tests/CSP/js/tests.js
tests/CSP/res/default-policy-by-directives-csp.html
tests/CSP/res/default-policy-by-directives-csp.wgt
tests/CSP/res/default-policy-by-directives-report-only.html
tests/CSP/res/default-policy-by-directives-report-only.wgt
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/js/main.js
tests/ConfigurationExtension/js/tests.js
tests/ConfigurationExtension/res/setting-cm-disable.html
tests/ConfigurationExtension/res/setting-cm-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/DragandDrop/index.html
tests/DragandDrop/js/main.js
tests/DynamicBox/index.html
tests/DynamicBox/js/main.js
tests/DynamicBox/res/app-widget-box-label-fr.wgt [deleted file]
tests/DynamicBox/res/app-widget-mouse-event-false.wgt
tests/DynamicBox/res/app-widget-mouse-event-true.wgt
tests/DynamicBox/res/app-widget-primary-true-false.wgt [deleted file]
tests/DynamicBox/res/app-widget-unload-event.wgt
tests/FileReader/index.html
tests/FullScreen/index.html
tests/HybridApplication/index.html
tests/MediaPlayback/index.html
tests/PackageManagement/js/main.js
tests/PackageManagement/js/tests.js
tests/PackageManagement/res/Sample-widget1.html
tests/PackageManagement/res/Sample-widget4.html
tests/PackageManagement/res/widget-version-1.html
tests/Security/index.html
tests/Stability/js/main.js
tests/Stability/js/tests.js
tests/UserAgentString/index.html
tests/Vibration/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/other-localization.html
tests/WRTSupport/res/other-uri-schemes-mailto.html
tests/WRTSupport/res/other-widget-access-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/js/main.js
tests/WRTUI/js/tests.js

index dcd74c41c6d4b54760dfe79db225bcd308c8a3ab..bee19c07db539b5a408a696880ca8c7b3f2be87e 100644 (file)
@@ -20,7 +20,6 @@
       <testcase id="script-src_none" result="N/A"></testcase>
       <testcase id="script-src_inline_eval" result="N/A"></testcase>
       <testcase id="style-src_self" result="N/A"></testcase>
-      <testcase id="report-uri-single-violated" result="N/A"></testcase>
   </set>
   <set name="PackageManagement">
       <testcase id="Sample-widget1" result="N/A"></testcase>
index 9a80898034cdb14d5be6937a5cf7a63e843ca03c..ffe5dfe12b6d390dc87b276ea86f419bcdeb88eb 100755 (executable)
@@ -115,8 +115,15 @@ Authors:
   <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>Test Step: </p>
+    <ol>
+      <li>Click the "Status" slider to play or pause the animation.</li>
+      <li>Click the "Direction" buttons to change the rotation direction.</li>
+      <li>Click the "Size" slider to change the animation size.</li>
+      <li>Click the "Speed" slider to change the rotation speed.</li>
+    </ol>
     <p>Expected Result: </p>
-    <p>Test passes if all the check points function well during rotation.</p>
+    <p>Test passes if all the check points work well during rotation.</p>
   </font>
 </div>
 </body>
index 66acd3fb388523ce39f55a8c9bee033dd2046ce8..941a8fa39a2e25d5db41c290fd3daa75d0ebc392 100644 (file)
@@ -150,7 +150,7 @@ function install(url, type) {
     }
 
     var onError = function (err) {
-        console.log("Error occured on installation : " + err.message);
+        alert("Error occured on installation : " + err.message);
     }
 
     try {
@@ -182,7 +182,7 @@ function uninstall(package_id) {
     }
 
     var onError = function (err) {
-        console.log("Error occured on installation : " + err.name);
+        alert("Error occured on uninstallation : " + err.name);
     }
 
     try {
index bad26bbc3ed2c81bc175adc9a1b6404467d66c76..c2c93fc1f64b88732572dcb882b877fbd1149dc6 100644 (file)
@@ -98,7 +98,10 @@ Authors:
               <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>
+            <ul>
+              <li>The "JS time" is different from the "Difference time".</li>
+              <li>The "Animation time" is different from the "Difference time".</li>
+            </ul>
           </font>
         </div>
     </div>
index 20a6a91f78ef88069abdb8ac5ae26147cb65e6b7..5d94fbd03b4f35826f3b037025f6c80c2c9568e4 100644 (file)
@@ -79,10 +79,23 @@ function checkInstalledPackage(){
     } else {
         $.mobile.hidePageLoadingMsg();
         alert("All widgets is uninstalled!");
-        EnablePassButton();
+        if (checkIfAllPackagePass()) {
+            EnablePassButton();
+        }
     }
 }
 
+function checkIfAllPackagePass() {
+    var result = true;
+
+    tests.each(function() {
+        if ($(this).attr('result') != "PASS") {
+            result = false;
+        }
+    });
+    return result;
+}
+
 function uninstall(val) {
     installedId.shift();
     var totalBar = Math.floor((allId.length - installedId.length - 1) / allId.length * 100);
index 5adacfc69ab5da33b7cf85a84799e47b8ec02401..e1ad857ad2ad1eb12e409369733ee6319fee0285 100644 (file)
@@ -129,7 +129,7 @@ function install() {
     }
 
     var onError = function (err) {
-        console.log("Error occured on installation : " + err.message);
+        alert("Error occured on installation : " + err.message);
         $.mobile.hidePageLoadingMsg();
     }
 
@@ -158,7 +158,7 @@ function uninstall(package_id) {
     }
 
     var onError = function (err) {
-        console.log("Error occured on installation : " + err.name);
+        alert("Error occured on uninstallation : " + err.name);
         $.mobile.hidePageLoadingMsg();
     }
 
index a1818f6693001d37b393415c2604d4a1e48ff182..2aa72e73a211943923e3c550ccb5858ca69b6dd0 100644 (file)
@@ -74,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 pass.</p>
+            <p>Test passes if all "TestN", N=1...6, pass.</p>
           </font>
         </div>
     </div>
index 8a67196a16a19379c7dbd133c80b888d603a3509..7621f8a28d481e94fd6a0cbb2d5f45957b1548b6 100644 (file)
Binary files a/tests/CSP/res/default-policy-by-directives-csp.wgt and b/tests/CSP/res/default-policy-by-directives-csp.wgt differ
index 7a3f9784a9d7aa92a3d01bed4b73f43702444a54..9a0f395dd0d443148f038476a867fcfbeca4d6e7 100644 (file)
@@ -74,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 pass.</p>
+            <p>Test passes if all "TestN", N=1...6, pass.</p>
           </font>
         </div>
     </div>
index fed4aa07c983f1069442609e74705a545e80e706..4f052a6825455f99b106927f1f1a18d327f658c7 100644 (file)
Binary files a/tests/CSP/res/default-policy-by-directives-report-only.wgt and b/tests/CSP/res/default-policy-by-directives-report-only.wgt differ
index 574a5905eb697f82aa119deb990fd9a7d39edf0d..eb2ce0a8a5f39f4c8732a3c52758cee353072282 100644 (file)
@@ -111,7 +111,7 @@ Authors:
         <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>Test passes if the transformation and animation function well.</p>
+        <p>Test passes if the transformation and animation functions all work well.</p>
       </font>
     </div>
   </body>
index a980ecc477e293382d4bd87e9608faafe21d4040..d42565b69e48b6a6ec80025a56a72fdb248d4e7d 100644 (file)
@@ -42,6 +42,16 @@ Authors:
     <script src="../../js/tests.js"></script>
     <script src="js/main.js"></script>
     <script src="js/slider.tooltip.js"></script>
+    <style>
+        .normalSpan {
+            display:none;
+            color:red;
+        }
+        .columnSpan {
+            visibility:hidden;
+            color:red;
+        }
+    </style>
   </head>
   <body>
     <div data-role="header">
@@ -50,9 +60,9 @@ Authors:
     <div data-role="content" class="content">
         <div id="d">
           <div id="text-div">
-            <div id="p"><span style="display:none;color:red">A</span>
+            <div id="p"><span class="normalSpan">A</span>
               By&nbsp;using&nbsp;functionality&nbsp;described in this document, style sheets can declare that the content of an element is to be laid out in multiple columns.
-              <h3 id="h"><span style="visibility:hidden;color:red">A</span>column span</h3>
+              <h3 id="h"><span class="columnSpan">A</span>column span</h3>
               The main benefit of using CSS-based columns is flexibility; content can flow from one column to another.
             </div>
           </div>
@@ -118,9 +128,16 @@ Authors:
     <div data-role="popup" id="popup_info">
       <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>Verifies</p>
+        <ul>
+          <li>the dotted line box has a white background, red first letter, green dotted border.</li>
+          <li>the general description uses default font in browser.</li>
+          <li>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.</li>
+          <li>the text align in left or right, text in uppercase or lowercase, text and box shadow in two effects, text decoration in three effects and word break in two effects.</li>
+          <li>the "column span" text shows in random code when using uppercase.</li>
+        </ul>
         <p>Expected Result: </p>
-        <p>Test passes if all the check points function well in the div box.</p>
+        <p>Test passes if all the check points work well in the dotted line box.</p>
       </font>
     </div>
   </body>
index 100282951dac25f8627d3d202b69fc393b0a4325..eb71a0cd8f2639c2055c3e60cf4b49e181bd0491 100755 (executable)
@@ -39,15 +39,25 @@ Authors:
         <script src="../../js/thirdparty/jquery.mobile.js"></script>
         <script src="../../js/tests.js"></script>
         <script src="js/main.js"></script>
+        <style>
+            #observateEare {
+                border: black solid 1px;
+                height: 300px;
+            }
+            #photoShow {
+                height: 210px;
+                line-height:210px;
+            }
+        </style>
     </head>
     <body>
         <div data-role="header">
             <h1 id="main_page_title"></h1>
         </div>
         <div data-role="content">
-            <div id="observateEare" align="center" style="border: #000 solid 1px;height: 300px;">
+            <div id="observateEare" align="center">
               <p id="filename"></p>
-              <div id="photoShow" align="center" style="height: 210px;line-height:210px;"></div>
+              <div id="photoShow" align="center"></div>
             </div>
             <input type="file" id="files" accept="image/*" capture="camera" class="hideButton" />
             <div align="center">
@@ -60,8 +70,10 @@ Authors:
           <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>Test Step: </p>
+            <p>Click the "Launch camera to take a photo" button to launch the camera preview.</p>
             <p>Expected Result: </p>
-            <p>Test passes if the camera preview and capture function well.</p>
+            <p>Test passes if the camera preview and capture work well.</p>
           </font>
         </div>
     </body>
index d71d0c9c8eeb5970fa8cb8e07640a964a0dabafd..2249cc51a2b537adccd7f22df3e1caa02cbb0c66 100755 (executable)
@@ -39,13 +39,20 @@ Authors:
         <script src="../../js/thirdparty/jquery.mobile.js"></script>
         <script src="../../js/tests.js"></script>
         <script src="js/main.js"></script>
+        <style>
+            #observateEare {
+                border: black solid 1px;
+                height: 330px;
+                line-height:330px;
+            }
+        </style>
     </head>
     <body>
         <div data-role="header">
             <h1 id="main_page_title"></h1>
         </div>
         <div data-role="content">
-            <div id="observateEare" align="center" style="border: #000 solid 1px;height: 330px;line-height:330px;">
+            <div id="observateEare" align="center">
               <p id="errormassage"></p>
               <div align="center">
                 <video width="330px" height="330px" id="localView" autoplay="autoplay"></video>
@@ -62,8 +69,13 @@ Authors:
           <font class="fontSize">
             <p>Test Purpose: </p>
             <p>Verifies the functionality of enabling and disabling the Camera preview.</p>
+            <p>Test Step: </p>
+            <ol>
+              <li>Click the "Start camera preview" button to launch the preview.</li>
+              <li>Click the "Stop camera preview" button to close the preview.</li>
+            </ol>
             <p>Expected Result: </p>
-            <p>Test passes if the Camera preview through GetUserMedia functions well.</p>
+            <p>Test passes if the Camera preview works well.</p>
           </font>
         </div>
     </body>
index 6e87925929979be2fac2c78596fa06e533011513..a6ffdf09ffa81ec735d64771ac11728612315430 100755 (executable)
@@ -47,11 +47,18 @@ Authors:
       </div>
       <div id="content">
         <ul data-role="listview">
-          <li data-role="list-divider">ClipboardApplication Install</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" class="wgtButton">Uninstall</div></li>
+          <li data-role="list-divider">Package Install</li>
+          <li>
+              <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="launch1" class="wgtButton">Launch</div>
+          </li>
+          <li data-role="list-divider">Package Uninstall</li>
+          <li>
+              <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
+          </li>
         </ul>
       </div>
       <div data-role="footer" data-position="fixed">
@@ -69,7 +76,7 @@ Authors:
             <li>Click the "Uninstall" button to uninstall the widget.</li>
           </ol>
           <p>Expected Result: </p>
-          <p>Test passes if the copy, cut and paste functions all well.</p>
+          <p>Test passes if the copy, cut and paste functions all work well.</p>
         </font>
       </div>
     </div>
index 6826f7f0be0cdca4676b77f2b32ec26721a78ac4..e887a94c63dac9c3dfe3116130361c0e4caa15bf 100644 (file)
@@ -112,7 +112,7 @@ function install(url, type) {
     }
 
     var onError = function (err) {
-        console.log("Error occured on installation : " + err.message);
+        alert("Error occured on installation : " + err.message);
         $.mobile.hidePageLoadingMsg();
     }
 
@@ -142,7 +142,7 @@ function uninstall() {
     }
 
     var onError = function (err) {
-        console.log("Error occured on installation : " + err.name);
+        alert("Error occured on uninstallation : " + err.name);
         $.mobile.hidePageLoadingMsg();
     }
 
index 382cdbd31fe1da068e53618fd12cbeb769628c59..0752a0e8547e6823b0f02a591347e64fa170999b 100644 (file)
@@ -78,10 +78,23 @@ function checkInstalledPackage(){
     } else {
         $.mobile.hidePageLoadingMsg();
         alert("All widgets is uninstalled!");
-        EnablePassButton();
+        if (checkIfAllPackagePass()) {
+            EnablePassButton();
+        }
     }
 }
 
+function checkIfAllPackagePass() {
+    var result = true;
+
+    tests.each(function() {
+        if ($(this).attr('result') != "PASS") {
+            result = false;
+        }
+    });
+    return result;
+}
+
 function uninstall(val) {
     installedId.shift();
     var totalBar = Math.floor((allId.length - installedId.length - 1) / allId.length * 100);
index 9388f19636384b86169e2d8095fb0a69be80b488..675ad305103fcb825231cc8bc16337ecec045158 100644 (file)
@@ -34,6 +34,7 @@ var wgt_name;
 var app_id;
 var package_id;
 var nolaunch_wgt = new Array('setting-encrypt-enable','setting-encrypt-disable');
+var NOTINSTALL_WGT = "setting-install-location-prefer-external-no-card";
 
 $(document).ready(function(){
     updateFooterButton();
@@ -140,8 +141,12 @@ function install() {
     }
 
     var onError = function (err) {
-        console.log("Error occured on installation : " + err.message);
+        alert("Error occured on installation : " + err.message);
         $.mobile.hidePageLoadingMsg();
+
+        if (wgt_name == NOTINSTALL_WGT) {
+            EnablePassButton();
+        }
     }
 
     try {
@@ -169,7 +174,7 @@ function uninstall(package_id) {
     }
 
     var onError = function (err) {
-        console.log("Error occured on installation : " + err.name);
+        alert("Error occured on uninstallation : " + err.name);
         $.mobile.hidePageLoadingMsg();
     }
 
index d8b06c6a37445bf0ccd3b3d61257ca75aaebbd1d..da79881d8cebfd4dbfef1e2b7c4268c2b5f422a3 100644 (file)
@@ -74,7 +74,7 @@ Authors:
               <li>Click the "Uninstall" button to uninstall the widget.</li>
             </ol>
             <p>Expected Result: </p>
-            <p>Test passes if the popup dialog cannot be displayed after losing the press.</p>
+            <p>No popup menu after release the press.</p>
           </font>
         </div>
     </div>
index 233302d3fda1044300c841abe09d00ea59e0a39b..b8c164f85ac8c238e70fb8381dd8e478d8a86cb3 100644 (file)
@@ -74,7 +74,7 @@ Authors:
               <li>Click the "Uninstall" button to uninstall the widget.</li>
             </ol>
             <p>Expected Result: </p>
-            <p>Test passes if the popup dialog can be displayed after losing the press.</p>
+            <p>There is a popup menu after release the press.</p>
           </font>
         </div>
     </div>
index 2f347739297134efa5d3d0ac276b9b35b88450a0..c3364b7ebbee8ab4dd55713a0d9520f7e930eece 100644 (file)
@@ -76,7 +76,7 @@ Authors:
               <li>Click the "Uninstall" button to uninstall the widget.</li>
             </ol>
             <p>Expected Result: </p>
-            <p>Test passes if the widget application can be launched and a "PASS" is shown on the screen.</p>
+            <p>There is a "PASS" after launch the widget.</p>
           </font>
         </div>
     </div>
index d1f8df5e7acb5ff89fbeff18fac7e3ea51f1806f..c46df9ed8c2e637cb77509fb8394ae2caf1f075c 100644 (file)
@@ -71,9 +71,8 @@ Authors:
             <p>Make sure there is no memory card inserted into the device.</p>
             <p>Test Step: </p>
             <p>Click the "Install" button to install the widget.</p>
-            <li>Click the "Uninstall" button to uninstall the widget.</li>
             <p>Expected Result: </p>
-            <p>Test passes if the widget can not be installed successfully.</p>
+            <p>The widget cannot be installed successfully.</p>
           </font>
         </div>
     </div>
index d547bd741a7aaec011eb6782bb56b3a231474fbf..5796f2320000c42fe027975cb7d3c1f32ea2e1ec 100644 (file)
@@ -47,11 +47,18 @@ Authors:
       </div>
       <div id="content">
         <ul data-role="listview">
-          <li data-role="list-divider">DragandDropApplication Install</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" class="wgtButton">Uninstall</div></li>
+          <li data-role="list-divider">Package Install</li>
+          <li>
+              <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="launch1" class="wgtButton">Launch</div>
+          </li>
+          <li data-role="list-divider">Package Uninstall</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">
index f142648c6c979792a501a9cf6772f269837942a4..0dd8e11e0dc91898a4a026b0c0b2b949caae6128 100644 (file)
@@ -115,7 +115,7 @@ function install(url, type) {
     }
 
     var onError = function (err) {
-        console.log("Error occured on installation : " + err.message);
+        alert("Error occured on installation : " + err.message);
         $.mobile.hidePageLoadingMsg();
     }
 
@@ -145,7 +145,7 @@ function uninstall() {
     }
 
     var onError = function (err) {
-        console.log("Error occured on installation : " + err.name);
+        alert("Error occured on uninstallation : " + err.name);
         $.mobile.hidePageLoadingMsg();
     }
 
index 14b19259359f5772760f11dd3a5018fc105f019a..5d3e1e9045f3e084594c2ce563f7fa0549ccedd9 100644 (file)
@@ -51,7 +51,7 @@ Authors:
                 <li>
                     <div data-role="button" id="install" class="wgtButton">Install</div>
                 </li>
-                <li data-role="list-divider">TestPackage Application Launch</li>
+                <li data-role="list-divider">Package Launch</li>
                 <li>
                     <div data-role="button" id="launch" class="wgtButton">Launch</div>
                 </li>
@@ -69,21 +69,20 @@ Authors:
             <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 "Install" button, test step passes if all app widgets installed successfully.</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 "Mouse event false"; press the filled blue square; test step passes if the blue square doesn't change;</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 "AppWidget Unload event"; wait 3 seconds; test step passes if there are several 'pass' displayed;</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"; press 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 filled blue square; test step passes if the blue square changes to green;</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"; 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>
+              <li>Click the "Uninstall" button, test step passes if all app widgets uninstalled successfully.</li>
             </ol>
             <p>Expected Result: </p>
             <p>Test passes if all the test steps pass.</p>
index 51264a2edea24a1bbc7268270ac96f8309d9558a..e345986387bba56db3e1161477f12bc1ad1c4b1d 100644 (file)
@@ -36,8 +36,6 @@ var wgt_names = new Array('app-widget-mouse-event-false.wgt',
                           'app-widget-sample.wgt',
                           'app-widget-unload-event.wgt',
                           'app-widget-box-appwidgetready-event.wgt',
-                          'app-widget-box-label-fr.wgt',
-                          'app-widget-primary-true-false.wgt',
                           'app-widget-mouse-event-true.wgt',
                           'app-widget-load-event.wgt',
                           'app-widget-visibility-event.wgt',
@@ -48,8 +46,6 @@ var package_ids = new Array('wrt6awi014',
                             'wrt6app001',
                             'wrt6aws017',
                             'wrt6awb006',
-                            'wrt6awb010',
-                            'wrt6awi004',
                             'wrt6awi013',
                             'wrt6aws016',
                             'wrt6aws018',
@@ -62,8 +58,6 @@ var id_maps = {'rMLtTXzQr2-2.0.0-arm.tpk':                'rMLtTXzQr2',
                'app-widget-sample.wgt':                   'wrt6app001',
                'app-widget-unload-event.wgt':             'wrt6aws017',
                'app-widget-box-appwidgetready-event.wgt': 'wrt6awb006',
-               'app-widget-box-label-fr.wgt':             'wrt6awb010',
-               'app-widget-primary-true-false.wgt':       'wrt6awi004',
                'app-widget-mouse-event-true.wgt':         'wrt6awi013',
                'app-widget-load-event.wgt':               'wrt6aws016',
                'app-widget-visibility-event.wgt':         'wrt6aws018',
@@ -199,7 +193,7 @@ function install() {
     var onError = function (err) {
         $.mobile.loading('hide');
         $("#launch").removeClass("ui-disabled");
-        console.log("Error occured on installation : " + err.message);
+        alert("Error occured on installation : " + err.message);
     }
 
     try {
@@ -257,7 +251,7 @@ function uninstall(package_id) {
 
     var onError = function (err) {
         $.mobile.loading('hide');
-        console.log("Error occured on installation : " + err.name);
+        alert("Error occured on uninstallation : " + err.name);
     }
 
     try {
diff --git a/tests/DynamicBox/res/app-widget-box-label-fr.wgt b/tests/DynamicBox/res/app-widget-box-label-fr.wgt
deleted file mode 100644 (file)
index 8c6c051..0000000
Binary files a/tests/DynamicBox/res/app-widget-box-label-fr.wgt and /dev/null differ
index 81386c7cedfe503d4a01d5422d0bbd3203499bbe..925c1cad176c5dbdf67ca3bbf4f27365b871617b 100644 (file)
Binary files a/tests/DynamicBox/res/app-widget-mouse-event-false.wgt and b/tests/DynamicBox/res/app-widget-mouse-event-false.wgt differ
index 33389e44518d8d3aa42508358977065023207ffe..81b43acc46d67488c708254f0fd8efad10165298 100644 (file)
Binary files a/tests/DynamicBox/res/app-widget-mouse-event-true.wgt and b/tests/DynamicBox/res/app-widget-mouse-event-true.wgt differ
diff --git a/tests/DynamicBox/res/app-widget-primary-true-false.wgt b/tests/DynamicBox/res/app-widget-primary-true-false.wgt
deleted file mode 100644 (file)
index 06cc03d..0000000
Binary files a/tests/DynamicBox/res/app-widget-primary-true-false.wgt and /dev/null differ
index 614668afcf1f9c4841aa4398a968f225aa47833f..d13e5d2bb62ef820b8fd7b9a35699455619af427 100644 (file)
Binary files a/tests/DynamicBox/res/app-widget-unload-event.wgt and b/tests/DynamicBox/res/app-widget-unload-event.wgt differ
index b70525a4c83b56988264e32518a27405c2a58411..08c750261d7c343916081490bb4b4aaf87fc7ebb 100644 (file)
@@ -62,13 +62,13 @@ Authors:
             <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>Ensure at least one txt file is located in the device.</p>
             <p>Expected Result: </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>
+            <ul>
+              <li>File upload successfully.</li>
+              <li>File size show correctly.</li>
+              <li>File content print on the screen.</li>
+            </ul>
           </font>
         </div>
     </body>
index 296c3b83d4549d0f422da149342cc395faa0b2aa..61b38aaaf52b088af978871eb957874d6a1bcbd4 100755 (executable)
@@ -81,7 +81,7 @@ Authors:
         <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>Test passes if full screen mode and CSS full screen mode function well.</p>
+        <p>Test passes if full screen mode and CSS full screen mode functions all work well.</p>
       </font>
     </div>
   </body>
index 3f3e185299cd4227faca225413ef9d8635fecf89..474e8671a1b70dc78a284f301e4e2583a3b2dab4 100755 (executable)
@@ -48,15 +48,27 @@ Authors:
         </div>
         <div id="content">
             <ul data-role="listview">
-                <li data-role="list-divider">HybridApplication Install</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" 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" class="wgtButton">Uninstall</div></li>
-                <li><div data-role="button" id="launch3" class="wgtButton">Try to Launch</div></li>
+                <li data-role="list-divider">Package Install</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">Package Update</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">Package Uninstall</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">
@@ -74,7 +86,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 if all the test points function well.</p>
+            <p>Test passes if all the test points work well.</p>
           </font>
         </div>
     </div>
index 7b28852a7b0027db3df9f174db03ba397dcc72e0..52cfb30bcde8301291c33ba37f0e21770591417c 100644 (file)
@@ -66,7 +66,7 @@ Authors:
         <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>Test passes if all the check points function well during video playback.</p>
+        <p>Test passes if all the check points work well during the video playback.</p>
       </font>
     </div>
   </body>
index 82c8c6497b155c119c589f7d9d3bdec0f416257e..b9dccdfe4f6dd063f54b2afc4c3adca89da7c679 100644 (file)
@@ -68,10 +68,23 @@ function checkInstalledPackage(){
     } else {
         $.mobile.hidePageLoadingMsg();
         alert("All widgets is uninstalled!");
-        EnablePassButton();
+        if (checkIfAllPackagePass()) {
+            EnablePassButton();
+        }
     }
 }
 
+function checkIfAllPackagePass() {
+    var result = true;
+
+    tests.each(function() {
+        if ($(this).attr('result') != "PASS") {
+            result = false;
+        }
+    });
+    return result;
+}
+
 function getPackageInfo(packageId){
     var packageInfo = tizen.package.getPackageInfo(packageId);
     console.log("Current Package ID : " + packageInfo.id);
index 0b09772e8a4817c74d661cbd16ce1ddbee30f660..71ad0697730a73ee6268007bb71dabcf5c3526eb 100644 (file)
@@ -150,7 +150,7 @@ function install(type) {
     }
 
     var onError = function (err) {
-        console.log("Error occured on installation : " + err.message);
+        alert("Error occured on installation : " + err.message);
         $.mobile.hidePageLoadingMsg();
     }
 
@@ -179,7 +179,7 @@ function uninstall(package_id) {
     }
 
     var onError = function (err) {
-        console.log("Error occured on installation : " + err.name);
+        alert("Error occured on uninstallation : " + err.name);
         $.mobile.hidePageLoadingMsg();
     }
 
index 1c2a0975028b83102c4299e4057706b6893eb826..41b7a67e34638db25e7d8fce8a882b9ec1563528 100644 (file)
@@ -74,7 +74,10 @@ Authors:
               <li>Click the "Uninstall" button to uninstall the widget.</li>
             </ol>
             <p>Expected Result: </p>
-            <p>Test passes if "PASS" is displayed and the widget name is shown as "Sample-widget1" on device idle screen.</p>
+            <ul>
+              <li>There is a widget named "Sample-widget1" on the device screen after the widget installed.</li>
+              <li>When click the "Launch" button, a "PASS" is displayed.</li>
+            </ul>
           </font>
         </div>
     </div>
index a1c961bc1ce76b5c6a2f51b2238170e898a31ead..aa3b146b37a2f6825dd12204d18b13e870bd4714 100644 (file)
@@ -74,7 +74,7 @@ Authors:
               <li>Click the "Uninstall" button to uninstall the widget.</li>
             </ol>
             <p>Expected Result: </p>
-            <p>Test passes if the widget info(Name, Version, Package ID, App ID) displayed and it is the same with config.xml. For example, "Name: Sample-widget4", "Version: 1.0.0".</p>
+            <p>Test passes if the command line displays: "Name: Sample-widget4", "Version: 1.0.0", " Package ID: wrt1smt010", "App ID: wrt1smt010.Samplewidget4".</p>
           </font>
         </div>
     </div>
index f65f91a05089b18d5120f1159e8fc4fe49c4e3e1..9496f7312118276653a7e79cdd5f59d84485edab 100644 (file)
@@ -74,7 +74,10 @@ Authors:
               <li>Re-open this TC, click the "Uninstall" button to uninstall the widget.</li>
             </ol>
             <p>Expected Result: </p>
-            <p>Test passes if there are <strong>no error message</strong> and <strong>no system crash</strong>.</p>
+            <ul>
+              <li>There is <strong>no error message</strong>.</li>
+              <li>There is <strong>no system crash</strong>.</li>
+            </ul>
           </font>
         </div>
     </div>
index 12f55dd9f412d55abd0c14a13c30c3677852d63b..6b9d5015888b760589d482ac2c8fd089b724863f 100755 (executable)
@@ -75,11 +75,11 @@ Authors:
               <li>Open and/or create files in home directory, shared media directory and etc directory.</li>
             </ol>
             <p>Expected Result: </p>
-              <ul>
-                <li>The "USRER" info is NOT root user.</li>
-                <li>There is <strong>no error message</strong> when click buttons under "Home Directory", "Shared Media Directory".</li>
-                <li>There appears error message when click button under "Permission Denied Directory".</li>
-              </ul>
+            <ul>
+              <li>The "USRER" info is NOT root user.</li>
+              <li>There is <strong>no error message</strong> when click buttons under "Home Directory", "Shared Media Directory".</li>
+              <li>There appears error message when click button under "Permission Denied Directory".</li>
+            </ul>
           </font>
         </div>
     </body>
index 3f8ccac885c94f4bf30a1aa3ff8e43089ef6d059..ac2a73f0a8a50d7ef7f1d7354a1a564b1ae3a531 100644 (file)
@@ -64,10 +64,23 @@ function checkInstalledPackage(){
     } else {
         $.mobile.hidePageLoadingMsg();
         alert("All widgets is uninstalled!");
-        EnablePassButton();
+        if (checkIfAllPackagePass()) {
+            EnablePassButton();
+        }
     }
 }
 
+function checkIfAllPackagePass() {
+    var result = true;
+
+    tests.each(function() {
+        if ($(this).attr('result') != "PASS") {
+            result = false;
+        }
+    });
+    return result;
+}
+
 function uninstall(val) {
     installedId.shift();
     var totalBar = Math.floor((allId.length - installedId.length - 1) / allId.length * 100);
index 2921a850c8bb55a843679aa617cdfd0ed3e6ceac..eb8b87a0ba7fe0379e5aecf25a4b757ef5824f2c 100644 (file)
@@ -143,7 +143,7 @@ function install() {
     }
 
     var onError = function (err) {
-        console.log("Error occured on installation : " + err.message);
+        alert("Error occured on installation : " + err.message);
         $.mobile.hidePageLoadingMsg();
     }
 
@@ -172,7 +172,7 @@ function uninstall(package_id) {
     }
 
     var onError = function (err) {
-        console.log("Error occured on installation : " + err.name);
+        alert("Error occured on uninstallation : " + err.name);
         $.mobile.hidePageLoadingMsg();
     }
 
index cc0ea56d90865bc6c4fed4137b03d0922e2409c2..a1454581f761ac16b0831c4375304218214e62fe 100755 (executable)
@@ -118,12 +118,12 @@ Authors:
             <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>
-                <li>The value of the MODEL string SHOULD be the same as the name of the device.</li>
-                <li>The value of the APPLE_WEBKIT_VER string MUST be "537.3".</li>
-                <li>The value of the APP_NAME string SHOULD be the same as the name of the application.</li>
-                <li>The value of the APP_VER string SHOULD be the same as the version of the application.</li>
-                <li>Device implementations MAY omit the word “Mobile” from the user agent string.</li>
+              <li>The value of the PLATFORM_VER string MUST be the platform version of the device.</li>
+              <li>The value of the MODEL string SHOULD be the same as the name of the device.</li>
+              <li>The value of the APPLE_WEBKIT_VER string MUST be "537.3".</li>
+              <li>The value of the APP_NAME string SHOULD be the same as the name of the application.</li>
+              <li>The value of the APP_VER string SHOULD be the same as the version of the application.</li>
+              <li>Device implementations MAY omit the word “Mobile” from the user agent string.</li>
             </ul>
           </font>
         </div>
index c092637b2e437ae9c09b93de6af329ce66b012fc..1d7b1c4544890d06f44e4188134141dff265b7fb 100755 (executable)
@@ -73,7 +73,7 @@ Authors:
             <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>Test passes if the vibration functions well.</p>
+            <p>Test passes if the vibration functions work well.</p>
           </font>
         </div>
     </body>
index d15e1491a4cbe8eb947c7310cff8e39e4b48a64b..0617a4c4fc2291c9320e1430e0f5a314cd8caea4 100644 (file)
@@ -73,27 +73,40 @@ function checkInstalledPackage(){
     } else {
         $.mobile.hidePageLoadingMsg();
         alert("All widgets is uninstalled!");
-        EnablePassButton();
+        if (checkIfAllPackagePass()) {
+            EnablePassButton();
+        }
     }
 }
 
+function checkIfAllPackagePass() {
+    var result = true;
+
+    tests.each(function() {
+        if ($(this).attr('result') != "PASS") {
+            result = false;
+        }
+    });
+    return result;
+}
+
 function uninstall(val) {
     installedId.shift();
     var totalBar = Math.floor((allId.length - installedId.length - 1) / allId.length * 100);
 
     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) {
index 22a95de9551d55ef39cea95b3431b634f4a110f8..c256e8d5e5cf64de6d5f7bea8fab5842a6a95e1a 100644 (file)
@@ -39,7 +39,7 @@ $(document).ready(function(){
     updateFooterButton();
 
     wgt_name = $("#wgt_name").val();
-    if(jQuery.inArray(wgt_name, install_wgt) == -1){
+    if(jQuery.inArray(wgt_name, install_wgt) == -1) {
         DisablePassButton();
 
         app_id = $("#app_id").val();
@@ -132,7 +132,7 @@ function install() {
     }
 
     var onError = function (err) {
-        console.log("Error occured on installation : " + err.message);
+        alert("Error occured on installation : " + err.message);
         $.mobile.hidePageLoadingMsg();
     }
 
@@ -161,7 +161,7 @@ function uninstall(package_id) {
     }
 
     var onError = function (err) {
-        console.log("Error occured on installation : " + err.name);
+        alert("Error occured on uninstallation : " + err.name);
         $.mobile.hidePageLoadingMsg();
     }
 
index 3c97de3ca95be1d7d913a91f8ab9c190a3a62e4e..3df8be552cd1570e3ac00845ed2fe86b029b753f 100644 (file)
@@ -37,6 +37,7 @@ Authors:
     <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>
index f18585a5d6480560ce8fb98668c02cf3122f3feb..584c453b3df963201a142d6e13ac2a7439264587 100644 (file)
@@ -37,6 +37,7 @@ Authors:
     <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>
index a929492fd54a912fc3b64949027860ed5c99ed64..bd16fe2196d65ee2e16d2a5f7ea20236be2ea263 100644 (file)
@@ -68,7 +68,7 @@ Authors:
         <div data-role="popup" id="popup_info" data-theme="a">
           <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>Make sure the local language is English (check the installed widget's name on the device screen, it should be "english-ol").</p>
             <p>Test Step: </p>
             <ol>
               <li>Click the "Install" button to install the widget.</li>
index 8bd34411ea8d91c063e88d01a516b5f5aa07e9da..8e4c77e06e5b5368d09fc33164b4db298c400d85 100644 (file)
@@ -74,10 +74,10 @@ Authors:
               <li>Click the "Uninstall" button to uninstall the widget.</li>
             </ol>
             <p>Expected Result: </p>
-            <p>Test passes if
-              <li>the email with your wrote contents(cc account, bcc account, body content, groups account, subject content) are displayed on the screen when click the "send email" button.</li>
-              <li>the telephone call is displayed on the screen when click the "call" button.</li>
-            </p>
+            <ul>
+              <li>The email with your wrote contents(cc account, bcc account, body content, groups account, subject content) are displayed on the screen when click the "send email" button.</li>
+              <li>The telephone call is displayed on the screen when click the "call" button.</li>
+            </ul>
           </font>
         </div>
     </div>
index c23e6b396c5320c138e6e8c937fdba0dc3bbefe7..1c655448519fede1fca7f6b40fb37bd592c42bcf 100644 (file)
@@ -76,11 +76,11 @@ Authors:
               <li>Click the "Uninstall" button to uninstall the widget.</li>
             </ol>
             <p>Expected Result: </p>
-            <p>Test passes if
-              <li>click the link of "www.baidu.com", it opend the home page of "www.baidu.com".</li>
-              <li>close the widget and launch again, the home page of "www.163.com" is not opened.</li>
-              <li>click the link of "www.163.com", it is opened in the default browser of the device.</li>
-            </p>
+            <ul>
+              <li>Click the link of "www.baidu.com", it opens the home page of "www.baidu.com".</li>
+              <li>Close the widget and launch again, it cannot open the home page of "www.163.com".</li>
+              <li>Click the link of "www.163.com", it opens the home page of "www.163.com" in the default browser.</li>
+            </ul>
           </font>
         </div>
     </div>
index 1483ba9f304503c1839acd0cf1aa37201b1610da..1ef1e739941f612332236a6c2c5ce8541a7c984e 100644 (file)
@@ -76,11 +76,11 @@ Authors:
               <li>Click the "Uninstall" button to uninstall the widget.</li>
             </ol>
             <p>Expected Result: </p>
-            <p>Test pass if
-              <li>click the link "http://www.baidu.com". It opened in this widget successfully.</li>
-              <li>click the link "http://www.neusoft.com". It opened in this widget successfully.</li>
-              <li>click the link "http://www.163.com". It opened in this widget successfully.</li>
-            </p>
+            <ul>
+              <li>Click the link "http://www.baidu.com". It opens in the widget successfully.</li>
+              <li>Click the link "http://www.neusoft.com". It opens in the widget successfully.</li>
+              <li>Click the link "http://www.163.com". It opens in the widget successfully.</li>
+            </ul>
           </font>
         </div>
     </div>
index 13bf786f2dfbed5227a94c82e69c8eb39e97d7bb..6e9f55c413c6e37e77efc20262bb1155952c4402 100644 (file)
@@ -76,12 +76,12 @@ Authors:
               <li>Click the "Uninstall" button to uninstall the widget.</li>
             </ol>
             <p>Expected Result: </p>
-            <p>Test passes if
-              <li>click the link "http://www.baidu.com". It opened in this widget successfully.</li>
-              <li>click the link "http://www.baidu.com/gaoji/preferences.html". It opened in this widget successfully.</li>
-              <li>click the link "http://www.neusoft.com". It opened in this widget successfully.</li>
-              <li>click the link "http://www.neusoft.com/cn". It opened in this widget successfully.</li>
-            </p>
+            <ul>
+              <li>Click the link "http://www.baidu.com". It opens in the widget successfully.</li>
+              <li>Click the link "http://www.baidu.com/gaoji/preferences.html". It opens in the widget successfully.</li>
+              <li>Click the link "http://www.neusoft.com". It opens in the widget successfully.</li>
+              <li>Click the link "http://www.neusoft.com/cn". It opens in the widget successfully.</li>
+            </ul>
           </font>
         </div>
     </div>
index efac804c9b129e73f4af8851b1fa2cf07e7877ea..36c321ab26e80a49ade062a534cac85ee3a8fca8 100644 (file)
@@ -76,11 +76,11 @@ Authors:
               <li>Click the "Uninstall" button to uninstall the widget.</li>
             </ol>
             <p>Expected Result: </p>
-            <p>Test passes if
-              <li>click the link "http://www.baidu.com". It opened in this widget successfully.</li>
-              <li>click the link "http://www.neusoft.com". It opened in this widget successfully.</li>
-              <li>click the link "http://www.163.com". It doesn't open in this widget, it opened in the browser of the device.</li>
-            </p>
+            <ul>
+              <li>Click the link "http://www.baidu.com". It opens in the widget successfully.</li>
+              <li>Click the link "http://www.neusoft.com". It opens in the widget successfully.</li>
+              <li>Click the link "http://www.163.com". It doesn't open in the widget, it opens in the default browser.</li>
+            </ul>
           </font>
         </div>
     </div>
index c3e78d09317f91509bd3be951638a2427404c4b4..7ddaa3c98a2a1b9ecabc5d5c328beb8d9bd3f98e 100644 (file)
@@ -66,10 +66,23 @@ function checkInstalledPackage(){
     } else {
         $.mobile.hidePageLoadingMsg();
         alert("All widgets is uninstalled!");
-        EnablePassButton();
+        if (checkIfAllPackagePass()) {
+            EnablePassButton();
+        }
     }
 }
 
+function checkIfAllPackagePass() {
+    var result = true;
+
+    tests.each(function() {
+        if ($(this).attr('result') != "PASS") {
+            result = false;
+        }
+    });
+    return result;
+}
+
 function uninstall(val) {
     installedId.shift();
     var totalBar = Math.floor((allId.length - installedId.length - 1) / allId.length * 100);
index 16d840a467be83246cce8c30f6edbede332528fc..c1bccb5625815e5662ded1e48f96e4f66f1bfbaa 100644 (file)
@@ -128,7 +128,7 @@ function install() {
     }
 
     var onError = function (err) {
-        console.log("Error occured on installation : " + err.message);
+        alert("Error occured on installation : " + err.message);
         $.mobile.hidePageLoadingMsg();
     }
 
@@ -157,7 +157,7 @@ function uninstall(package_id) {
     }
 
     var onError = function (err) {
-        console.log("Error occured on installation : " + err.name);
+        alert("Error occured on uninstallation : " + err.name);
         $.mobile.hidePageLoadingMsg();
     }