Add WRTSupport module to behavior tool
authorFeng Gang <gangx.feng@intel.com>
Thu, 1 Aug 2013 02:17:51 +0000 (19:17 -0700)
committerjiehua.xiong <jiehuax.xiong@intel.com>
Thu, 1 Aug 2013 07:52:23 +0000 (15:52 +0800)
Change-Id: I244a6cd8b7e0dbb581c56271bd9d0aaedbc49a49
Signed-off-by: Feng Gang <gangx.feng@intel.com>
20 files changed:
tests.xml
tests/WRTSupport/index.html [new file with mode: 0644]
tests/WRTSupport/js/main.js [new file with mode: 0644]
tests/WRTSupport/js/tests.js [new file with mode: 0644]
tests/WRTSupport/res/lifecycle-unload-event.html [new file with mode: 0644]
tests/WRTSupport/res/lifecycle-unload-event.wgt [new file with mode: 0644]
tests/WRTSupport/res/other-localization.html [new file with mode: 0644]
tests/WRTSupport/res/other-localization.wgt [new file with mode: 0644]
tests/WRTSupport/res/other-uri-schemes-mailto.html [new file with mode: 0644]
tests/WRTSupport/res/other-uri-schemes-mailto.wgt [new file with mode: 0644]
tests/WRTSupport/res/other-uri-schemes.html [new file with mode: 0644]
tests/WRTSupport/res/other-uri-schemes.wgt [new file with mode: 0644]
tests/WRTSupport/res/other-widget-access-policy.html [new file with mode: 0644]
tests/WRTSupport/res/other-widget-access-policy.wgt [new file with mode: 0644]
tests/WRTSupport/res/url-access-multi-all.html [new file with mode: 0644]
tests/WRTSupport/res/url-access-multi-all.wgt [new file with mode: 0644]
tests/WRTSupport/res/url-access-multi-subdomains.html [new file with mode: 0644]
tests/WRTSupport/res/url-access-multi-subdomains.wgt [new file with mode: 0644]
tests/WRTSupport/res/url-access-multi.html [new file with mode: 0644]
tests/WRTSupport/res/url-access-multi.wgt [new file with mode: 0644]

index c82dda5..55d28b3 100644 (file)
--- a/tests.xml
+++ b/tests.xml
         <test_script_entry test_script_expected_result="0"></test_script_entry>
       </description>
       </testcase>
+      <testcase purpose="WRTSupport Test" type="functional_positive" status="approved" component="behavior" execution_type="manual" priority="P0" id="WRTSupport">
+      <description>
+        <pre_condition />
+        <post_condition />
+        <steps>
+          <step order="1">
+            <step_desc>0</step_desc>
+            <expected>0</expected>
+          </step>
+        </steps>
+        <test_script_entry test_script_expected_result="0"></test_script_entry>
+      </description>
+      </testcase>
   </set>
 </suite>
 </test_definition>
