From: mengli.zhang Date: Wed, 24 May 2017 20:44:48 +0000 (-0400) Subject: [common][systeminfo][fix tc issue] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=799c5a23c8d43a897371a0e0d003286337a8039c;p=test%2Ftct%2Fweb%2Fapi.git [common][systeminfo][fix tc issue] Change-Id: I875af7336ed2adc5bab49a9027a9918fc8145a23 Signed-off-by: mengli.zhang --- diff --git a/common/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getPropertyValue.html b/common/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getPropertyValue.html index 1077623a5..0a3021964 100755 --- a/common/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getPropertyValue.html +++ b/common/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getPropertyValue.html @@ -51,13 +51,12 @@ setup({timeout: 90000}); var t = async_test(document.title, {timeout: 90000}), getPropertyValueSuccess, retValue = null; t.step(function () { - getPropertyValueSuccess = t.step_func(function (battery) { - assert_not_equals(battery.level, null, "Fail to getPropertyValue"); + getPropertyValueSuccess = t.step_func(function (cellular) { assert_equals(retValue, undefined, "getPropertyValue returns wrong value"); t.done(); }); - retValue = tizen.systeminfo.getPropertyValue("BATTERY", getPropertyValueSuccess); + retValue = tizen.systeminfo.getPropertyValue("BUILD", getPropertyValueSuccess); }); diff --git a/common/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getPropertyValueArray.html b/common/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getPropertyValueArray.html index 21bd71587..215d33a33 100755 --- a/common/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getPropertyValueArray.html +++ b/common/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getPropertyValueArray.html @@ -42,12 +42,11 @@ setup({timeout: 90000}); var t = async_test(document.title, {timeout: 90000}), getPropertyValueArraySuccess, retValue = null; t.step(function () { - getPropertyValueArraySuccess = t.step_func(function (battery) { - assert_not_equals(battery.level, null, "Fail to getPropertyValueArray"); + getPropertyValueArraySuccess = t.step_func(function (cellular) { assert_equals(retValue, undefined, "getPropertyValueArray returns wrong value"); t.done(); }); - retValue = tizen.systeminfo.getPropertyValueArray("BATTERY", getPropertyValueArraySuccess); + retValue = tizen.systeminfo.getPropertyValueArray("BUILD", getPropertyValueArraySuccess); }); diff --git a/common/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getPropertyValue_with_errorCallback.html b/common/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getPropertyValue_with_errorCallback.html index 41e3ce58d..3444533ba 100755 --- a/common/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getPropertyValue_with_errorCallback.html +++ b/common/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getPropertyValue_with_errorCallback.html @@ -49,11 +49,11 @@ Authors: setup({timeout: 90000}); var t = async_test(document.title, {timeout: 90000}), - getPropertyValueSuccess, getPropertyValueError; + getPropertyValueSuccess, getPropertyValueError, retValue = null; t.step(function () { - getPropertyValueSuccess = t.step_func(function (battery) { - assert_not_equals(battery.level, null, "Failed to getPropertyValue"); + getPropertyValueSuccess = t.step_func(function (cellular) { + assert_equals(retValue, undefined, "getPropertyValueArray returns wrong value"); t.done(); }); getPropertyValueError = t.step_func(function (error) { @@ -61,7 +61,7 @@ t.step(function () { error.name + ", msg: " + error.message); }); - tizen.systeminfo.getPropertyValue("BATTERY", getPropertyValueSuccess, getPropertyValueError); + retValue = tizen.systeminfo.getPropertyValue("BUILD", getPropertyValueSuccess, getPropertyValueError); }); diff --git a/common/tct-systeminfo-tizen-tests/tests.full.xml b/common/tct-systeminfo-tizen-tests/tests.full.xml index 068a81e17..2491dd484 100755 --- a/common/tct-systeminfo-tizen-tests/tests.full.xml +++ b/common/tct-systeminfo-tizen-tests/tests.full.xml @@ -316,42 +316,6 @@ - - - /opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfoBattery_extend.html - - - - - https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systeminfo.html - TBD - - - - - - /opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfoBattery_level_attribute.html - - - - - https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systeminfo.html - TBD - - - - - - /opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfoBattery_isCharging_attribute.html - - - - - https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systeminfo.html - TBD - - - /opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_extend.html @@ -9226,30 +9190,6 @@ - - - /opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfoBattery_extend.html - - - - - https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systeminfo.html - TBD - - - - - - /opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfoBattery_isCharging_attribute.html - - - - - https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systeminfo.html - TBD - - - /opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_extend.html @@ -9622,18 +9562,6 @@ - - - /opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getPropertyValue_with_errorCallback.html - - - - - https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systeminfo.html - TBD - - - /opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getPropertyValue_property_TypeMismatch.html @@ -9874,18 +9802,6 @@ - - - /opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfoPropertySuccessCallback_onsuccess_Battery.html - - - - - https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systeminfo.html - TBD - - - /opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfoPropertySuccessCallback_onsuccess_Build.html diff --git a/common/tct-systeminfo-tizen-tests/tests.xml b/common/tct-systeminfo-tizen-tests/tests.xml index 879edf640..2033ffc5e 100755 --- a/common/tct-systeminfo-tizen-tests/tests.xml +++ b/common/tct-systeminfo-tizen-tests/tests.xml @@ -3446,16 +3446,6 @@ /opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfoNetwork_networkType_attribute.html - - - /opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfoBattery_extend.html - - - - - /opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfoBattery_isCharging_attribute.html - - /opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_extend.html @@ -3711,11 +3701,6 @@ /opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getPropertyValue_successCallback_TypeMismatch.html - - - /opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfoPropertySuccessCallback_onsuccess_Battery.html - - /opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfoPropertySuccessCallback_onsuccess_Build.html