Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
9985a4dd
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
9985a4dd
编写于
3月 29, 2023
作者:
Z
zhangpa2021
提交者:
张攀
3月 29, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fixed
c36f5c9f
from
https://gitee.com/zhangpa2021/xts_acts/pulls/8286
更新用例 Signed-off-by:
N
zhangpa2021
<
zhangpan70@huawei.com
>
上级
9ced5659
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
9 addition
and
17 deletion
+9
-17
communication/dsoftbus/rpc/src/main/js/test/RpcClientJsunit.test.js
...ion/dsoftbus/rpc/src/main/js/test/RpcClientJsunit.test.js
+9
-17
未找到文件。
communication/dsoftbus/rpc/src/main/js/test/RpcClientJsunit.test.js
浏览文件 @
9985a4dd
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
import rpc from '@ohos.rpc';
import rpc from '@ohos.rpc';
import fileio from '@ohos.fileio';
import fileio from '@ohos.fileio';
import FA from '@ohos.ability.featureAbility';
import FA from '@ohos.ability.featureAbility';
import {describe, expect, beforeAll, it} from '
deccjsunit/index
';
import {describe, expect, beforeAll, it} from '
@ohos/hypium
';
var gIRemoteObject = null;
var gIRemoteObject = null;
export default function actsRpcClientJsTest() {
export default function actsRpcClientJsTest() {
describe('ActsRpcClientJsTest', function(){
describe('ActsRpcClientJsTest', function(){
...
@@ -125,9 +125,8 @@ export default function actsRpcClientJsTest() {
...
@@ -125,9 +125,8 @@ export default function actsRpcClientJsTest() {
console.info("server died");
console.info("server died");
expect(this.proxy.removeDeathRecipient(this, 0)).assertTrue();
expect(this.proxy.removeDeathRecipient(this, 0)).assertTrue();
let _done = this.done;
let _done = this.done;
setTimeout(function() {
_done();
_done()
sleep(1000);
}, 1000);
}
}
}
}
...
@@ -141,9 +140,8 @@ export default function actsRpcClientJsTest() {
...
@@ -141,9 +140,8 @@ export default function actsRpcClientJsTest() {
console.info("server died");
console.info("server died");
expect(this.proxy.unregisterDeathRecipient(this, 0)).assertTrue();
expect(this.proxy.unregisterDeathRecipient(this, 0)).assertTrue();
let _done = this.done;
let _done = this.done;
setTimeout(function() {
_done();
_done()
sleep(1000);
}, 1000);
}
}
}
}
...
@@ -747,10 +745,10 @@ export default function actsRpcClientJsTest() {
...
@@ -747,10 +745,10 @@ export default function actsRpcClientJsTest() {
let _checkResult = this.checkResult
let _checkResult = this.checkResult
let _num = data.readInt();
let _num = data.readInt();
let _str = data.readString();
let _str = data.readString();
setTimeout(function(){
_checkResult(_num, _str)
_checkResult(_num, _str);
}, 2*1
000);
sleep(2
000);
return result
return result
;
}
}
}
}
...
@@ -13918,9 +13916,6 @@ export default function actsRpcClientJsTest() {
...
@@ -13918,9 +13916,6 @@ export default function actsRpcClientJsTest() {
let samgr = rpc.IPCSkeleton.getContextObject();
let samgr = rpc.IPCSkeleton.getContextObject();
console.info("SUB_Softbus_IPC_Compatibility_IPCSkeleton_00300 getContextObject result: " + samgr);
console.info("SUB_Softbus_IPC_Compatibility_IPCSkeleton_00300 getContextObject result: " + samgr);
expect(samgr != null).assertTrue();
expect(samgr != null).assertTrue();
let geinde = samgr.getInterfaceDescriptor();
console.info("SUB_Softbus_IPC_Compatibility_IPCSkeleton_00300 getInterfaceDescriptor result: " + geinde);
expect(geinde).assertEqual("");
}
}
catch (error) {
catch (error) {
console.info("SUB_Softbus_IPC_Compatibility_IPCSkeleton_00300 error is :" + error);
console.info("SUB_Softbus_IPC_Compatibility_IPCSkeleton_00300 error is :" + error);
...
@@ -14018,7 +14013,6 @@ export default function actsRpcClientJsTest() {
...
@@ -14018,7 +14013,6 @@ export default function actsRpcClientJsTest() {
it("SUB_Softbus_IPC_Compatibility_IPCSkeleton_00700", 0,async function(done){
it("SUB_Softbus_IPC_Compatibility_IPCSkeleton_00700", 0,async function(done){
console.info("---------------------start SUB_Softbus_IPC_Compatibility_IPCSkeleton_00700---------------------------");
console.info("---------------------start SUB_Softbus_IPC_Compatibility_IPCSkeleton_00700---------------------------");
try{
try{
expect(rpc.IPCSkeleton.getContextObject().getInterfaceDescriptor()).assertEqual("");
let callingPid = rpc.IPCSkeleton.getCallingPid();
let callingPid = rpc.IPCSkeleton.getCallingPid();
let callingUid = rpc.IPCSkeleton.getCallingUid();
let callingUid = rpc.IPCSkeleton.getCallingUid();
let option = new rpc.MessageOption();
let option = new rpc.MessageOption();
...
@@ -14175,7 +14169,6 @@ export default function actsRpcClientJsTest() {
...
@@ -14175,7 +14169,6 @@ export default function actsRpcClientJsTest() {
let id = rpc.IPCSkeleton.resetCallingIdentity();
let id = rpc.IPCSkeleton.resetCallingIdentity();
console.info("SUB_Softbus_IPC_Compatibility_IPCSkeleton_01200:" + id);
console.info("SUB_Softbus_IPC_Compatibility_IPCSkeleton_01200:" + id);
let ret = rpc.IPCSkeleton.setCallingIdentity(id);
let ret = rpc.IPCSkeleton.setCallingIdentity(id);
expect(object.getInterfaceDescriptor()).assertEqual("");
expect(callingDeviceID).assertEqual("");
expect(callingDeviceID).assertEqual("");
expect(localDeviceID).assertEqual("");
expect(localDeviceID).assertEqual("");
expect(isLocalCalling).assertTrue();
expect(isLocalCalling).assertTrue();
...
@@ -14224,7 +14217,6 @@ export default function actsRpcClientJsTest() {
...
@@ -14224,7 +14217,6 @@ export default function actsRpcClientJsTest() {
it("SUB_Softbus_IPC_Compatibility_IPCSkeleton_01300", 0,async function(done){
it("SUB_Softbus_IPC_Compatibility_IPCSkeleton_01300", 0,async function(done){
console.info("---------------------start SUB_Softbus_IPC_Compatibility_IPCSkeleton_01300---------------------------");
console.info("---------------------start SUB_Softbus_IPC_Compatibility_IPCSkeleton_01300---------------------------");
try{
try{
expect(rpc.IPCSkeleton.getContextObject().getInterfaceDescriptor()).assertEqual("");
let callingPid = rpc.IPCSkeleton.getCallingPid();
let callingPid = rpc.IPCSkeleton.getCallingPid();
let callingUid = rpc.IPCSkeleton.getCallingUid();
let callingUid = rpc.IPCSkeleton.getCallingUid();
let option = new rpc.MessageOption();
let option = new rpc.MessageOption();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录