From: yxu66x Date: Fri, 18 Oct 2013 08:38:40 +0000 (+0800) Subject: Fix TTS-2075 by removing LocationNetwork TC as it's unsupported feature in Tizen X-Git-Tag: 2.2.1_release~27 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c83361814c85535c1831a80f59cb67bb21b424dd;p=test%2Ftct%2Fweb%2Fbehavior.git Fix TTS-2075 by removing LocationNetwork TC as it's unsupported feature in Tizen Signed-off-by: yxu66x --- diff --git a/tests.full.xml b/tests.full.xml index 86f206a..0437a65 100644 --- a/tests.full.xml +++ b/tests.full.xml @@ -136,19 +136,6 @@ - - - - - - - 0 - 0 - - - - - diff --git a/tests.xml b/tests.xml index 601bde1..d8725e7 100644 --- a/tests.xml +++ b/tests.xml @@ -125,18 +125,6 @@ - - - - - - 0 - 0 - - - - - diff --git a/tests/LocationNetwork/css/style.css b/tests/LocationNetwork/css/style.css deleted file mode 100755 index 7480c0b..0000000 --- a/tests/LocationNetwork/css/style.css +++ /dev/null @@ -1,73 +0,0 @@ -/* -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: - Xin, liu - -*/ - -.position_font { - color: #3399FF; - font-size: 20px; -} - -.attribute_show { - margin: 2px; - margin-left: 5px; - margin-right: 5px; - height: 30px; - line-height:30px; -} - -.online_show { - margin: 1px; - height: 40px; - border: #666666 solid thin; - background-color: green; - color: white; -} - -.offline_show { - margin:1px; - height: 40px; - border: #666666 solid thin; - background-color: red; - color: white; -} - -.p_desc { - font-size: 12px; - font-weight: normal; - display: block; - margin: -.5em 0 .6em; -} - -#map_canvas { - background-color: #CCC; - height: 330px; - line-height:330px; - margin: 5px auto; -} diff --git a/tests/LocationNetwork/index.html b/tests/LocationNetwork/index.html deleted file mode 100755 index 39373d1..0000000 --- a/tests/LocationNetwork/index.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - - - - - - - - - - - -
-

-
-
-
-
-
-
Latitude:
-
Longitude:
-
-
-
-

* Make sure the networking is enabled, and the GPS is disabled.

-
-
-
- - - diff --git a/tests/LocationNetwork/js/main.js b/tests/LocationNetwork/js/main.js deleted file mode 100755 index a87d581..0000000 --- a/tests/LocationNetwork/js/main.js +++ /dev/null @@ -1,114 +0,0 @@ -/* -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: - Liu, Xin - -*/ - -function initialize() { - $.mobile.showPageLoadingMsg(); - var connection = navigator.connection || navigator.mozConnection || navigator.webkitConnection; - if(connection==undefined){ - jQuery("#offLine").html("The navigator.connection is not supported"); - $.mobile.hidePageLoadingMsg(); - $("#offLine").show(); - $("#onLine").hide(); - printPosition("n/a","n/a"); - jQuery("#map_canvas").html("No data"); - } - jQuery("#onLine").html("The current bandwidth is "+connection.bandwidth+" MB/s."); - jQuery("#offLine").html("The current bandwidth is "+connection.bandwidth+" MB/s. Please check the network connection."); - //browser state - if(navigator.onLine){ - $("#offLine").hide(); - $("#onLine").show(); - }else { - $.mobile.hidePageLoadingMsg(); - $("#offLine").show(); - $("#onLine").hide(); - printPosition("n/a","n/a"); - jQuery("#map_canvas").html("No data"); - } - - window.ononline = function () { - jQuery("#onLine").html("The current bandwidth is "+connection.bandwidth+" MB/s."); - $("#offLine").hide(); - $("#onLine").show(); - }; - - window.onoffline = function () { - jQuery("#offLine").html("The current bandwidth is "+connection.bandwidth+" MB/s. Please check the network connection."); - $("#offLine").show(); - $("#onLine").hide(); - }; - - var location; - var geoSupportFlag = new Boolean(); - //defalut location - var nanjing = new google.maps.LatLng(32.060255,118.796877); - var newyork = new google.maps.LatLng(40.69847032728747, -73.9514422416687); - - var myOptions = { - zoom: 12, - center: newyork, - mapTypeId: google.maps.MapTypeId.ROADMAP - }; - - if(navigator.geolocation) { - geoSupportFlag = true; - navigator.geolocation.getCurrentPosition(function(position) { - $.mobile.hidePageLoadingMsg(); - var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); - location = new google.maps.LatLng(position.coords.latitude,position.coords.longitude); - map.setCenter(location); - printPosition(position.coords.latitude, position.coords.longitude); - }, function() { - handleNoGeolocation(geoSupportFlag); - }); - } else { - $.mobile.hidePageLoadingMsg(); - geoSupportFlag = false; - handleNoGeolocation(geoSupportFlag); - } - - function handleNoGeolocation(errorFlag) { - $.mobile.hidePageLoadingMsg(); - if (errorFlag == true) { - jQuery("#errormessage").html("Geolocation service failed."); - jQuery("#map_canvas").html("No data"); - } else { - jQuery("#errormessage").html("Not Support Geolocation."); - jQuery("#map_canvas").html("No data"); - } - } -} - -function printPosition(latitude, longitude) { - jQuery("#latitudeDiv").html("Latitude: " + latitude); - jQuery("#longitudeDiv").html("Longitude: " + longitude); -} -