[Bluetooth] Assert type unsigned short, octet
authorWitold Choinkowski <w.choinkowsk@samsung.com>
Thu, 10 Oct 2013 14:54:18 +0000 (16:54 +0200)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Fri, 11 Oct 2013 07:50:58 +0000 (07:50 +0000)
Change-Id: I4187afcdfac91a6763cffa85301bb85ee78a9a50

tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_getKnownDevices_check_types.html
tct-bluetooth-tizen-tests/bluetooth/BluetoothClass.html
tct-bluetooth-tizen-tests/bluetooth/BluetoothHealthApplicationSuccessCallback_onsuccess.html

index 847a9c0f4920eee41753245dcffde8abce4bc1d6..ee4181bc744671d6875ed9b3443e4c9baf05b372 100644 (file)
@@ -52,8 +52,8 @@ t.step(function () {
         assert_type(device.isBonded, "boolean", "Device isBonded type check:");
         assert_type(device.isTrusted, "boolean", "Device isTrusted type check:");
         assert_type(device.isConnected, "boolean", "Device isConnected type check:");
-        assert_type(device.deviceClass.major, "number", "Device deviceClass.major  type check:");
-        assert_type(device.deviceClass.minor, "number", "Device deviceClass.minor type check:");
+        assert_type(device.deviceClass.major, "octet", "Device deviceClass.major  type check:");
+        assert_type(device.deviceClass.minor, "octet", "Device deviceClass.minor type check:");
         assert_type(device.deviceClass.services, "object", "Device deviceClass.services type check:");
         assert_type(device.deviceClass.hasService, "function", "Device deviceClass.hasService type check:");
         assert_type(device.deviceClass.hasService(0), "boolean", "Device deviceClass.hasService return type check:");
index 96bfd288c7c83809d8bfbaabb384390da403813a..682a797553bb7cb4a50e218816a4cede98cbdedc 100644 (file)
@@ -62,8 +62,8 @@ t.step(function () {
         test(function () {
             assert_type(device.name, "string", "Device name type check:");
             assert_type(device.address, "string", "Device address type check:");
-            assert_type(device.deviceClass.major, "number", "Device deviceClass.major  type check:");
-            assert_type(device.deviceClass.minor, "number", "Device deviceClass.minor type check:");
+            assert_type(device.deviceClass.major, "octet", "Device deviceClass.major  type check:");
+            assert_type(device.deviceClass.minor, "octet", "Device deviceClass.minor type check:");
             assert_type(device.deviceClass.services, "object", "Device deviceClass.services type check:");
             assert_type(device.deviceClass.hasService, "function", "Device deviceClass.hasService type check:");
             assert_type(device.deviceClass.hasService(0), "boolean", "Device deviceClass.hasService return type check:");
@@ -101,7 +101,7 @@ t.step(function () {
             devService = device.deviceClass.services[0];
             device.deviceClass.services[0] = null;
             device.deviceClass.services = [];
-            assert_type(device.deviceClass.services[0], "number", "device.deviceClass.services[0] is type number.");
+            assert_type(device.deviceClass.services[0], "unsigned short", "device.deviceClass.services[0] is type number.");
             assert_true(devService === device.deviceClass.services[0], "device.deviceClass.services[0] readonly");
         }, "BluetoothClass_services_attribute");
 
index fe95ceb30ec556953136ff0917fca3cb317bb00e..8bdf0e32eadff1735a1b3a49cb330cd16782a548 100644 (file)
@@ -49,7 +49,7 @@ t.step(function () {
         assert_type(app, "object", "argument app has wrong type");
 
         assert_true("dataType" in app, "no dataType attribute in BluetoothHealthApplication");
-        assert_type(app.dataType, "number", "dataType of BluetoothHealthApplication has wrong type");
+        assert_type(app.dataType, "unsigned short", "dataType of BluetoothHealthApplication has wrong type");
 
         assert_true("name" in app, "no name attribute in BluetoothHealthApplication");
         assert_type(app.name, "string", "name of BluetoothHealthApplication has wrong type");