未验证 提交 bf7cd7a6 编写于 作者: O openharmony_ci 提交者: Gitee

!3384 【communication】修改communication下 JS测试框架初始化代码位置1

Merge pull request !3384 from 权力/myfeaturef
...@@ -26,9 +26,6 @@ export default { ...@@ -26,9 +26,6 @@ export default {
}, },
onShow() { onShow() {
console.info('onShow finish') console.info('onShow finish')
},
onReady() {
console.info('onReady finish')
const core = Core.getInstance() const core = Core.getInstance()
const expectExtend = new ExpectExtend({ const expectExtend = new ExpectExtend({
'id': 'extend' 'id': 'extend'
...@@ -43,6 +40,10 @@ export default { ...@@ -43,6 +40,10 @@ export default {
require('../../test/List.test') require('../../test/List.test')
core.execute() core.execute()
},
onReady() {
console.info('onReady finish')
}, },
} }
...@@ -126,24 +126,6 @@ describe('bluetoothhostTest', function() { ...@@ -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 * @tc.number SUB_COMMUNACATION_bluetooth_START_ADVERTISING_0001
......
...@@ -25,9 +25,6 @@ export default { ...@@ -25,9 +25,6 @@ export default {
}, },
onShow() { onShow() {
console.info('onShow finish') console.info('onShow finish')
},
onReady() {
console.info('onReady finish')
const core = Core.getInstance() const core = Core.getInstance()
const expectExtend = new ExpectExtend({ const expectExtend = new ExpectExtend({
'id': 'extend' 'id': 'extend'
...@@ -42,6 +39,10 @@ export default { ...@@ -42,6 +39,10 @@ export default {
require('../../test/List.test') require('../../test/List.test')
core.execute() core.execute()
},
onReady() {
console.info('onReady finish')
}, },
} }
...@@ -26,9 +26,6 @@ export default { ...@@ -26,9 +26,6 @@ export default {
}, },
onShow() { onShow() {
console.info('onShow finish') console.info('onShow finish')
},
onReady() {
console.info('onReady finish')
const core = Core.getInstance() const core = Core.getInstance()
const expectExtend = new ExpectExtend({ const expectExtend = new ExpectExtend({
'id': 'extend' 'id': 'extend'
...@@ -43,6 +40,10 @@ export default { ...@@ -43,6 +40,10 @@ export default {
require('../../test/List.test') require('../../test/List.test')
core.execute() core.execute()
},
onReady() {
console.info('onReady finish')
}, },
} }
...@@ -26,9 +26,6 @@ export default { ...@@ -26,9 +26,6 @@ export default {
}, },
onShow() { onShow() {
console.info('onShow finish') console.info('onShow finish')
},
onReady() {
console.info('onReady finish')
const core = Core.getInstance() const core = Core.getInstance()
const expectExtend = new ExpectExtend({ const expectExtend = new ExpectExtend({
'id': 'extend' 'id': 'extend'
...@@ -37,12 +34,16 @@ export default { ...@@ -37,12 +34,16 @@ export default {
core.init() core.init()
const configService = core.getDefaultService('config') const configService = core.getDefaultService('config')
this.timeout = this.myTimeout this.timeout = this.myTimeout
configService.setConfig(this) configService.setConfig(this)
require('../../test/List.test') require('../../test/List.test')
core.execute() core.execute()
},
onReady() {
console.info('onReady finish')
}, },
} }
...@@ -27,9 +27,6 @@ export default { ...@@ -27,9 +27,6 @@ export default {
}, },
onShow() { onShow() {
console.info('onShow finish') console.info('onShow finish')
},
onReady() {
console.info('onReady finish')
const core = Core.getInstance() const core = Core.getInstance()
const expectExtend = new ExpectExtend({ const expectExtend = new ExpectExtend({
'id': 'extend' 'id': 'extend'
...@@ -38,13 +35,17 @@ export default { ...@@ -38,13 +35,17 @@ export default {
core.init() core.init()
const configService = core.getDefaultService('config') const configService = core.getDefaultService('config')
this.timeout = this.myTimeout this.timeout = this.myTimeout
configService.setConfig(this) configService.setConfig(this)
require('../../test/List.test') require('../../test/List.test')
core.execute() core.execute()
},
onReady() {
console.info('onReady finish')
}, },
} }
...@@ -25,9 +25,6 @@ export default { ...@@ -25,9 +25,6 @@ export default {
}, },
onShow() { onShow() {
console.info('onShow finish') console.info('onShow finish')
},
onReady() {
console.info('onReady finish')
const core = Core.getInstance() const core = Core.getInstance()
const expectExtend = new ExpectExtend({ const expectExtend = new ExpectExtend({
'id': 'extend' 'id': 'extend'
...@@ -42,6 +39,10 @@ export default { ...@@ -42,6 +39,10 @@ export default {
require('../../test/List.test') require('../../test/List.test')
core.execute() core.execute()
},
onReady() {
console.info('onReady finish')
}, },
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册