From: zhongyuan Date: Fri, 21 Sep 2018 00:44:15 +0000 (+0800) Subject: [all][all][TFIVE-13868, improve ui layout for wearable circle manual test] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F13%2F189813%2F1;p=test%2Ftct%2Fweb%2Fapi.git [all][all][TFIVE-13868, improve ui layout for wearable circle manual test] Change-Id: I391d80d59e02029dc4a9fb75e900536766661e6c --- diff --git a/common/tct-2dtransforms-css3-tests/webrunner/testrunner.js b/common/tct-2dtransforms-css3-tests/webrunner/testrunner.js index db3efb87d..ba385d3f4 100755 --- a/common/tct-2dtransforms-css3-tests/webrunner/testrunner.js +++ b/common/tct-2dtransforms-css3-tests/webrunner/testrunner.js @@ -29,27 +29,23 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } -}); + } + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } +}); var STUB_PORT = ""; var RESOURCE_DIR; diff --git a/common/tct-3dtransforms-css3-tests/webrunner/testrunner.js b/common/tct-3dtransforms-css3-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-3dtransforms-css3-tests/webrunner/testrunner.js +++ b/common/tct-3dtransforms-css3-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-ResponsiveImage-w3c-tests/webrunner/testrunner.js b/common/tct-ResponsiveImage-w3c-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-ResponsiveImage-w3c-tests/webrunner/testrunner.js +++ b/common/tct-ResponsiveImage-w3c-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-account-tizen-tests/webrunner/testrunner.js b/common/tct-account-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-account-tizen-tests/webrunner/testrunner.js +++ b/common/tct-account-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-alarm-tizen-tests/webrunner/testrunner.js b/common/tct-alarm-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-alarm-tizen-tests/webrunner/testrunner.js +++ b/common/tct-alarm-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-animations-css3-tests/webrunner/testrunner.js b/common/tct-animations-css3-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-animations-css3-tests/webrunner/testrunner.js +++ b/common/tct-animations-css3-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-animationtiming-w3c-tests/webrunner/testrunner.js b/common/tct-animationtiming-w3c-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-animationtiming-w3c-tests/webrunner/testrunner.js +++ b/common/tct-animationtiming-w3c-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-appcache-html5-tests/webrunner/testrunner.js b/common/tct-appcache-html5-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-appcache-html5-tests/webrunner/testrunner.js +++ b/common/tct-appcache-html5-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-appcontrol-tizen-tests/webrunner/testrunner.js b/common/tct-appcontrol-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-appcontrol-tizen-tests/webrunner/testrunner.js +++ b/common/tct-appcontrol-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-application-tizen-tests/webrunner/testrunner.js b/common/tct-application-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-application-tizen-tests/webrunner/testrunner.js +++ b/common/tct-application-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-archive-tizen-tests/webrunner/testrunner.js b/common/tct-archive-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-archive-tizen-tests/webrunner/testrunner.js +++ b/common/tct-archive-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-audio-html5-tests/webrunner/testrunner.js b/common/tct-audio-html5-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-audio-html5-tests/webrunner/testrunner.js +++ b/common/tct-audio-html5-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-backgrounds-css3-tests/webrunner/testrunner.js b/common/tct-backgrounds-css3-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-backgrounds-css3-tests/webrunner/testrunner.js +++ b/common/tct-backgrounds-css3-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-badge-tizen-tests/webrunner/testrunner.js b/common/tct-badge-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-badge-tizen-tests/webrunner/testrunner.js +++ b/common/tct-badge-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-batterystatus-w3c-tests/webrunner/testrunner.js b/common/tct-batterystatus-w3c-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-batterystatus-w3c-tests/webrunner/testrunner.js +++ b/common/tct-batterystatus-w3c-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-beacon-w3c-tests/webrunner/testrunner.js b/common/tct-beacon-w3c-tests/webrunner/testrunner.js index 114c8f165..5d6575a6c 100755 --- a/common/tct-beacon-w3c-tests/webrunner/testrunner.js +++ b/common/tct-beacon-w3c-tests/webrunner/testrunner.js @@ -29,27 +29,23 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } -}); + } + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } +}); var STUB_PORT = ""; var RESOURCE_DIR; $.ajax({ diff --git a/common/tct-bluetooth-tizen-tests/webrunner/testrunner.js b/common/tct-bluetooth-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-bluetooth-tizen-tests/webrunner/testrunner.js +++ b/common/tct-bluetooth-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-bookmark-tizen-tests/webrunner/testrunner.js b/common/tct-bookmark-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-bookmark-tizen-tests/webrunner/testrunner.js +++ b/common/tct-bookmark-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-browserstate-html5-tests/webrunner/testrunner.js b/common/tct-browserstate-html5-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-browserstate-html5-tests/webrunner/testrunner.js +++ b/common/tct-browserstate-html5-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-calendar-tizen-tests/webrunner/testrunner.js b/common/tct-calendar-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-calendar-tizen-tests/webrunner/testrunner.js +++ b/common/tct-calendar-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-callhistory-tizen-tests/webrunner/testrunner.js b/common/tct-callhistory-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-callhistory-tizen-tests/webrunner/testrunner.js +++ b/common/tct-callhistory-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-canvas-html5-tests/webrunner/testrunner.js b/common/tct-canvas-html5-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-canvas-html5-tests/webrunner/testrunner.js +++ b/common/tct-canvas-html5-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-colors-css3-tests/webrunner/testrunner.js b/common/tct-colors-css3-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-colors-css3-tests/webrunner/testrunner.js +++ b/common/tct-colors-css3-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-contact-tizen-tests/webrunner/testrunner.js b/common/tct-contact-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-contact-tizen-tests/webrunner/testrunner.js +++ b/common/tct-contact-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-content-tizen-tests/webrunner/testrunner.js b/common/tct-content-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-content-tizen-tests/webrunner/testrunner.js +++ b/common/tct-content-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-convergence-tizen-tests/webrunner/testrunner.js b/common/tct-convergence-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-convergence-tizen-tests/webrunner/testrunner.js +++ b/common/tct-convergence-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-cors-w3c-tests/webrunner/testrunner.js b/common/tct-cors-w3c-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-cors-w3c-tests/webrunner/testrunner.js +++ b/common/tct-cors-w3c-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-crypto-w3c-tests/webrunner/testrunner.js b/common/tct-crypto-w3c-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-crypto-w3c-tests/webrunner/testrunner.js +++ b/common/tct-crypto-w3c-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-csp-w3c-tests/webrunner/testrunner.js b/common/tct-csp-w3c-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-csp-w3c-tests/webrunner/testrunner.js +++ b/common/tct-csp-w3c-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-customelement-w3c-tests/webrunner/testrunner.js b/common/tct-customelement-w3c-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-customelement-w3c-tests/webrunner/testrunner.js +++ b/common/tct-customelement-w3c-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-datacontrol-tizen-tests/webrunner/testrunner.js b/common/tct-datacontrol-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-datacontrol-tizen-tests/webrunner/testrunner.js +++ b/common/tct-datacontrol-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-device-cordova-tests/webrunner/testrunner.js b/common/tct-device-cordova-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-device-cordova-tests/webrunner/testrunner.js +++ b/common/tct-device-cordova-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-devicemotion-cordova-tests/webrunner/testrunner.js b/common/tct-devicemotion-cordova-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-devicemotion-cordova-tests/webrunner/testrunner.js +++ b/common/tct-devicemotion-cordova-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-deviceorientation-w3c-tests/webrunner/testrunner.js b/common/tct-deviceorientation-w3c-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-deviceorientation-w3c-tests/webrunner/testrunner.js +++ b/common/tct-deviceorientation-w3c-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-dialogs-cordova-tests/webrunner/testrunner.js b/common/tct-dialogs-cordova-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-dialogs-cordova-tests/webrunner/testrunner.js +++ b/common/tct-dialogs-cordova-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-dnd-html5-tests/webrunner/testrunner.js b/common/tct-dnd-html5-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-dnd-html5-tests/webrunner/testrunner.js +++ b/common/tct-dnd-html5-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-download-tizen-tests/webrunner/testrunner.js b/common/tct-download-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-download-tizen-tests/webrunner/testrunner.js +++ b/common/tct-download-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-events-cordova-tests/webrunner/testrunner.js b/common/tct-events-cordova-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-events-cordova-tests/webrunner/testrunner.js +++ b/common/tct-events-cordova-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-exif-tizen-tests/webrunner/testrunner.js b/common/tct-exif-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-exif-tizen-tests/webrunner/testrunner.js +++ b/common/tct-exif-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-extra-html5-tests/webrunner/testrunner.js b/common/tct-extra-html5-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-extra-html5-tests/webrunner/testrunner.js +++ b/common/tct-extra-html5-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-feedback-tizen-tests/webrunner/testrunner.js b/common/tct-feedback-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-feedback-tizen-tests/webrunner/testrunner.js +++ b/common/tct-feedback-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-file-cordova-tests/webrunner/testrunner.js b/common/tct-file-cordova-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-file-cordova-tests/webrunner/testrunner.js +++ b/common/tct-file-cordova-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-file-transfer-cordova-tests/webrunner/testrunner.js b/common/tct-file-transfer-cordova-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-file-transfer-cordova-tests/webrunner/testrunner.js +++ b/common/tct-file-transfer-cordova-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-fileapi-w3c-tests/webrunner/testrunner.js b/common/tct-fileapi-w3c-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-fileapi-w3c-tests/webrunner/testrunner.js +++ b/common/tct-fileapi-w3c-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-filesystem-tizen-tests/webrunner/testrunner.js b/common/tct-filesystem-tizen-tests/webrunner/testrunner.js index 0c206ecfd..47680a3a3 100755 --- a/common/tct-filesystem-tizen-tests/webrunner/testrunner.js +++ b/common/tct-filesystem-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-flexiblebox-css3-tests/webrunner/testrunner.js b/common/tct-flexiblebox-css3-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-flexiblebox-css3-tests/webrunner/testrunner.js +++ b/common/tct-flexiblebox-css3-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-fmradio-tizen-tests/webrunner/testrunner.js b/common/tct-fmradio-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-fmradio-tizen-tests/webrunner/testrunner.js +++ b/common/tct-fmradio-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-fonts-css3-tests/webrunner/testrunner.js b/common/tct-fonts-css3-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-fonts-css3-tests/webrunner/testrunner.js +++ b/common/tct-fonts-css3-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-forms-html5-tests/webrunner/testrunner.js b/common/tct-forms-html5-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-forms-html5-tests/webrunner/testrunner.js +++ b/common/tct-forms-html5-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-fullscreen-nonw3c-tests/webrunner/testrunner.js b/common/tct-fullscreen-nonw3c-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-fullscreen-nonw3c-tests/webrunner/testrunner.js +++ b/common/tct-fullscreen-nonw3c-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-geoallow-w3c-tests/webrunner/testrunner.js b/common/tct-geoallow-w3c-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-geoallow-w3c-tests/webrunner/testrunner.js +++ b/common/tct-geoallow-w3c-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-geodeny-w3c-tests/webrunner/testrunner.js b/common/tct-geodeny-w3c-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-geodeny-w3c-tests/webrunner/testrunner.js +++ b/common/tct-geodeny-w3c-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-globalization-cordova-tests/webrunner/testrunner.js b/common/tct-globalization-cordova-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-globalization-cordova-tests/webrunner/testrunner.js +++ b/common/tct-globalization-cordova-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-gumallow-w3c-tests/webrunner/testrunner.js b/common/tct-gumallow-w3c-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-gumallow-w3c-tests/webrunner/testrunner.js +++ b/common/tct-gumallow-w3c-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-humanactivitymonitor-tizen-tests/webrunner/testrunner.js b/common/tct-humanactivitymonitor-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-humanactivitymonitor-tizen-tests/webrunner/testrunner.js +++ b/common/tct-humanactivitymonitor-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-ime-tizen-tests/webrunner/testrunner.js b/common/tct-ime-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-ime-tizen-tests/webrunner/testrunner.js +++ b/common/tct-ime-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-import-w3c-tests/webrunner/testrunner.js b/common/tct-import-w3c-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-import-w3c-tests/webrunner/testrunner.js +++ b/common/tct-import-w3c-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-indexeddb-w3c-tests/webrunner/testrunner.js b/common/tct-indexeddb-w3c-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-indexeddb-w3c-tests/webrunner/testrunner.js +++ b/common/tct-indexeddb-w3c-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-inputdevice-tizen-tests/webrunner/testrunner.js b/common/tct-inputdevice-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-inputdevice-tizen-tests/webrunner/testrunner.js +++ b/common/tct-inputdevice-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-iotcon-tizen-tests/webrunner/testrunner.js b/common/tct-iotcon-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-iotcon-tizen-tests/webrunner/testrunner.js +++ b/common/tct-iotcon-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-jsenhance-html5-tests/webrunner/testrunner.js b/common/tct-jsenhance-html5-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-jsenhance-html5-tests/webrunner/testrunner.js +++ b/common/tct-jsenhance-html5-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-keymanager-tizen-tests/webrunner/testrunner.js b/common/tct-keymanager-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-keymanager-tizen-tests/webrunner/testrunner.js +++ b/common/tct-keymanager-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-media-cordova-tests/webrunner/testrunner.js b/common/tct-media-cordova-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-media-cordova-tests/webrunner/testrunner.js +++ b/common/tct-media-cordova-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-mediacapture-w3c-tests/webrunner/testrunner.js b/common/tct-mediacapture-w3c-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-mediacapture-w3c-tests/webrunner/testrunner.js +++ b/common/tct-mediacapture-w3c-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-mediacontroller-tizen-tests/webrunner/testrunner.js b/common/tct-mediacontroller-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-mediacontroller-tizen-tests/webrunner/testrunner.js +++ b/common/tct-mediacontroller-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-mediakey-tizen-tests/webrunner/testrunner.js b/common/tct-mediakey-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-mediakey-tizen-tests/webrunner/testrunner.js +++ b/common/tct-mediakey-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-mediaqueries-css3-tests/webrunner/testrunner.js b/common/tct-mediaqueries-css3-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-mediaqueries-css3-tests/webrunner/testrunner.js +++ b/common/tct-mediaqueries-css3-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-messageport-tizen-tests/webrunner/testrunner.js b/common/tct-messageport-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-messageport-tizen-tests/webrunner/testrunner.js +++ b/common/tct-messageport-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-messaging-email-tizen-tests/webrunner/testrunner.js b/common/tct-messaging-email-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-messaging-email-tizen-tests/webrunner/testrunner.js +++ b/common/tct-messaging-email-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-messaging-mms-tizen-tests/webrunner/testrunner.js b/common/tct-messaging-mms-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-messaging-mms-tizen-tests/webrunner/testrunner.js +++ b/common/tct-messaging-mms-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-messaging-sms-tizen-tests/webrunner/testrunner.js b/common/tct-messaging-sms-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-messaging-sms-tizen-tests/webrunner/testrunner.js +++ b/common/tct-messaging-sms-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-mse-w3c-tests/webrunner/testrunner.js b/common/tct-mse-w3c-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-mse-w3c-tests/webrunner/testrunner.js +++ b/common/tct-mse-w3c-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-multicolumn-css3-tests/webrunner/testrunner.js b/common/tct-multicolumn-css3-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-multicolumn-css3-tests/webrunner/testrunner.js +++ b/common/tct-multicolumn-css3-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-namespace-tizen-tests/webrunner/testrunner.js b/common/tct-namespace-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-namespace-tizen-tests/webrunner/testrunner.js +++ b/common/tct-namespace-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-navigationtiming-w3c-tests/webrunner/testrunner.js b/common/tct-navigationtiming-w3c-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-navigationtiming-w3c-tests/webrunner/testrunner.js +++ b/common/tct-navigationtiming-w3c-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-network-information-cordova-tests/webrunner/testrunner.js b/common/tct-network-information-cordova-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-network-information-cordova-tests/webrunner/testrunner.js +++ b/common/tct-network-information-cordova-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-networkbearerselection-tizen-tests/webrunner/testrunner.js b/common/tct-networkbearerselection-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-networkbearerselection-tizen-tests/webrunner/testrunner.js +++ b/common/tct-networkbearerselection-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-nfc-tizen-tests/webrunner/testrunner.js b/common/tct-nfc-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-nfc-tizen-tests/webrunner/testrunner.js +++ b/common/tct-nfc-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-notification-tizen-tests/webrunner/testrunner.js b/common/tct-notification-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-notification-tizen-tests/webrunner/testrunner.js +++ b/common/tct-notification-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-notification-w3c-tests/webrunner/testrunner.js b/common/tct-notification-w3c-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-notification-w3c-tests/webrunner/testrunner.js +++ b/common/tct-notification-w3c-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-package-tizen-tests/webrunner/testrunner.js b/common/tct-package-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-package-tizen-tests/webrunner/testrunner.js +++ b/common/tct-package-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-pagevisibility-w3c-tests/webrunner/testrunner.js b/common/tct-pagevisibility-w3c-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-pagevisibility-w3c-tests/webrunner/testrunner.js +++ b/common/tct-pagevisibility-w3c-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-playerutil-tizen-tests/webrunner/testrunner.js b/common/tct-playerutil-tizen-tests/webrunner/testrunner.js index 41333408f..bb4da28f7 100755 --- a/common/tct-playerutil-tizen-tests/webrunner/testrunner.js +++ b/common/tct-playerutil-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-power-tizen-tests/webrunner/testrunner.js b/common/tct-power-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-power-tizen-tests/webrunner/testrunner.js +++ b/common/tct-power-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-preference-tizen-tests/webrunner/testrunner.js b/common/tct-preference-tizen-tests/webrunner/testrunner.js index 41333408f..bb4da28f7 100755 --- a/common/tct-preference-tizen-tests/webrunner/testrunner.js +++ b/common/tct-preference-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-privacyprivilege-tizen-tests/webrunner/testrunner.js b/common/tct-privacyprivilege-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-privacyprivilege-tizen-tests/webrunner/testrunner.js +++ b/common/tct-privacyprivilege-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-privilege-tizen-tests/webrunner/testrunner.js b/common/tct-privilege-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-privilege-tizen-tests/webrunner/testrunner.js +++ b/common/tct-privilege-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-push-tizen-tests/webrunner/testrunner.js b/common/tct-push-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-push-tizen-tests/webrunner/testrunner.js +++ b/common/tct-push-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-push-w3c-tests/webrunner/testrunner.js b/common/tct-push-w3c-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-push-w3c-tests/webrunner/testrunner.js +++ b/common/tct-push-w3c-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-sandbox-html5-tests/webrunner/testrunner.js b/common/tct-sandbox-html5-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-sandbox-html5-tests/webrunner/testrunner.js +++ b/common/tct-sandbox-html5-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-screenorientation-w3c-tests/webrunner/testrunner.js b/common/tct-screenorientation-w3c-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-screenorientation-w3c-tests/webrunner/testrunner.js +++ b/common/tct-screenorientation-w3c-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-secureelement-tizen-tests/webrunner/testrunner.js b/common/tct-secureelement-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-secureelement-tizen-tests/webrunner/testrunner.js +++ b/common/tct-secureelement-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-security-tcs-tests/webrunner/testrunner.js b/common/tct-security-tcs-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-security-tcs-tests/webrunner/testrunner.js +++ b/common/tct-security-tcs-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-selectorslevel1-w3c-tests/webrunner/testrunner.js b/common/tct-selectorslevel1-w3c-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-selectorslevel1-w3c-tests/webrunner/testrunner.js +++ b/common/tct-selectorslevel1-w3c-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-selectorslevel2-w3c-tests/webrunner/testrunner.js b/common/tct-selectorslevel2-w3c-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-selectorslevel2-w3c-tests/webrunner/testrunner.js +++ b/common/tct-selectorslevel2-w3c-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-sensor-tizen-tests/webrunner/testrunner.js b/common/tct-sensor-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-sensor-tizen-tests/webrunner/testrunner.js +++ b/common/tct-sensor-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-serviceworkers-w3c-tests/webrunner/testrunner.js b/common/tct-serviceworkers-w3c-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-serviceworkers-w3c-tests/webrunner/testrunner.js +++ b/common/tct-serviceworkers-w3c-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-sessionhistory-html5-tests/webrunner/testrunner.js b/common/tct-sessionhistory-html5-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-sessionhistory-html5-tests/webrunner/testrunner.js +++ b/common/tct-sessionhistory-html5-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-sound-tizen-tests/webrunner/testrunner.js b/common/tct-sound-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-sound-tizen-tests/webrunner/testrunner.js +++ b/common/tct-sound-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-speech-w3c-tests/webrunner/testrunner.js b/common/tct-speech-w3c-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-speech-w3c-tests/webrunner/testrunner.js +++ b/common/tct-speech-w3c-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-sse-w3c-tests/webrunner/testrunner.js b/common/tct-sse-w3c-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-sse-w3c-tests/webrunner/testrunner.js +++ b/common/tct-sse-w3c-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-svg-html5-tests/webrunner/testrunner.js b/common/tct-svg-html5-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-svg-html5-tests/webrunner/testrunner.js +++ b/common/tct-svg-html5-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-systeminfo-tizen-tests/webrunner/testrunner.js b/common/tct-systeminfo-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-systeminfo-tizen-tests/webrunner/testrunner.js +++ b/common/tct-systeminfo-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-systemsetting-tizen-tests/webrunner/testrunner.js b/common/tct-systemsetting-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-systemsetting-tizen-tests/webrunner/testrunner.js +++ b/common/tct-systemsetting-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-template-w3c-tests/webrunner/testrunner.js b/common/tct-template-w3c-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-template-w3c-tests/webrunner/testrunner.js +++ b/common/tct-template-w3c-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-text-css3-tests/webrunner/testrunner.js b/common/tct-text-css3-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-text-css3-tests/webrunner/testrunner.js +++ b/common/tct-text-css3-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-time-tizen-tests/webrunner/testrunner.js b/common/tct-time-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-time-tizen-tests/webrunner/testrunner.js +++ b/common/tct-time-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-tizen-tizen-tests/webrunner/testrunner.js b/common/tct-tizen-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-tizen-tizen-tests/webrunner/testrunner.js +++ b/common/tct-tizen-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-touchevent-w3c-tests/webrunner/testrunner.js b/common/tct-touchevent-w3c-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-touchevent-w3c-tests/webrunner/testrunner.js +++ b/common/tct-touchevent-w3c-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-transitions-css3-tests/webrunner/testrunner.js b/common/tct-transitions-css3-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-transitions-css3-tests/webrunner/testrunner.js +++ b/common/tct-transitions-css3-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-tv-audiocontrol-tizen-tests/webrunner/testrunner.js b/common/tct-tv-audiocontrol-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-tv-audiocontrol-tizen-tests/webrunner/testrunner.js +++ b/common/tct-tv-audiocontrol-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-tv-channel-tizen-tests/webrunner/testrunner.js b/common/tct-tv-channel-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-tv-channel-tizen-tests/webrunner/testrunner.js +++ b/common/tct-tv-channel-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-tv-displaycontrol-tizen-tests/webrunner/testrunner.js b/common/tct-tv-displaycontrol-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-tv-displaycontrol-tizen-tests/webrunner/testrunner.js +++ b/common/tct-tv-displaycontrol-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-tv-info-tizen-tests/webrunner/testrunner.js b/common/tct-tv-info-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-tv-info-tizen-tests/webrunner/testrunner.js +++ b/common/tct-tv-info-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-tv-window-tizen-tests/webrunner/testrunner.js b/common/tct-tv-window-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-tv-window-tizen-tests/webrunner/testrunner.js +++ b/common/tct-tv-window-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-typedarrays-nonw3c-tests/webrunner/testrunner.js b/common/tct-typedarrays-nonw3c-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-typedarrays-nonw3c-tests/webrunner/testrunner.js +++ b/common/tct-typedarrays-nonw3c-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-ui-css3-tests/webrunner/testrunner.js b/common/tct-ui-css3-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-ui-css3-tests/webrunner/testrunner.js +++ b/common/tct-ui-css3-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-vibration-w3c-tests/webrunner/testrunner.js b/common/tct-vibration-w3c-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-vibration-w3c-tests/webrunner/testrunner.js +++ b/common/tct-vibration-w3c-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-video-html5-tests/webrunner/testrunner.js b/common/tct-video-html5-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-video-html5-tests/webrunner/testrunner.js +++ b/common/tct-video-html5-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-voicecontrol-tizen-tests/webrunner/testrunner.js b/common/tct-voicecontrol-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-voicecontrol-tizen-tests/webrunner/testrunner.js +++ b/common/tct-voicecontrol-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-webaudio-w3c-tests/webrunner/testrunner.js b/common/tct-webaudio-w3c-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-webaudio-w3c-tests/webrunner/testrunner.js +++ b/common/tct-webaudio-w3c-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-webgl-nonw3c-tests/webrunner/testrunner.js b/common/tct-webgl-nonw3c-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-webgl-nonw3c-tests/webrunner/testrunner.js +++ b/common/tct-webgl-nonw3c-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-webmessaging-w3c-tests/webrunner/testrunner.js b/common/tct-webmessaging-w3c-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-webmessaging-w3c-tests/webrunner/testrunner.js +++ b/common/tct-webmessaging-w3c-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-websetting-tizen-tests/webrunner/testrunner.js b/common/tct-websetting-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-websetting-tizen-tests/webrunner/testrunner.js +++ b/common/tct-websetting-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-websocket-w3c-tests/webrunner/testrunner.js b/common/tct-websocket-w3c-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-websocket-w3c-tests/webrunner/testrunner.js +++ b/common/tct-websocket-w3c-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-webstorage-w3c-tests/webrunner/testrunner.js b/common/tct-webstorage-w3c-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-webstorage-w3c-tests/webrunner/testrunner.js +++ b/common/tct-webstorage-w3c-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-webwidget-w3c-tests/webrunner/testrunner.js b/common/tct-webwidget-w3c-tests/webrunner/testrunner.js index db3efb87d..ba385d3f4 100755 --- a/common/tct-webwidget-w3c-tests/webrunner/testrunner.js +++ b/common/tct-webwidget-w3c-tests/webrunner/testrunner.js @@ -29,27 +29,23 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } -}); + } + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } +}); var STUB_PORT = ""; var RESOURCE_DIR; diff --git a/common/tct-wgtapi01-w3c-tests/webrunner/testrunner.js b/common/tct-wgtapi01-w3c-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-wgtapi01-w3c-tests/webrunner/testrunner.js +++ b/common/tct-wgtapi01-w3c-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-wgtapi02-w3c-tests/webrunner/testrunner.js b/common/tct-wgtapi02-w3c-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-wgtapi02-w3c-tests/webrunner/testrunner.js +++ b/common/tct-wgtapi02-w3c-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-widget01-w3c-tests/webrunner/testrunner.js b/common/tct-widget01-w3c-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-widget01-w3c-tests/webrunner/testrunner.js +++ b/common/tct-widget01-w3c-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-widget02-w3c-tests/webrunner/testrunner.js b/common/tct-widget02-w3c-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-widget02-w3c-tests/webrunner/testrunner.js +++ b/common/tct-widget02-w3c-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-widgetpolicy-w3c-tests/webrunner/testrunner.js b/common/tct-widgetpolicy-w3c-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-widgetpolicy-w3c-tests/webrunner/testrunner.js +++ b/common/tct-widgetpolicy-w3c-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-widgetservice-tizen-tests/webrunner/testrunner.js b/common/tct-widgetservice-tizen-tests/webrunner/testrunner.js index 41333408f..bb4da28f7 100755 --- a/common/tct-widgetservice-tizen-tests/webrunner/testrunner.js +++ b/common/tct-widgetservice-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-woff-w3c-tests/webrunner/testrunner.js b/common/tct-woff-w3c-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-woff-w3c-tests/webrunner/testrunner.js +++ b/common/tct-woff-w3c-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-workers-w3c-tests/webrunner/testrunner.js b/common/tct-workers-w3c-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-workers-w3c-tests/webrunner/testrunner.js +++ b/common/tct-workers-w3c-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/common/tct-xmlhttprequest-w3c-tests/webrunner/testrunner.js b/common/tct-xmlhttprequest-w3c-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/common/tct-xmlhttprequest-w3c-tests/webrunner/testrunner.js +++ b/common/tct-xmlhttprequest-w3c-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/mobile/tct-capability-tests/webrunner/testrunner.js b/mobile/tct-capability-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/mobile/tct-capability-tests/webrunner/testrunner.js +++ b/mobile/tct-capability-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/mobile/tct-deprecatedapi-tizen-tests/webrunner/testrunner.js b/mobile/tct-deprecatedapi-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/mobile/tct-deprecatedapi-tizen-tests/webrunner/testrunner.js +++ b/mobile/tct-deprecatedapi-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/tv/tct-capability-tests/webrunner/testrunner.js b/tv/tct-capability-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/tv/tct-capability-tests/webrunner/testrunner.js +++ b/tv/tct-capability-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/tv/tct-deprecatedapi-tizen-tests/webrunner/testrunner.js b/tv/tct-deprecatedapi-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/tv/tct-deprecatedapi-tizen-tests/webrunner/testrunner.js +++ b/tv/tct-deprecatedapi-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/wearable/tct-capability-tests/webrunner/testrunner.js b/wearable/tct-capability-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/wearable/tct-capability-tests/webrunner/testrunner.js +++ b/wearable/tct-capability-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = ""; diff --git a/wearable/tct-deprecatedapi-tizen-tests/webrunner/testrunner.js b/wearable/tct-deprecatedapi-tizen-tests/webrunner/testrunner.js index 114c8f165..ba385d3f4 100755 --- a/wearable/tct-deprecatedapi-tizen-tests/webrunner/testrunner.js +++ b/wearable/tct-deprecatedapi-tizen-tests/webrunner/testrunner.js @@ -29,25 +29,22 @@ Authors: */ $(function(){ - try { - // Checks if a device supports bluetooth API or not - var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape"); + try { + var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle"); console.log("Shape = " + shape); - //alert(" Shape = " + shape); - } catch (error) { - // alert("Error name: " + error.name + ", message: " + error.message); + } catch (error) { console.log("Error name: " + error.name + ", message: " + error.message); - } - - if(shape=="circle"){ - $('body').css('max-width', '100%'); - $('body').css('max-height', '100%'); - $('body').css('background-color', 'white'); - $('body').css('margin-top', '20%'); - $('body').css('margin-bottom', '20%'); - $('body').css('margin-left', '20%'); - $('body').css('margin-right', '20%'); - } + } + + if(shape){ + $('body').css('max-width', '100%'); + $('body').css('max-height', '100%'); + $('body').css('background-color', 'white'); + $('body').css('margin-top', '8%'); + $('body').css('margin-bottom', '5%'); + $('body').css('margin-left', '8%'); + $('body').css('margin-right', '8%'); + } }); var STUB_PORT = "";