Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
8ace07a2
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看板
提交
8ace07a2
编写于
3月 31, 2023
作者:
H
hekun
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix the error
Signed-off-by:
N
hekun
<
hekun18@huawei.com
>
上级
ecdb7aaa
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
17 addition
and
13 deletion
+17
-13
arkui/ace_ets_component/entry/src/main/ets/test/TextStyleJsunit.test.ets
...omponent/entry/src/main/ets/test/TextStyleJsunit.test.ets
+2
-2
arkui/ace_ets_component_ui/entry/src/main/ets/test/GridJsunit.test.ets
..._component_ui/entry/src/main/ets/test/GridJsunit.test.ets
+1
-1
arkui/ace_ets_component_ui/entry/src/main/ets/test/stepperJsunit.test.ets
...mponent_ui/entry/src/main/ets/test/stepperJsunit.test.ets
+14
-10
未找到文件。
arkui/ace_ets_component/entry/src/main/ets/test/TextStyleJsunit.test.ets
浏览文件 @
8ace07a2
...
...
@@ -397,7 +397,7 @@ export default function textStyleJsunit() {
console.info("[testTextStyle016] component strJson:" + strJson);
let obj = JSON.parse(strJson);
console.info("[testTextStyle016] fontWeight: " + obj.$attrs.fontWeight);
expect(obj.$attrs.fontWeight).assertEqual('
FontWeight.
700');
expect(obj.$attrs.fontWeight).assertEqual('700');
done();
});
...
...
@@ -423,7 +423,7 @@ export default function textStyleJsunit() {
console.info("[testTextStyle017] component strJson:" + strJson);
let obj = JSON.parse(strJson);
console.info("[testTextStyle017] fontWeight: " + obj.$attrs.fontWeight);
expect(obj.$attrs.fontWeight).assertEqual('
FontWeight.
400');
expect(obj.$attrs.fontWeight).assertEqual('400');
done();
});
...
...
arkui/ace_ets_component_ui/entry/src/main/ets/test/GridJsunit.test.ets
浏览文件 @
8ace07a2
...
...
@@ -187,7 +187,7 @@ export default function GridJsunit() {
console.info("[GridJsunit_0500] supportAnimation: " + JSON.stringify(obj.$attrs.supportAnimation));
expect(obj.$attrs.columnsGap).assertEqual('0.00vp');
expect(obj.$attrs.rowsGap).assertEqual('0.00vp');
expect(obj.$attrs.scrollBar).assertEqual('BarState.
Off
');
expect(obj.$attrs.scrollBar).assertEqual('BarState.
Auto
');
expect(obj.$attrs.cachedCount).assertEqual(1);
expect(obj.$attrs.supportAnimation).assertEqual('false');
console.info('[GridJsunit_0500] END');
...
...
arkui/ace_ets_component_ui/entry/src/main/ets/test/stepperJsunit.test.ets
浏览文件 @
8ace07a2
...
...
@@ -120,13 +120,19 @@ export default function stepperJsunit() {
it('stepperJsunit_0600', 0, async function (done) {
console.info('stepperJsunit_0600 START');
// reset the component init status
globalThis.value.message.notify({name:'nextLabel',value:'下一步'});
await CommonFunc.sleep(1000);
globalThis.value.message.notify({name:'prevLabel',value:'返回'});
await CommonFunc.sleep(1000);
globalThis.value.message.notify({name:'status',value:ItemState.Normal});
// test the stepper onChange onNext onPrevious event
await CommonFunc.sleep(1000);
let driver = UiDriver.create();
let button = await driver.findComponent(BY.text('Next'));
await button.click();
await CommonFunc.sleep(1000);
let button2 = await driver.findComponent(BY.text('
Next
'));
let button2 = await driver.findComponent(BY.text('
下一步
'));
await button2.click();
await CommonFunc.sleep(1000);
let textThree = await driver.findComponent(BY.text('Page Three'));
...
...
@@ -148,19 +154,20 @@ export default function stepperJsunit() {
// test the stepper onFinish event
await CommonFunc.sleep(1000);
let driver = UiDriver.create();
let button = await driver.findComponent(BY.text('Next'));
await button.click();
await CommonFunc.sleep(2000);
let button2 = await driver.findComponent(BY.text('下一步'));
await button2.click();
await CommonFunc.sleep(2000);
let button3 = await driver.findComponent(BY.text('
开始
'));
let button3 = await driver.findComponent(BY.text('
下一步
'));
await button3.click();
await CommonFunc.sleep(2000);
let textTwo = await driver.findComponent(BY.text('Page One'));
let button4 = await driver.findComponent(BY.text('开始'));
await button4.click();
await CommonFunc.sleep(2000);
let textTwo = await driver.findComponent(BY.text('Page Four'));
let txtT = await textTwo.getText();
console.info('stepperJsunit_0700 component obj is: ' + txtT);
expect(txtT).assertEqual('Page
One
');
expect(txtT).assertEqual('Page
Four
');
done();
});
...
...
@@ -169,12 +176,9 @@ export default function stepperJsunit() {
// test the stepper onSkip event
await CommonFunc.sleep(1000);
let driver = UiDriver.create();
let button = await driver.findComponent(BY.
key('btStp
'));
let button = await driver.findComponent(BY.
text('返回
'));
await button.click();
await CommonFunc.sleep(2000);
let button2 = await driver.findComponent(BY.text('跳过'));
await button2.click();
await CommonFunc.sleep(2000);
let textTwo = await driver.findComponent(BY.text('Page Three'));
let txtT = await textTwo.getText();
console.info('stepperJsunit_0800 component obj is: ' + txtT);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录