From: Witold Choinkowski Date: Tue, 24 Sep 2013 14:43:29 +0000 (+0200) Subject: [Bluetooth] cleanup extend X-Git-Tag: 2.2.1_release~105^2~37 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a10388b81e442d43e944058aa6772fd4703f9cf0;p=test%2Ftct%2Fweb%2Fapi.git [Bluetooth] cleanup extend Change-Id: Ib202af10c324d0bed7900e3dca287dc30741c9c6 --- diff --git a/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_extend.html b/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_extend.html index 565d76df7..bc6461889 100644 --- a/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_extend.html +++ b/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_extend.html @@ -23,7 +23,7 @@ Authors: --> -BluetoothAdapter extend +BluetoothAdapter_extend @@ -37,10 +37,11 @@ Authors: //==== SPEC Tizen Web API:Communication:Bluetooth:BluetoothAdapter:BluetoothAdapter U //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/bluetooth.html //==== TEST_CRITERIA OBX -test(function() { +test(function () { var adapter = tizen.bluetooth.getDefaultAdapter(); check_extensibility(adapter); }, "BluetoothAdapter_extend"); + diff --git a/tct-bluetooth-tizen-tests/bluetooth/BluetoothClassDeviceMajor_extend.html b/tct-bluetooth-tizen-tests/bluetooth/BluetoothClassDeviceMajor_extend.html index 7c9cbc99d..4e2bdb1e9 100644 --- a/tct-bluetooth-tizen-tests/bluetooth/BluetoothClassDeviceMajor_extend.html +++ b/tct-bluetooth-tizen-tests/bluetooth/BluetoothClassDeviceMajor_extend.html @@ -23,7 +23,7 @@ Authors: --> -BluetoothClassDeviceMajor notexist +BluetoothClassDeviceMajor_extend @@ -40,6 +40,7 @@ Authors: test(function () { check_extensibility(tizen.bluetooth.deviceMajor); }, "BluetoothClassDeviceMajor_extend"); + diff --git a/tct-bluetooth-tizen-tests/bluetooth/BluetoothClassDeviceMinor_extend.html b/tct-bluetooth-tizen-tests/bluetooth/BluetoothClassDeviceMinor_extend.html index f8055fbe3..8ea2ccafc 100644 --- a/tct-bluetooth-tizen-tests/bluetooth/BluetoothClassDeviceMinor_extend.html +++ b/tct-bluetooth-tizen-tests/bluetooth/BluetoothClassDeviceMinor_extend.html @@ -40,6 +40,7 @@ Authors: test(function () { check_extensibility(tizen.bluetooth.deviceMinor); }, "BluetoothClassDeviceMinor_extend"); + diff --git a/tct-bluetooth-tizen-tests/bluetooth/BluetoothClassDeviceService_extend.html b/tct-bluetooth-tizen-tests/bluetooth/BluetoothClassDeviceService_extend.html index 062939a2d..8580b169a 100644 --- a/tct-bluetooth-tizen-tests/bluetooth/BluetoothClassDeviceService_extend.html +++ b/tct-bluetooth-tizen-tests/bluetooth/BluetoothClassDeviceService_extend.html @@ -23,7 +23,7 @@ Authors: --> -BluetoothClassDeviceService extendt +BluetoothClassDeviceService_extend @@ -40,6 +40,7 @@ Authors: test(function () { check_extensibility(tizen.bluetooth.deviceService); }, "BluetoothClassDeviceService_extend"); + diff --git a/tct-bluetooth-tizen-tests/bluetooth/BluetoothHealthApplication_extend.html b/tct-bluetooth-tizen-tests/bluetooth/BluetoothHealthApplication_extend.html index cff08732e..d9f39683c 100644 --- a/tct-bluetooth-tizen-tests/bluetooth/BluetoothHealthApplication_extend.html +++ b/tct-bluetooth-tizen-tests/bluetooth/BluetoothHealthApplication_extend.html @@ -36,11 +36,11 @@ Authors: //==== PRIORITY P3 //==== ONLOAD_DELAY 90 //==== SPEC Tizen Web API:Communication:Bluetooth:BluetoothHealthApplication:BluetoothHealthApplication U -//==== 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 OBX setup({timeout:90000, explicit_done:true}); -var adapter, healthProfileHandler,powerOnSuccess , powerOnError, healthRegisterSuccess, healthRegisterError, +var adapter, healthProfileHandler,powerOnSuccess, healthRegisterSuccess, healthRegisterError, t = async_test("BluetoothHealthApplication_extend", {timeout:90000}); t.step(function () { @@ -62,12 +62,9 @@ t.step(function () { healthProfileHandler.registerSinkApplication(REMOTE_HEALTH_DEVICE_TYPE, "testSinkApp", 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/BluetoothHealthProfileHandler_extend.html b/tct-bluetooth-tizen-tests/bluetooth/BluetoothHealthProfileHandler_extend.html index 2a4db2fcd..5eaecc7ce 100644 --- a/tct-bluetooth-tizen-tests/bluetooth/BluetoothHealthProfileHandler_extend.html +++ b/tct-bluetooth-tizen-tests/bluetooth/BluetoothHealthProfileHandler_extend.html @@ -35,7 +35,7 @@ Authors: //==== LABEL test whether the object BluetoothHealthProfileHandler can have new properties added it //==== PRIORITY P3 //==== SPEC Tizen Web API:Communication:Bluetooth:BluetoothHealthProfileHandler:BluetoothHealthProfileHandler U -//==== 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 OBX var adapter, healthProfileHandler; test(function () { @@ -44,6 +44,7 @@ test(function () { check_extensibility(healthProfileHandler); }, "BluetoothHealthProfileHandler_extend"); + diff --git a/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_extend.html b/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_extend.html index 87ce8e8ec..7a78c8f7f 100644 --- a/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_extend.html +++ b/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_extend.html @@ -23,7 +23,7 @@ Authors: --> -BluetoothManager extendt +BluetoothManager_extend @@ -37,9 +37,10 @@ Authors: //==== SPEC Tizen Web API:Communication:Bluetooth:BluetoothManager:BluetoothManager U //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/bluetooth.html //==== TEST_CRITERIA OBX -test(function() { +test(function () { check_extensibility(tizen.bluetooth); }, "BluetoothManager_extend"); + - + diff --git a/tct-bluetooth-tizen-tests/bluetooth/BluetoothProfileHandler_extend.html b/tct-bluetooth-tizen-tests/bluetooth/BluetoothProfileHandler_extend.html index c8fad72b7..7face6569 100644 --- a/tct-bluetooth-tizen-tests/bluetooth/BluetoothProfileHandler_extend.html +++ b/tct-bluetooth-tizen-tests/bluetooth/BluetoothProfileHandler_extend.html @@ -23,7 +23,7 @@ Authors: --> -BluetoothProfileHandler extend +BluetoothProfileHandler_extend @@ -43,6 +43,7 @@ test(function () { healthProfileHandler = adapter.getBluetoothProfileHandler(profileType); check_extensibility(healthProfileHandler); }, "BluetoothProfileHandler_extend"); + diff --git a/tct-bluetooth-tizen-tests/bluetooth/BluetoothServiceHandler_extend.html b/tct-bluetooth-tizen-tests/bluetooth/BluetoothServiceHandler_extend.html index 8e3b6cdc7..212ed595a 100644 --- a/tct-bluetooth-tizen-tests/bluetooth/BluetoothServiceHandler_extend.html +++ b/tct-bluetooth-tizen-tests/bluetooth/BluetoothServiceHandler_extend.html @@ -40,7 +40,7 @@ Authors: //==== TEST_CRITERIA OBX setup({timeout: 90000, explicit_done:true}); -var adapter = null, t = async_test("BluetoothServiceHandler_extend", {timeout: 90000}), powerOnError, powerOnSuccess, +var adapter = null, t = async_test("BluetoothServiceHandler_extend", {timeout: 90000}), powerOnSuccess, registerRFCOMMServiceByUUIDError, registerRFCOMMServiceByUUIDSuccess; t.step(function () { @@ -59,13 +59,10 @@ t.step(function () { adapter.registerRFCOMMServiceByUUID(CHAT_SERVICE_UUID, "Chat service", registerRFCOMMServiceByUUIDSuccess, registerRFCOMMServiceByUUIDError); }); - 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 e4ecbeffa..803e14341 100644 --- a/tct-bluetooth-tizen-tests/tests.full.xml +++ b/tct-bluetooth-tizen-tests/tests.full.xml @@ -3303,7 +3303,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 @@ -3375,7 +3375,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