From: qunfang.lin Date: Mon, 13 Apr 2020 20:17:33 +0000 (+0800) Subject: [common][namespace][DPTTIZEN-3189, replace of deprecated method getCapabilities] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5cbfcecb8dbbd076a3eb387ff0e2a08558397ce9;p=test%2Ftct%2Fweb%2Fapi.git [common][namespace][DPTTIZEN-3189, replace of deprecated method getCapabilities] add: 0, modify: 6, delete: 0 Change-Id: Idbef80a547d16ba995f24ec78167177915369990 Signed-off-by: qunfang.lin --- diff --git a/common/tct-namespace-tizen-tests/namespace/Bluetooth_BluetoothManagerObject.html b/common/tct-namespace-tizen-tests/namespace/Bluetooth_BluetoothManagerObject.html index 2c81d93cd..53c898b8f 100755 --- a/common/tct-namespace-tizen-tests/namespace/Bluetooth_BluetoothManagerObject.html +++ b/common/tct-namespace-tizen-tests/namespace/Bluetooth_BluetoothManagerObject.html @@ -37,11 +37,9 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/bluetooth.html test(function () { - var deviceCapabilities= tizen.systeminfo.getCapabilities(); + var bluetooth = tizen.systeminfo.getCapability("http://tizen.org/feature/network.bluetooth"); - assert_own_property(deviceCapabilities, "bluetooth", "deviceCapabilities"); - - if (deviceCapabilities.bluetooth) { + if (bluetooth) { assert_type(tizen.bluetooth, "object", "tizen.bluetooth object must exist"); assert_not_equals(tizen.bluetooth, null, "tizen.bluetooth"); } else { diff --git a/common/tct-namespace-tizen-tests/namespace/Callhistory_CallHistoryObject.html b/common/tct-namespace-tizen-tests/namespace/Callhistory_CallHistoryObject.html index d8403b272..5edea1742 100755 --- a/common/tct-namespace-tizen-tests/namespace/Callhistory_CallHistoryObject.html +++ b/common/tct-namespace-tizen-tests/namespace/Callhistory_CallHistoryObject.html @@ -37,11 +37,9 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html test(function () { - var deviceCapabilities= tizen.systeminfo.getCapabilities(); + var telephony = tizen.systeminfo.getCapability("http://tizen.org/feature/network.telephony"); - assert_own_property(deviceCapabilities, "telephony", "deviceCapabilities"); - - if (deviceCapabilities.telephony) { + if (telephony) { assert_type(tizen.callhistory, "object", "tizen.callhistory object must exist"); assert_not_equals(tizen.callhistory, null, "tizen.callhistory"); } else { diff --git a/common/tct-namespace-tizen-tests/namespace/NFC_NFCManagerObject.html b/common/tct-namespace-tizen-tests/namespace/NFC_NFCManagerObject.html index 24f015c4f..6d8d413e5 100755 --- a/common/tct-namespace-tizen-tests/namespace/NFC_NFCManagerObject.html +++ b/common/tct-namespace-tizen-tests/namespace/NFC_NFCManagerObject.html @@ -37,11 +37,9 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/nfc.html test(function () { - var deviceCapabilities= tizen.systeminfo.getCapabilities(); + var nfc = tizen.systeminfo.getCapability("http://tizen.org/feature/network.nfc"); - assert_own_property(deviceCapabilities, "nfc", "deviceCapabilities"); - - if (deviceCapabilities.nfc) { + if (nfc) { assert_type(tizen.nfc, "object", "tizen.nfc object must exist"); assert_not_equals(tizen.nfc, null, "tizen.nfc"); } else { diff --git a/common/tct-namespace-tizen-tests/namespace/NetworkBearerSelection_NetworkBearerSelectionObject.html b/common/tct-namespace-tizen-tests/namespace/NetworkBearerSelection_NetworkBearerSelectionObject.html index d7c46030a..7cfa40756 100755 --- a/common/tct-namespace-tizen-tests/namespace/NetworkBearerSelection_NetworkBearerSelectionObject.html +++ b/common/tct-namespace-tizen-tests/namespace/NetworkBearerSelection_NetworkBearerSelectionObject.html @@ -37,11 +37,9 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/networkbearerselection.html test(function () { - var deviceCapabilities= tizen.systeminfo.getCapabilities(); + var telephony = tizen.systeminfo.getCapability("http://tizen.org/feature/network.telephony"); - assert_own_property(deviceCapabilities, "telephony", "deviceCapabilities"); - - if (deviceCapabilities.telephony) { + if (telephony) { assert_type(tizen.networkbearerselection, "object", "tizen.networkbearerselection object must exist"); assert_not_equals(tizen.networkbearerselection, null, "tizen.networkbearerselection"); } else { diff --git a/common/tct-namespace-tizen-tests/namespace/Push_PushManagerObject.html b/common/tct-namespace-tizen-tests/namespace/Push_PushManagerObject.html index 58c76448f..7d887c9e3 100755 --- a/common/tct-namespace-tizen-tests/namespace/Push_PushManagerObject.html +++ b/common/tct-namespace-tizen-tests/namespace/Push_PushManagerObject.html @@ -37,11 +37,9 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html test(function () { - var deviceCapabilities= tizen.systeminfo.getCapabilities(); + var push = tizen.systeminfo.getCapability("http://tizen.org/feature/network.push"); - assert_own_property(deviceCapabilities, "push", "deviceCapabilities"); - - if (deviceCapabilities.push) { + if (push) { assert_type(tizen.push, "object", "tizen.push object must exist"); assert_not_equals(tizen.push, null, "tizen.push"); } else { diff --git a/common/tct-namespace-tizen-tests/namespace/SecureElement_SEServiceManagerObject.html b/common/tct-namespace-tizen-tests/namespace/SecureElement_SEServiceManagerObject.html index 69c27ad14..e192dea53 100755 --- a/common/tct-namespace-tizen-tests/namespace/SecureElement_SEServiceManagerObject.html +++ b/common/tct-namespace-tizen-tests/namespace/SecureElement_SEServiceManagerObject.html @@ -37,11 +37,9 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/se.html test(function () { - var deviceCapabilities= tizen.systeminfo.getCapabilities(); + var secureElement = tizen.systeminfo.getCapability("http://tizen.org/feature/network.secure_element"); - assert_own_property(deviceCapabilities, "secureElement", "deviceCapabilities"); - - if (deviceCapabilities.secureElement) { + if (secureElement) { assert_type(tizen.seService, "object", "tizen.seService object must exist"); assert_not_equals(tizen.seService, null, "tizen.seService"); } else {