<!DOCTYPE html>
<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
+Copyright (c) 2013 Samsung Electronics Co., Ltd. All Rights Reserved
Licensed under the Apache License, Version 2.0 (the License);
you may not use this file except in compliance with the License.
Authors:
Lukasz Bardeli <l.bardeli@samsung.com>
+ Arkadiusz Pietraszek <a.pietraszek@samsung.com>
-->
<html>
var adapter = null, t = async_test(document.title, {timeout: 180000}), createBondingSuccess,
powerOnSuccess, retValue = null;
t.step(function () {
+
+ add_result_callback(function() {
+ clearBonding(REMOTE_DEVICE_ADDRESS);
+ });
+
createBondingSuccess = t.step_func(function (device) {
check_bluetooth_device(device);
assert_equals(retValue, undefined, "createBonding returns wrong value");
t.done();
-
});
powerOnSuccess = t.step_func(function () {
<!DOCTYPE html>
<!--
Copyright (c) 2012 Intel Corporation.
+Copyright (c) 2020 Samsung Electronics Co., Ltd. All Rights Reserved
-Redistribution and use in source and binary forms, with or without modification,
+Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
-* Redistributions of works must retain the original copyright notice, this list
+* Redistributions of works must retain the original copyright notice, this list
of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
- this list of conditions and the following disclaimer in the documentation
+* Redistributions in binary form must reproduce the original copyright notice,
+ this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
- may be used to endorse or promote products derived from this work without
+* Neither the name of Intel Corporation nor the names of its contributors
+ may be used to endorse or promote products derived from this work without
specific prior written permission.
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Authors:
Lei, ZhanX <zhanx.lei@intel.com>
+ Arkadiusz Pietraszek <a.pietraszek@samsung.com>
-->
<html>
stopDiscoverySuccess;
t.step(function () {
+ add_result_callback(function() {
+ clearBonding(REMOTE_DEVICE_ADDRESS);
+ });
+
discoverDevicesSuccessCallback = {
onstarted: t.step_func (function () {
}),
ondevicedisappeared: t.step_func (function (address) {
}),
onfinished: t.step_func (function (devices) {
- if (devices.length > 0) {
+ if (devices.length > 0) {
adapter.createBonding(REMOTE_DEVICE_ADDRESS, onBondingSuccess, onBondingError);
} else {
setTimeout(setstopDiscoverySuccess, 1000);
<!DOCTYPE html>
<!--
Copyright (c) 2012 Intel Corporation.
+Copyright (c) 2020 Samsung Electronics Co., Ltd. All Rights Reserved
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Authors:
Lei, ZhanX <zhanx.lei@intel.com>
+ Arkadiusz Pietraszek <a.pietraszek@samsung.com>
-->
<html>
var t = async_test(document.title, {timeout: 180000}), adapter, powerOnSuccess, onBondingError, onBondingSuccess;
t.step(function () {
+ add_result_callback(function() {
+ clearBonding(REMOTE_DEVICE_ADDRESS);
+ });
+
onBondingSuccess = t.step_func(function (device) {
assert_equals(device.address, REMOTE_DEVICE_ADDRESS, "device address in onBondingSuccess");
t.done();
<!DOCTYPE html>
<!--
Copyright (c) 2012 Intel Corporation.
+Copyright (c) 2020 Samsung Electronics Co., Ltd. All Rights Reserved
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Authors:
Lei, ZhanX <zhanx.lei@intel.com>
+ Arkadiusz Pietraszek <a.pietraszek@samsung.com>
-->
<html>
var t = async_test(document.title, {timeout: 180000}), adapter, powerOnSuccess, onBondingError, onBondingSuccess;
t.step(function () {
+ add_result_callback(function() {
+ clearBonding(REMOTE_DEVICE_ADDRESS);
+ });
+
onBondingSuccess = t.step_func(function (device) {
assert_equals(device.address, REMOTE_DEVICE_ADDRESS, "device address in onBondingSuccess");
t.done();
<!DOCTYPE html>
<!--
Copyright (c) 2012 Intel Corporation.
+Copyright (c) 2020 Samsung Electronics Co., Ltd. All Rights Reserved
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Authors:
Lei, ZhanX <zhanx.lei@intel.com>
+ Arkadiusz Pietraszek <a.pietraszek@samsung.com>
-->
var t = async_test(document.title, {timeout: 180000}), adapter, powerOnSuccess, onBondingError, onBondingSuccess;
t.step(function () {
+ add_result_callback(function() {
+ clearBonding(REMOTE_DEVICE_ADDRESS);
+ });
+
onBondingSuccess = t.step_func(function (device) {
assert_equals(device.name, REMOTE_DEVICE_NAME, "device name in onBondingSuccess");
t.done();
<!DOCTYPE html>
<!--
Copyright (c) 2012 Intel Corporation.
+Copyright (c) 2020 Samsung Electronics Co., Ltd. All Rights Reserved
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Authors:
Lei, ZhanX <zhanx.lei@intel.com>
+ Arkadiusz Pietraszek <a.pietraszek@samsung.com>
-->
message = "UUIDs: \n", i;
t.step(function () {
+ add_result_callback(function() {
+ clearBonding(REMOTE_DEVICE_ADDRESS);
+ });
+
onBondingSuccess = t.step_func(function (device) {
for(i = 0; i < device.uuids.length; i ++) {
message += device.uuids[i] + " \n";
<!DOCTYPE html>
<!--
Copyright (c) 2012 Intel Corporation.
+Copyright (c) 2020 Samsung Electronics Co., Ltd. All Rights Reserved
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Authors:
Lei, ZhanX <zhanx.lei@intel.com>
Lukasz Bardeli <l.bardeli@samsung.com>
+ Arkadiusz Pietraszek <a.pietraszek@samsung.com>
-->
<html>
var adapter = null, t = async_test(document.title, {timeout: 180000}),
createBondingSuccess, createBondingError, powerOnSuccess;
t.step(function () {
+
+ add_result_callback(function() {
+ clearBonding(REMOTE_DEVICE_ADDRESS);
+ });
+
createBondingSuccess = t.step_func(function (device) {
check_bluetooth_device(device);
t.done();
<!DOCTYPE html>
<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
+Copyright (c) 2013 Samsung Electronics Co., Ltd. All Rights Reserved
Licensed under the Apache License, Version 2.0 (the License);
you may not use this file except in compliance with the License.
Authors:
Lukasz Bardeli <l.bardeli@samsung.com>
+ Arkadiusz Pietraszek <a.pietraszek@samsung.com>
-->
<html>
adapter, exceptionName, i, successCallback, errorCallback, onBondingSuccess, onBondingError, powerOnSuccess,
conversionTable = getTypeConversionExceptions("functionObject", true);
t.step(function () {
+
+ add_result_callback(function() {
+ clearBonding(REMOTE_DEVICE_ADDRESS);
+ });
+
successCallback = t.step_func(function () {
assert_unreached("Method destroyBonding shouldn't end successfully.");
});
<!DOCTYPE html>
<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
+Copyright (c) 2013 Samsung Electronics Co., Ltd. All Rights Reserved
Licensed under the Apache License, Version 2.0 (the License);
you may not use this file except in compliance with the License.
Authors:
Lukasz Bardeli <l.bardeli@samsung.com>
+ Arkadiusz Pietraszek <a.pietraszek@samsung.com>
-->
<html>
onBondingSuccess, onBondingError, powerOnSuccess;
t.step(function () {
+ add_result_callback(function() {
+ clearBonding(REMOTE_DEVICE_ADDRESS);
+ });
+
incorrectCallback = {
onerror: t.step_func(function (e) {
assert_unreached("Invalid errorCallback invoked: " + e.name + ": " + e.message);
<!DOCTYPE html>
<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
+Copyright (c) 2013 Samsung Electronics Co., Ltd. All Rights Reserved
Licensed under the Apache License, Version 2.0 (the License);
you may not use this file except in compliance with the License.
Authors:
Lukasz Bardeli <l.bardeli@samsung.com>
+ Arkadiusz Pietraszek <a.pietraszek@samsung.com>
-->
<html>
var adapter = null, t = async_test(document.title, {timeout: 180000}), exceptionName, i,
conversionTable, errorCallback, onBondingSuccess, onBondingError, powerOnSuccess, successCallback;
t.step(function () {
+
+ add_result_callback(function() {
+ clearBonding(REMOTE_DEVICE_ADDRESS);
+ });
+
conversionTable = getTypeConversionExceptions("functionObject", true);
errorCallback = t.step_func(function (e) {
<!DOCTYPE html>
<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
+Copyright (c) 2013 Samsung Electronics Co., Ltd. All Rights Reserved
Licensed under the Apache License, Version 2.0 (the License);
you may not use this file except in compliance with the License.
Authors:
Lukasz Bardeli <l.bardeli@samsung.com>
+ Arkadiusz Pietraszek <a.pietraszek@samsung.com>
-->
<html>
incorrectCallback, destroyBondingError, onBondingSuccess, onBondingSuccess, onBondingError, powerOnSuccess;
t.step(function () {
+ add_result_callback(function() {
+ clearBonding(REMOTE_DEVICE_ADDRESS);
+ });
+
incorrectCallback = {
onsuccess: t.step_func(function () {
assert_unreached("Method destroyBonding shouldn't end successfully.");
<!DOCTYPE html>
<!--
Copyright (c) 2012 Intel Corporation.
+Copyright (c) 2020 Samsung Electronics Co., Ltd. All Rights Reserved
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Authors:
Lei, ZhanX <zhanx.lei@intel.com>
Lukasz Bardeli <l.bardeli@samsung.com>
+ Arkadiusz Pietraszek <a.pietraszek@samsung.com>
-->
<html>
var adapter = null, t = async_test(document.title, {timeout: 180000}),
successCallback, errorCallback, onBondingSuccess, onBondingError, powerOnSuccess;
t.step(function () {
+
+ add_result_callback(function() {
+ clearBonding(REMOTE_DEVICE_ADDRESS);
+ });
+
successCallback = t.step_func(function () {
t.done();
});
<!DOCTYPE html>
<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
+Copyright (c) 2013 Samsung Electronics Co., Ltd. All Rights Reserved
Licensed under the Apache License, Version 2.0 (the License);
you may not use this file except in compliance with the License.
var adapter = null, t = async_test(document.title, {timeout: 180000}), successCallback,
onBondingSuccess, onBondingError, powerOnSuccess;
t.step(function () {
+
+ add_result_callback(function() {
+ clearBonding(REMOTE_DEVICE_ADDRESS);
+ });
+
successCallback = t.step_func(function () {
t.done();
});
<!DOCTYPE html>
<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
+Copyright (c) 2013 Samsung Electronics Co., Ltd. All Rights Reserved
Licensed under the Apache License, Version 2.0 (the License);
you may not use this file except in compliance with the License.
Authors:
Lukasz Bardeli <l.bardeli@samsung.com>
+ Arkadiusz Pietraszek <a.pietraszek@samsung.com>
-->
<html>
var adapter = null, t = async_test(document.title, {timeout: 180000}),
onBondingSuccess, onBondingError, powerOnSuccess, gotDeviceInfo, retValue = null;
t.step(function () {
+
+ add_result_callback(function() {
+ clearBonding(REMOTE_DEVICE_ADDRESS);
+ });
+
gotDeviceInfo = t.step_func(function (device) {
check_bluetooth_device(device);
assert_equals(retValue, undefined, "Argument getDevice returns wrong value.");
<!DOCTYPE html>
<!--
Copyright (c) 2012 Intel Corporation.
+Copyright (c) 2020 Samsung Electronics Co., Ltd. All Rights Reserved
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Authors:
Lei, ZhanX <zhanx.lei@intel.com>
Lukasz Bardeli <l.bardeli@samsung.com>
+ Arkadiusz Pietraszek <a.pietraszek@samsung.com>
-->
var adapter = null, t = async_test(document.title, {timeout: 180000}),
gotDeviceInfo, gotDeviceError, onBondingSuccess, onBondingError;
t.step(function () {
+
+ add_result_callback(function() {
+ clearBonding(REMOTE_DEVICE_ADDRESS);
+ });
+
gotDeviceInfo = t.step_func(function (device) {
check_bluetooth_device(device);
t.done();
<!DOCTYPE html>
<!--
Copyright (c) 2012 Intel Corporation.
+Copyright (c) 2020 Samsung Electronics Co., Ltd. All Rights Reserved
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Authors:
Lei, ZhanX <zhanx.lei@intel.com>
Lukasz Bardeli <l.bardeli@samsung.com>
+ Arkadiusz Pietraszek <a.pietraszek@samsung.com>
-->
registerRFCOMMServiceByUUIDSuccess, registerRFCOMMServiceByUUIDError, visibleSuccess, visibleError;
t.step(function () {
+ add_result_callback(function() {
+ clearBonding(REMOTE_DEVICE_ADDRESS);
+ });
+
registerRFCOMMServiceByUUIDSuccess = t.step_func(function (handler) {
setBluetoothHandlerCleanup(handler);
handler.onconnect = t.step_func(function (socket) {
<!DOCTYPE html>
<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
+Copyright (c) 2013 Samsung Electronics Co., Ltd. All Rights Reserved
Licensed under the Apache License, Version 2.0 (the License);
you may not use this file except in compliance with the License.
Authors:
Witold Choinkowski <w.choinkowsk@samsung.com>
+ Arkadiusz Pietraszek <a.pietraszek@samsung.com>
-->
<html>
onBondingSuccess, onBondingError, powerOnSuccess, minor, major, devService;
t.step(function () {
+
+ add_result_callback(function() {
+ clearBonding(REMOTE_DEVICE_ADDRESS);
+ });
+
gotDeviceInfo = t.step_func(function (device) {
+
//BluetoothClass_attribute AT
test(function () {
assert_type(device.name, "string", "Device name type check:");
<!DOCTYPE html>
<!--
Copyright (c) 2012 Intel Corporation.
+Copyright (c) 2020 Samsung Electronics Co., Ltd. All Rights Reserved
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Authors:
Lei, ZhanX <zhanx.lei@intel.com>
Lukasz Bardeli <l.bardeli@samsung.com>
+ Arkadiusz Pietraszek <a.pietraszek@samsung.com>
-->
var adapter = null, t = async_test(document.title, {timeout: 180000}), gotDeviceInfo,
gotDeviceError, onBondingSuccess, onBondingError, powerOnSuccess;
t.step(function () {
+
+ add_result_callback(function() {
+ clearBonding(REMOTE_DEVICE_ADDRESS);
+ });
+
gotDeviceInfo = t.step_func(function (device) {
if (device.deviceClass.services.length > 0){
assert_true(device.deviceClass.hasService(device.deviceClass.services[0]), "hasService in gotDeviceInfo");
<!DOCTYPE html>
<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
+Copyright (c) 2013 Samsung Electronics Co., Ltd. All Rights Reserved
Licensed under the Apache License, Version 2.0 (the License);
you may not use this file except in compliance with the License.
Authors:
Witold Choinkowski <w.choinkowsk@samsung.com>
+ Arkadiusz Pietraszek <a.pietraszek@samsung.com>
-->
<html>
successCallback, exceptionName = "TypeMismatchError", conversionTable, conversionErrorCallback, conversionSuccessCallback,
incorrectSuccessCallback, incorrectErrorCallback, successCallback, errorCallback, deviceClassCP, fakeDeviceClass, devUuid, i;
t.step(function () {
+
+ add_result_callback(function() {
+ clearBonding(REMOTE_DEVICE_ADDRESS);
+ });
+
incorrectSuccessCallback = {
onsuccess: t.step_func(function () {
assert_unreached("Invalid successCallback invoked");
<!DOCTYPE html>
<!--
Copyright (c) 2012 Intel Corporation.
+Copyright (c) 2020 Samsung Electronics Co., Ltd. All Rights Reserved
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Authors:
Lei, ZhanX <zhanx.lei@intel.com>
Lukasz Bardeli <l.bardeli@samsung.com>
+ Arkadiusz Pietraszek <a.pietraszek@samsung.com>
-->
<html>
var adapter = null, t = async_test(document.title, {timeout: 180000}), onSocketConnect,
onBondingSuccess, onBondingError, powerOnSuccess, retValue = null;
t.step(function () {
+
+ add_result_callback(function() {
+ clearBonding(REMOTE_DEVICE_ADDRESS);
+ });
+
onSocketConnect = t.step_func(function (socket) {
if(socket.state === "OPEN"){
assert_equals(retValue, undefined, "connectToServiceByUUID returns wrong value");
<!DOCTYPE html>
<!--
Copyright (c) 2012 Intel Corporation.
+Copyright (c) 2020 Samsung Electronics Co., Ltd. All Rights Reserved
-Redistribution and use in source and binary forms, with or without modification,
+Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
-* Redistributions of works must retain the original copyright notice, this list
+* Redistributions of works must retain the original copyright notice, this list
of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
- this list of conditions and the following disclaimer in the documentation
+* Redistributions in binary form must reproduce the original copyright notice,
+ this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
- may be used to endorse or promote products derived from this work without
+* Neither the name of Intel Corporation nor the names of its contributors
+ may be used to endorse or promote products derived from this work without
specific prior written permission.
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
Authors:
Lei, ZhanX <zhanx.lei@intel.com>
+ Arkadiusz Pietraszek <a.pietraszek@samsung.com>
-->
<html>
var adapter = null, t = async_test(document.title, {timeout: 180000}), onSocketConnect,
onBondingSuccess, onBondingError, powerOnSuccess, onSocketError;
t.step(function () {
+
+ add_result_callback(function() {
+ clearBonding(REMOTE_DEVICE_ADDRESS);
+ });
+
onSocketConnect = t.step_func(function (socket) {
assert_unreached("Shouldn't be here");
});
<!DOCTYPE html>
<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
+Copyright (c) 2013 Samsung Electronics Co., Ltd. All Rights Reserved
Licensed under the Apache License, Version 2.0 (the License);
you may not use this file except in compliance with the License.
Authors:
Lukasz Bardeli <l.bardeli@samsung.com>
+ Arkadiusz Pietraszek <a.pietraszek@samsung.com>
-->
<html>
var adapter = null, t = async_test(document.title, {timeout: 180000}),
onSocketConnect, onSocketError, onBondingSuccess, onBondingError, powerOnSuccess;
t.step(function () {
+
+ add_result_callback(function() {
+ clearBonding(REMOTE_DEVICE_ADDRESS);
+ });
+
onSocketConnect = t.step_func(function (socket) {
if(socket.state === "OPEN") {
t.done();
<!DOCTYPE html>
<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
+Copyright (c) 2013 Samsung Electronics Co., Ltd. All Rights Reserved
Licensed under the Apache License, Version 2.0 (the License);
you may not use this file except in compliance with the License.
Authors:
Witold Choinkowski <w.choinkowsk@samsung.com>
+ Arkadiusz Pietraszek <a.pietraszek@samsung.com>
-->
<html>
var t = async_test(document.title, {timeout: 180000}), adapter, onError, testMessage, registerSuccessCallback,
sendMsg, serviceHandler, data, recvmsg, checkmsg, i, expectedMsgFromClient, sendMsgData, msgToClient;
t.step(function () {
+
+ add_result_callback(function() {
+ clearBonding(REMOTE_DEVICE_ADDRESS);
+ });
+
onError = t.step_func(function (e) {
assert_unreached("errorCallback arrived:" + e.message);
});
document.getElementById("testdetails").style["display"] = "";
});
adapter = tizen.bluetooth.getDefaultAdapter();
- adapter.registerRFCOMMServiceByUUID(CHAT_SERVICE_UUID, "Chat service", registerSuccessCallback, onError);
+ adapter.registerRFCOMMServiceByUUID(CHAT_SERVICE_UUID, "Chat service", registerSuccessCallback, onError);
});
</script>
<!DOCTYPE html>
<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
+Copyright (c) 2013 Samsung Electronics Co., Ltd. All Rights Reserved
Licensed under the Apache License, Version 2.0 (the License);
you may not use this file except in compliance with the License.
Authors:
Witold Choinkowski <w.choinkowsk@samsung.com>
+ Arkadiusz Pietraszek <a.pietraszek@samsung.com>
-->
<html>
gotDeviceInfo, gotDeviceError, onBondingSuccess, onBondingError, powerOnSuccess,
peerCP, fakePeer, skState, skUuid, param, i;
t.step(function () {
+
+ add_result_callback(function() {
+ clearBonding(REMOTE_DEVICE_ADDRESS);
+ });
+
onSocketConnect = t.step_func(function (socket) {
//BluetoothSocket_close_exist ME
test(function () {
<!DOCTYPE html>
<!--
Copyright (c) 2012 Intel Corporation.
+Copyright (c) 2013 Samsung Electronics Co., Ltd. All Rights Reserved
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Authors:
Lei, ZhanX <zhanx.lei@intel.com>
+ Arkadiusz Pietraszek <a.pietraszek@samsung.com>
-->
<html>
t.step(function () {
+ add_result_callback(function() {
+ clearBonding(REMOTE_DEVICE_ADDRESS);
+ });
+
onSocketConnect = t.step_func(function (socket) {
assert_equals(socket.state, "OPEN", "BluetoothSocket.state enum is no equal to 'OPEN'");
socket.close();
<!DOCTYPE html>
<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
+Copyright (c) 2013 Samsung Electronics Co., Ltd. All Rights Reserved
Licensed under the Apache License, Version 2.0 (the License);
you may not use this file except in compliance with the License.
Authors:
Lukasz Bardeli <l.bardeli@samsung.com>
+ Arkadiusz Pietraszek <a.pietraszek@samsung.com>
-->
<html>
gotDeviceInfo, gotDeviceError, onBondingSuccess, onBondingError, powerOnSuccess, retValue = null;
t.step(function () {
+ add_result_callback(function() {
+ clearBonding(REMOTE_DEVICE_ADDRESS);
+ });
+
onSocketConnect = t.step_func(function (socket) {
retValue = socket.close();
socket.onclose = t.step_func(function () {
<!DOCTYPE html>
<!--
Copyright (c) 2012 Intel Corporation.
+Copyright (c) 2020 Samsung Electronics Co., Ltd. All Rights Reserved
-Redistribution and use in source and binary forms, with or without modification,
+Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
-* Redistributions of works must retain the original copyright notice, this list
+* Redistributions of works must retain the original copyright notice, this list
of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
- this list of conditions and the following disclaimer in the documentation
+* Redistributions in binary form must reproduce the original copyright notice,
+ this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
- may be used to endorse or promote products derived from this work without
+* Neither the name of Intel Corporation nor the names of its contributors
+ may be used to endorse or promote products derived from this work without
specific prior written permission.
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Authors:
Lei, ZhanX <zhanx.lei@intel.com>
+ Arkadiusz Pietraszek <a.pietraszek@samsung.com>
-->
<html>
gotDeviceInfo, gotDeviceError, onSocketConnect, onSocketError;
t.step(function () {
+
+ add_result_callback(function() {
+ clearBonding(REMOTE_DEVICE_ADDRESS);
+ });
+
onSocketConnect = t.step_func(function (socket) {
socket.onmessage = t.step_func(function () {
});
<!DOCTYPE html>
<!--
Copyright (c) 2012 Intel Corporation.
+Copyright (c) 2020 Samsung Electronics Co., Ltd. All Rights Reserved
-Redistribution and use in source and binary forms, with or without modification,
+Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
-* Redistributions of works must retain the original copyright notice, this list
+* Redistributions of works must retain the original copyright notice, this list
of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
- this list of conditions and the following disclaimer in the documentation
+* Redistributions in binary form must reproduce the original copyright notice,
+ this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
- may be used to endorse or promote products derived from this work without
+* Neither the name of Intel Corporation nor the names of its contributors
+ may be used to endorse or promote products derived from this work without
specific prior written permission.
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Authors:
Lei, ZhanX <zhanx.lei@intel.com>
+ Arkadiusz Pietraszek <a.pietraszek@samsung.com>
-->
<html>
t.step(function () {
+ add_result_callback(function() {
+ clearBonding(REMOTE_DEVICE_ADDRESS);
+ });
+
onSocketConnect = t.step_func(function (socket) {
socket.onmessage = t.step_func(function () {
socket.close();
<!DOCTYPE html>
<!--
Copyright (c) 2012 Intel Corporation.
+Copyright (c) 2020 Samsung Electronics Co., Ltd. All Rights Reserved
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Authors:
Lei, ZhanX <zhanx.lei@intel.com>
Lukasz Bardeli <l.bardeli@samsung.com>
+ Arkadiusz Pietraszek <a.pietraszek@samsung.com>
-->
<html>
onSocketConnectedError, gotDeviceInfo, gotDeviceError, onBondingSuccess, onBondingError, powerOnSuccess;
t.step(function () {
+ add_result_callback(function() {
+ clearBonding(REMOTE_DEVICE_ADDRESS);
+ });
+
onSocketConnect = t.step_func(function (socket) {
socket.onmessage = t.step_func(function () {
retValue = socket.readData();
<!DOCTYPE html>
<!--
Copyright (c) 2012 Intel Corporation.
+Copyright (c) 2013 Samsung Electronics Co., Ltd. All Rights Reserved
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Authors:
Lei, ZhanX <zhanx.lei@intel.com>
Lukasz Bardeli <l.bardeli@samsung.com>
+ Arkadiusz Pietraszek <a.pietraszek@samsung.com>
-->
<html>
<head>
onBondingError, powerOnSuccess, textmsg = "Test", sendtextmsg = [], byteData, i;
t.step(function () {
+ add_result_callback(function() {
+ clearBonding(REMOTE_DEVICE_ADDRESS);
+ });
+
onSocketConnect = t.step_func(function (socket) {
for (i = 0; i < textmsg.length; i ++) {
/*
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
+Copyright (c) 2013 Samsung Electronics Co., Ltd. All Rights Reserved
Licensed under the Apache License, Version 2.0 (the License);
you may not use this file except in compliance with the License.
See the License for the specific language governing permissions and
limitations under the License.
-
-
Authors:
+ Unknown Samsung Engineer(s)
+ Arkadiusz Pietraszek <a.pietraszek@samsung.com>
*/
assert_unreached("uagent search not found:" + e.message);
}
}
+
+function clearBonding(deviceAddress) {
+ tizen.bluetooth.getDefaultAdapter().destroyBonding(deviceAddress);
+}
// Add common apis from Xi'an end