[tv][bluetooth] sync tizen_9.0 to latest 18/316618/2
authorchen <chen89.chen@samsung.com>
Sat, 7 Dec 2024 06:25:55 +0000 (14:25 +0800)
committerchen chen <chen89.chen@samsung.com>
Mon, 16 Dec 2024 06:23:19 +0000 (06:23 +0000)
Change-Id: Id6f60f9c2506aae686a46aa0241aacb3d9bab33e
Signed-off-by: chen <chen89.chen@samsung.com>
common/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_createBonding_bondingDevice.html
common/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_discoverDevices_with_errorCallback.html
common/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_getKnownDevices.html
common/tct-bluetooth-tizen-tests/bluetooth/BluetoothDiscoverDevicesSuccessCallback_ondevicedisappeared.html
common/tct-bluetooth-tizen-tests/tests.full.xml
common/tct-bluetooth-tizen-tests/tests.xml

index df200947c5e7bea867841b3d6f53edb60197aef5..a9ffb3ce320555b453d1c40ebe96ad88ada8912e 100755 (executable)
@@ -64,6 +64,9 @@ t.step(function () {
             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
@@ -71,7 +74,7 @@ t.step(function () {
                 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
@@ -96,6 +99,10 @@ t.step(function () {
             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
index fcad5677cf069f9d13c95c3ef99984b87524828c..288cc2ff1cde4d522a47f3c82b6a685517d9f165 100755 (executable)
@@ -33,17 +33,16 @@ Authors:
 //==== 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
index 4dca76c951dac47c2d61db0defbbdd46fe64c247..30b87470b7e12dfaf573915a6d9df690efedcefd 100755 (executable)
@@ -34,13 +34,13 @@ Authors:
 //==== 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
index 8245181d5d4a49c07db42f7572936ca64d9cd749..9316f5ce518ebaf39ad83ab0b13afcb655553eb2 100755 (executable)
@@ -43,8 +43,8 @@ Authors:
 //==== 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 () {
@@ -60,6 +60,7 @@ 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;
                 }
index e56b32ab2b9d604f7cb64238c51da1f85738b3a7..233f8be219383fe518dfa477438a9c1b9dd264f5 100755 (executable)
@@ -8730,7 +8730,7 @@ The bluetooth of the remote/test device MUST be turned on and discoverable from
           </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>
@@ -8890,7 +8890,7 @@ The bluetooth of the remote/test device MUST be turned on and discoverable from
           </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>
index 6c433d2fe37b6519138b6bc127e355460f138923..8a89b04a0dc0852fdfd0eef7af4b8005b2c5f60f 100755 (executable)
@@ -4025,7 +4025,7 @@ The bluetooth of the remote/test device MUST be turned on and discoverable from
           <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>
@@ -4093,7 +4093,7 @@ The bluetooth of the remote/test device MUST be turned on and discoverable from
           <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>