[Bluetooth] cleanup attribute
authorWitold Choinkowski <w.choinkowsk@samsung.com>
Tue, 24 Sep 2013 14:40:37 +0000 (16:40 +0200)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Mon, 7 Oct 2013 13:52:07 +0000 (13:52 +0000)
Change-Id: I18d3889902ea4f02b9a80369ba049a8fee3bdba7

17 files changed:
tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_address_attribute.html
tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_name_attribute.html
tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_powered_attribute.html
tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_visible_attribute.html
tct-bluetooth-tizen-tests/bluetooth/BluetoothHealthApplication_dataType_attribute.html
tct-bluetooth-tizen-tests/bluetooth/BluetoothHealthApplication_name_attribute.html
tct-bluetooth-tizen-tests/bluetooth/BluetoothHealthApplication_onconnect_attribute.html
tct-bluetooth-tizen-tests/bluetooth/BluetoothManagerObject_bluetooth_attribute.html
tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_deviceMajor_attribute.html
tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_deviceMinor_attribute.html
tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_deviceService_attribute.html
tct-bluetooth-tizen-tests/bluetooth/BluetoothProfileHandler_profileType_attribute.html
tct-bluetooth-tizen-tests/bluetooth/BluetoothServiceHandler_isConnected_attribute.html
tct-bluetooth-tizen-tests/bluetooth/BluetoothServiceHandler_name_attribute.html
tct-bluetooth-tizen-tests/bluetooth/BluetoothServiceHandler_onconnect_attribute.html
tct-bluetooth-tizen-tests/bluetooth/BluetoothServiceHandler_uuid_attribute.html
tct-bluetooth-tizen-tests/tests.full.xml

index 0583d4b502bef0eea58c49c9a8248d0155359f9c..ab6ddcae9f47546b17d2dd2adca4f07a7ee9e75e 100644 (file)
@@ -31,7 +31,7 @@ Authors:
 -->
 <html>
 <head>
-<title>bluetooth.adapter.address - existence of property</title>
+<title>BluetoothAdapter_address_attribute</title>
 <script src="../resources/unitcommon.js"></script>
 <script src="support/bluetooth_common.js"></script>
 </head>
@@ -49,6 +49,7 @@ test(function () {
     adapter = tizen.bluetooth.getDefaultAdapter();
     check_readonly(adapter, "address", adapter.address, "string", "Tizen");
 }, "BluetoothAdapter_address_attribute");
+
 </script>
 </body>
 </html>
index d9887f51bdbb862a0cebaba8fc33b50584c460bf..1d72e6f4c850a78950ca792f89156c62e4b13296 100644 (file)
@@ -31,7 +31,7 @@ Authors:
 -->
 <html>
 <head>
-<title>bluetooth.adapter.name - existence of property</title>
+<title>BluetoothAdapter_name_attribute</title>
 <script src="../resources/unitcommon.js"></script>
 <script src="support/bluetooth_common.js"></script>
 </head>
@@ -49,6 +49,7 @@ test(function () {
     adapter = tizen.bluetooth.getDefaultAdapter();
     check_readonly(adapter, "name", adapter.name, "string", REMOTE_DEVICE_NAME + "Tizen");
 }, "BluetoothAdapter_name_attribute");
+
 </script>
 </body>
 </html>
index 46aae4c09046a1de5322bc113a5e469d25fd6995..a974793763b3bc8d5e2acd67a806f90dcb88b8cb 100644 (file)
@@ -31,7 +31,7 @@ Authors:
 -->
 <html>
 <head>
-<title>bluetooth.adapter.powered - existence of property</title>
+<title>BluetoothAdapter_powered_attribute</title>
 <script src="../resources/unitcommon.js"></script>
 <script src="support/bluetooth_common.js"></script>
 </head>
@@ -49,6 +49,7 @@ test(function () {
     adapter = tizen.bluetooth.getDefaultAdapter();
     check_readonly(adapter, "powered", adapter.powered, "boolean", !(adapter.powered));
 }, "BluetoothAdapter_powered_attribute");
