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

!3654 【communication】补充BT JS L2测试用例2

Merge pull request !3654 from 权力/myfeature11
...@@ -685,7 +685,7 @@ describe('bluetoothhostTest', function() { ...@@ -685,7 +685,7 @@ describe('bluetoothhostTest', function() {
desValue[0] = 11; desValue[0] = 11;
let descriptor = {serviceUuid: '00001810-0000-1000-8000-00805F9B34FB', let descriptor = {serviceUuid: '00001810-0000-1000-8000-00805F9B34FB',
characteristicUuid: '00001820-0000-1000-8000-00805F9B34FB', characteristicUuid: '00001820-0000-1000-8000-00805F9B34FB',
descriptorUuid: '00001830-0000-1000-8000-00805F9B34FB', descriptorUuid: '00002902-0000-1000-8000-00805F9B34FB',
descriptorValue: arrayBuffer}; descriptorValue: arrayBuffer};
descriptors[0] = descriptor; descriptors[0] = descriptor;
let characteristics = []; let characteristics = [];
...@@ -700,7 +700,11 @@ describe('bluetoothhostTest', function() { ...@@ -700,7 +700,11 @@ describe('bluetoothhostTest', function() {
isPrimary: true, characteristics: characteristics, includeServices: []}; isPrimary: true, characteristics: characteristics, includeServices: []};
let ret = gattServer.addService(service); let ret = gattServer.addService(service);
console.info('[bluetooth_js] bluetooth addService ret : ' + ret); console.info('[bluetooth_js] bluetooth addService ret : ' + ret);
expect(ret).assertEqual(false); expect(ret).assertTrue();
await sleep(3500);
let ret1=gattServer.removeService('00001810-0000-1000-8000-00805F9B34FB');
console.info('[bluetooth_js]removeService ret:'+ret1);
expect(ret1).assertTrue();
done(); done();
}) })
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册