Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
9b659447
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看板
未验证
提交
9b659447
编写于
2月 15, 2022
作者:
O
openharmony_ci
提交者:
Gitee
2月 15, 2022
浏览文件
操作
浏览文件
下载
差异文件
!1917 【增强特性】定制框架js接口module名字优化
Merge pull request !1917 from huangke11/master
上级
6b9d3a9b
aebdea10
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
21 addition
and
21 deletion
+21
-21
global/cust/custjs/src/main/js/default/test/GetCfgDirList.test.js
...ust/custjs/src/main/js/default/test/GetCfgDirList.test.js
+3
-3
global/cust/custjs/src/main/js/default/test/GetCfgFiles.test.js
.../cust/custjs/src/main/js/default/test/GetCfgFiles.test.js
+9
-9
global/cust/custjs/src/main/js/default/test/GetOneCfgFile.test.js
...ust/custjs/src/main/js/default/test/GetOneCfgFile.test.js
+9
-9
未找到文件。
global/cust/custjs/src/main/js/default/test/GetCfgDirList.test.js
浏览文件 @
9b659447
...
...
@@ -15,7 +15,7 @@
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
import
c
ust
from
'
@ohos.cust
'
import
c
onfigPolicy
from
'
@ohos.configPolicy
'
describe
(
'
GetCfgDirListTest
'
,
function
()
{
...
...
@@ -25,7 +25,7 @@ describe('GetCfgDirListTest', function () {
* @tc.desc get getCfgDirList in callback mode
*/
it
(
'
getCfgDirList_test_005
'
,
0
,
async
function
(
done
)
{
c
ust
.
getCfgDirList
((
error
,
value
)
=>
{
c
onfigPolicy
.
getCfgDirList
((
error
,
value
)
=>
{
expect
(
value
.
length
!=
0
).
assertTrue
();
console
.
log
(
'
CustTest getCfgDirList_test_005:
'
+
value
);
});
...
...
@@ -38,7 +38,7 @@ describe('GetCfgDirListTest', function () {
* @tc.desc get getCfgDirList in promise mode
*/
it
(
'
getCfgDirList_test_006
'
,
0
,
async
function
(
done
)
{
c
ust
.
getCfgDirList
().
then
(
value
=>
{
c
onfigPolicy
.
getCfgDirList
().
then
(
value
=>
{
expect
(
value
.
length
!=
0
).
assertTrue
();
console
.
log
(
'
CustTest getCfgDirList_test_006:
'
+
value
);
});
...
...
global/cust/custjs/src/main/js/default/test/GetCfgFiles.test.js
浏览文件 @
9b659447
...
...
@@ -15,7 +15,7 @@
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
import
c
ust
from
'
@ohos.cust
'
import
c
onfigPolicy
from
'
@ohos.configPolicy
'
describe
(
'
GetCfgFilesTest
'
,
function
()
{
...
...
@@ -25,19 +25,19 @@ describe('GetCfgFilesTest', function () {
* @tc.desc get getCfgFiles in callback mode
*/
it
(
'
getCfgFiles_test_003
'
,
0
,
async
function
(
done
)
{
c
ust
.
getCfgFiles
(
'
custxmltest/none.xml
'
,
(
error
,
value
)
=>
{
c
onfigPolicy
.
getCfgFiles
(
'
custxmltest/none.xml
'
,
(
error
,
value
)
=>
{
expect
(
value
.
length
==
0
).
assertTrue
();
console
.
log
(
'
CustTest getCfgFiles_test_003, none.xml:
'
+
value
);
});
c
ust
.
getCfgFiles
(
'
custxmltest/system.xml
'
,
(
error
,
value
)
=>
{
c
onfigPolicy
.
getCfgFiles
(
'
custxmltest/system.xml
'
,
(
error
,
value
)
=>
{
expect
(
value
.
length
!=
0
).
assertTrue
();
console
.
log
(
'
CustTest getCfgFiles_test_003, system.xml:
'
+
value
);
});
c
ust
.
getCfgFiles
(
'
custxmltest/both.xml
'
,
(
error
,
value
)
=>
{
c
onfigPolicy
.
getCfgFiles
(
'
custxmltest/both.xml
'
,
(
error
,
value
)
=>
{
expect
(
value
.
length
!=
0
).
assertTrue
();
console
.
log
(
'
CustTest getCfgFiles_test_003, both.xml:
'
+
value
);
});
c
ust
.
getCfgFiles
(
'
custxmltest/user.xml
'
,
(
error
,
value
)
=>
{
c
onfigPolicy
.
getCfgFiles
(
'
custxmltest/user.xml
'
,
(
error
,
value
)
=>
{
expect
(
value
.
length
!=
0
).
assertTrue
();
console
.
log
(
'
CustTest getCfgFiles_test_003, user.xml:
'
+
value
);
});
...
...
@@ -50,19 +50,19 @@ describe('GetCfgFilesTest', function () {
* @tc.desc get getCfgFiles in promise mode
*/
it
(
'
getCfgFiles_test_004
'
,
0
,
async
function
(
done
)
{
c
ust
.
getCfgFiles
(
'
custxmltest/none.xml
'
).
then
(
value
=>
{
c
onfigPolicy
.
getCfgFiles
(
'
custxmltest/none.xml
'
).
then
(
value
=>
{
expect
(
value
.
length
==
0
).
assertTrue
();
console
.
log
(
'
CustTest getCfgFiles_test_004, none.xml:
'
+
value
);
});
c
ust
.
getCfgFiles
(
'
custxmltest/system.xml
'
).
then
(
value
=>
{
c
onfigPolicy
.
getCfgFiles
(
'
custxmltest/system.xml
'
).
then
(
value
=>
{
expect
(
value
.
length
!=
0
).
assertTrue
();
console
.
log
(
'
CustTest getCfgFiles_test_004, system.xml:
'
+
value
);
});
c
ust
.
getCfgFiles
(
'
custxmltest/both.xml
'
).
then
(
value
=>
{
c
onfigPolicy
.
getCfgFiles
(
'
custxmltest/both.xml
'
).
then
(
value
=>
{
expect
(
value
.
length
!=
0
).
assertTrue
();
console
.
log
(
'
CustTest getCfgFiles_test_004, both.xml:
'
+
value
);
});
c
ust
.
getCfgFiles
(
'
custxmltest/user.xml
'
).
then
(
value
=>
{
c
onfigPolicy
.
getCfgFiles
(
'
custxmltest/user.xml
'
).
then
(
value
=>
{
expect
(
value
.
length
!=
0
).
assertTrue
();
console
.
log
(
'
CustTest getCfgFiles_test_004, user.xml:
'
+
value
);
});
...
...
global/cust/custjs/src/main/js/default/test/GetOneCfgFile.test.js
浏览文件 @
9b659447
...
...
@@ -15,7 +15,7 @@
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
import
c
ust
from
'
@ohos.cust
'
import
c
onfigPolicy
from
'
@ohos.configPolicy
'
describe
(
'
GetOneCfgFileTest
'
,
function
()
{
...
...
@@ -25,19 +25,19 @@ describe('GetOneCfgFileTest', function () {
* @tc.desc get getOneCfgFile in callback mode
*/
it
(
'
getOneCfgFile_test_001
'
,
0
,
async
function
(
done
)
{
c
ust
.
getOneCfgFile
(
'
custxmltest/none.xml
'
,
(
error
,
value
)
=>
{
c
onfigPolicy
.
getOneCfgFile
(
'
custxmltest/none.xml
'
,
(
error
,
value
)
=>
{
expect
(
value
.
length
==
0
).
assertTrue
();
console
.
log
(
'
CustTest getOneCfgFile_test_001, none.xml:
'
+
value
);
});
c
ust
.
getOneCfgFile
(
'
custxmltest/system.xml
'
,
(
error
,
value
)
=>
{
c
onfigPolicy
.
getOneCfgFile
(
'
custxmltest/system.xml
'
,
(
error
,
value
)
=>
{
expect
(
value
.
length
!=
0
).
assertTrue
();
console
.
log
(
'
CustTest getOneCfgFile_test_001, system.xml:
'
+
value
);
});
c
ust
.
getOneCfgFile
(
'
custxmltest/both.xml
'
,
(
error
,
value
)
=>
{
c
onfigPolicy
.
getOneCfgFile
(
'
custxmltest/both.xml
'
,
(
error
,
value
)
=>
{
expect
(
value
.
length
!=
0
).
assertTrue
();
console
.
log
(
'
CustTest getOneCfgFile_test_001, both.xml:
'
+
value
);
});
c
ust
.
getOneCfgFile
(
'
custxmltest/user.xml
'
,
(
error
,
value
)
=>
{
c
onfigPolicy
.
getOneCfgFile
(
'
custxmltest/user.xml
'
,
(
error
,
value
)
=>
{
expect
(
value
.
length
!=
0
).
assertTrue
();
console
.
log
(
'
CustTest getOneCfgFile_test_001, user.xml:
'
+
value
);
});
...
...
@@ -50,19 +50,19 @@ describe('GetOneCfgFileTest', function () {
* @tc.desc get getOneCfgFile in promise mode
*/
it
(
'
getOneCfgFile_test_002
'
,
0
,
async
function
(
done
)
{
c
ust
.
getOneCfgFile
(
'
custxmltest/none.xml
'
).
then
(
value
=>
{
c
onfigPolicy
.
getOneCfgFile
(
'
custxmltest/none.xml
'
).
then
(
value
=>
{
expect
(
value
.
length
==
0
).
assertTrue
();
console
.
log
(
'
CustTest getOneCfgFile_test_002, none.xml:
'
+
value
);
});
c
ust
.
getOneCfgFile
(
'
custxmltest/system.xml
'
).
then
(
value
=>
{
c
onfigPolicy
.
getOneCfgFile
(
'
custxmltest/system.xml
'
).
then
(
value
=>
{
expect
(
value
.
length
!=
0
).
assertTrue
();
console
.
log
(
'
CustTest getOneCfgFile_test_002, system.xml:
'
+
value
);
});
c
ust
.
getOneCfgFile
(
'
custxmltest/both.xml
'
).
then
(
value
=>
{
c
onfigPolicy
.
getOneCfgFile
(
'
custxmltest/both.xml
'
).
then
(
value
=>
{
expect
(
value
.
length
!=
0
).
assertTrue
();
console
.
log
(
'
CustTest getOneCfgFile_test_002, both.xml:
'
+
value
);
});
c
ust
.
getOneCfgFile
(
'
custxmltest/user.xml
'
).
then
(
value
=>
{
c
onfigPolicy
.
getOneCfgFile
(
'
custxmltest/user.xml
'
).
then
(
value
=>
{
expect
(
value
.
length
!=
0
).
assertTrue
();
console
.
log
(
'
CustTest getOneCfgFile_test_002, user.xml:
'
+
value
);
});
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录