Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
a9678eee
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看板
提交
a9678eee
编写于
9月 28, 2022
作者:
A
anning
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
applications
Signed-off-by:
N
anning
<
anning7@huawei.com
>
上级
ee917be2
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
73 addition
and
3 deletion
+73
-3
applications/BUILD.gn
applications/BUILD.gn
+1
-1
applications/settingsdata/BUILD.gn
applications/settingsdata/BUILD.gn
+1
-1
applications/settingsdata/settings_ets/BUILD.gn
applications/settingsdata/settings_ets/BUILD.gn
+1
-1
applications/settingsdata/settings_ets/entry/src/main/ets/test/SettingUiJsunit.test.ets
...ings_ets/entry/src/main/ets/test/SettingUiJsunit.test.ets
+70
-0
未找到文件。
applications/BUILD.gn
浏览文件 @
a9678eee
# Copyright (C) 202
1
Huawei Device Co., Ltd.
# Copyright (C) 202
2
Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
...
...
applications/settingsdata/BUILD.gn
浏览文件 @
a9678eee
# Copyright (C) 202
1
Huawei Device Co., Ltd.
# Copyright (C) 202
2
Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
...
...
applications/settingsdata/settings_ets/BUILD.gn
浏览文件 @
a9678eee
# Copyright (c) 202
1
Huawei Device Co., Ltd.
# Copyright (c) 202
2
Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
...
...
applications/settingsdata/settings_ets/entry/src/main/ets/test/SettingUiJsunit.test.ets
浏览文件 @
a9678eee
...
...
@@ -1183,5 +1183,75 @@ export default function settingUiJsunit() {
return;
}
});
it('settings_get_value_113',0,async function(done){
try{console.info('test settings_get_value_113 start');
settings.enableAirplaneMode(false,(err,data)=>{console.info('settings test enableAirplaneMode callback ssss');
console.info('settings test enableAirplaneMode callback err'+JSON.stringify(err.code));
expect(JSON.stringify(err.code)).assertEqual("801");
done();
})
}catch(err){console.info('settings test enableAirplaneMode try catch err');
expect(true).assertTrue();
done();
return;
}
});
it('settings_get_value_114',0,async function(done){
try{
settings.enableAirplaneMode(false).then((data)=>{
console.info('settings test enableAirplaneMode promise data'+JSON.stringify(data));
expect(false).assertTrue();
done();
}).catch((err)=>{
console.info('settings test enableAirplaneMode promise err'+JSON.stringify(err.code));
expect(JSON.stringify(err.code)).assertEqual("801");
done();
return;
})
}catch(err){
console.info('settings test enableAirplaneMode try catch err'+JSON.stringify(err));
expect(true).assertTrue();
done();
return;
}
});
it('settings_get_value_115',0,async function (done) {
try{
settings.canShowFloating((err,data)=>{
console.info('settings test canShowFloating promise err'+JSON.stringify(err.code));
expect(JSON.stringify(err.code)).assertEqual("801");
done();
})
}catch(err){
console.info('settings test canShowFloating promise err'+toString(err));
expect(true).assertTrue();
done();
return;
}
});
it('settings_get_value_116',0,async function (done) {
try{
let str = {"code":801};
settings.canShowFloating().then((data)=>{
console.info('settings test canShowFloating promise err'+toString(data));
expect(toString(err)).assertEqual(str);
done();
}).catch((err)=>{
console.info('settings test canShowFloating promise err'+JSON.stringify(err.code));
expect(JSON.stringify(err.code)).assertEqual("801");
done();
return;
})
}catch(err){
console.info('settings test canShowFloating promise err'+toString(err));
expect(true).assertTrue();
done();
return;
}
});
})
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录