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

tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_extend.html
tct-bluetooth-tizen-tests/bluetooth/BluetoothClassDeviceMajor_extend.html
tct-bluetooth-tizen-tests/bluetooth/BluetoothClassDeviceMinor_extend.html
tct-bluetooth-tizen-tests/bluetooth/BluetoothClassDeviceService_extend.html
tct-bluetooth-tizen-tests/bluetooth/BluetoothHealthApplication_extend.html
tct-bluetooth-tizen-tests/bluetooth/BluetoothHealthProfileHandler_extend.html
tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_extend.html
tct-bluetooth-tizen-tests/bluetooth/BluetoothProfileHandler_extend.html
tct-bluetooth-tizen-tests/bluetooth/BluetoothServiceHandler_extend.html
tct-bluetooth-tizen-tests/tests.full.xml

index 565d76df799ada5179685e49b2b7ff76be90db4f..bc646188939d47f7000c9d5d56562a635a85585e 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 -->
 <html>
 <head>
-<title>BluetoothAdapter extend</title>
+<title>BluetoothAdapter_extend</title>
 <script src="../resources/unitcommon.js"></script>
 <script src="support/bluetooth_common.js"></script>
 </head>
@@ -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");
+
 </script>
 </body>
 </html>
index 7c9cbc99d12a509200095ea813c5745f3a51d23f..4e2bdb1e98a09b2b239128ecad806fc43279eeb0 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 -->
 <html>
 <head>
-<title>BluetoothClassDeviceMajor notexist</title>
+<title>BluetoothClassDeviceMajor_extend</title>
 <script src="../resources/unitcommon.js"></script>
 <script src="support/bluetooth_common.js"></script>
 </head>
@@ -40,6 +40,7 @@ Authors:
 test(function () {
     check_extensibility(tizen.bluetooth.deviceMajor);
 }, "BluetoothClassDeviceMajor_extend");
+
 </script>
 </body>
 </html>
index f8055fbe36ebcf0c41c41174b95e0706c46936a1..8ea2ccafc10ce9a16262ca25b42da7fe4504b145 100644 (file)
@@ -40,6 +40,7 @@ Authors:
 test(function () {
     check_extensibility(tizen.bluetooth.deviceMinor);
 }, "BluetoothClassDeviceMinor_extend");
+
 </script>
 </body>
 </html>
index 062939a2df96c06b7484af3d6fb6fafd98bff174..8580b169a5e5aa5f881ee4b0f2f0921d506a9f31 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 -->
 <html>
 <head>
-<title>BluetoothClassDeviceService extendt</title>
+<title>BluetoothClassDeviceService_extend</title>
 <script src="../resources/unitcommon.js"></script>
 <script src="support/bluetooth_common.js"></script>
 </head>
@@ -40,6 +40,7 @@ Authors:
 test(function () {
     check_extensibility(tizen.bluetooth.deviceService);
 }, "BluetoothClassDeviceService_extend");
+
 </script>
 </body>
 </html>
index cff08732e9b8bdc465ed6a3fabfa7bdebf5689e9..d9f39683c15b6d9cb463d05fc8373f382cff8e98 100644 (file)
@@ -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);
 });
+
 </script>
 </body>
 </html>
index 2a4db2fcdc3669488fbfe7c7c355e020d094510f..5eaecc7ce0b1ab4559249c25f4c3779bc2624630 100644 (file)
@@ -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");
+
 </script>
 </body>
 </html>
index 87ce8e8ec44f070cf35e22cc414924a5e493420d..7a78c8f7fe3334104fea0598dd63498d777a05e2 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 -->
 <html>
 <head>
-<title>BluetoothManager extendt</title>
+<title>BluetoothManager_extend</title>
 <script src="../resources/unitcommon.js"></script>
 <script src="support/bluetooth_common.js"></script>
 </head>
@@ -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");
+
 </script>
-  </body>
+</body>
 </html>
index c8fad72b7d28ff9d6bd26463c457192c02737fef..7face65696e409f6a41cd3866b0eaa3d97fbb60b 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 -->
 <html>
 <head>
-<title>BluetoothProfileHandler extend</title>
+<title>BluetoothProfileHandler_extend</title>
 <script src="../resources/unitcommon.js"></script>
 </head>
 <body>
@@ -43,6 +43,7 @@ test(function () {
     healthProfileHandler = adapter.getBluetoothProfileHandler(profileType);
     check_extensibility(healthProfileHandler);
 }, "BluetoothProfileHandler_extend");
+
 </script>
 </body>
 </html>
index 8e3b6cdc738c9280d7a77efff4cecdd4c708bd4f..212ed595a29268f706e956b9e12f59507c134bfc 100644 (file)
@@ -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);
 });
+
 </script>
 </body>
 </html>
index e4ecbeffaa19031a1122d07c10e584461c2d349d..803e14341b5168ec2a1a7dd146b983e2a308fd05 100644 (file)
         <specs>
           <spec>
             <spec_assertion interface="BluetoothHealthApplication" usage="true" 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="BluetoothHealthProfileHandler" usage="true" 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>