diff --git a/tests/WRTSupport/index.html b/tests/WRTSupport/index.html
new file mode 100644 (file)
index 0000000..8c25ec6
--- /dev/null
@@ -0,0 +1,114 @@
+<!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>
+    <script src="js/main.js"></script>
+  </head>
+  <body>
+    <div data-role="page" id="main">
+        <div data-role="header" data-position="fixed" data-tap-toggle="false">
+            <h1 id="main_page_title"></h1>
+        </div>
+        <div id="content">
+            <ul data-role="listview" id="cspList" data-divider-theme="b" data-inset="true">
+                <li data-role="list-divider" role="heading">Test localization</li>
+                <li id="other-localization">
+                    <a href="javascript:goToApp('res/other-localization.html')" data-transition="slide" style="">
+                        <h2>other-localization</h2>
+                    </a>
+                </li>
+                <li data-role="list-divider" role="heading">Test unload event</li>
+                <li id="lifecycle-unload-event">
+                    <a href="javascript:goToApp('res/lifecycle-unload-event.html')" data-transition="slide" style="">
+                        <h2>lifecycle-unload-event</h2>
+                    </a>
+                </li>
+                <li data-role="list-divider" role="heading">Test access policy</li>
+                <li id="other-widget-access-policy">
+                    <a href="javascript:goToApp('res/other-widget-access-policy.html')" data-transition="slide" style="">
+                        <h2>other-widget-access-policy</h2>
+                    </a>
+                </li>
+                <li data-role="list-divider" role="heading">Test uri schemes</li>
+                <li id="other-uri-schemes">
+                    <a href="javascript:goToApp('res/other-uri-schemes.html')" data-transition="slide" style="">
+                        <h2>other-uri-schemes</h2>
+                    </a>
+                </li>
+                <li id="other-uri-schemes-mailto">
+                    <a href="javascript:goToApp('res/other-uri-schemes-mailto.html')" data-transition="slide" style="">
+                        <h2>other-uri-schemes-mailto</h2>
+                    </a>
+                </li>
+                <li data-role="list-divider" role="heading">Test access multiple</li>
+                <li id="url-access-multi">
+                    <a href="javascript:goToApp('res/url-access-multi.html')" data-transition="slide" style="">
+                        <h2>url-access-multi</h2>
+                    </a>
+                </li>
+                <li id="url-access-multi-all">
+                    <a href="javascript:goToApp('res/url-access-multi-all.html')" data-transition="slide" style="">
+                        <h2>url-access-multi-all</h2>
+                    </a>
+                </li>
+                <li id="url-access-multi-subdomains">
+                    <a href="javascript:goToApp('res/url-access-multi-subdomains.html')" data-transition="slide" style="">
+                        <h2>url-access-multi-subdomains</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>
+                </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%">
+            <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:// <mailto:>  and support localization funxtionality.</p>
+            <p>Expected Result: </p>
+            <p>This test PASS only if all sub tests passed.</p>
+          </font>
+        </div>
+    </div>
+  </body>
+</html>
diff --git a/tests/WRTSupport/js/main.js b/tests/WRTSupport/js/main.js
new file mode 100644 (file)
index 0000000..5f12b02
--- /dev/null
@@ -0,0 +1,126 @@
+/*
+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.sandbox
+* 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>
+
+*/
+var allId=new Array('wrt3lue021',
+                    'wrt3olo022',
+                    'wrt3ous027',
+                    'wrt3ous125',
+                    'wrt3owa028',
+                    'wrt3uam046',
+                    'wrt3uam047',
+                    'wrt3uam048');
+
+var installedId = new Array();
+
+$(document).delegate("#main", "pageinit", function() {
+    $("#wgtClean").bind("vclick", function() {
+        showTotalBar();
+    });
+});
+
+function showTotalBar(){
+    $.each(allId,function(key,val){
+        try {
+            var packageInfo = tizen.package.getPackageInfo(val);
+            console.log("Current Package ID : " + packageInfo.id);
+        } catch (e) {
+            //alert("Exception: " + e.message);
+        }
+        if(packageInfo != "" && packageInfo != undefined){
+            installedId.push(val);
+        }
+    });
+    checkInstalledPackage();
+}
+
+function checkInstalledPackage(){
+    if(installedId.length > 0){
+        uninstall(installedId[0]);
+    } else {
+        $.mobile.loading('hide');
+        alert("All widgets is uninstalled!");
+    }
+}
+
+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.loading('show', {
+                    text: 'Uninstalling...' + totalBar + '%',
+                    textVisible: true,
+                    theme: 'a',
+                    textonly: false,
+                    html: ""
+                });
+            },
+            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);
+    }
+
+    try {
+        tizen.package.uninstall(val, onUninstallationSuccess);
+    } catch (e) {
+        alert("Exception: " + e.name);
+    }
+}
+
+function goToApp(path) {
+    window.open(path);
+}
+
+function initTests() {
+    window.addEventListener('message', function(e) {
+        console.log(e.data);
+        var jsonData = eval("(" + e.data + ")");
+        if(jsonData.length > 0){
+            if(jsonData[0].testname != "" && jsonData[0].result == "PASS"){
+                $("#"+jsonData[0].testname).find("h2").css("color","green");
+            } else {
+                $("#"+jsonData[0].testname).find("h2").css("color","red");
+            }
+        }
+    }, false);
+}
+
+window.addEventListener('load', initTests, false);
diff --git a/tests/WRTSupport/js/tests.js b/tests/WRTSupport/js/tests.js
new file mode 100644 (file)
index 0000000..ce85fd1
--- /dev/null
@@ -0,0 +1,252 @@
+/*
+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.sandbox
+* 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>
+
+*/
+
+var installUrl;
+var wgt_name;
+var app_id;
+var package_id;
+
+$(document).ready(function(){
+    wgt_name = $("#wgt_name").val();
+    app_id = $("#app_id").val();
+    package_id = $("#package_id").val();
+
+    $("#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();
+});
+
+var packageEventCallback = {
+    oninstalled: function(packageInfo) {
+        $.mobile.loading('hide');
+        $('#launch').removeClass("ui-disabled");
+        alert("The package " + packageInfo.name + " is installed");
+    },
+    onupdated: function(packageInfo) {
+        $.mobile.loading('hide');
+        $('#launch').removeClass("ui-disabled");
+        alert("The package " + packageInfo.name + " is updated");
+    },
+    onuninstalled: function(packageId) {
+        $.mobile.loading('hide');
+        $('#uninstall').addClass("ui-disabled");
+        $('#launch').addClass("ui-disabled");
+        alert("The package " + packageId + " is uninstalled");
+    }
+}
+
+function fileURI(wgt_name) {
+    var documentsDir;
+    function onsuccess(files) {
+        for (var i = 0; i < files.length; i++)
+        {
+            if(files[i].name == wgt_name+".wgt")
+            {
+                var Url1 = files[i].toURI();
+                installUrl = Url1.replace("file:///", "/");
+                install();
+            }
+        }
+    }
+
+    function onerror(error) {
+        alert("The error " + error.message + " occurred when listing the files in the selected folder");
+    }
+
+    tizen.filesystem.resolve(
+            'documents',
+            function(dir){
+                documentsDir = dir;
+                dir.listFiles(onsuccess, onerror);
+            }, function(e) {
+                alert("Error" + e.message);
+            }, "r"
+    );
+}
+
+function install() {
+    var onInstallationSuccess = {
+            onprogress: function(packageId, percentage)
+            {
+                console.log("On installation(" + packageId + "): progress(" + percentage + ")");
+                $.mobile.loading('show', {
+                    text: 'Installing...' + percentage + '%',
+                    textVisible: true,
+                    theme: 'a',
+                    textonly: false,
+                    html: ""
+                });
+            },
+            oncomplete: function(packageId)
+            {
+                console.log("Installation(" + packageId + ") Complete");
+            }
+    }
+
+    var onError = function (err) {
+        alert("Error occured on installation : " + err.message);
+    }
+
+    try {
+        tizen.package.install(installUrl, onInstallationSuccess, onError);
+    } catch (e) {
+        alert("Exception: " + e.name);
+    }
+}
+
+function uninstall(package_id) {
+    var onUninstallationSuccess = {
+
+            onprogress: function(packageId, percentage)
+            {
+                console.log("On uninstallation(" + packageId + "): progress(" + percentage + ")");
+                $.mobile.loading('show', {
+                    text: 'Uninstalling...' + percentage + '%',
+                    textVisible: true,
+                    theme: 'a',
+                    textonly: false,
+                    html: ""
+                });
+            },
+            oncomplete: function(packageId)
+            {
+                console.log("Uninstallation(" + packageId + ") Complete");
+            }
+    }
+
+    var onError = function (err) {
+        alert("Error occured on installation : " + err.name);
+    }
+
+    try {
+        tizen.package.uninstall(package_id, onUninstallationSuccess);
+    } catch (e) {
+        alert("Exception: " + e.name);
+    }
+}
+
+function launch(app_id) {
+    function onSuccess() {
+        console.log(id + " launched successfully!");
+    }
+
+    function onError(err) {
+        alert("launch failed : " + err.message);
+    }
+
+    try {
+        tizen.application.launch(app_id, onSuccess, onError);
+    } catch (exc) {
+        alert("launch exc:" + exc.message);
+    }
+}
+
+function packagePre(wgt_name) {
+    
+    var documentsDir;
+    function onsuccess(files) {
+        for (var i = 0; i < files.length; i++)
+        {
+            if(files[i].name == wgt_name+".wgt")
+            {
+        documentsDir.copyTo(
+            files[i].fullPath,
+            "documents/"+wgt_name+".wgt",
+            true,
+            function() {
+                console.log(wgt_name+" Precondition Success!");
+            });
+            }
+        }
+        fileURI(wgt_name);
+    }
+
+    function onerror(error) {
+        alert("The error " + error.message + " occurred when listing the files in the selected folder");
+    }
+
+    tizen.filesystem.resolve(
+        'wgt-package/tests/WRTSupport/res/',
+        function(dir){
+            documentsDir = dir;
+            dir.listFiles(onsuccess, onerror);
+        }, function(e) {
+            alert("Error" + e.message);
+        }, "r"
+    );
+}
+
+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=\"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');
+}
+
+function EnablePassButton(){
+    $('#pass_button').removeClass("ui-disabled");
+}
+
+function DisablePassButton(){
+    $('#pass_button').addClass("ui-disabled");
+}
diff --git a/tests/WRTSupport/res/lifecycle-unload-event.html b/tests/WRTSupport/res/lifecycle-unload-event.html
new file mode 100644 (file)
index 0000000..cf66eb3
--- /dev/null
@@ -0,0 +1,74 @@
+<!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="lifecycle-unload-event">
+        <div id="content">
+            <div>
+                <input type="hidden" id="wgt_name" value="lifecycle-unload-event"/>
+                <input type="hidden" id="app_id"  value="wrt3lue021.LifecycleUnloadEvent"/>
+                <input type="hidden" id="package_id" value="wrt3lue021"/>
+            </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 the Package Launch to launch the widget. The case will pass if
+a dialog with "unload event success!" pops up on screen when click the run button.
+                        </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/WRTSupport/res/lifecycle-unload-event.wgt b/tests/WRTSupport/res/lifecycle-unload-event.wgt
new file mode 100644 (file)
index 0000000..ae6f368
Binary files /dev/null and b/tests/WRTSupport/res/lifecycle-unload-event.wgt differ
diff --git a/tests/WRTSupport/res/other-localization.html b/tests/WRTSupport/res/other-localization.html
new file mode 100644 (file)
index 0000000..c8a52aa
--- /dev/null
@@ -0,0 +1,74 @@
+<!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="other-localization">
+        <div id="content">
+            <div>
+                <input type="hidden" id="wgt_name" value="other-localization"/>
+                <input type="hidden" id="app_id"  value="wrt3olo022.OtherLocalization"/>
+                <input type="hidden" id="package_id" value="wrt3olo022"/>
+            </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">
+                          Make sure the local language is English(US)
+Please check the installed widget's name on the device idle screen, it should be "english-ol". Please click the Package Launch to launch the widget. Click the button "description", a dialog with "english description." should pop up on the screen. Close the widget, then change the device language to "Korean", launch the widget again, then click the button "description", a dialog with "korean description."should pop up on the screen.  Close the widget, then change the device language to any language besides  Korean and English then launch the widget and click the button "description", a dialog with  "default description." should pop up 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/WRTSupport/res/other-localization.wgt b/tests/WRTSupport/res/other-localization.wgt
new file mode 100644 (file)
index 0000000..fadcbae
Binary files /dev/null and b/tests/WRTSupport/res/other-localization.wgt differ
diff --git a/tests/WRTSupport/res/other-uri-schemes-mailto.html b/tests/WRTSupport/res/other-uri-schemes-mailto.html
new file mode 100644 (file)
index 0000000..c7acf9c
--- /dev/null
@@ -0,0 +1,75 @@
+<!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="other-uri-schemes-mailto">
+        <div id="content">
+            <div>
+                <input type="hidden" id="wgt_name" value="other-uri-schemes-mailto"/>
+                <input type="hidden" id="app_id"  value="wrt3ous125.OtherUriSchemesMailto"/>
+                <input type="hidden" id="package_id" value="wrt3ous125"/>
+            </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 the Package Launch to launch the widget. The case will pass if 
+The email with its correct contents(cc account, bcc account, body content, 
+groups account, subject content) are displayed on screen when click "send email" button on the screen and the telephone call is displayed on screen when click "call" button 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/WRTSupport/res/other-uri-schemes-mailto.wgt b/tests/WRTSupport/res/other-uri-schemes-mailto.wgt
new file mode 100644 (file)
index 0000000..b6346c6
Binary files /dev/null and b/tests/WRTSupport/res/other-uri-schemes-mailto.wgt differ
diff --git a/tests/WRTSupport/res/other-uri-schemes.html b/tests/WRTSupport/res/other-uri-schemes.html
new file mode 100644 (file)
index 0000000..00d66ff
--- /dev/null
@@ -0,0 +1,74 @@
+<!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="other-uri-schemes">
+        <div id="content">
+            <div>
+                <input type="hidden" id="wgt_name" value="other-uri-schemes"/>
+                <input type="hidden" id="app_id"  value="wrt3ous027.otherurischemes"/>
+                <input type="hidden" id="package_id" value="wrt3ous027"/>
+            </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 the Package Launch to launch the widget. The case will pass if
+the sms module, mms module and email module of the device are requested when click the links "sms", "mmsto" and "mailto".
+                        </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/WRTSupport/res/other-uri-schemes.wgt b/tests/WRTSupport/res/other-uri-schemes.wgt
new file mode 100644 (file)
index 0000000..33cc532
Binary files /dev/null and b/tests/WRTSupport/res/other-uri-schemes.wgt differ
diff --git a/tests/WRTSupport/res/other-widget-access-policy.html b/tests/WRTSupport/res/other-widget-access-policy.html
new file mode 100644 (file)
index 0000000..de94d72
--- /dev/null
@@ -0,0 +1,74 @@
+<!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="other-widget-access-policy">
+        <div id="content">
+            <div>
+                <input type="hidden" id="wgt_name" value="other-widget-access-policy"/>
+                <input type="hidden" id="app_id"  value="wrt3owa028.otherwidgetaccesspolicy"/>
+                <input type="hidden" id="package_id" value="wrt3owa028"/>
+            </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">
+                          Make sure the device can connect to the internet.
+Please click the Package Launch to launch the widget. The case will pass if the home page of www.baidu.com is opened successfully in the application when click the link of "www.baidu.com", then close the widget and launch again, the home page of www.163.com is not opened in the application when click the link of "www.163.com", it is opened in the default browser of the device.
+                        </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/WRTSupport/res/other-widget-access-policy.wgt b/tests/WRTSupport/res/other-widget-access-policy.wgt
new file mode 100644 (file)
index 0000000..ddf19a2
Binary files /dev/null and b/tests/WRTSupport/res/other-widget-access-policy.wgt differ
diff --git a/tests/WRTSupport/res/url-access-multi-all.html b/tests/WRTSupport/res/url-access-multi-all.html
new file mode 100644 (file)
index 0000000..9d892d5
--- /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="url-access-multi-all">
+        <div id="content">
+            <div>
+                <input type="hidden" id="wgt_name" value="url-access-multi-all"/>
+                <input type="hidden" id="app_id"  value="wrt3uam047.UrlAccessMultiAll"/>
+                <input type="hidden" id="package_id" value="wrt3uam047"/>
+            </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">
+                          Make sure the device can connect to the internet. Please click the Package Launch to launch the widget. The web site "http://www.baidu.com" is opened successfully in this widget when click the link "http://www.baidu.com" on the page, then close the widget and launch again, the web site "http://www.neusoft.com" is opened successfully in this widget when click the link "http://www.neusoft.com" on the page, then close the widget and launch again, the web site "http://www.163.com" is opened successfully in this widget when click the link "http://www.163.com" on the page.
+                        </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/WRTSupport/res/url-access-multi-all.wgt b/tests/WRTSupport/res/url-access-multi-all.wgt
new file mode 100644 (file)
index 0000000..58d3567
Binary files /dev/null and b/tests/WRTSupport/res/url-access-multi-all.wgt differ
diff --git a/tests/WRTSupport/res/url-access-multi-subdomains.html b/tests/WRTSupport/res/url-access-multi-subdomains.html
new file mode 100644 (file)
index 0000000..2de03b5
--- /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="url-access-multi-subdomains">
+        <div id="content">
+            <div>
+                <input type="hidden" id="wgt_name" value="url-access-multi-subdomains"/>
+                <input type="hidden" id="app_id"  value="wrt3uam048.UrlAccessMultiSubdomains"/>
+                <input type="hidden" id="package_id" value="wrt3uam048"/>
+            </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 data-role="none" id="d" style="height:500px;">
+                      <div id="text-div">
+                        <div id="p">
+                          Make sure the device can connect to the internet. Please click the Package Launch to launch the widget. The web site "http://www.baidu.com" is opened successfully in this widget when click the link "http://www.baidu.com", then close and launch again, the web site "http://www.baidu.com/gaoji/preferences.html" is opened successfully in this widget when click the link "http://www.baidu.com/gaoji/preferences.html", then close and launch again, the web site "http://www.neusoft.com" is opened successfully in this widget when click the link "http://www.neusoft.com", then close and launch again, the web site "http://www.neusoft.com/cn" is opened successfully in this widget when click the link "http://www.neusoft.com/cn".
+                        </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/WRTSupport/res/url-access-multi-subdomains.wgt b/tests/WRTSupport/res/url-access-multi-subdomains.wgt
new file mode 100644 (file)
index 0000000..c12f464
Binary files /dev/null and b/tests/WRTSupport/res/url-access-multi-subdomains.wgt differ
diff --git a/tests/WRTSupport/res/url-access-multi.html b/tests/WRTSupport/res/url-access-multi.html
new file mode 100644 (file)
index 0000000..d0fde91
--- /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="url-access-multi">
+        <div id="content">
+            <div>
+                <input type="hidden" id="wgt_name" value="url-access-multi"/>
+                <input type="hidden" id="app_id"  value="wrt3uam046.UrlAccessMulti"/>
+                <input type="hidden" id="package_id" value="wrt3uam046"/>
+            </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">
+                          Make sure the device can connect to the internet. Please click the Package Launch to launch the widget. The web site "http://www.baidu.com" is opened successfully in this widget when click the link "http://www.baidu.com" on the page, then close the widget and launch again, the web site "http://www.neusoft.com" is opened successfully in this widget when click the link "http://www.neusoft.com" on the page, then close the widget and launch again, the web site "http://www.163.com" is not opened in this widget when click the link "http://www.163.com" on the page, it is opened in the browser of the device.
+                        </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/WRTSupport/res/url-access-multi.wgt b/tests/WRTSupport/res/url-access-multi.wgt
new file mode 100644 (file)
index 0000000..8947bf3
Binary files /dev/null and b/tests/WRTSupport/res/url-access-multi.wgt differ