+
 </script>
 </body>
 </html>
index af13ca93adfe558cda139ca9f9572b17e17dabf8..94f2d9fd7386855c8439474a8c80bfb2edd59787 100644 (file)
@@ -28,11 +28,14 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 Authors:
         Lei, ZhanX <zhanx.lei@intel.com>
 
+Revision history:
+Date                        Author                        Description
+02-17-2012         Lei, ZhanX <zhanx.lei@intel.com>       case creation
 
 -->
 <html>
 <head>
-<title>bluetooth.adapter.visible - existence of property</title>
+<title>BluetoothAdapter_visible_attribute</title>
 <script src="../resources/unitcommon.js"></script>
 <script src="support/bluetooth_common.js"></script>
 </head>
index 0a71e4fb1f6ab0cd7fba26fb2c1e21193626ec59..c287e71ab39e5201786394a01998af08ab9b720b 100644 (file)
@@ -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);
 });
+
 </script>
 </body>
 </html>
index 6b8398a2ea19503ea2df4220fdc8ebdcf0403729..f7ad73ca143700466aa1ebd257bcba517ddc3a70 100644 (file)
@@ -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);
 });
+
 </script>
 </body>
 </html>
index c1eeef878603db7883f0bb7e6a069496f3868b4e..af78275173aba4b1b3b544761f228709417f0ad1 100644 (file)
@@ -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);
 });
+
 </script>
 </body>
 </html>
index e1070f5269bc9a84397c915ea3518187c11dc99c..bdc608f6395ac5aafff47c1095bf8364b5dc2fe5 100644 (file)
@@ -31,7 +31,7 @@ Authors:
 -->
 <html>
 <head>
-<title>BluetoothManagerObject.bluetooth - correctness of property</title>
+<title>BluetoothManagerObject_bluetooth_attribute</title>
 <script src="../resources/unitcommon.js"></script>
 <script src="support/bluetooth_common.js"></script>
 </head>
@@ -49,6 +49,7 @@ test(function () {
     var bt = tizen.bluetooth;
     check_readonly(tizen, "bluetooth", bt, "object", "Tizen");
 }, "BluetoothManagerObject_bluetooth_attribute");
+
 </script>
 </body>
 </html>
index 049bc3184c291121b46e430d1d4c829fadef0764..914cf5d87d6c60cf13f975c5b53c09af23dbff73 100644 (file)
@@ -31,7 +31,7 @@ Authors:
 -->
 <html>
 <head>
-<title>BluetoothManager.deviceMajor - correctness of property</title>
+<title>BluetoothManager_deviceMajor_attribute</title>
 <script src="../resources/unitcommon.js"></script>
 <script src="support/bluetooth_common.js"></script>
 </head>
@@ -49,6 +49,7 @@ test(function () {
     var major = tizen.bluetooth.deviceMajor;
     check_readonly(tizen.bluetooth, "deviceMajor", major, "object", "Tizen");
 }, "BluetoothManager_deviceMajor_attribute");
+
 </script>
 </body>
 </html>
index 91ee10bc35107a9635974f78070a66ded86a91c7..027296062ad35aa0afc0d766c70c3e8448ebd8a9 100644 (file)
@@ -31,7 +31,7 @@ Authors:
 -->
 <html>
 <head>
-<title>BluetoothManager.deviceMinor - correctness of property</title>
+<title>BluetoothManager_deviceMinor_attribute</title>
 <script src="../resources/unitcommon.js"></script>
 <script src="support/bluetooth_common.js"></script>
 </head>
@@ -49,6 +49,7 @@ test(function () {
     var minor = tizen.bluetooth.deviceMinor;
     check_readonly(tizen.bluetooth, "deviceMinor", minor, "object", "Tizen");
 }, "BluetoothManager_deviceMinor_attribute");
