onstarted: t.step_func(function () {\r
}),\r
ondevicefound: t.step_func(function (device) {\r
+ if (device.address === REMOTE_DEVICE_ADDRESS) {\r
+ stopDiscovery(t, adapter, stopDiscoverySuccess1);\r
+ }\r
}),\r
ondevicedisappeared: t.step_func(function (address) {\r
}),\r
if (devices.length > 0) {\r
adapter.createBonding(REMOTE_DEVICE_ADDRESS, onBondingSuccess, onBondingError);\r
} else {\r
- setTimeout(setstopDiscoverySuccess, 1000);\r
+ setTimeout(stopDiscoverySuccess, 1000);\r
}\r
})\r
};\r
assert_unreached("discoverDevicesError exception:" + e.message);\r
});\r
\r
+ stopDiscoverySuccess1 = t.step_func(function () {\r
+ console.log("stopDiscoverySuccess1");\r
+ });\r
+ \r
stopDiscoverySuccess = t.step_func(function () {\r
adapter.discoverDevices(discoverDevicesSuccessCallback, discoverDevicesError);\r
});\r
//==== TEST: BluetoothAdapter_discoverDevices_with_errorCallback\r
//==== LABEL Check with non-optional arguments discoverDevices(valid_successCallback, errorCallback)\r
//==== PRIORITY P2\r
-//==== ONLOAD_DELAY 180\r
+//==== ONLOAD_DELAY 300\r
//==== SPEC Tizen Web API:Communication:Bluetooth:BluetoothAdapter:discoverDevices M\r
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/bluetooth.html\r
//==== PRE The bluetooth of the remote/test device MUST be turned on and discoverable from other devices.\r
//==== TEST_CRITERIA MOA MAST\r
-setup({timeout: 180000});\r
-var t = async_test(document.title, {timeout: 180000}), adapter, discoverDevicesErrorCB, stopDiscoverySuccess,\r
+setup({timeout: 300000});\r
+var t = async_test(document.title, {timeout: 300000}), adapter, discoverDevicesErrorCB, stopDiscoverySuccess,\r
discoverDevicesSuccessCB;\r
t.step(function () {\r
if (BT_SUPPORT) { // network.bluetooth support\r
-\r
discoverDevicesSuccessCB = {\r
onstarted: t.step_func(function () {\r
}),\r
//==== TEST: BluetoothAdapter_getKnownDevices\r
//==== LABEL Check with optional arguments getKnownDevices(valid_successCallback)\r
//==== PRIORITY P2\r
-//==== ONLOAD_DELAY 180\r
+//==== ONLOAD_DELAY 300\r
//==== SPEC Tizen Web API:Communication:Bluetooth:BluetoothAdapter:getKnownDevices M\r
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/bluetooth.html\r
//==== PRE The bluetooth of the remote/test device MUST be turned on and discoverable from other devices.\r
//==== TEST_CRITERIA MMINA MAST MR\r
-setup({timeout: 180000});\r
-var t = async_test(document.title, {timeout: 180000}), adapter, testDeviceSuccessCB, discoverSuccess, discoverError,\r
+setup({timeout: 300000});\r
+var t = async_test(document.title, {timeout: 300000}), adapter, testDeviceSuccessCB, discoverSuccess, discoverError,\r
stopDiscoverySuccess, retValue = null;\r
t.step(function () {\r
if (BT_SUPPORT) { // network.bluetooth support\r
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/bluetooth.html
//==== PRE The bluetooth of the remote/test device MUST be turned on and discoverable from other devices.
//==== TEST_CRITERIA CBT CBOA
-setup({ timeout: 180000 });
-var adapter = null, t = async_test(document.title, { timeout: 180000 }),
+setup({ timeout: 300000 });
+var adapter = null, t = async_test(document.title, { timeout: 300000 }),
stopDiscoverySuccess, discoverDevicesErrorCB, discoverDevicesSuccessOneCB, discoverDevicesSuccessTwoCB, flag = false;
t.step(function () {
}),
ondevicedisappeared: t.step_func(function (address) {
assert_type(address, "string", "address has wrong type");
+ console.log("ondevicedisappeared address: " + address);
if (address === REMOTE_DEVICE_ADDRESS) {
flag = true;
}
</spec>
</specs>
</testcase>
- <testcase purpose="Check with non-optional arguments discoverDevices(valid_successCallback, errorCallback)" type="compliance" onload_delay="180" status="approved" component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" priority="P2" id="BluetoothAdapter_discoverDevices_with_errorCallback">
+ <testcase purpose="Check with non-optional arguments discoverDevices(valid_successCallback, errorCallback)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" priority="P2" id="BluetoothAdapter_discoverDevices_with_errorCallback">
<description>
<pre_condition>The bluetooth of the remote device MUST be turned on and discoverable from other devices.</pre_condition>
<test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_discoverDevices_with_errorCallback.html</test_script_entry>
</spec>
</specs>
</testcase>
- <testcase purpose="Check with optional arguments getKnownDevices(valid_successCallback)" type="compliance" onload_delay="180" status="approved" component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" priority="P2" id="BluetoothAdapter_getKnownDevices">
+ <testcase purpose="Check with optional arguments getKnownDevices(valid_successCallback)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" priority="P2" id="BluetoothAdapter_getKnownDevices">
<description>
<pre_condition>The bluetooth of the remote/test device MUST be turned on and discoverable from other devices.</pre_condition>
<test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_getKnownDevices.html</test_script_entry>
<test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_discoverDevices_successCallback_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" id="BluetoothAdapter_discoverDevices_with_errorCallback" onload_delay="180" priority="P2" purpose="Check with non-optional arguments discoverDevices(valid_successCallback, errorCallback)">
+ <testcase component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" id="BluetoothAdapter_discoverDevices_with_errorCallback" onload_delay="300" priority="P2" purpose="Check with non-optional arguments discoverDevices(valid_successCallback, errorCallback)">
<description>
<test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_discoverDevices_with_errorCallback.html</test_script_entry>
</description>
<test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_getDevice_with_success_TypeMismatch_and_error_null.html</test_script_entry>
</description>
</testcase>
- <testcase component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" id="BluetoothAdapter_getKnownDevices" onload_delay="180" priority="P2" purpose="Check with optional arguments getKnownDevices(valid_successCallback)">
+ <testcase component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" id="BluetoothAdapter_getKnownDevices" onload_delay="300" priority="P2" purpose="Check with optional arguments getKnownDevices(valid_successCallback)">
<description>
<test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_getKnownDevices.html</test_script_entry>
</description>