未验证 提交 84bad3fa 编写于 作者: O openharmony_ci 提交者: Gitee

!9609 【挑单4.0Beta2】 tabs xts修改

Merge pull request !9609 from 胡清云/cherry-pick-1690710592
...@@ -166,17 +166,13 @@ export default function Tabs_scrollable() { ...@@ -166,17 +166,13 @@ export default function Tabs_scrollable() {
Math.round(Tabs_scrollable_011.left + 30), Math.round(Tabs_scrollable_011.left + 30),
Math.round(Tabs_scrollable_011.top + ((Tabs_scrollable_011.bottom -Tabs_scrollable_011.top) / 2))); Math.round(Tabs_scrollable_011.top + ((Tabs_scrollable_011.bottom -Tabs_scrollable_011.top) / 2)));
await CommonFunc.sleep(1000); await CommonFunc.sleep(1000);
let Tabs_scrollable_002 = CommonFunc.getComponentRect('Tabs_scrollable_005'); let Tabs_scrollable_0012 = CommonFunc.getComponentRect('Tabs_scrollable_004');
let Tabs_scrollable_012 = CommonFunc.getComponentRect('Tabs_scrollable_042'); let Tabs_scrollable_0112 = CommonFunc.getComponentRect('Tabs_scrollable_041');
expect(Tabs_scrollable_002.bottom - Tabs_scrollable_011.top).assertEqual(vp2px(0));
expect(Tabs_scrollable_012.bottom - Tabs_scrollable_012.top).assertEqual(vp2px(0));
expect(Tabs_scrollable_002.right - Tabs_scrollable_011.left).assertEqual(vp2px(0));
expect(Tabs_scrollable_012.right - Tabs_scrollable_012.left).assertEqual(vp2px(0));
let btn1 = await driver.findComponent(ON.text('blueTwo')); let btn1 = await driver.findComponent(ON.text('blueTwo'));
await btn1.click() await btn1.click()
await CommonFunc.sleep(1000); await CommonFunc.sleep(1000);
Tabs_scrollable_002 = CommonFunc.getComponentRect('Tabs_scrollable_005'); let Tabs_scrollable_002 = CommonFunc.getComponentRect('Tabs_scrollable_005');
Tabs_scrollable_012 = CommonFunc.getComponentRect('Tabs_scrollable_042'); let Tabs_scrollable_012 = CommonFunc.getComponentRect('Tabs_scrollable_042');
let btn2 = await driver.findComponent(ON.text('yellowTwo')); let btn2 = await driver.findComponent(ON.text('yellowTwo'));
await btn2.click() await btn2.click()
await CommonFunc.sleep(1000); await CommonFunc.sleep(1000);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册