[common][widgetservice][fix TSEVEN-4954 handle armv8 aarch64 support] 86/298286/1
authorchen <chen89.chen@samsung.com>
Tue, 5 Sep 2023 02:53:41 +0000 (10:53 +0800)
committerchen <chen89.chen@samsung.com>
Tue, 5 Sep 2023 02:53:47 +0000 (10:53 +0800)
Change-Id: Ic6df599d961877d8400383263bb3b385e712a8ca
Signed-off-by: chen <chen89.chen@samsung.com>
68 files changed:
common/tct-widgetservice-tizen-tests/tests.css
common/tct-widgetservice-tizen-tests/widgetservice/WidgetChangeCallback_onchange.html
common/tct-widgetservice-tizen-tests/widgetservice/WidgetContentCallback_onsuccess.html
common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_changeUpdatePeriod.html
common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_changeUpdatePeriod_exist.html
common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_changeUpdatePeriod_seconds_invalid.html
common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_extend.html
common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent.html
common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_errorCallback_TypeMismatch.html
common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_errorCallback_invalid_cb.html
common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_exist.html
common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_misarg.html
common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_successCallback_TypeMismatch.html
common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_successCallback_invalid_cb.html
common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_id_attribute.html
common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_sendContent.html
common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_sendContent_data_TypeMismatch.html
common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_sendContent_exist.html
common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_sendContent_misarg.html
common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_widget_attribute.html
common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstancesCallback_onsuccess.html
common/tct-widgetservice-tizen-tests/widgetservice/WidgetServiceManager_getWidget.html
common/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_extend.html
common/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_height_attribute.html
common/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_needsFrame_attribute.html
common/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_needsMouseEvents_attribute.html
common/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_needsTouchEffect_attribute.html
common/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_previewImagePath_attribute.html
common/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_sizeType_attribute.html
common/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_width_attribute.html
common/tct-widgetservice-tizen-tests/widgetservice/WidgetVariantsCallback_onsuccess.html
common/tct-widgetservice-tizen-tests/widgetservice/Widget_addStateChangeListener.html
common/tct-widgetservice-tizen-tests/widgetservice/Widget_addStateChangeListener_callback_TypeMismatch.html
common/tct-widgetservice-tizen-tests/widgetservice/Widget_addStateChangeListener_callback_invalid_cb.html
common/tct-widgetservice-tizen-tests/widgetservice/Widget_addStateChangeListener_exist.html
common/tct-widgetservice-tizen-tests/widgetservice/Widget_addStateChangeListener_misarg.html
common/tct-widgetservice-tizen-tests/widgetservice/Widget_applicationId_attribute.html
common/tct-widgetservice-tizen-tests/widgetservice/Widget_extend.html
common/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances.html
common/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_errorCallback_TypeMismatch.html
common/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_errorCallback_invalid_cb.html
common/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_errorCallback_invoked_NotFoundError.html
common/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_exist.html
common/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_misarg.html
common/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_successCallback_TypeMismatch.html
common/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_successCallback_invalid_cb.html
common/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_with_errorCallback.html
common/tct-widgetservice-tizen-tests/widgetservice/Widget_getName.html
common/tct-widgetservice-tizen-tests/widgetservice/Widget_getName_exist.html
common/tct-widgetservice-tizen-tests/widgetservice/Widget_getName_with_locale.html
common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariant.html
common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariant_exist.html
common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariant_sizeType_TypeMismatch.html
common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants.html
common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_errorCallback_TypeMismatch.html
common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_errorCallback_invalid_cb.html
common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_exist.html
common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_misarg.html
common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_successCallback_TypeMismatch.html
common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_successCallback_invalid_cb.html
common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_with_errorCallback.html
common/tct-widgetservice-tizen-tests/widgetservice/Widget_id_attribute.html
common/tct-widgetservice-tizen-tests/widgetservice/Widget_noDisplay_attribute.html
common/tct-widgetservice-tizen-tests/widgetservice/Widget_packageId_attribute.html
common/tct-widgetservice-tizen-tests/widgetservice/Widget_removeStateChangeListener.html
common/tct-widgetservice-tizen-tests/widgetservice/Widget_removeStateChangeListener_exist.html
common/tct-widgetservice-tizen-tests/widgetservice/Widget_setupApplicationId_attribute.html
common/tct-widgetservice-tizen-tests/widgetservice/support/unitcommon.js

