Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
50031424
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看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
50031424
编写于
10月 08, 2022
作者:
O
openharmony_ci
提交者:
Gitee
10月 08, 2022
浏览文件
操作
浏览文件
下载
差异文件
!5815 【EDM】删除多余的测试用例
Merge pull request !5815 from 李兀立/master
上级
4be57fe0
04b05eca
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
0 addition
and
54 deletion
+0
-54
customization/edm_xts_stage/entry/src/main/ets/test/edmCallback.test.ets
...dm_xts_stage/entry/src/main/ets/test/edmCallback.test.ets
+0
-28
customization/edm_xts_stage/entry/src/main/ets/test/edmPromise.test.ets
...edm_xts_stage/entry/src/main/ets/test/edmPromise.test.ets
+0
-26
未找到文件。
customization/edm_xts_stage/entry/src/main/ets/test/edmCallback.test.ets
浏览文件 @
50031424
...
@@ -77,34 +77,6 @@ export default function edmCallbackTest() {
...
@@ -77,34 +77,6 @@ export default function edmCallbackTest() {
}
}
})
})
/**
* @tc.number SUB_CUSTOMIZATION_ENTERPRISE_DEVICE_MANAGER_JS_0006
* @tc.name test enableAdmin method in callback mode without user id
* @tc.desc enable admin in callback mode
*/
it
(
'enableAdmin_test_006'
,
0
,
async
function
(
done
)
{
console
.
log
(
' enableAdmin()'
);
await
enterpriseDeviceManager
.
enableAdmin
(
WANT1
,
ENTINFO1
,
enterpriseDeviceManager
.
AdminType
.
ADMIN_TYPE_NORMAL
,
OnReceiveEvent
);
async
function
OnReceiveEvent
(
err
,
datainfo
)
{
console
.
log
(
'enterpriseDeviceManager.enableAdmin ADMIN_TYPE_NORMAL :'
+
datainfo
);
expect
(
datainfo
)
.
assertTrue
();
var
isEnabled
=
await
enterpriseDeviceManager
.
isAdminEnabled
(
WANT1
);
console
.
log
(
'enterpriseDeviceManager.isAdminEnabled :'
+
isEnabled
);
expect
(
isEnabled
)
.
assertTrue
();
var
retValue
=
await
enterpriseDeviceManager
.
disableAdmin
(
WANT1
);
console
.
log
(
'enterpriseDeviceManager.disableAdmin : '
+
retValue
);
expect
(
retValue
)
.
assertTrue
();
isEnabled
=
await
enterpriseDeviceManager
.
isAdminEnabled
(
WANT1
);
console
.
log
(
'enterpriseDeviceManager.isAdminEnabled : '
+
isEnabled
);
expect
(
isEnabled
)
.
assertFalse
();
done
();
}
})
/**
/**
* @tc.number SUB_CUSTOMIZATION_ENTERPRISE_DEVICE_MANAGER_JS_0008
* @tc.number SUB_CUSTOMIZATION_ENTERPRISE_DEVICE_MANAGER_JS_0008
* @tc.name test enableAdmin method with user id in callback mode with default user id
* @tc.name test enableAdmin method with user id in callback mode with default user id
...
...
customization/edm_xts_stage/entry/src/main/ets/test/edmPromise.test.ets
浏览文件 @
50031424
...
@@ -72,32 +72,6 @@ export default function edmPromiseTest() {
...
@@ -72,32 +72,6 @@ export default function edmPromiseTest() {
done
();
done
();
})
})
/**
* @tc.number SUB_CUSTOMIZATION_ENTERPRISE_DEVICE_MANAGER_JS_0005
* @tc.name test enableAdmin method in promise mode without user id
* @tc.desc enable admin in promise mode
*/
it
(
'enableAdmin_test_005'
,
0
,
async
function
(
done
)
{
var
retValue
=
await
enterpriseDeviceManager
.
enableAdmin
(
WANT1
,
ENTINFO1
,
enterpriseDeviceManager
.
AdminType
.
ADMIN_TYPE_NORMAL
);
console
.
log
(
'enterpriseDeviceManager.enableAdmin ADMIN_TYPE_NORMAL : '
+
retValue
);
expect
(
retValue
)
.
assertTrue
();
var
isEnabled
=
await
enterpriseDeviceManager
.
isAdminEnabled
(
WANT1
);
console
.
log
(
'enterpriseDeviceManager.isAdminEnabled : '
+
isEnabled
);
expect
(
isEnabled
)
.
assertTrue
();
retValue
=
await
enterpriseDeviceManager
.
disableAdmin
(
WANT1
);
console
.
log
(
'enterpriseDeviceManager.disableAdmin : '
+
retValue
);
expect
(
retValue
)
.
assertTrue
();
isEnabled
=
await
enterpriseDeviceManager
.
isAdminEnabled
(
WANT1
);
console
.
log
(
'enterpriseDeviceManager.isAdminEnabled : '
+
isEnabled
);
expect
(
isEnabled
)
.
assertFalse
();
done
();
})
/**
/**
* @tc.number SUB_CUSTOMIZATION_ENTERPRISE_DEVICE_MANAGER_JS_0007
* @tc.number SUB_CUSTOMIZATION_ENTERPRISE_DEVICE_MANAGER_JS_0007
* @tc.name test enableAdmin method in promise mode with default user id
* @tc.name test enableAdmin method in promise mode with default user id
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录