Added 2 npruntime cases to behavior tool
authoryunfeix.hao <yunfeix.hao@intel.com>
Thu, 15 Aug 2013 06:05:32 +0000 (14:05 +0800)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Thu, 15 Aug 2013 08:16:25 +0000 (08:16 +0000)
Change-Id: I927989d91ce8cce467cb9043936f6c0793676351
Signed-off-by: yunfeix.hao <yunfeix.hao@intel.com>
tests/PackageManagement/index.html
tests/PackageManagement/js/main.js
tests/PackageManagement/res/npruntime-all-on-arm.html [new file with mode: 0644]
tests/PackageManagement/res/npruntime-all-on-arm.wgt [new file with mode: 0644]
tests/PackageManagement/res/npruntime-arm-on-x86.html [new file with mode: 0644]
tests/PackageManagement/res/npruntime-arm-on-x86.wgt [new file with mode: 0644]

index 60dde52..1977dd7 100644 (file)
@@ -72,6 +72,16 @@ Authors:
                         <h2>PKManagement_OfflineUpdate_CloseUpdate</h2>
                     </a>
                 </li>
+                <li id="npruntime-all-on-arm">
+                    <a href="javascript:goToApp('res/npruntime-all-on-arm.html')" data-transition="slide" style="">
+                        <h2>npruntime-all-on-arm</h2>
+                    </a>
+                </li>
+                <li id="npruntime-arm-on-x86">
+                    <a href="javascript:goToApp('res/npruntime-arm-on-x86.html')" data-transition="slide" style="">
+                        <h2>npruntime-arm-on-x86</h2>
+                    </a>
+                </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>
index 53478ad..661f4eb 100644 (file)
@@ -32,7 +32,9 @@ var allId=new Array('wrt1wvt006',
                     'wrt1smt007',
                     'wrt1smt008',
                     'wrt1smt009',
-                    'wrt1smt010');
+                    'wrt1smt010',
+                    'UZmPMhuMeO',
+                    'ZkMSjQuYt8');
 
 var installedId = new Array();
 
diff --git a/tests/PackageManagement/res/npruntime-all-on-arm.html b/tests/PackageManagement/res/npruntime-all-on-arm.html
new file mode 100644 (file)
index 0000000..9ba61cc
--- /dev/null
@@ -0,0 +1,73 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Feng, GangX <gangx.feng@intel.com>
+
+-->
+<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>
+  </head>
+  <body>
+    <div data-role="page" id="npruntime-all-on-arm">
+        <div id="content">
+            <div>
+                <input type="hidden" id="wgt_name" value="npruntime-all-on-arm"/>
+                <input type="hidden" id="app_id"  value="ZkMSjQuYt8.npruntimeAllOnArm"/>
+                <input type="hidden" id="package_id" value="ZkMSjQuYt8"/>
+            </div>
+            <ul data-role="listview">
+                <li data-role="list-divider">Package Launch</li>
+                <li>
+                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Package Launch</div>
+                </li>
+                <li data-role="list-divider">Package Uninstall</li>
+                <li>
+                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Package Uninstall</div>
+                </li>
+                <li>
+                    <div id="d">
+                      <div id="text-div">
+                        <div id="p">
+                          Please click Package Launch button to launch the widget. Touch the button "Get the multiplication time". If this is a arm device, the case will pass if Javascript and NPRuntime multiplication time displayed above the button "Get the multiplication time". If this is a x86 device, the case will pass if a popup displayed on the screen.
+                        </div>
+                      </div>
+                    </div>
+                </li>
+            </ul>
+        </div>
+        <div data-role="footer" data-position="fixed" data-tap-toggle="false">
+        </div>
+    </div>
+  </body>
+</html>
diff --git a/tests/PackageManagement/res/npruntime-all-on-arm.wgt b/tests/PackageManagement/res/npruntime-all-on-arm.wgt
new file mode 100644 (file)
index 0000000..7782748
Binary files /dev/null and b/tests/PackageManagement/res/npruntime-all-on-arm.wgt differ
diff --git a/tests/PackageManagement/res/npruntime-arm-on-x86.html b/tests/PackageManagement/res/npruntime-arm-on-x86.html
new file mode 100644 (file)
index 0000000..01ad1a3
--- /dev/null
@@ -0,0 +1,73 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Feng, GangX <gangx.feng@intel.com>
+
+-->
+<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>
+  </head>
+  <body>
+    <div data-role="page" id="npruntime-arm-on-x86">
+        <div id="content">
+            <div>
+                <input type="hidden" id="wgt_name" value="npruntime-arm-on-x86"/>
+                <input type="hidden" id="app_id"  value="UZmPMhuMeO.npruntimeArmOnX86"/>
+                <input type="hidden" id="package_id" value="UZmPMhuMeO"/>
+            </div>
+            <ul data-role="listview">
+                <li data-role="list-divider" id="launch_divider">Package Launch</li>
+                <li>
+                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Package Launch</div>
+                </li>
+                <li data-role="list-divider">Package Uninstall</li>
+                <li>
+                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Package Uninstall</div>
+                </li>
+                <li>
+                    <div id="d">
+                      <div id="text-div">
+                        <div id="p">
+                          Please click Package Launch button to launch the widget. Touch the button "Get the multiplication time". If this is a x86 device, the case will pass if Javascript and NPRuntime multiplication time displayed above the button "Get the multiplication time". If this is a arm device, the case will pass if a popup displayed on the screen.
+                        </div>
+                      </div>
+                    </div>
+                </li>
+            </ul>
+        </div>
+        <div data-role="footer" data-position="fixed" data-tap-toggle="false">
+        </div>
+    </div>
+  </body>
+</html>
diff --git a/tests/PackageManagement/res/npruntime-arm-on-x86.wgt b/tests/PackageManagement/res/npruntime-arm-on-x86.wgt
new file mode 100644 (file)
index 0000000..36703e2
Binary files /dev/null and b/tests/PackageManagement/res/npruntime-arm-on-x86.wgt differ