+
 </script>
 </body>
 </html>
index 20fbed6a6af9f75ea150ca971529ca1b9c79005a..e001eb3819321ea9e9907a665fb38d5c4bd71f92 100644 (file)
@@ -31,7 +31,7 @@ Authors:
 -->
 <html>
 <head>
-<title>BluetoothManager.deviceService - correctness of property</title>
+<title>BluetoothManager_deviceService_attribute</title>
 <script src="../resources/unitcommon.js"></script>
 <script src="support/bluetooth_common.js"></script>
 </head>
@@ -49,6 +49,7 @@ test(function () {
     var devService = tizen.bluetooth.deviceService;
     check_readonly(tizen.bluetooth, "deviceService", devService, "object", "Tizen");
 }, "BluetoothManager_deviceService_attribute");
+
 </script>
 </body>
 </html>
index f850eb6c3b9f30726687169fd9f28054e63665d1..4b30194ad53e9a79b43712a5d50c30275d9f8235 100644 (file)
@@ -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");
+
 </script>
 </body>
 </html>
index 75f8b3b2f1391fec4cb052e6866660af2303bb2c..878521416e6f90a989842e4adefdba8f979afcad 100644 (file)
@@ -31,7 +31,7 @@ Authors:
 -->
 <html>
 <head>
-<title>BluetoothServiceHandler.isConnected - correctness of property</title>
+<title>BluetoothServiceHandler_isConnected_attribute</title>
 <script src="../resources/unitcommon.js"></script>
 <script src="support/bluetooth_common.js"></script>
 </head>
@@ -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);
 });
+
 </script>
 </body>
 </html>
index bdc1509263037b71d60baeaa20e5f9f6735bd740..0c7ed2e5eb529c780b7de1bf83720cd764d28f9a 100644 (file)
@@ -31,7 +31,7 @@ Authors:
 -->
 <html>
 <head>
-<title>BluetoothServiceHandler.name - correctness of property</title>
+<title>BluetoothServiceHandler_name_attribute</title>
 <script src="../resources/unitcommon.js"></script>
 <script src="support/bluetooth_common.js"></script>
 </head>
@@ -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);
 });
 
 </script>
index c18e7edb12ef5e44af55510b06bd7cebf6afe0ec..9d7179faecaa31964b525a29d322d399640bea32 100644 (file)
@@ -20,7 +20,7 @@ limitations under the License.
 Authors:
         Witold Choinkowski <w.choinkowsk@samsung.com>
 -->
-<html lang="en">
+<html>
 
 <head>
 <title>BluetoothServiceHandler_onconnect_attribute</title>
@@ -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);
 });
 
 </script>
-
 </body>
-
 </html>
index 68434f8f1606035bfaa7f1ad443ba9429bcbaec0..7d77f256da0a3d4e3cd105ce917289d98f336218 100644 (file)
@@ -31,7 +31,7 @@ Authors:
 -->
 <html>
 <head>
-<title>BluetoothServiceHandler.uuid - correctness of property</title>
+<title>BluetoothServiceHandler_uuid_attribute</title>
 <script src="../resources/unitcommon.js"></script>
 <script src="support/bluetooth_common.js"></script>
 </head>
@@ -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);
 });
+
 </script>
 </body>
 </html>
index f2479a27e389d2616360fc191e64eb098db6296b..e4ecbeffaa19031a1122d07c10e584461c2d349d 100644 (file)
         <specs>
           <spec>
             <spec_assertion interface="BluetoothHealthApplication" element_type="attribute" element_name="dataType" specification="Bluetooth" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/bluetooth.html\</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/bluetooth.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="BluetoothHealthApplication" element_type="attribute" element_name="name" specification="Bluetooth" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/bluetooth.html\</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/bluetooth.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="BluetoothHealthApplication" element_type="attribute" element_name="onconnect" specification="Bluetooth" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/bluetooth.html\</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/bluetooth.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>