From: Junghyuk Park Date: Thu, 12 Sep 2013 10:04:55 +0000 (+0900) Subject: [Bluetooth] restore visiblity status X-Git-Tag: 2.2.1_release~114^2~51 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=68bfa76e6da64d72ee90af50b030a6fce27d3307;p=test%2Ftct%2Fweb%2Fapi.git [Bluetooth] restore visiblity status Change-Id: I357e8d353860c0923d4e28f54a5c8e7ab3f4d1b4 --- diff --git a/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_setVisible_with_errorCallback.html b/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_setVisible_with_errorCallback.html old mode 100644 new mode 100755 index 5054fd9e5..6d8d9b5d9 --- a/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_setVisible_with_errorCallback.html +++ b/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_setVisible_with_errorCallback.html @@ -40,14 +40,21 @@ Authors: //==== TEST_CRITERIA MOA MAST setup({timeout: 90000}); -var t = async_test("BluetoothAdapter_setVisible_with_errorCallback", {timeout: 90000}); +var t = async_test("BluetoothAdapter_setVisible_with_errorCallback", {timeout: 90000}), + adapter, powerOnSuccess, powerOnError, setVisibleSuccessCB, setVisibleErrorCB, setInvisibleSuccessCB, setInvisibleErrorCB; + t.step(function () { - var adapter, powerOnSuccess, powerOnError, setVisibleSuccessCB, setVisibleErrorCB; + setInvisibleSuccessCB = t.step_func(function () { + t.done(); + }); + + setInvisibleErrorCB = t.step_func(function (e) { + assert_unreached("setInvisibleErrorCB exception:" + e.message); + }); setVisibleSuccessCB = t.step_func(function () { assert_true(adapter.visible, "Bluetooth visibled false"); - adapter.setVisible(false); - t.done(); + adapter.setVisible(false, setInvisibleSuccessCB, setInvisibleErrorCB); }); setVisibleErrorCB = t.step_func(function (e) { diff --git a/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_setVisible_with_successCallback.html b/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_setVisible_with_successCallback.html old mode 100644 new mode 100755 index b4452de91..570463345 --- a/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_setVisible_with_successCallback.html +++ b/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_setVisible_with_successCallback.html @@ -40,14 +40,21 @@ Authors: //==== TEST_CRITERIA MOA MAST setup({timeout: 90000}); -var t = async_test("BluetoothAdapter_setVisible_with_successCallback", {timeout: 90000}); +var t = async_test("BluetoothAdapter_setVisible_with_successCallback", {timeout: 90000}), + adapter, powerOnSuccess, powerOnError, setVisibleSuccessCB, setInvisibleSuccessCB, setInvisibleErrorCB; + t.step(function () { - var adapter, powerOnSuccess, powerOnError, setVisibleSuccessCB; + setInvisibleSuccessCB = t.step_func(function () { + t.done(); + }); + + setInvisibleErrorCB = t.step_func(function (e) { + assert_unreached("setInvisibleErrorCB exception:" + e.message); + }); setVisibleSuccessCB = t.step_func(function () { assert_true(adapter.visible, "Bluetooth visibled false"); - adapter.setVisible(false); - t.done(); + adapter.setVisible(false, setInvisibleSuccessCB, setInvisibleErrorCB); }); powerOnSuccess = t.step_func(function () { diff --git a/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_setVisible_with_timeout.html b/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_setVisible_with_timeout.html old mode 100644 new mode 100755 index 73b11f5b4..3b3281c62 --- a/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_setVisible_with_timeout.html +++ b/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_setVisible_with_timeout.html @@ -41,12 +41,21 @@ Authors: setup({timeout: 90000}); var t = async_test("BluetoothAdapter_setVisible_with_timeout", {timeout: 90000}), - adapter, powerOnSuccess, powerOnError, setVisibleSuccessCB, setVisibleErrorCB; + adapter, powerOnSuccess, powerOnError, setVisibleSuccessCB, setVisibleErrorCB, setInvisibleSuccessCB, setInvisibleErrorCB; + t.step(function () { + + setInvisibleSuccessCB = t.step_func(function () { + t.done(); + }); + + setInvisibleErrorCB = t.step_func(function (e) { + assert_unreached("setInvisibleErrorCB exception:" + e.message); + }); + setVisibleSuccessCB = t.step_func(function () { assert_true(adapter.visible, "Bluetooth visibled false"); - adapter.setVisible(false); - t.done(); + adapter.setVisible(false, setInvisibleSuccessCB, setInvisibleErrorCB); }); setVisibleErrorCB = t.step_func(function (e) { @@ -54,7 +63,7 @@ t.step(function () { }); powerOnSuccess = t.step_func(function () { - adapter.setVisible(true, setVisibleSuccessCB, setVisibleErrorCB, 60); + adapter.setVisible(true, setVisibleSuccessCB, setVisibleErrorCB, 90); }); powerOnError = t.step_func(function (e) {