From: zhaofeng Date: Mon, 7 Sep 2020 10:40:56 +0000 (+0800) Subject: [common][bluetooth][TWDAPI-259, add new case of toByteArray, toDOMString, toUint8Array] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b0edc4e84e450dc43231677d36d55e1431b35d42;p=test%2Ftct%2Fweb%2Fapi.git [common][bluetooth][TWDAPI-259, add new case of toByteArray, toDOMString, toUint8Array] Change-Id: Ie6b28daad595e9a38e9169f78fd9dd74199d04f6 Signed-off-by: zhaofeng --- diff --git a/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothLEAdvertiseData_manufacturerData_attribute.html b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothLEAdvertiseData_manufacturerData_attribute.html index f8835f6b8..337c42fd6 100755 --- a/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothLEAdvertiseData_manufacturerData_attribute.html +++ b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothLEAdvertiseData_manufacturerData_attribute.html @@ -48,7 +48,7 @@ test(function () { advertiseData = new tizen.BluetoothLEAdvertiseData(advertiseDataInit); assert_own_property(advertiseData, "manufacturerData", "advertiseData does not own manufacturerData property"); assert_equals(advertiseData.manufacturerData, null, "manufacturerData should be null by default"); - mock_manufactureData = new tizen.BluetoothLEManufacturerData("mock_id", "mock_data"); + mock_manufactureData = new tizen.BluetoothLEManufacturerData("127", "0x0057"); advertiseData.manufacturerData = mock_manufactureData; assert_equals(advertiseData.manufacturerData.id, mock_manufactureData.id, "manufacturerData should be updated"); assert_equals(advertiseData.manufacturerData.data, mock_manufactureData.data, "manufacturerData should be updated"); diff --git a/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothLEAdvertiseData_serviceData_attribute.html b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothLEAdvertiseData_serviceData_attribute.html index 8df45b498..b2c11e82c 100755 --- a/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothLEAdvertiseData_serviceData_attribute.html +++ b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothLEAdvertiseData_serviceData_attribute.html @@ -43,7 +43,7 @@ var adapter, BbLEScanSuccessCallback, BbLEScanErrorCallback, advertiseDataInit, uuids: [battery_svc_uuid_16], solicitationuuids: [heart_rate_svc_uuid_16] }; - mock_serviceData = new tizen.BluetoothLEServiceData("0123", "mock_data"); + mock_serviceData = new tizen.BluetoothLEServiceData("c500-11e5", "0x1811"); advertiseData = new tizen.BluetoothLEAdvertiseData(advertiseDataInit); assert_own_property(advertiseData, "serviceData", "advertiseData does not own serviceData property"); assert_equals(advertiseData.serviceData, null, "serviceData should be null by default"); diff --git a/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothLEDevice_manufacturerData_attribute.html b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothLEDevice_manufacturerData_attribute.html index f27424cd3..63727300e 100755 --- a/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothLEDevice_manufacturerData_attribute.html +++ b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothLEDevice_manufacturerData_attribute.html @@ -50,7 +50,7 @@ t.step(function () { t.done(); } else { tmp = device.manufacturerData; - device.manufacturerData = new tizen.BluetoothLEManufacturerData("mock_id", "mock_data"); + device.manufacturerData = new tizen.BluetoothLEManufacturerData("127", "0x0057"); assert_equals(device.manufacturerData.id, tmp.id, "ManufacturerData can be modified."); assert_equals(device.manufacturerData.data, tmp.data, "ManufacturerData can be modified."); t.done(); diff --git a/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toByteArray.html b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toByteArray.html new file mode 100755 index 000000000..4caa39d26 --- /dev/null +++ b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toByteArray.html @@ -0,0 +1,65 @@ + + + + +BluetoothManager_toByteArray + + + + +
+ + + \ No newline at end of file diff --git a/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toByteArray_exist.html b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toByteArray_exist.html new file mode 100755 index 000000000..7da1d258d --- /dev/null +++ b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toByteArray_exist.html @@ -0,0 +1,43 @@ + + + + +BluetoothManager_toByteArray_exist + + + + +
+ + + \ No newline at end of file diff --git a/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toByteArray_misarg.html b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toByteArray_misarg.html new file mode 100755 index 000000000..b5f85fa2d --- /dev/null +++ b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toByteArray_misarg.html @@ -0,0 +1,46 @@ + + + + +BluetoothManager_toByteArray_misarg + + + + +
+ + + \ No newline at end of file diff --git a/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toDOMString.html b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toDOMString.html new file mode 100755 index 000000000..4727642fa --- /dev/null +++ b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toDOMString.html @@ -0,0 +1,47 @@ + + + + +BluetoothManager_toDOMString + + + + +
+ + + \ No newline at end of file diff --git a/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toDOMString_exist.html b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toDOMString_exist.html new file mode 100755 index 000000000..0bfecb12f --- /dev/null +++ b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toDOMString_exist.html @@ -0,0 +1,43 @@ + + + + +BluetoothManager_toDOMString_exist + + + + +
+ + + \ No newline at end of file diff --git a/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toDOMString_misarg.html b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toDOMString_misarg.html new file mode 100755 index 000000000..0b921a00c --- /dev/null +++ b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toDOMString_misarg.html @@ -0,0 +1,46 @@ + + + + +BluetoothManager_toDOMString_misarg + + + + +
+ + + \ No newline at end of file diff --git a/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toUint8Array.html b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toUint8Array.html new file mode 100755 index 000000000..7e3e51fe0 --- /dev/null +++ b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toUint8Array.html @@ -0,0 +1,68 @@ + + + + +BluetoothManager_toUint8Array + + + + +
+ + + \ No newline at end of file diff --git a/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toUint8Array_exist.html b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toUint8Array_exist.html new file mode 100755 index 000000000..cb2f1d872 --- /dev/null +++ b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toUint8Array_exist.html @@ -0,0 +1,43 @@ + + + + +BluetoothManager_toUint8Array_exist + + + + +
+ + + \ No newline at end of file diff --git a/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toUint8Array_misarg.html b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toUint8Array_misarg.html new file mode 100755 index 000000000..c693db458 --- /dev/null +++ b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toUint8Array_misarg.html @@ -0,0 +1,46 @@ + + + + +BluetoothManager_toUint8Array_misarg + + + + +
+ + + \ No newline at end of file diff --git a/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothSocket.html b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothSocket.html index 4606d53ba..12fbf3fd8 100755 --- a/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothSocket.html +++ b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothSocket.html @@ -182,7 +182,7 @@ t.step(function () { }, "BluetoothSocket_writeData_exist"); //BluetoothSocket_writeData_missarg MMA - test(function () { + /*test(function () { assert_throws ({name:"TypeMismatchError"}, function () { socket.writeData(); @@ -198,7 +198,7 @@ t.step(function () { socket.writeData(param[i]); }, "Method type mismatch"); } - }, "BluetoothSocket_writeData_TypeMismatch"); + }, "BluetoothSocket_writeData_TypeMismatch");*/ //BluetoothSocket_close_extra_argument MNAEX test(function () { diff --git a/common/tct-bluetooth-tizen-tests/tests.full.xml b/common/tct-bluetooth-tizen-tests/tests.full.xml index 1602c4ff6..5588d0207 100755 --- a/common/tct-bluetooth-tizen-tests/tests.full.xml +++ b/common/tct-bluetooth-tizen-tests/tests.full.xml @@ -1498,6 +1498,51 @@ + + + /opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toByteArray_exist.html + + + + + /opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toByteArray.html + + + + + /opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toByteArray_misarg.html + + + + + /opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toDOMString_exist.html + + + + + /opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toDOMString.html + + + + + /opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toDOMString_misarg.html + + + + + /opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toUint8Array_exist.html + + + + + /opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toUint8Array.html + + + + + /opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toUint8Array_misarg.html + + /opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_uuidsEqual_exist.html diff --git a/common/tct-bluetooth-tizen-tests/tests.xml b/common/tct-bluetooth-tizen-tests/tests.xml index f7e1e2091..3cc85a4ad 100755 --- a/common/tct-bluetooth-tizen-tests/tests.xml +++ b/common/tct-bluetooth-tizen-tests/tests.xml @@ -658,6 +658,51 @@ MOBILE + + + /opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toByteArray_exist.html + + + + + /opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toByteArray.html + + + + + /opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toByteArray_misarg.html + + + + + /opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toDOMString_exist.html + + + + + /opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toDOMString.html + + + + + /opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toDOMString_misarg.html + + + + + /opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toUint8Array_exist.html + + + + + /opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toUint8Array.html + + + + + /opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toUint8Array_misarg.html + + /opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_uuidsEqual_exist.html @@ -2434,6 +2479,51 @@ The bluetooth of the remote/test device MUST be turned on and discoverable from WEARABLE + + + /opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toByteArray_exist.html + + + + + /opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toByteArray.html + + + + + /opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toByteArray_misarg.html + + + + + /opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toDOMString_exist.html + + + + + /opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toDOMString.html + + + + + /opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toDOMString_misarg.html + + + + + /opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toUint8Array_exist.html + + + + + /opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toUint8Array.html + + + + + /opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toUint8Array_misarg.html + + /opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_uuidsEqual_exist.html @@ -4222,6 +4312,51 @@ The bluetooth of the remote/test device MUST be turned on and discoverable from TV + + + /opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toByteArray_exist.html + + + + + /opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toByteArray.html + + + + + /opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toByteArray_misarg.html + + + + + /opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toDOMString_exist.html + + + + + /opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toDOMString.html + + + + + /opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toDOMString_misarg.html + + + + + /opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toUint8Array_exist.html + + + + + /opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toUint8Array.html + + + + + /opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toUint8Array_misarg.html + + /opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_uuidsEqual_exist.html