From e790ebd8b220563ed1999e89a47f544900963a6a Mon Sep 17 00:00:00 2001 From: lfl <15188787339@163.com> Date: Thu, 5 Sep 2024 20:23:30 +0800 Subject: [PATCH] =?UTF-8?q?translate=20english=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/ets/pages/Scroller.ets | 20 ++++----- .../basicExampleTest/BasicExample.test.ets | 2 +- .../component/FindCommentExample.test.ets | 42 +++++++++---------- .../window/FindWindowExample.test.ets | 2 +- .../ui/ClickEvent.test.ets | 10 ++--- .../ui/FlingEvent.test.ets | 6 +-- .../ui/InputEvent.test.ets | 4 +- .../ui/MouseEvent.test.ets | 10 ++--- .../ui/PinchEvent.test.ets | 4 +- .../ui/PointMatrixEvent.test.ets | 2 +- .../ui/ScreenCapEvent.test.ets | 2 +- .../ui/ScrollerEvent.test.ets | 4 +- .../ui/SwipeEvent.test.ets | 4 +- .../window/MoveToEvent.test.ets | 8 ++-- .../window/ReSizeWindow.test.ets | 2 +- .../window/WindowAttr.test.ets | 16 +++---- 16 files changed, 69 insertions(+), 69 deletions(-) diff --git a/entry/src/main/ets/pages/Scroller.ets b/entry/src/main/ets/pages/Scroller.ets index 580d9f1..3c1b32e 100644 --- a/entry/src/main/ets/pages/Scroller.ets +++ b/entry/src/main/ets/pages/Scroller.ets @@ -41,10 +41,10 @@ struct ScrollExample { }.width('100%') } .id("scroll_test") - .scrollable(ScrollDirection.Vertical) // 滚动方向纵向 - .scrollBar(BarState.On) // 滚动条常驻显示 - .scrollBarColor(Color.Gray) // 滚动条颜色 - .scrollBarWidth(30) // 滚动条宽度 + .scrollable(ScrollDirection.Vertical) // Rolling direction longitudinal. + .scrollBar(BarState.On) // Scrollbars are displayed permanently. + .scrollBarColor(Color.Gray) // Scroll bar color. + .scrollBarWidth(30) // Scroll bar width. .edgeEffect(EdgeEffect.None) .onWillScroll((xOffset: number, yOffset: number) => { console.info(xOffset + ' ' + yOffset); @@ -57,17 +57,17 @@ struct ScrollExample { }) Button('scroll 150') - .onClick(() => { // 点击后下滑指定距离150.0vp + .onClick(() => { // Click and slide to specify a distance of 150.0vp. this.scroller.scrollBy(0, 150); }) .margin({ top: 10, left: 20 }) Button('back top') - .onClick(() => { // 点击后回到顶部 + .onClick(() => { // Click back to the top. this.scroller.scrollEdge(Edge.Top); }) .margin({ top: 110, left: 20 }) Button('next page') - .onClick(() => { // 点击后滑到下一页 + .onClick(() => { // Click and slide to the next page. this.scroller.scrollPage({ next: true }); }) .margin({ top: 170, left: 20 }) @@ -90,17 +90,17 @@ struct ScrollExample { } Button('scroll 150') - .onClick(() => { // 点击后下滑指定距离150.0vp + .onClick(() => { // Click and slide to specify a distance of 150.0vp. this.scroller.scrollBy(0, 150); }) .margin({ top: 10, left: 20 }) Button('back top') - .onClick(() => { // 点击后回到顶部 + .onClick(() => { // Click back to the top. this.scroller.scrollEdge(Edge.Top); }) .margin({ top: 110, left: 20 }) Button('next page') - .onClick(() => { // 点击后滑到下一页 + .onClick(() => { // Click and slide to the next page. this.scroller.scrollPage({ next: true }); }) .margin({ top: 170, left: 20 }) diff --git a/entry/src/ohosTest/ets/test/basicExampleTest/BasicExample.test.ets b/entry/src/ohosTest/ets/test/basicExampleTest/BasicExample.test.ets index dcdf628..19a61e2 100644 --- a/entry/src/ohosTest/ets/test/basicExampleTest/BasicExample.test.ets +++ b/entry/src/ohosTest/ets/test/basicExampleTest/BasicExample.test.ets @@ -32,7 +32,7 @@ export default function basicExampleTest() { * @tc.number:basicExampleTest_001 * @tc.name: testUiExample * @tc.type: TestType.FUNCTION || Size.SMALLTEST || Level.LEVEL0 - * @tc.desc: 验证UI操作点击指定按钮后,界面变化是否符合预期 + * @tc.desc: Verify UI operation After clicking the specified button, the interface changes as expected. */ it('testUiExample',TestType.FUNCTION, async (done: Function) => { Logger.info(TAG, 'testUiExample start') diff --git a/entry/src/ohosTest/ets/test/findCommentExampleTest/component/FindCommentExample.test.ets b/entry/src/ohosTest/ets/test/findCommentExampleTest/component/FindCommentExample.test.ets index 0507025..7e7348d 100644 --- a/entry/src/ohosTest/ets/test/findCommentExampleTest/component/FindCommentExample.test.ets +++ b/entry/src/ohosTest/ets/test/findCommentExampleTest/component/FindCommentExample.test.ets @@ -16,22 +16,22 @@ /* * >查找控件属性 -* | No. | API | 功能描述 | +* | No. | API | Function description. | * |-----|------------------------------------|----------------------------| -* | 1 | id(i:string):On | 指定控件id。 | -* | 2 | text(t:string, p?:MatchPattern):On | 指定控件文本,可指定匹配模式。 | -* | 3 | type(t:string):On | 指定控件类型。 | -* | 4 | enabled(e:bool):On | 指定控件使能状态。 | -* | 5 | clickable(c:bool):On | 指定控件可单击状态。 | -* | 6 | longClickable(l:bool):On | 指定控件可长按状态。 | -* | 7 | focused(f:bool):On | 指定控件获焦状态。 | -* | 8 | scrollable(s:bool):On | 指定控件可滑动状态。 | -* | 9 | selected(s:bool):On | 指定控件选中状态。 | -* | 10 | checked(c:bool):On | 指定控件选择状态。 | -* | 11 | checkable(c:bool):On | 指定控件可选择状态。 | -* | 12 | isBefore(b:On):On | **相对定位**,限定目标控件位于指定特征控件之前。 | -* | 13 | isAfter(b:On):On | **相对定位**,限定目标控件位于指定特征控件之后。 | -* >匹配模式 +* | 1 | id(i:string):On | Specifies the control id. | +* | 2 | text(t:string, p?:MatchPattern):On | Specifies the control text to specify the matching mode. | +* | 3 | type(t:string):On | Specifies the control type. | +* | 4 | enabled(e:bool):On | Specifies the control enablement status. | +* | 5 | clickable(c:bool):On | Specifies the clickable state of the control. | +* | 6 | longClickable(l:bool):On | Specifies the long-press state of the control. | +* | 7 | focused(f:bool):On | Specifies the focus state of the control. | +* | 8 | scrollable(s:bool):On | Specifies the slippable state of the control. | +* | 9 | selected(s:bool):On | Specifies the selected status of the control. | +* | 10 | checked(c:bool):On | Specifies control selection status. | +* | 11 | checkable(c:bool):On | Specifies the selectable state of the control. | +* | 12 | isBefore(b:On):On | ** Relative positioning **, limiting the target control to be before the specified feature control. | +* | 13 | isAfter(b:On):On | ** Relative positioning **, limiting the target control to be before the specified feature control. | +* >Matching pattern * EQUALS = 0, * CONTAINS = 1, * STARTS_WITH = 2, @@ -62,7 +62,7 @@ export default function findExampleTest() { * @tc.number:findExampleTest_001 * @tc.name: findComponent_On_ID * @tc.type: 0 || TestType.FUNCTION || Size.SMALLTEST || Level.LEVEL0 - * @tc.desc: 使用ON.id 获取单个组件 + * @tc.desc: Use ON.id to get individual components. */ it("findComponent_On_ID", TestType.FUNCTION, async (done: Function) => { let dr = await Driver.create(); @@ -77,7 +77,7 @@ export default function findExampleTest() { * @tc.number:findExampleTest_002 * @tc.name: findComponents_On_ID * @tc.type: 0 || TestType.FUNCTION || Size.SMALLTEST || Level.LEVEL0 - * @tc.desc: 使用ON.id 获取多个组件 + * @tc.desc: Get multiple components using ON.id. */ it("findComponents_On_ID", TestType.FUNCTION, async (done: Function) => { let dr = await Driver.create(); @@ -95,7 +95,7 @@ export default function findExampleTest() { * @tc.number:findExampleTest_003 * @tc.name: findComponents_On_isBefore * @tc.type: 0 || TestType.FUNCTION || Size.SMALLTEST || Level.LEVEL0 - * @tc.desc: 使用ON.isBefore 获取单个组件 + * @tc.desc: Use ON.isBefore to get individual components. */ it("findComponents_On_isBefore", TestType.FUNCTION, async (done: Function) => { let dr = await Driver.create(); @@ -110,7 +110,7 @@ export default function findExampleTest() { * @tc.number:findExampleTest_004 * @tc.name: findComponents_On_isBefore_1 * @tc.type: 0 || TestType.FUNCTION || Size.SMALLTEST || Level.LEVEL0 - * @tc.desc: 使用ON.isAfter 获取单个组件 + * @tc.desc: Use ON.isAfter to get individual components. */ it("findComponents_On_isBefore_1", TestType.FUNCTION, async (done: Function) => { let dr = await Driver.create(); @@ -126,7 +126,7 @@ export default function findExampleTest() { * @tc.number:findExampleTest_005 * @tc.name: testMatchPattern * @tc.type: 0 || TestType.FUNCTION || Size.SMALLTEST || Level.LEVEL0 - * @tc.desc: 使用不同的匹配模式获取控件对象 + * @tc.desc: Get control objects using different matching patterns. */ it('testMatchPattern', TestType.FUNCTION, async () => { let driver = Driver.create(); @@ -141,7 +141,7 @@ export default function findExampleTest() { * @tc.number:findExampleTest_006 * @tc.name: findComponents_scrollSearch * @tc.type: 0 || TestType.FUNCTION || Size.SMALLTEST || Level.LEVEL0 - * @tc.desc: 使用ScrollSearch 获取单个组件 + * @tc.desc: Use ScrollSearch to retrieve individual components. */ it("findComponents_scrollSearch", TestType.FUNCTION, async (done: Function) => { let dr = await Driver.create(); diff --git a/entry/src/ohosTest/ets/test/findCommentExampleTest/window/FindWindowExample.test.ets b/entry/src/ohosTest/ets/test/findCommentExampleTest/window/FindWindowExample.test.ets index 7c51e27..de2177f 100644 --- a/entry/src/ohosTest/ets/test/findCommentExampleTest/window/FindWindowExample.test.ets +++ b/entry/src/ohosTest/ets/test/findCommentExampleTest/window/FindWindowExample.test.ets @@ -28,7 +28,7 @@ export default function findWindowExampleTest() { * @tc.number:findWindowExampleTest_001 * @tc.name: findWindowExampleTest_bundleName * @tc.type: 0 || TestType.FUNCTION || Size.SMALLTEST || Level.LEVEL0 - * @tc.desc: 获取指定的window对象 + * @tc.desc: Gets the specified window object. */ it('findWindowExampleTest_bundleName', TestType.FUNCTION, async (done: Function) => { let want: Want = { diff --git a/entry/src/ohosTest/ets/test/operationExampleTest/ui/ClickEvent.test.ets b/entry/src/ohosTest/ets/test/operationExampleTest/ui/ClickEvent.test.ets index 7e85e67..5556d85 100644 --- a/entry/src/ohosTest/ets/test/operationExampleTest/ui/ClickEvent.test.ets +++ b/entry/src/ohosTest/ets/test/operationExampleTest/ui/ClickEvent.test.ets @@ -35,7 +35,7 @@ export default function clickEventTest() { * @tc.number:clickEventTest_001 * @tc.name: clickEventTest_click * @tc.type: 0 || TestType.FUNCTION || Size.SMALLTEST || Level.LEVEL0 - * @tc.desc: 检测uitest Component click 功能 + * @tc.desc: Detects the uitest Component click function. */ it('clickEventTest_click',TestType.FUNCTION, async (done: Function) => { let dr = await Driver.create(); @@ -53,7 +53,7 @@ export default function clickEventTest() { * @tc.number:clickEventTest_002 * @tc.name: clickEventTest_double_click * @tc.type: 0 || TestType.FUNCTION || Size.SMALLTEST || Level.LEVEL0 - * @tc.desc: 检测uitest double click 功能 + * @tc.desc: Detects the uitest double click function. */ it('clickEventTest_double_click',TestType.FUNCTION, async (done: Function) => { let driver = Driver.create(); @@ -72,7 +72,7 @@ export default function clickEventTest() { * @tc.number:clickEventTest_003 * @tc.name: clickEventTest_double_click * @tc.type: 0 || TestType.FUNCTION || Size.SMALLTEST || Level.LEVEL0 - * @tc.desc: 检测uitest long click 功能 + * @tc.desc: Detects the uitest long click function. */ it('clickEventTest_Long_click', TestType.FUNCTION, async (done: Function) => { let driver = Driver.create(); @@ -91,7 +91,7 @@ export default function clickEventTest() { * @tc.number:clickEventTest_004 * @tc.name: clickEventTest_double_click * @tc.type: 0 || TestType.FUNCTION || Size.SMALLTEST || Level.LEVEL0 - * @tc.desc: 检测uitest PressBack 功能 + * @tc.desc: Check the uitest PressBack function. */ it('clickEventTest_PressBack', TestType.FUNCTION, async (done: Function) => { let driver = Driver.create(); @@ -111,7 +111,7 @@ export default function clickEventTest() { * @tc.number:clickEventTest_005 * @tc.name: clickEventTest_double_click * @tc.type: 0 || TestType.FUNCTION || Size.SMALLTEST || Level.LEVEL0 - * @tc.desc: 检测uitest triggerKey 功能 + * @tc.desc: Detect the uitest triggerKey function. */ it('clickEventTest_TriggerKey', TestType.FUNCTION, async (done: Function) => { let driver = Driver.create(); diff --git a/entry/src/ohosTest/ets/test/operationExampleTest/ui/FlingEvent.test.ets b/entry/src/ohosTest/ets/test/operationExampleTest/ui/FlingEvent.test.ets index 44b2f03..4e81fa5 100644 --- a/entry/src/ohosTest/ets/test/operationExampleTest/ui/FlingEvent.test.ets +++ b/entry/src/ohosTest/ets/test/operationExampleTest/ui/FlingEvent.test.ets @@ -35,7 +35,7 @@ export default function FlingEventTest() { * @tc.number:FlingEventTest_001 * @tc.name: FlingEvent_h * @tc.type: 0 || TestType.FUNCTION || Size.SMALLTEST || Level.LEVEL0 - * @tc.desc: 检测uitest fling 功能 + * @tc.desc: Check the uitest fling function. */ it('FlingEvent_h', TestType.FUNCTION, async (done: Function) => { let driver = Driver.create(); @@ -55,7 +55,7 @@ export default function FlingEventTest() { * @tc.number:FlingEventTest_002 * @tc.name: FlingEvent_v * @tc.type: 0 || TestType.FUNCTION || Size.SMALLTEST || Level.LEVEL0 - * @tc.desc: 检测uitest fling 功能 + * @tc.desc: Check the uitest fling function. */ it('FlingEvent_v', TestType.FUNCTION, async (done: Function) => { let driver = Driver.create(); @@ -75,7 +75,7 @@ export default function FlingEventTest() { * @tc.number:FlingEventTest_003 * @tc.name: FlingEvent_d * @tc.type: 0 || TestType.FUNCTION || Size.SMALLTEST || Level.LEVEL0 - * @tc.desc: 检测uitest fling方向设置测试 功能 + * @tc.desc: Check the uitest fling direction test. */ it('FlingEvent_d', TestType.FUNCTION, async (done: Function) => { let driver = Driver.create(); diff --git a/entry/src/ohosTest/ets/test/operationExampleTest/ui/InputEvent.test.ets b/entry/src/ohosTest/ets/test/operationExampleTest/ui/InputEvent.test.ets index c58f750..ee863ef 100644 --- a/entry/src/ohosTest/ets/test/operationExampleTest/ui/InputEvent.test.ets +++ b/entry/src/ohosTest/ets/test/operationExampleTest/ui/InputEvent.test.ets @@ -45,7 +45,7 @@ export default function InputEventTest() { * @tc.number:InputEventTest_001 * @tc.name: clickEventTest_Input * @tc.type: 0 || TestType.FUNCTION || Size.SMALLTEST || Level.LEVEL0 - * @tc.desc: 检测uitest inputText 功能 + * @tc.desc: Check the uitest inputText function. */ it('clickEventTest_Input',TestType.FUNCTION, async (done: Function) => { let driver = Driver.create(); @@ -63,7 +63,7 @@ export default function InputEventTest() { * @tc.number:InputEventTest_002 * @tc.name: clickEventTest_Input_zh * @tc.type: 0 || TestType.FUNCTION || Size.SMALLTEST || Level.LEVEL0 - * @tc.desc: 检测uitest inputText 输入中文功能测试 + * @tc.desc: Detecting uitest inputText Input Chinese function test. */ it('clickEventTest_Input_zh',TestType.FUNCTION, async (done: Function) => { let driver = Driver.create(); diff --git a/entry/src/ohosTest/ets/test/operationExampleTest/ui/MouseEvent.test.ets b/entry/src/ohosTest/ets/test/operationExampleTest/ui/MouseEvent.test.ets index 281293a..7650bc5 100644 --- a/entry/src/ohosTest/ets/test/operationExampleTest/ui/MouseEvent.test.ets +++ b/entry/src/ohosTest/ets/test/operationExampleTest/ui/MouseEvent.test.ets @@ -35,7 +35,7 @@ export default function MouseEventTest() { * @tc.number:MouseEventTest_001 * @tc.name: testMouseClick1 * @tc.type: 0 || TestType.FUNCTION || Size.SMALLTEST || Level.LEVEL0 - * @tc.desc: 检测uitest 模拟鼠标左键点击 功能 + * @tc.desc: Detect uitest analog left mouse click function. */ it('testMouseClick1', TestType.FUNCTION, async (done: Function) => { let driver = Driver.create(); @@ -52,7 +52,7 @@ export default function MouseEventTest() { * @tc.number:MouseEventTest_002 * @tc.name: testMouseClick2 * @tc.type: 0 || TestType.FUNCTION || Size.SMALLTEST || Level.LEVEL0 - * @tc.desc: 检测uitest 模拟鼠标右键点击 功能 + * @tc.desc: Detect uitest analog right mouse click function. */ it('testMouseClick2', TestType.FUNCTION, async (done: Function) => { let driver = Driver.create(); @@ -69,7 +69,7 @@ export default function MouseEventTest() { * @tc.number:MouseEventTest_003 * @tc.name: testMouseClick3 * @tc.type: 0 || TestType.FUNCTION || Size.SMALLTEST || Level.LEVEL0 - * @tc.desc: 检测uitest 模拟鼠标中间点击 功能 + * @tc.desc: Detect uitest simulates middle mouse click function. */ it('testMouseClick3', TestType.FUNCTION, async (done: Function) => { let driver = Driver.create(); @@ -86,7 +86,7 @@ export default function MouseEventTest() { * @tc.number:MouseEventTest_004 * @tc.name: testMouseMoveTo * @tc.type: 0 || TestType.FUNCTION || Size.SMALLTEST || Level.LEVEL0 - * @tc.desc: 检测uitest 模拟鼠标滚轮向下滑动功能 + * @tc.desc: Detect uitest analog mouse wheel sliding down function. */ it('testMouseMoveTo', TestType.FUNCTION, async (done: Function) => { let driver = Driver.create(); @@ -105,7 +105,7 @@ export default function MouseEventTest() { * @tc.number:MouseEventTest_005 * @tc.name: testMouseScroll * @tc.type: 0 || TestType.FUNCTION || Size.SMALLTEST || Level.LEVEL0 - * @tc.desc: 检测uitest 模拟鼠标滚轮向下滑动功能 + * @tc.desc: Detect uitest analog mouse wheel sliding down function. */ it('testMouseScroll', TestType.FUNCTION, async (done: Function) => { let driver = Driver.create(); diff --git a/entry/src/ohosTest/ets/test/operationExampleTest/ui/PinchEvent.test.ets b/entry/src/ohosTest/ets/test/operationExampleTest/ui/PinchEvent.test.ets index dfb472f..2a8b9e6 100644 --- a/entry/src/ohosTest/ets/test/operationExampleTest/ui/PinchEvent.test.ets +++ b/entry/src/ohosTest/ets/test/operationExampleTest/ui/PinchEvent.test.ets @@ -35,7 +35,7 @@ export default function PinchEventTest() { * @tc.number:PinchEventTest_001 * @tc.name: PinchEventTest_In * @tc.type: 0 || TestType.FUNCTION || Size.SMALLTEST || Level.LEVEL0 - * @tc.desc: 检测uitest pinchIn 功能 + * @tc.desc: Detect the uitest pinchIn function. */ it('PinchEventTest_In', TestType.FUNCTION, async (done: Function) => { let driver = Driver.create(); @@ -54,7 +54,7 @@ export default function PinchEventTest() { * @tc.number:PinchEventTest_002 * @tc.name: PinchEventTest_Out * @tc.type: 0 || TestType.FUNCTION || Size.SMALLTEST || Level.LEVEL0 - * @tc.desc: 检测uitest pinchOut 功能 + * @tc.desc: Detects the uitest pinchOut function. */ it('PinchEventTest_Out', TestType.FUNCTION, async (done: Function) => { let driver = Driver.create(); diff --git a/entry/src/ohosTest/ets/test/operationExampleTest/ui/PointMatrixEvent.test.ets b/entry/src/ohosTest/ets/test/operationExampleTest/ui/PointMatrixEvent.test.ets index 49ab4af..e8bb65f 100644 --- a/entry/src/ohosTest/ets/test/operationExampleTest/ui/PointMatrixEvent.test.ets +++ b/entry/src/ohosTest/ets/test/operationExampleTest/ui/PointMatrixEvent.test.ets @@ -35,7 +35,7 @@ export default function PontMatrixEventTest() { * @tc.number:PontMatrixEventTest_001 * @tc.name: testInjectMultiPointerAction * @tc.type: 0 || TestType.FUNCTION || Size.SMALLTEST || Level.LEVEL0 - * @tc.desc: 检测uitest injectMultiPointerAction 功能 + * @tc.desc: Check the uitest injectMultiPointerAction function. */ it('testInjectMultiPointerAction', TestType.FUNCTION, async (done: Function) => { let driver = Driver.create(); diff --git a/entry/src/ohosTest/ets/test/operationExampleTest/ui/ScreenCapEvent.test.ets b/entry/src/ohosTest/ets/test/operationExampleTest/ui/ScreenCapEvent.test.ets index 679bdb7..68f10eb 100644 --- a/entry/src/ohosTest/ets/test/operationExampleTest/ui/ScreenCapEvent.test.ets +++ b/entry/src/ohosTest/ets/test/operationExampleTest/ui/ScreenCapEvent.test.ets @@ -25,7 +25,7 @@ export default function ScreenCapEventTest() { * @tc.number:ScreenCapEventTest_001 * @tc.name: testScreenCap * @tc.type: 0 || TestType.FUNCTION || Size.SMALLTEST || Level.LEVEL0 - * @tc.desc: 检测uitest screenCap 功能 + * @tc.desc: Check the uitest screenCap function. */ it('testScreenCap', TestType.FUNCTION, async (done: Function) => { let driver = Driver.create(); diff --git a/entry/src/ohosTest/ets/test/operationExampleTest/ui/ScrollerEvent.test.ets b/entry/src/ohosTest/ets/test/operationExampleTest/ui/ScrollerEvent.test.ets index ffb6ef1..526274b 100644 --- a/entry/src/ohosTest/ets/test/operationExampleTest/ui/ScrollerEvent.test.ets +++ b/entry/src/ohosTest/ets/test/operationExampleTest/ui/ScrollerEvent.test.ets @@ -36,7 +36,7 @@ export default function ScrollerEventTest() { * @tc.number:ScrollerEventTest_001 * @tc.name: ScrollerEvent_bottom * @tc.type: 0 || TestType.FUNCTION || Size.SMALLTEST || Level.LEVEL0 - * @tc.desc: 检测 uitest scrollToBottom 滑到底部功能 + * @tc.desc:Detects the uitest scrollToBottom slide function. */ it('ScrollerEvent_bottom', TestType.FUNCTION, async (done: Function) => { let driver = Driver.create(); @@ -53,7 +53,7 @@ export default function ScrollerEventTest() { * @tc.number:ScrollerEventTest_002 * @tc.name: ScrollerEvent_top * @tc.type: 0 || TestType.FUNCTION || Size.SMALLTEST || Level.LEVEL0 - * @tc.desc: 检测 uitest scrollToTop 滑到顶部功能 + * @tc.desc: Detects the uitest scrollToTop slide to top function. */ it('ScrollerEvent_top', TestType.FUNCTION, async (done: Function) => { let driver = Driver.create(); diff --git a/entry/src/ohosTest/ets/test/operationExampleTest/ui/SwipeEvent.test.ets b/entry/src/ohosTest/ets/test/operationExampleTest/ui/SwipeEvent.test.ets index 3f04769..601b4dc 100644 --- a/entry/src/ohosTest/ets/test/operationExampleTest/ui/SwipeEvent.test.ets +++ b/entry/src/ohosTest/ets/test/operationExampleTest/ui/SwipeEvent.test.ets @@ -35,7 +35,7 @@ export default function SwipeEventTest() { * @tc.number:SwipeEventTest_001 * @tc.name: testSwipe_h * @tc.type: 0 || TestType.FUNCTION || Size.SMALLTEST || Level.LEVEL0 - * @tc.desc: 检测 uitest swipe 水平滑到功能 + * @tc.desc: Detect uitest swipe level to function. */ it('testSwipe_h', TestType.FUNCTION, async (done: Function) => { let driver = Driver.create(); @@ -56,7 +56,7 @@ export default function SwipeEventTest() { * @tc.number:SwipeEventTest_002 * @tc.name: testSwipe_h * @tc.type: 0 || TestType.FUNCTION || Size.SMALLTEST || Level.LEVEL0 - * @tc.desc: 检测 uitest swipe 竖着滑到功能 + * @tc.desc: Detect uitest swipe to vertically. */ it('testSwipe_v', TestType.FUNCTION, async (done: Function) => { let driver = Driver.create(); diff --git a/entry/src/ohosTest/ets/test/operationExampleTest/window/MoveToEvent.test.ets b/entry/src/ohosTest/ets/test/operationExampleTest/window/MoveToEvent.test.ets index a516470..a16518d 100644 --- a/entry/src/ohosTest/ets/test/operationExampleTest/window/MoveToEvent.test.ets +++ b/entry/src/ohosTest/ets/test/operationExampleTest/window/MoveToEvent.test.ets @@ -39,7 +39,7 @@ export default function MoveToEventTest() { * @tc.number:MoveToEventTest_001 * @tc.name: testWindowMoveTo * @tc.type: 0 || TestType.FUNCTION || Size.SMALLTEST || Level.LEVEL0 - * @tc.desc: 检测 window1.moveTo 功能 + * @tc.desc: Detect uitest swipe to vertically. */ it("MoveTo_Test_001", TestType.FUNCTION, async (done: Function) => { Logger.info(TAG, BUNDLE + "Test_001 start"); @@ -47,18 +47,18 @@ export default function MoveToEventTest() { await driver.delayMs(WAIT_UI_READYMS); let window = await driver.findWindow({bundleName: bundleName}); try{ - // 设置window状态 + // Setting window state. await window.resume(); await driver.delayMs(WAIT_UI_READYMS); let window1 = await driver.findWindow({bundleName: bundleName}); let bounds1 = await window1.getBounds(); - // 设置window移动 100, 100 + // Set window to move 100, 100. await window1.moveTo(100,100); await driver.delayMs(WAIT_UI_READYMS); let window2 = await driver.findWindow({bundleName: bundleName}); let bounds2 = await window2.getBounds(); - // 判断俩个window窗口大小是否相同 + // Check whether the two Windows have the same size. expect(bounds1 != bounds2).assertTrue(); } catch (err) { diff --git a/entry/src/ohosTest/ets/test/operationExampleTest/window/ReSizeWindow.test.ets b/entry/src/ohosTest/ets/test/operationExampleTest/window/ReSizeWindow.test.ets index e578ed5..b2b92c4 100644 --- a/entry/src/ohosTest/ets/test/operationExampleTest/window/ReSizeWindow.test.ets +++ b/entry/src/ohosTest/ets/test/operationExampleTest/window/ReSizeWindow.test.ets @@ -39,7 +39,7 @@ export default function ReSizeWindow() { * @tc.number:ReSize_001 * @tc.name: ReSize_Test_001 * @tc.type: 0 || TestType.FUNCTION || Size.SMALLTEST || Level.LEVEL0 - * @tc.desc: 设置window指定的大小与方向测试 + * @tc.desc: Sets the size and orientation test specified by window. */ it("ReSize_Test_001", TestType.FUNCTION, async (done: Function) => { Logger.info(TAG, BUNDLE + "Test_001 start"); diff --git a/entry/src/ohosTest/ets/test/operationExampleTest/window/WindowAttr.test.ets b/entry/src/ohosTest/ets/test/operationExampleTest/window/WindowAttr.test.ets index c1bbf28..ce4c0f3 100644 --- a/entry/src/ohosTest/ets/test/operationExampleTest/window/WindowAttr.test.ets +++ b/entry/src/ohosTest/ets/test/operationExampleTest/window/WindowAttr.test.ets @@ -15,14 +15,14 @@ /* * >查找控件属性 -* | No. | API | 功能描述 | +* | No. | API | Function description. | * |-----|------------------------------------|----------------------------| -* | 1 | getBundleName():Promise | 获取bundleName | -* | 2 | getBounds():Promise | 获取window的区域 | -* | 3 | getTitle():Promise | 获取指定window title | -* | 4 | getWindowMode():Promise | 获取window类型。 | -* | 5 | isFocused():Promise | 货物window状态。 | -* | 6 | isActived():Promise | 获取当前window是否active。 | +* | 1 | getBundleName():Promise | Get the bundleName. | +* | 2 | getBounds():Promise | Gets the area of window. | +* | 3 | getTitle():Promise | Gets the specified window title. | +* | 4 | getWindowMode():Promise | Gets the window type. | +* | 5 | isFocused():Promise | Goods window status. | +* | 6 | isActived():Promise | Gets whether the current window is active. | * */ @@ -51,7 +51,7 @@ export default function WindowAttr() { * @tc.number:WindowAttr_001 * @tc.name: WindowAttr_Test_001 * @tc.type: 0 || TestType.FUNCTION || Size.SMALLTEST || Level.LEVEL0 - * @tc.desc: 设置window指定的大小与方向测试 + * @tc.desc: Sets the size and orientation test specified by window. */ it("WindowAttr_Test_001", TestType.FUNCTION, async (done: Function) => { Logger.info(TAG, BUNDLE + "Test_001 start"); -- Gitee