From: Witold Choinkowski Date: Tue, 24 Sep 2013 14:40:37 +0000 (+0200) Subject: [Bluetooth] cleanup attribute X-Git-Tag: 2.2.1_release~105^2~38 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6f0986e1a4ac2b4e54b791fec09383d9fb1b8f89;p=test%2Ftct%2Fweb%2Fapi.git [Bluetooth] cleanup attribute Change-Id: I18d3889902ea4f02b9a80369ba049a8fee3bdba7 --- diff --git a/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_address_attribute.html b/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_address_attribute.html index 0583d4b50..ab6ddcae9 100644 --- a/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_address_attribute.html +++ b/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_address_attribute.html @@ -31,7 +31,7 @@ Authors: --> -bluetooth.adapter.address - existence of property +BluetoothAdapter_address_attribute @@ -49,6 +49,7 @@ test(function () { adapter = tizen.bluetooth.getDefaultAdapter(); check_readonly(adapter, "address", adapter.address, "string", "Tizen"); }, "BluetoothAdapter_address_attribute"); + diff --git a/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_name_attribute.html b/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_name_attribute.html index d9887f51b..1d72e6f4c 100644 --- a/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_name_attribute.html +++ b/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_name_attribute.html @@ -31,7 +31,7 @@ Authors: --> -bluetooth.adapter.name - existence of property +BluetoothAdapter_name_attribute @@ -49,6 +49,7 @@ test(function () { adapter = tizen.bluetooth.getDefaultAdapter(); check_readonly(adapter, "name", adapter.name, "string", REMOTE_DEVICE_NAME + "Tizen"); }, "BluetoothAdapter_name_attribute"); + diff --git a/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_powered_attribute.html b/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_powered_attribute.html index 46aae4c09..a97479376 100644 --- a/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_powered_attribute.html +++ b/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_powered_attribute.html @@ -31,7 +31,7 @@ Authors: --> -bluetooth.adapter.powered - existence of property +BluetoothAdapter_powered_attribute @@ -49,6 +49,7 @@ test(function () { adapter = tizen.bluetooth.getDefaultAdapter(); check_readonly(adapter, "powered", adapter.powered, "boolean", !(adapter.powered)); }, "BluetoothAdapter_powered_attribute"); + diff --git a/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_visible_attribute.html b/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_visible_attribute.html index af13ca93a..94f2d9fd7 100644 --- a/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_visible_attribute.html +++ b/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_visible_attribute.html @@ -28,11 +28,14 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Authors: Lei, ZhanX +Revision history: +Date Author Description +02-17-2012 Lei, ZhanX case creation --> -bluetooth.adapter.visible - existence of property +BluetoothAdapter_visible_attribute diff --git a/tct-bluetooth-tizen-tests/bluetooth/BluetoothHealthApplication_dataType_attribute.html b/tct-bluetooth-tizen-tests/bluetooth/BluetoothHealthApplication_dataType_attribute.html index 0a71e4fb1..c287e71ab 100644 --- a/tct-bluetooth-tizen-tests/bluetooth/BluetoothHealthApplication_dataType_attribute.html +++ b/tct-bluetooth-tizen-tests/bluetooth/BluetoothHealthApplication_dataType_attribute.html @@ -36,11 +36,11 @@ Authors: //==== PRIORITY P1 //==== ONLOAD_DELAY 90 //==== SPEC Tizen Web API:Communication:Bluetooth:BluetoothHealthApplication:dataType A -//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/bluetooth.html\ +//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/bluetooth.html //==== TEST_CRITERIA AE AT ARO setup({timeout:90000, explicit_done:true}); -var adapter, healthProfileHandler,powerOnSuccess , powerOnError, healthRegisterSuccess, healthRegisterError, +var adapter, healthProfileHandler, powerOnSuccess, healthRegisterSuccess, healthRegisterError, t = async_test("BluetoothHealthApplication_dataType_attribute", {timeout:90000}), appName = "testSinkApp"; t.step(function () { @@ -67,12 +67,9 @@ t.step(function () { healthProfileHandler.registerSinkApplication(REMOTE_HEALTH_DEVICE_TYPE, appName, healthRegisterSuccess, healthRegisterError); }); - powerOnError = t.step_func(function (e) { - assert_unreached("powerOnError exception:" + e.message); - }); - - adapter.setPowered(true, powerOnSuccess, powerOnError); + setPowered(t, adapter, powerOnSuccess); }); + diff --git a/tct-bluetooth-tizen-tests/bluetooth/BluetoothHealthApplication_name_attribute.html b/tct-bluetooth-tizen-tests/bluetooth/BluetoothHealthApplication_name_attribute.html index 6b8398a2e..f7ad73ca1 100644 --- a/tct-bluetooth-tizen-tests/bluetooth/BluetoothHealthApplication_name_attribute.html +++ b/tct-bluetooth-tizen-tests/bluetooth/BluetoothHealthApplication_name_attribute.html @@ -36,11 +36,11 @@ Authors: //==== PRIORITY P2 //==== ONLOAD_DELAY 90 //==== SPEC Tizen Web API:Communication:Bluetooth:BluetoothHealthApplication:name A -//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/bluetooth.html\ +//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/bluetooth.html //==== TEST_CRITERIA AE AT ARO setup({timeout:90000, explicit_done:true}); -var adapter, healthProfileHandler,powerOnSuccess , powerOnError, healthRegisterSuccess, healthRegisterError, +var adapter, healthProfileHandler,powerOnSuccess, healthRegisterSuccess, healthRegisterError, t = async_test("BluetoothHealthApplication_name_attribute", {timeout:90000}), appName = "testSinkApp"; t.step(function () { @@ -66,12 +66,9 @@ t.step(function () { healthProfileHandler.registerSinkApplication(REMOTE_HEALTH_DEVICE_TYPE, appName, healthRegisterSuccess, healthRegisterError); }); - powerOnError = t.step_func(function (e) { - assert_unreached("powerOnError exception:" + e.message); - }); - - adapter.setPowered(true, powerOnSuccess, powerOnError); + setPowered(t, adapter, powerOnSuccess); }); + diff --git a/tct-bluetooth-tizen-tests/bluetooth/BluetoothHealthApplication_onconnect_attribute.html b/tct-bluetooth-tizen-tests/bluetooth/BluetoothHealthApplication_onconnect_attribute.html index c1eeef878..af7827517 100644 --- a/tct-bluetooth-tizen-tests/bluetooth/BluetoothHealthApplication_onconnect_attribute.html +++ b/tct-bluetooth-tizen-tests/bluetooth/BluetoothHealthApplication_onconnect_attribute.html @@ -36,11 +36,11 @@ Authors: //==== PRIORITY P2 //==== ONLOAD_DELAY 90 //==== SPEC Tizen Web API:Communication:Bluetooth:BluetoothHealthApplication:onconnect A -//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/bluetooth.html\ +//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/bluetooth.html //==== TEST_CRITERIA AE ADV ASG AT setup({timeout:90000, explicit_done:true}); -var adapter, healthProfileHandler,powerOnSuccess , powerOnError, healthRegisterSuccess, healthRegisterError, testOnconnect, +var adapter, healthProfileHandler,powerOnSuccess, healthRegisterSuccess, healthRegisterError, testOnconnect, t = async_test("BluetoothHealthApplication_onconnect_attribute", {timeout:90000}), appName = "testSinkApp"; t.step(function () { @@ -66,12 +66,9 @@ t.step(function () { healthProfileHandler.registerSinkApplication(REMOTE_HEALTH_DEVICE_TYPE, appName, healthRegisterSuccess, healthRegisterError); }); - powerOnError = t.step_func(function (e) { - assert_unreached("powerOnError exception:" + e.message); - }); - - adapter.setPowered(true, powerOnSuccess, powerOnError); + setPowered(t, adapter, powerOnSuccess); }); + diff --git a/tct-bluetooth-tizen-tests/bluetooth/BluetoothManagerObject_bluetooth_attribute.html b/tct-bluetooth-tizen-tests/bluetooth/BluetoothManagerObject_bluetooth_attribute.html index e1070f526..bdc608f63 100644 --- a/tct-bluetooth-tizen-tests/bluetooth/BluetoothManagerObject_bluetooth_attribute.html +++ b/tct-bluetooth-tizen-tests/bluetooth/BluetoothManagerObject_bluetooth_attribute.html @@ -31,7 +31,7 @@ Authors: --> -BluetoothManagerObject.bluetooth - correctness of property +BluetoothManagerObject_bluetooth_attribute @@ -49,6 +49,7 @@ test(function () { var bt = tizen.bluetooth; check_readonly(tizen, "bluetooth", bt, "object", "Tizen"); }, "BluetoothManagerObject_bluetooth_attribute"); + diff --git a/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_deviceMajor_attribute.html b/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_deviceMajor_attribute.html index 049bc3184..914cf5d87 100644 --- a/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_deviceMajor_attribute.html +++ b/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_deviceMajor_attribute.html @@ -31,7 +31,7 @@ Authors: --> -BluetoothManager.deviceMajor - correctness of property +BluetoothManager_deviceMajor_attribute @@ -49,6 +49,7 @@ test(function () { var major = tizen.bluetooth.deviceMajor; check_readonly(tizen.bluetooth, "deviceMajor", major, "object", "Tizen"); }, "BluetoothManager_deviceMajor_attribute"); + diff --git a/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_deviceMinor_attribute.html b/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_deviceMinor_attribute.html index 91ee10bc3..027296062 100644 --- a/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_deviceMinor_attribute.html +++ b/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_deviceMinor_attribute.html @@ -31,7 +31,7 @@ Authors: --> -BluetoothManager.deviceMinor - correctness of property +BluetoothManager_deviceMinor_attribute @@ -49,6 +49,7 @@ test(function () { var minor = tizen.bluetooth.deviceMinor; check_readonly(tizen.bluetooth, "deviceMinor", minor, "object", "Tizen"); }, "BluetoothManager_deviceMinor_attribute"); + diff --git a/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_deviceService_attribute.html b/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_deviceService_attribute.html index 20fbed6a6..e001eb381 100644 --- a/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_deviceService_attribute.html +++ b/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_deviceService_attribute.html @@ -31,7 +31,7 @@ Authors: --> -BluetoothManager.deviceService - correctness of property +BluetoothManager_deviceService_attribute @@ -49,6 +49,7 @@ test(function () { var devService = tizen.bluetooth.deviceService; check_readonly(tizen.bluetooth, "deviceService", devService, "object", "Tizen"); }, "BluetoothManager_deviceService_attribute"); + diff --git a/tct-bluetooth-tizen-tests/bluetooth/BluetoothProfileHandler_profileType_attribute.html b/tct-bluetooth-tizen-tests/bluetooth/BluetoothProfileHandler_profileType_attribute.html index f850eb6c3..4b30194ad 100644 --- a/tct-bluetooth-tizen-tests/bluetooth/BluetoothProfileHandler_profileType_attribute.html +++ b/tct-bluetooth-tizen-tests/bluetooth/BluetoothProfileHandler_profileType_attribute.html @@ -47,6 +47,7 @@ test(function () { check_readonly(healthProfileHandler, "profileType", healthProfileHandler.profileType, "string", "Tizen"); assert_in_array(healthProfileHandler.profileType, BLUETOOTH_PROFILE_TYPE, "healthProfileHandler profileType has wrong value"); }, "BluetoothProfileHandler_profileType_attribute"); + diff --git a/tct-bluetooth-tizen-tests/bluetooth/BluetoothServiceHandler_isConnected_attribute.html b/tct-bluetooth-tizen-tests/bluetooth/BluetoothServiceHandler_isConnected_attribute.html index 75f8b3b2f..878521416 100644 --- a/tct-bluetooth-tizen-tests/bluetooth/BluetoothServiceHandler_isConnected_attribute.html +++ b/tct-bluetooth-tizen-tests/bluetooth/BluetoothServiceHandler_isConnected_attribute.html @@ -31,7 +31,7 @@ Authors: --> -BluetoothServiceHandler.isConnected - correctness of property +BluetoothServiceHandler_isConnected_attribute @@ -51,7 +51,7 @@ setup({timeout: 90000, explicit_done:true}); var t = async_test("BluetoothServiceHandler_isConnected_attribute", {timeout: 90000}); t.step(function () { - var adapter, powerOnSuccess, powerOnError, chatServiceSuccessCallback, chatServiceErrorCallback, + var adapter, powerOnSuccess, chatServiceSuccessCallback, chatServiceErrorCallback, isConnected; chatServiceSuccessCallback = t.step_func(function (handler) { @@ -70,13 +70,10 @@ t.step(function () { adapter.registerRFCOMMServiceByUUID(CHAT_SERVICE_UUID, "Chat service", chatServiceSuccessCallback, chatServiceErrorCallback); }); - powerOnError = t.step_func(function (e) { - assert_unreached("powerOnError exception " + e.message); - }); - adapter = tizen.bluetooth.getDefaultAdapter(); - adapter.setPowered(true, powerOnSuccess, powerOnError); + setPowered(t, adapter, powerOnSuccess); }); + diff --git a/tct-bluetooth-tizen-tests/bluetooth/BluetoothServiceHandler_name_attribute.html b/tct-bluetooth-tizen-tests/bluetooth/BluetoothServiceHandler_name_attribute.html index bdc150926..0c7ed2e5e 100644 --- a/tct-bluetooth-tizen-tests/bluetooth/BluetoothServiceHandler_name_attribute.html +++ b/tct-bluetooth-tizen-tests/bluetooth/BluetoothServiceHandler_name_attribute.html @@ -31,7 +31,7 @@ Authors: --> -BluetoothServiceHandler.name - correctness of property +BluetoothServiceHandler_name_attribute @@ -51,7 +51,7 @@ setup({timeout: 90000, explicit_done:true}); var t = async_test("BluetoothServiceHandler_name_attribute", {timeout: 90000}); t.step(function () { - var adapter, powerOnSuccess, powerOnError, chatServiceSuccessCallback, chatServiceErrorCallback, + var adapter, powerOnSuccess, chatServiceSuccessCallback, chatServiceErrorCallback, name; chatServiceSuccessCallback = t.step_func(function (handler) { @@ -70,12 +70,8 @@ t.step(function () { adapter.registerRFCOMMServiceByUUID(CHAT_SERVICE_UUID, "Chat service", chatServiceSuccessCallback, chatServiceErrorCallback); }); - powerOnError = t.step_func(function (e) { - assert_unreached("powerOnError exception " + e.message); - }); - adapter = tizen.bluetooth.getDefaultAdapter(); - adapter.setPowered(true, powerOnSuccess, powerOnError); + setPowered(t, adapter, powerOnSuccess); }); diff --git a/tct-bluetooth-tizen-tests/bluetooth/BluetoothServiceHandler_onconnect_attribute.html b/tct-bluetooth-tizen-tests/bluetooth/BluetoothServiceHandler_onconnect_attribute.html index c18e7edb1..9d7179fae 100644 --- a/tct-bluetooth-tizen-tests/bluetooth/BluetoothServiceHandler_onconnect_attribute.html +++ b/tct-bluetooth-tizen-tests/bluetooth/BluetoothServiceHandler_onconnect_attribute.html @@ -20,7 +20,7 @@ limitations under the License. Authors: Witold Choinkowski --> - + BluetoothServiceHandler_onconnect_attribute @@ -111,12 +111,10 @@ this_test.step(function () { poweredSuccess = self.step_func(function (e) { adapter.setVisible(true, visibleSuccess, visibleError); }); - adapter.setPowered(true, poweredSuccess, onError); + adapter.setPowered(true, poweredSuccess, onError); }); - - diff --git a/tct-bluetooth-tizen-tests/bluetooth/BluetoothServiceHandler_uuid_attribute.html b/tct-bluetooth-tizen-tests/bluetooth/BluetoothServiceHandler_uuid_attribute.html index 68434f8f1..7d77f256d 100644 --- a/tct-bluetooth-tizen-tests/bluetooth/BluetoothServiceHandler_uuid_attribute.html +++ b/tct-bluetooth-tizen-tests/bluetooth/BluetoothServiceHandler_uuid_attribute.html @@ -31,7 +31,7 @@ Authors: --> -BluetoothServiceHandler.uuid - correctness of property +BluetoothServiceHandler_uuid_attribute @@ -49,7 +49,7 @@ Authors: setup({timeout:90000, explicit_done:true}); var t = async_test("BluetoothServiceHandler_uuid_attribute", {timeout:90000}); t.step(function () { - var adapter, powerOnSuccess, powerOnError, chatServiceSuccessCallback, chatServiceErrorCallback, + var adapter, powerOnSuccess, chatServiceSuccessCallback, chatServiceErrorCallback, uuid; chatServiceSuccessCallback = t.step_func(function (handler) { @@ -68,13 +68,10 @@ t.step(function () { adapter.registerRFCOMMServiceByUUID(CHAT_SERVICE_UUID, "Chat service", chatServiceSuccessCallback, chatServiceErrorCallback); }); - powerOnError = t.step_func(function (e) { - assert_unreached("powerOnError exception " + e.message); - }); - adapter = tizen.bluetooth.getDefaultAdapter(); - adapter.setPowered(true, powerOnSuccess, powerOnError); + setPowered(t, adapter, powerOnSuccess); }); + diff --git a/tct-bluetooth-tizen-tests/tests.full.xml b/tct-bluetooth-tizen-tests/tests.full.xml index f2479a27e..e4ecbeffa 100644 --- a/tct-bluetooth-tizen-tests/tests.full.xml +++ b/tct-bluetooth-tizen-tests/tests.full.xml @@ -3315,7 +3315,7 @@ - https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/bluetooth.html\ + https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/bluetooth.html TBD @@ -3327,7 +3327,7 @@ - https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/bluetooth.html\ + https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/bluetooth.html TBD @@ -3339,7 +3339,7 @@ - https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/bluetooth.html\ + https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/bluetooth.html TBD