diff --git a/communication/bluetooth_ble/src/main/js/default/pages/index/index.js b/communication/bluetooth_ble/src/main/js/default/pages/index/index.js index 1e1c2e8fb2084ef517433960a0b1d5f75b6119c6..062ae450fd726e4fed4a2de7c34096149cd1a91b 100644 --- a/communication/bluetooth_ble/src/main/js/default/pages/index/index.js +++ b/communication/bluetooth_ble/src/main/js/default/pages/index/index.js @@ -26,9 +26,6 @@ export default { }, onShow() { console.info('onShow finish') - }, - onReady() { - console.info('onReady finish') const core = Core.getInstance() const expectExtend = new ExpectExtend({ 'id': 'extend' @@ -43,6 +40,10 @@ export default { require('../../test/List.test') core.execute() + + }, + onReady() { + console.info('onReady finish') }, } diff --git a/communication/bluetooth_ble/src/main/js/default/test/BluetoothBle.test.js b/communication/bluetooth_ble/src/main/js/default/test/BluetoothBle.test.js index 2bac077d439d2f0861deb79dcb50893fab952cee..4e8afec46431811e2698c865c880f9a3359db4b3 100644 --- a/communication/bluetooth_ble/src/main/js/default/test/BluetoothBle.test.js +++ b/communication/bluetooth_ble/src/main/js/default/test/BluetoothBle.test.js @@ -126,24 +126,6 @@ describe('bluetoothhostTest', function() { }) - /** - * @tc.number SUB_COMMUNACATION_bluetoothble_CREATE_GATT_SERVER_0001 - * @tc.name testCreateGattServer - * @tc.desc Test CreateGattServer api . - * @tc.size MEDIUM - * @tc.type Function - * @tc.level Level 2 - */ - it('SUB_COMMUNACATION_bluetoothble_CREATE_GATT_SERVER_0001', 0, async function (done) { - console.info('[bluetooth_js] createGattServer test start ...'); - await tryToEnableBt(); - let result = bluetooth.BLE.createGattServer(); - let resultLength = Object.keys(result).length; - console.info("[bluetooth_js] createGattServer:" + JSON.stringify(result) + "length:" + resultLength); - expect(resultLength).assertEqual(1); - done(); - }) - /** * @tc.number SUB_COMMUNACATION_bluetooth_START_ADVERTISING_0001 diff --git a/communication/bluetooth_on/src/main/js/default/pages/index/index.js b/communication/bluetooth_on/src/main/js/default/pages/index/index.js index b51283e8daf14c270ab455ebd6cd8432921282e7..a8dddf999c626afde6b0c239b8919eacb2b95c53 100644 --- a/communication/bluetooth_on/src/main/js/default/pages/index/index.js +++ b/communication/bluetooth_on/src/main/js/default/pages/index/index.js @@ -25,9 +25,6 @@ export default { }, onShow() { console.info('onShow finish') - }, - onReady() { - console.info('onReady finish') const core = Core.getInstance() const expectExtend = new ExpectExtend({ 'id': 'extend' @@ -42,6 +39,10 @@ export default { require('../../test/List.test') core.execute() + + }, + onReady() { + console.info('onReady finish') }, } diff --git a/communication/bluetooth_profile/src/main/js/default/pages/index/index.js b/communication/bluetooth_profile/src/main/js/default/pages/index/index.js index 59a617c21153b070775c21cfe400393e740274c1..0eea3ac7f7ac200ffdb05453fc12e0b7d27b8697 100644 --- a/communication/bluetooth_profile/src/main/js/default/pages/index/index.js +++ b/communication/bluetooth_profile/src/main/js/default/pages/index/index.js @@ -26,9 +26,6 @@ export default { }, onShow() { console.info('onShow finish') - }, - onReady() { - console.info('onReady finish') const core = Core.getInstance() const expectExtend = new ExpectExtend({ 'id': 'extend' @@ -43,6 +40,10 @@ export default { require('../../test/List.test') core.execute() + + }, + onReady() { + console.info('onReady finish') }, } diff --git a/communication/bluetooth_standard/src/main/js/default/pages/index/index.js b/communication/bluetooth_standard/src/main/js/default/pages/index/index.js index bf314e06f62f015ab41cdb68d263452d958061f7..062ae450fd726e4fed4a2de7c34096149cd1a91b 100644 --- a/communication/bluetooth_standard/src/main/js/default/pages/index/index.js +++ b/communication/bluetooth_standard/src/main/js/default/pages/index/index.js @@ -26,9 +26,6 @@ export default { }, onShow() { console.info('onShow finish') - }, - onReady() { - console.info('onReady finish') const core = Core.getInstance() const expectExtend = new ExpectExtend({ 'id': 'extend' @@ -37,12 +34,16 @@ export default { core.init() const configService = core.getDefaultService('config') - this.timeout = this.myTimeout - configService.setConfig(this) + this.timeout = this.myTimeout + configService.setConfig(this) require('../../test/List.test') core.execute() + + }, + onReady() { + console.info('onReady finish') }, } diff --git a/communication/wifi_p2p/src/main/js/default/pages/index/index.js b/communication/wifi_p2p/src/main/js/default/pages/index/index.js index a1554d1736cb2844d614564a545b4ade775c5b52..12b48cb9f4b4896e047c9091c1c2ad81e8e75e80 100644 --- a/communication/wifi_p2p/src/main/js/default/pages/index/index.js +++ b/communication/wifi_p2p/src/main/js/default/pages/index/index.js @@ -27,9 +27,6 @@ export default { }, onShow() { console.info('onShow finish') - }, - onReady() { - console.info('onReady finish') const core = Core.getInstance() const expectExtend = new ExpectExtend({ 'id': 'extend' @@ -38,13 +35,17 @@ export default { core.init() const configService = core.getDefaultService('config') - + this.timeout = this.myTimeout configService.setConfig(this) require('../../test/List.test') core.execute() + + }, + onReady() { + console.info('onReady finish') }, } diff --git a/communication/wifi_standard/src/main/js/default/pages/index/index.js b/communication/wifi_standard/src/main/js/default/pages/index/index.js index b74a408c5acb9f6b2f93337c6d32f069d10c740b..458bc80ae353882973cd421cbffa3cf4636d58a3 100755 --- a/communication/wifi_standard/src/main/js/default/pages/index/index.js +++ b/communication/wifi_standard/src/main/js/default/pages/index/index.js @@ -25,9 +25,6 @@ export default { }, onShow() { console.info('onShow finish') - }, - onReady() { - console.info('onReady finish') const core = Core.getInstance() const expectExtend = new ExpectExtend({ 'id': 'extend' @@ -42,6 +39,10 @@ export default { require('../../test/List.test') core.execute() + + }, + onReady() { + console.info('onReady finish') }, }