Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
6f4e10a2
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看板
提交
6f4e10a2
编写于
5月 25, 2023
作者:
H
hekun
1
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
submit the testcase
Signed-off-by:
N
hekun
<
hekun18@huawei.com
>
上级
055cf305
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
100 addition
and
1 deletion
+100
-1
arkui/ace_ets_component_apilack/entry/src/main/ets/test/circle.test.ets
...component_apilack/entry/src/main/ets/test/circle.test.ets
+98
-0
arkui/ace_ets_component_apilack/entry/src/main/ets/test/grid.test.ets
...s_component_apilack/entry/src/main/ets/test/grid.test.ets
+2
-1
未找到文件。
arkui/ace_ets_component_apilack/entry/src/main/ets/test/circle.test.ets
浏览文件 @
6f4e10a2
...
...
@@ -16,6 +16,7 @@
import router from '@system.router';
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "@ohos/hypium"
import Utils from './Utils.ets'
import ohosrouter from '@ohos.router';
export default function circleNewJsunit() {
describe('circleNewTest', function () {
...
...
@@ -78,5 +79,102 @@ export default function circleNewJsunit() {
console.info("[testcircleNew002] width value :" + obj.$attrs.width);
done();
});
/**
* @tc.number ACE_global_console_debug_0100
* @tc.name console::debug
* @tc.desc Test console debug printing
*/
it("ACE_global_console_debug_0100", 0, async function (done) {
var casename = "ACE_global_003";
console.log("-----------------------ACE_global_console_debug Test is starting-----------------------");
try {
console.debug("ACE_global_console_debug test ok");
expect(true).assertTrue();
} catch (error) {
console.log(casename + "errorcode: " + casename);
expect().assertFail();
done();
}
console.log("-----------------------ACE_global_console_debug Test end-----------------------");
done();
});
/**
* @tc.number ACE_global_console_error_0100
* @tc.name console::error
* @tc.desc Test console error printing
*/
it("ACE_global_console_error_0200", 0, async function (done) {
var casename = "ACE_global_004";
console.log("-----------------------ACE_global_console_error Test is starting-----------------------");
try {
console.error("ACE_global_console_warn test ok");
expect(true).assertTrue();
} catch (error) {
console.log(casename + "errorcode: " + casename);
expect().assertFail();
done();
}
console.log("-----------------------ACE_global_console_error Test end-----------------------");
done();
});
/**
* @tc.number pushUrl_callback_0100
* @tc.name ACE_pushUrl_callback_0100
* @tc.desc Test pushUrl
*/
it("ACE_pushUrl_callback_0100", 0, async function (done) {
console.info("-----------------------ACE_pushUrl_callback_0100 start-----------------------");
ohosrouter.pushUrl({
url: 'MainAbility/pages/common',
params: {
data1: 'message',
data2: {
data3: [123, 456, 789]
}
}
}, (err) => {
if (err) {
console.error(`pushUrl failed, code is ${err.code}, message is ${err.message}`);
expect().assertFail();
} else {
console.info('pushUrl success');
expect(true).assertTrue();
}
})
console.info("-----------------------ACE_pushUrl_callback_0100 end-----------------------");
done();
});
/**
* @tc.number pushUrl_promise_0200
* @tc.name ACE_pushUrl_promise_0200
* @tc.desc Test pushUrl
*/
it("ACE_pushUrl_callback_0200", 0, async function (done) {
console.info("-----------------------ACE_pushUrl_promise_0200 start-----------------------");
ohosrouter.pushUrl({
url: 'MainAbility/pages/ellipse',
params: {
data1: 'message',
data2: {
data3: [123, 456, 789]
}
}
}).then(() => {
expect(true).assertTrue();
})
.catch(err => {
console.error(`pushUrl failed, code is ${err.code}, message is ${err.message}`);
expect().assertFail();
})
console.info("-----------------------ACE_pushUrl_promise_0200 end-----------------------");
done();
});
})
}
arkui/ace_ets_component_apilack/entry/src/main/ets/test/grid.test.ets
浏览文件 @
6f4e10a2
...
...
@@ -53,7 +53,8 @@ export default function gridMaxCountJsunit() {
let obj = JSON.parse(strJson);
expect(obj.$type).assertEqual('Grid');
console.info("[testcheckgridMaxCount0001] selectedMaxCount value :" + obj.$attrs.maxCount);
expect(obj.$attrs.maxCount).assertEqual("5");
let maxCount = obj.$attrs.maxCount;
expect(maxCount == 5).assertTrue();
done();
});
})
...
...
鸿蒙社区
@harmonycommunity
mentioned in commit
cd6e78e8
·
5月 27, 2023
mentioned in commit
cd6e78e8
mentioned in commit cd6e78e8aaaafc7ba6523e6f89bb07905a9f1db5
开关提交列表
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录