From: wxch Date: Mon, 27 Mar 2017 07:20:55 +0000 (+0800) Subject: fix Bluetooth web TC issue X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b190908d7afe6be964c16efccfab2a91555f0aa6;p=test%2Ftct%2Fweb%2Fapi.git fix Bluetooth web TC issue Change-Id: Ic10274d89785bac88c2b37480bf0719303906a21 Signed-off-by: wxch --- diff --git a/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothLEDevice_addConnectStateChangeListener_TypeMismatch.html b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothLEDevice_addConnectStateChangeListener_TypeMismatch.html index 8c8ac2fd9..338f00fa1 100755 --- a/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothLEDevice_addConnectStateChangeListener_TypeMismatch.html +++ b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothLEDevice_addConnectStateChangeListener_TypeMismatch.html @@ -47,13 +47,13 @@ t.step(function () { device = bledevice; adapter.stopScan(); conversionTable = getTypeConversionExceptions("object", false); - for(i = 0; i < conversionTable.length; i++) { - listener = conversionTable[i][0]; - exceptionName = conversionTable[i][1]; - assert_throws({name: UnknownError}, - function () { - evice.addConnectStateChangeListener(listener); - }, "Given incorrect listener."); + for(i = 0; i < conversionTable.length; i++) { + listener = conversionTable[i][0]; + exceptionName = conversionTable[i][1]; + assert_throws({name: exceptionName}, + function () { + device.addConnectStateChangeListener(listener); + }, "Given incorrect listener."); }; t.done(); } diff --git a/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothLEDevice_addConnectStateChangeListener_missarg.html b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothLEDevice_addConnectStateChangeListener_missarg.html index ceb3b1c43..ec7ef1b3f 100755 --- a/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothLEDevice_addConnectStateChangeListener_missarg.html +++ b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothLEDevice_addConnectStateChangeListener_missarg.html @@ -45,7 +45,7 @@ t.step(function () { if (bledevice.address == REMOTE_BLE_DEVICE_ADDRESS && device == null) { device = bledevice; adapter.stopScan(); - assert_throws ({name:"UnknownError"}, + assert_throws (TYPE_MISMATCH_EXCEPTION, function () { device.addConnectStateChangeListener(); }, "Method with non optional argument."); diff --git a/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothLEDevice_getServiceAllUuids_extra_argument.html b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothLEDevice_getServiceAllUuids_extra_argument.html index 20b396b00..97965b018 100755 --- a/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothLEDevice_getServiceAllUuids_extra_argument.html +++ b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothLEDevice_getServiceAllUuids_extra_argument.html @@ -23,6 +23,7 @@ Authors: BluetoothLEDevice_getServiceAllUuids_extra_argument +