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

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

Merge pull request !3384 from 权力/myfeaturef
......@@ -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')
},
}
......@@ -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
......
......@@ -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')
},
}
......@@ -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')
},
}
......@@ -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')
},
}
......@@ -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')
},
}
......@@ -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')
},
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册