index c2ba69b3d28d5acb800f7f0dcf380de51dc283d3..135fa57d318c5a803ce2342b1f566dd949e0ebc3 100755 (executable)
-@charset "UTF-8";\r
-/* CSS Document */\r
-#testcasepage div,\r
-#testcasepage h1,\r
-#testcasepage p,\r
-#testcasepage table,\r
-#testcasepage tr,\r
-#testcasepage th,\r
-#testcasepage td {\r
-  margin: 0;\r
-  padding: 0;\r
-  border: 0;\r
-  font-weight: inherit;\r
-  font-style: inherit;\r
-  font-size: 0.96em;\r
-  font-family: arial;\r
-  vertical-align: baseline;\r
-}\r
-\r
-#testcasepage p {\r
-  text-align: left;\r
-}\r
-\r
-#suite_title {\r
-  text-align: left;\r
-}\r
-\r
-#btc {\r
-  text-align: right;\r
-}\r
-\r
-#testcasepage table {\r
-  border-collapse: separate;\r
-  border-spacing: 0;\r
-  margin-bottom: 1.4em;\r
-  vertical-align: middle;\r
-}\r
-\r
-#testcasepage th,\r
-#testcasepage td {\r
-  text-align: left;\r
-  font-weight: normal;\r
-  padding: 4px 10px 4px 5px;\r
-  vertical-align: middle;\r
-}\r
-\r
-#cases table {\r
-  width: 101%;\r
-}\r
-\r
-#fail_cases table {\r
-  width: 101%;\r
-}\r
-\r
-#title table {\r
-  width: 101%;\r
-}\r
-\r
-#device table {\r
-  width: 50%;\r
-}\r
-\r
-#summary table {\r
-  width: 50%;\r
-}\r
-\r
-#testcasepage th {\r
-  border-bottom: 1px solid #000;\r
-  background-color: #AAAAAA;\r
-  border-left: 1px solid #000;\r
-  border-top: 1px solid #000;\r
-  color: #000;\r
-  font-weight: bold;\r
-  vertical-align: bottom;\r
-}\r
-\r
-#testcasepage th:last-child,\r
-#testcasepage td:last-child {\r
-  border-right: 1px solid #000;\r
-}\r
-\r
-#testcasepage td {\r
-  border-left: 1px solid;\r
-  font-weight: normal;\r
-  border-bottom: 1px solid;\r
-}\r
-\r
-#testcasepage td.yellow_rate {\r
-  background-color: #ffcc00;\r
-}\r
-\r
-#testcasepage td.green_rate {\r
-  background-color: #33cc33;\r
-}\r
-\r
-#testcasepage td.dgreen_rate {\r
-  background-color: #339933;\r
-}\r
-\r
-#testcasepage td.red_rate {\r
-  background-color: #FF3333;\r
-}\r
-\r
-#title table,\r
-#title tr,\r
-#title td {\r
-  border-left: none;\r
-  border-bottom: none;\r
-  text-align: center;\r
-}\r
-\r
-#title td:last-child {\r
-  border-right: none;\r
-}\r
-\r
-#testcasepage h1 {\r
-  font-size: 2em;\r
-  font-family: Arial, sans-serif;\r
-  font-weight: bold;\r
-  line-height: 1;\r
-  color: #000;\r
-  margin-bottom: 0.75em;\r
-  padding-top: 0.25em;\r
-  font-weight: bold;\r
-}\r
-\r
-#goTopBtn {\r
-  right: 0px;\r
-  bottom: 0px;\r
-  position: fixed; +position: absolute;\r
-  top: expression(parseInt(document.body.scrollTop) + document.body.clientHeight - 40);\r
-}\r
+@charset "UTF-8";
+/* CSS Document */
+#testcasepage div,
+#testcasepage h1,
+#testcasepage p,
+#testcasepage table,
+#testcasepage tr,
+#testcasepage th,
+#testcasepage td {
+  margin: 0;
+  padding: 0;
+  border: 0;
+  font-weight: inherit;
+  font-style: inherit;
+  font-size: 0.96em;
+  font-family: arial;
+  vertical-align: baseline;
+}
+
+#testcasepage p {
+  text-align: left;
+}
+
+#suite_title {
+  text-align: left;
+}
+
+#btc {
+  text-align: right;
+}
+
+#testcasepage table {
+  border-collapse: separate;
+  border-spacing: 0;
+  margin-bottom: 1.4em;
+  vertical-align: middle;
+}
+
+#testcasepage th,
+#testcasepage td {
+  text-align: left;
+  font-weight: normal;
+  padding: 4px 10px 4px 5px;
+  vertical-align: middle;
+}
+
+#cases table {
+  width: 101%;
+}
+
+#fail_cases table {
+  width: 101%;
+}
+
+#title table {
+  width: 101%;
+}
+
+#device table {
+  width: 50%;
+}
+
+#summary table {
+  width: 50%;
+}
+
+#testcasepage th {
+  border-bottom: 1px solid #000;
+  background-color: #AAAAAA;
+  border-left: 1px solid #000;
+  border-top: 1px solid #000;
+  color: #000;
+  font-weight: bold;
+  vertical-align: bottom;
+}
+
+#testcasepage th:last-child,
+#testcasepage td:last-child {
+  border-right: 1px solid #000;
+}
+
+#testcasepage td {
+  border-left: 1px solid;
+  font-weight: normal;
+  border-bottom: 1px solid;
+}
+
+#testcasepage td.yellow_rate {
+  background-color: #ffcc00;
+}
+
+#testcasepage td.green_rate {
+  background-color: #33cc33;
+}
+
+#testcasepage td.dgreen_rate {
+  background-color: #339933;
+}
+
+#testcasepage td.red_rate {
+  background-color: #FF3333;
+}
+
+#title table,
+#title tr,
+#title td {
+  border-left: none;
+  border-bottom: none;
+  text-align: center;
+}
+
+#title td:last-child {
+  border-right: none;
+}
+
+#testcasepage h1 {
+  font-size: 2em;
+  font-family: Arial, sans-serif;
+  font-weight: bold;
+  line-height: 1;
+  color: #000;
+  margin-bottom: 0.75em;
+  padding-top: 0.25em;
+  font-weight: bold;
+}
+
+#goTopBtn {
+  right: 0px;
+  bottom: 0px;
+  position: fixed; +position: absolute;
+  top: expression(parseInt(document.body.scrollTop) + document.body.clientHeight - 40);
+}
index 074f7c4b0bd7e829e839cd1492109a4623aef13d..6578611e1a9e1a046ee95e88a949b7e14bb0758f 100755 (executable)
@@ -66,8 +66,8 @@ t.step(function () {
         t.done();
     });
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -75,8 +75,8 @@ t.step(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index d443379b15a034a624a34c7775f58501ee1b831c..4b4ca5577dcc2583e1c7b96658e451177e501887 100755 (executable)
@@ -68,8 +68,8 @@ t.step(function () {
         wdInstance.getContent(contentSuccessCb, contentErrorCb);
     });
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -77,8 +77,8 @@ t.step(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index cd4343607c9f2c73791511a84df9dadccde0f065..f7aa4af08029e39eba104c44edf1e3835d32fabd 100755 (executable)
@@ -58,8 +58,8 @@ t.step(function () {
         t.done();
     });
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -67,8 +67,8 @@ t.step(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index f574b22b26dd086baeb2650d6f9981538c145889..4736a702af18f1f05e30ecef0a2670386c8fc7f1 100755 (executable)
@@ -57,8 +57,8 @@ t.step(function () {
         t.done();
     });
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -66,8 +66,8 @@ t.step(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index 45d701b212b745f162bce082aa4dbeea2920b07f..24c5082348226f0da0ddfeb8e97b97073fd50702 100755 (executable)
@@ -59,8 +59,8 @@ t.step(function () {
         t.done();
     });
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -68,8 +68,8 @@ t.step(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index c1a2244ca91ad067edfc8cc05a1f7806f0a17202..49f960e0469a71d32f91ac291574b427a9059e16 100755 (executable)
@@ -57,8 +57,8 @@ t.step(function () {
         t.done();
     });
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -66,8 +66,8 @@ t.step(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index efab3eeada7b6057ff87c571992c9caba35383f0..eaf71f7d8a25c90f3659294dcf96381935830323 100755 (executable)
@@ -66,8 +66,8 @@ t.step(function () {
         retVal = wdInstance.getContent(contentSuccessCb, contentErrorCb);
     });
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -75,8 +75,8 @@ t.step(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index 3bd577bd32fda8e107bed238642c6ee7e55f9cee..df1409bc9fc24b577d4bb584df6479883cfe4813 100755 (executable)
@@ -67,8 +67,8 @@ t.step(function () {
         t.done();
     });
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -76,8 +76,8 @@ t.step(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index 9d67751b7dca3696891f9f3e6c9462dd5384490e..274667f58755ac0134ba4ba571d8844c192651cb 100755 (executable)
@@ -70,8 +70,8 @@ t.step(function () {
         t.done();
     });
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -79,8 +79,8 @@ t.step(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index 5648c42d9b877aa801dcc0de8022076424e142bf..0efc8a673eedf7118400bace362ad9d0cbba9fa4 100755 (executable)
@@ -57,8 +57,8 @@ t.step(function () {
         t.done();
     });
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -66,8 +66,8 @@ t.step(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index 4d7d1ffba9dd538fe98f02058d9ea3d2a53321f4..a0e828b4651954fd1c07cbc50b7b40e1aa9dd554 100755 (executable)
@@ -59,8 +59,8 @@ t.step(function () {
         t.done();
     });
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -68,8 +68,8 @@ t.step(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index 039a2f4753303401578de8192709f935c1e2286f..f2c2f2102d8ac1b24eb2ada085be96815fe1d2e4 100755 (executable)
@@ -67,8 +67,8 @@ t.step(function () {
         t.done();
     });
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -76,8 +76,8 @@ t.step(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index e3b666e75c304ef1683e2b40a9ca4504dc2ecd12..b21801d0bcb51a8df667a692b1cbe139df2212ad 100755 (executable)
@@ -70,8 +70,8 @@ t.step(function () {
         t.done();
     });
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -79,8 +79,8 @@ t.step(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index 9711a0e8a642b858473c445d089aebe4b6ed3dcb..4cba84a4948514d42a9c3aec0c7ef78854ebe9e3 100755 (executable)
@@ -57,8 +57,8 @@ t.step(function () {
         t.done();
     });
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -66,8 +66,8 @@ t.step(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index f2336d414f3a6331c96d5a2b22fdf93f3c9e4a31..db0d7893340ddfd4fbdcfb0c264133b3abec6f60 100755 (executable)
@@ -59,8 +59,8 @@ t.step(function () {
         t.done();
     });
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -68,8 +68,8 @@ t.step(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index 8d80e64c766ba5cd066785a8bc8f4a7b5299e81d..1743da6d664aa01436d844466beffb46664dbdab 100755 (executable)
@@ -63,8 +63,8 @@ t.step(function () {
         t.done();
     });
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -72,8 +72,8 @@ t.step(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index d01029821576647703128815873575afe3941f3d..445cb0b229298988a764afe9569849bebdc885d9 100755 (executable)
@@ -57,8 +57,8 @@ t.step(function () {
         t.done();
     });
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -66,8 +66,8 @@ t.step(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index 4b5fa3907efeba4b1fbe1708b563d37a3db8af51..83bf6d3cfdb18abeffc8b11e0aecfea9e9793f82 100755 (executable)
@@ -59,8 +59,8 @@ t.step(function () {
         t.done();
     });
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -68,8 +68,8 @@ t.step(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index 01ced8eb20bf802600f5430eff1898563b46a518..a4088363d92eb153fce4cce7cd5553f824c8a2ef 100755 (executable)
@@ -60,8 +60,8 @@ t.step(function () {
         t.done();
     });
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -69,8 +69,8 @@ t.step(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index ea8a4ea315088c4674b1f577726c4c0054615437..bca7a7cd5bb4cb286fe8b95ac5082c8f69092a33 100755 (executable)
@@ -57,8 +57,8 @@ t.step(function () {
         t.done();
     });
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -66,8 +66,8 @@ t.step(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index c364d580192ef6336f31c1a2cc0cd9abb596766b..18c4ce068542592620fb013568e1631c10849fd6 100755 (executable)
@@ -37,8 +37,8 @@ Authors:
 test(function () {
     var id, myWidget;
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -46,8 +46,8 @@ test(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index 7c5c951757107eb90ef9b4d94369c558543ba153..5f3198aad4478bd8af42d34c4aa4eb12fef5ee14 100755 (executable)
@@ -37,8 +37,8 @@ Authors:
 test(function () {
     var id, myWidget, wdVariant;
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -46,8 +46,8 @@ test(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index e5b2ca08d510d86bc54ccf2b76878afabd78e116..d56e915587e6b336a3f5ad2a27f2f0200573f666 100755 (executable)
@@ -37,8 +37,8 @@ Authors:
 test(function () {
     var id, myWidget, wdVariant;
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -46,8 +46,8 @@ test(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index acb6e7c22aa16a17285f22994c33623a4ccbd948..bd2a4d5d9f7e1a528fe91d147706eabb769b7369 100755 (executable)
@@ -37,8 +37,8 @@ Authors:
 test(function () {
     var id, myWidget, wdVariant;
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -46,8 +46,8 @@ test(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index 4a147144c4c0fe5314e27450e0373f0b44615402..5aab7096dd3afa0f60f67fff0194bbacaf0f0e7d 100755 (executable)
@@ -37,8 +37,8 @@ Authors:
 test(function () {
     var id, myWidget, wdVariant;
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -46,8 +46,8 @@ test(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index 6cb4e046d2f2e0414cdca57d69d1f8b53e5599d5..c858287e55c63173cef4e3707ce6a3d413c2de53 100755 (executable)
@@ -37,8 +37,8 @@ Authors:
 test(function () {
     var id, myWidget, wdVariant;
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -46,8 +46,8 @@ test(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index 3536e4f388292016a1bc28f39ace913deca46c7c..a8c6d55c99352049569c4b27da5d38550e8abb9e 100755 (executable)
@@ -37,8 +37,8 @@ Authors:
 test(function () {
     var id, myWidget, wdVariant;
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -46,8 +46,8 @@ test(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index eeadc604d8ff54d17f47c46903b852aa4f804a85..900399746e0eb2a73aa1f358e58d46ff42c0cdf6 100755 (executable)
@@ -37,8 +37,8 @@ Authors:
 test(function () {
     var id, myWidget, wdVariant, sizeTypeRange;
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -46,8 +46,8 @@ test(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index 5ad1f4800e984987dfbf36253557a16bd8a88328..3f395b6c52e7259217d740bd939c85f67ce8087b 100755 (executable)
@@ -37,8 +37,8 @@ Authors:
 test(function () {
     var id, myWidget, wdVariant;
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -46,8 +46,8 @@ test(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index a1e7ccafe3f4a795725f9200485b578c82ee15d4..49d6e709cf1815d0d313d56f5cf2ac3d7212cbd9 100755 (executable)
@@ -45,8 +45,8 @@ t.step(function () {
         t.done();
     });
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -54,8 +54,8 @@ t.step(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index decb8f846682079621e58ce2b6c009daa8c6a346..82c009426f682dea0eb3faba206d9caca205c871 100755 (executable)
@@ -60,8 +60,8 @@ t.step(function () {
         t.done();
     });
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -69,8 +69,8 @@ t.step(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index 69c11d0e6a2b422cc9c33785721125a42d28584b..e72c77e2485cfdbfe4db96dabb6d5770c06f4c42 100755 (executable)
@@ -37,9 +37,10 @@ Authors:
 
 test(function () {
     var callback, i, conversionTable, exceptionName, id, myWidget;
-
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    console.log(ARCH);
+    console.log(ARMV8);
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -47,8 +48,8 @@ test(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index c698280a61af41127b2f2783471dee72966b0656..95c7ee2d078a31aa8d00359fead7f57280dce10c 100755 (executable)
@@ -37,9 +37,8 @@ Authors:
 
 test(function () {
     var callback, i, incorrectListener, exceptionName, id, myWidget;
-
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -47,8 +46,8 @@ test(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
@@ -56,7 +55,6 @@ test(function () {
             console.log(id);
         }
     }
-
     myWidget = tizen.widgetservice.getWidget(id);
     incorrectListener = getListenerConversionExceptions(["onchange"]);
     for(i = 0; i < incorrectListener.length; i++) {
index 76dc569f45a85f3e1340a7d0ca58609e745f4900..2973c310bc88b23cb6e23e95e5c4723b5a5f5972 100755 (executable)
@@ -36,10 +36,10 @@ Authors:
 //==== TEST_CRITERIA ME
 
 test(function () {
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+    if(ARMV7 || ARMV8){
         var id = "apiwidserv.widgetarm", myWidget;
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+    else if(X86){
         var id = "apiwidserv.widgetx86", myWidget;
     }
 
index 04bb609b2b460f02a0eb86ba217c6a459aefa359..301c334ab9c9d1f4d4fe7210ec042a85a463c6e0 100755 (executable)
@@ -36,10 +36,10 @@ Authors:
 //==== TEST_CRITERIA MMA
 
 test(function () {
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+    if(ARMV7 || ARMV8){
         var id = "apiwidserv.widgetarm", myWidget;
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+    else if(X86){
         var id = "apiwidserv.widgetx86", myWidget;
     }
 
index 423dcb2d2b30b97025616c7ace4d8be74a77ee3e..c7f59f1f2da94e48e3b0bdd25db5441efdcdb33a 100755 (executable)
@@ -35,10 +35,10 @@ Authors:
 //==== TEST_CRITERIA AE AT ARO
 
 test(function () {
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+    if(ARMV7 || ARMV8){
         var id = "apiwidserv.widgetarm", myWidget;
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+    else if(X86){
         var id = "apiwidserv.widgetx86", myWidget;
     }
 
index 679fe6979353c9ca11a31159bd7287038992bc3e..4ebc025c067a4c2280d62a4c1ee4ed441f602e32 100755 (executable)
@@ -35,10 +35,10 @@ Authors:
 //==== TEST_CRITERIA OBX
 
 test(function () {
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+    if(ARMV7 || ARMV8){
         var id = "apiwidserv.widgetarm", myWidget;
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+    else if(X86){
         var id = "apiwidserv.widgetx86", myWidget;
     }
 
index 5197d1427ace62960b705ff85a0866075f9e7932..7ea04544ea8a4b6ed049e49d37a96eac55b3ddf9 100755 (executable)
@@ -52,8 +52,8 @@ t.step(function () {
         t.done();
     });
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -61,8 +61,8 @@ t.step(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index 8954841e7a5fd4f93f320384445f989fc9a1d989..1a38cc4aee68b47279455adb37c6ad2db0e7ec1e 100755 (executable)
@@ -43,8 +43,8 @@ t.step(function () {
         assert_unreached("successCallback should not be invoked");
     });
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -52,8 +52,8 @@ t.step(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index 5cea5dfaf44de5f331e1e1bc4ef993778effebd6..1ca094f347b1a359e815bb2722d75f8436c45b35 100755 (executable)
@@ -49,8 +49,8 @@ t.step(function () {
         assert_unreached("successCallback should not be invoked");
     });
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -58,8 +58,8 @@ t.step(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index 8d1ed2e774a1b2d7f8481f358e6d3a9d828377bb..a0e10b52ff8e685872e2d5289a7b77e3a1639fe7 100755 (executable)
@@ -48,8 +48,8 @@ t.step(function () {
         assert_unreached("successCallback should not be invoked");
     });
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -57,8 +57,8 @@ t.step(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index 47c6b193a1837da622cc7ab769f5a0136cc7df3e..c975d28d5420838c74e92885728786f3f55299ca 100755 (executable)
@@ -35,10 +35,10 @@ Authors:
 //==== TEST_CRITERIA ME
 
 test(function () {
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+    if(ARMV7 || ARMV8){
         var id = "apiwidserv.widgetarm", myWidget;
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+    else if(X86){
         var id = "apiwidserv.widgetx86", myWidget;
     }
 
index fd030bc46b92591a7d1f8522733ad19ca5b2a420..2cdf9a7c9feab890c99e390785cca1dbddde226b 100755 (executable)
@@ -35,10 +35,10 @@ Authors:
 //==== TEST_CRITERIA MMA
 
 test(function () {
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+    if(ARMV7 || ARMV8){
         var id = "apiwidserv.widgetarm", myWidget;
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+    else if(X86){
         var id = "apiwidserv.widgetx86", myWidget;
     }
 
index a3df3b4b5a9606c4f3181f2195e423141ea7727d..f2fcd91e77028806de87df4b15c3af410243bef1 100755 (executable)
@@ -39,8 +39,8 @@ setup({timeout: 90000});
 var t = async_test(document.title, {timeout: 90000}), i, conversionTable, id, myWidget;
 
 t.step(function () {
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -48,8 +48,8 @@ t.step(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index 3343c2ca5efe58fb40d3eebd197a131a61436143..5d883f08f70a7bf78bc900c96d3746915aa556d0 100755 (executable)
@@ -45,8 +45,8 @@ t.step(function () {
         })
     };
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -54,8 +54,8 @@ t.step(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index 1fd4b230c3b2b7399ef69c71df9c6deac15b2644..a7cb3df3cdfdf2f71a76450f03b0ed323f580872 100755 (executable)
@@ -56,8 +56,8 @@ t.step(function () {
         t.done();
     });
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -65,8 +65,8 @@ t.step(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index 399d449380c0b222134d600b4887c5cfc5d75c12..047d995731c60d57e9123c24c4e9378d935f065e 100755 (executable)
@@ -37,8 +37,8 @@ Authors:
 test(function () {
     var id, myWidget, retVal;
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -46,8 +46,8 @@ test(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index 3defefdffb9eabcde03afb77bf4141c13fe336e9..e3670cad3a2836084e2cf402695fde07d2d9114d 100755 (executable)
@@ -35,10 +35,10 @@ Authors:
 //==== TEST_CRITERIA ME
 
 test(function () {
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+    if(ARMV7 || ARMV8){
         var id = "apiwidserv.widgetarm", myWidget;
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+    else if(X86){
         var id = "apiwidserv.widgetx86", myWidget;
     }
 
index d497f988e052c4aea7b9c3acfb91b0668e0224a9..a65cdb5255ad2ad1a0ce718247dd543350478769 100755 (executable)
@@ -37,8 +37,8 @@ Authors:
 test(function () {
     var id, myWidget, retVal;
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -46,8 +46,8 @@ test(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index 5440277b15adf13794f31762d0838ca0adf07e72..04502a0b87efb703308f7eabc8be8915452d7f60 100755 (executable)
@@ -37,8 +37,8 @@ Authors:
 test(function () {
     var id, myWidget, retVal;
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -46,8 +46,8 @@ test(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
@@ -55,7 +55,6 @@ test(function () {
             console.log(id);
         }
     }
-
     myWidget = tizen.widgetservice.getWidget(id);
     retVal = myWidget.getVariant("4x4");
     assert_type(retVal, "object", "getVariant should return Object");
index b8c205357f2034189ee234de5370d2e9eb1178fd..26c516ae083836b2944ffae776918fdd9654fd99 100755 (executable)
@@ -37,8 +37,8 @@ Authors:
 test(function () {
     var id, myWidget;
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -46,8 +46,8 @@ test(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index c52f67d98c7dd52e5ff2a243277bebcdbf28411d..a4fd6405016792117318546fce0900308dac6064 100755 (executable)
@@ -37,8 +37,8 @@ Authors:
 test(function () {
     var id, myWidget, i, conversionTable;
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -46,8 +46,8 @@ test(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index 31cb3dd4c984e4f9c027e48e9198477c4f680816..86ccf8e59562bf6ab0330a255ebe6df761749011 100755 (executable)
@@ -45,8 +45,8 @@ t.step(function () {
         t.done();
     });
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -54,8 +54,8 @@ t.step(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index af655c138353ca0219dbeabbf4d9b3f148637ff4..d70ab4e21ad76d5142cbd33f2123e439a307ea5f 100755 (executable)
@@ -44,8 +44,8 @@ t.step(function () {
         assert_unreached("successCallback should not be invoked");
     });
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -53,8 +53,8 @@ t.step(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index 3c04da8b922bb824998292bb79e5e8a0a4ad0e3d..3e13d2c16a9f3f4e8321f2e2c566cd2ae4619f75 100755 (executable)
@@ -50,8 +50,8 @@ t.step(function () {
         assert_unreached("successCallback should not be invoked");
     });
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -59,8 +59,8 @@ t.step(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index dd8068a4d42347fe9ba075d5a89b6b16b93d6195..c442990a223329b0f93df6dd758adc54516888f7 100755 (executable)
@@ -38,8 +38,8 @@ Authors:
 test(function () {
     var id, myWidget;
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -47,8 +47,8 @@ test(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index 8ea9900f14e0417ff6acef0d594f83b41f24ab0d..6300c4ba59b79b33060c35fddab07f1cc2527ae6 100755 (executable)
@@ -38,8 +38,8 @@ Authors:
 test(function () {
     var id, myWidget;
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -47,8 +47,8 @@ test(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index c1658f5d3ab230341be2501126a79426bfc97c70..30f3bb1e6946cbaa269c715709c6c2c7a6aa905d 100755 (executable)
@@ -40,8 +40,8 @@ setup({timeout: 90000});
 var t = async_test(document.title, {timeout: 90000}), i, conversionTable, id, myWidget;
 
 t.step(function () {
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -49,8 +49,8 @@ t.step(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index 87931d42f33915910b60be1b8802bf7ad829f9be..db6d9651c81299a647b6a139f01d93130207c1b7 100755 (executable)
@@ -46,8 +46,8 @@ t.step(function () {
         })
     };
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -55,8 +55,8 @@ t.step(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index d037fec70141f3fce17cbfac48c34191ceb41a42..b4763dd91f264da4eaf44071d71b8d879a2e1c7d 100755 (executable)
@@ -49,8 +49,8 @@ t.step(function () {
         t.done();
     });
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -58,8 +58,8 @@ t.step(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index f50896fc442f247c8e7a3cf525687434ffa7245f..11ff151067c7396f54827ad7020c0d1bddfe3766 100755 (executable)
@@ -37,8 +37,8 @@ Authors:
 test(function () {
     var id, myWidget;
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -46,8 +46,8 @@ test(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index 51592d2061578d1c195867a9f8041060a40eeb7d..a07ab1eb169f4850a439d0b84080cb5c590bf9cf 100755 (executable)
@@ -37,8 +37,8 @@ Authors:
 test(function () {
     var id, myWidget;
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -46,8 +46,8 @@ test(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index 8230547204c36c3b91c873af2017adf23498d003..0f024eb6b5fc0aacba7a93eeb75cada942620f0b 100755 (executable)
@@ -37,8 +37,8 @@ Authors:
 test(function () {
     var id, myWidget;
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -46,8 +46,8 @@ test(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index 985d78e927e490b6d9f085e4550b937e1287635b..17d20a6120195846f96c6bd23b21c65607e23a1f 100755 (executable)
@@ -60,8 +60,8 @@ t.step(function () {
         t.done();
     });
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -69,8 +69,8 @@ t.step(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index 8a8d7c550569ea072559db28fefd03c2c6ec70a3..34b865084ff573e465db4976c2cb6953378598cc 100755 (executable)
@@ -37,8 +37,8 @@ Authors:
 test(function () {
     var id, myWidget;
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -46,8 +46,8 @@ test(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index b769070121360a8d25c3530ffa906edeb5dda414..7511e874741a7cd37563b9bceda7828df4507b71 100755 (executable)
@@ -37,8 +37,8 @@ Authors:
 test(function () {
     var id, myWidget;
 
-    if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+    if(ARMV7 || ARMV8){
+        if(ARCH === 'aarch64'){
             id = "apiwidserv.widgetaarch64";
             console.log(id);
         }else{
@@ -46,8 +46,8 @@ test(function () {
             console.log(id);
         }
     }
-    else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
-        if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+    else if(X86){
+        if(ARCH === 'x86_64'){
             id = "apiwidserv.widgetx86_64";
             console.log(id);
         }else{
index 93eb1e14a2bd54825a906f672a95b6d380fcd233..ca308980cda4103b0f4d02c06b8522583d8f2294 100755 (executable)
@@ -47,6 +47,10 @@ UNKNOWN_EXCEPTION = {name: 'UnknownError'};
 INVALID_STATE_EXCEPTION = {name: 'InvalidStateError'};
 INVALID_ACCESS_EXCEPTION = {name: 'InvalidAccessError'};
 
+var ARMV7 = tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7");
+var X86 = tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86");
+var ARMV8 = tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv8");
+var ARCH = tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch");
 (function () {
    var head_src = document.head.innerHTML;
    if (head_src.search(/\/testharness.js\W/) === -1) {