提交 22d5663f 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

refactor: 调整部分示例页面路径

上级 213988d9
......@@ -314,27 +314,27 @@
}
},
{
"path": "pages/component/general-attribute/general-attribute",
"path": "pages/component/public-properties/public-properties",
"style": {
"navigationBarTitleText": "general-attribute"
"navigationBarTitleText": "public-properties"
}
},
{
"path": "pages/component/general-event/general-event",
"path": "pages/component/public-events/public-events",
"style": {
"navigationBarTitleText": "general-event"
"navigationBarTitleText": "public-events"
}
},
{
"path": "pages/component/general-event/transition-event",
"path": "pages/component/public-events/transition-events",
"style": {
"navigationBarTitleText": "transitionend事件"
}
},
{
"path": "pages/component/general-event/touch-event",
"path": "pages/component/public-events/touch-events",
"style": {
"navigationBarTitleText": "touch-event"
"navigationBarTitleText": "touch-events"
}
},
{
......
const PAGE_PATH = '/pages/component/general-event/general-event'
const PAGE_PATH = '/pages/component/public-events/public-events'
describe('event trigger', () => {
const platformInfo = process.env.uniTestPlatformInfo.toLocaleLowerCase()
......
......@@ -14,7 +14,9 @@
<text class="title3">touch[{{ index }}]:</text>
<view class="uni-list-cell">
<text>identifier: </text>
<text id="touch-start-touch-identifier">{{touch.identifier}}</text>
<text id="touch-start-touch-identifier">{{
touch.identifier
}}</text>
</view>
<view class="uni-list-cell">
<text>pageX: </text>
......@@ -46,7 +48,9 @@
<text class="title3">touch[{{ index }}]:</text>
<view class="uni-list-cell">
<text>identifier: </text>
<text id="touch-start-changed-touch-identifier">{{touch.identifier}}</text>
<text id="touch-start-changed-touch-identifier">{{
touch.identifier
}}</text>
</view>
<view class="uni-list-cell">
<text>pageX: </text>
......@@ -58,19 +62,27 @@
</view>
<view class="uni-list-cell">
<text>clientX: </text>
<text id="touch-start-changed-touch-client-x">{{ touch.clientX }}</text>
<text id="touch-start-changed-touch-client-x">{{
touch.clientX
}}</text>
</view>
<view class="uni-list-cell">
<text>clientY: </text>
<text id="touch-start-changed-touch-client-y">{{ touch.clientY }}</text>
<text id="touch-start-changed-touch-client-y">{{
touch.clientY
}}</text>
</view>
<view class="uni-list-cell">
<text>screenX: </text>
<text id="touch-start-changed-touch-screen-x">{{ touch.screenX }}</text>
<text id="touch-start-changed-touch-screen-x">{{
touch.screenX
}}</text>
</view>
<view class="uni-list-cell">
<text>screenY: </text>
<text id="touch-start-changed-touch-screen-y">{{ touch.screenY }}</text>
<text id="touch-start-changed-touch-screen-y">{{
touch.screenY
}}</text>
</view>
</template>
</view>
......@@ -81,7 +93,9 @@
<text class="title3">touch[{{ index }}]:</text>
<view class="uni-list-cell">
<text>identifier: </text>
<text id="touch-cancel-touch-identifier">{{touch.identifier}}</text>
<text id="touch-cancel-touch-identifier">{{
touch.identifier
}}</text>
</view>
<view class="uni-list-cell">
<text>pageX: </text>
......@@ -113,31 +127,45 @@
<text class="title3">touch[{{ index }}]:</text>
<view class="uni-list-cell">
<text>identifier: </text>
<text id="touch-cancel-changed-touch-identifier">{{touch.identifier}}</text>
<text id="touch-cancel-changed-touch-identifier">{{
touch.identifier
}}</text>
</view>
<view class="uni-list-cell">
<text>pageX: </text>
<text id="touch-cancel-changed-touch-page-x">{{ touch.pageX }}</text>
<text id="touch-cancel-changed-touch-page-x">{{
touch.pageX
}}</text>
</view>
<view class="uni-list-cell">
<text>pageY: </text>
<text id="touch-cancel-changed-touch-page-y">{{ touch.pageY }}</text>
<text id="touch-cancel-changed-touch-page-y">{{
touch.pageY
}}</text>
</view>
<view class="uni-list-cell">
<text>clientX: </text>
<text id="touch-cancel-changed-touch-client-x">{{ touch.clientX }}</text>
<text id="touch-cancel-changed-touch-client-x">{{
touch.clientX
}}</text>
</view>
<view class="uni-list-cell">
<text>clientY: </text>
<text id="touch-cancel-changed-touch-client-y">{{ touch.clientY }}</text>
<text id="touch-cancel-changed-touch-client-y">{{
touch.clientY
}}</text>
</view>
<view class="uni-list-cell">
<text>screenX: </text>
<text id="touch-cancel-changed-touch-screen-x">{{ touch.screenX }}</text>
<text id="touch-cancel-changed-touch-screen-x">{{
touch.screenX
}}</text>
</view>
<view class="uni-list-cell">
<text>screenY: </text>
<text id="touch-cancel-changed-touch-screen-y">{{ touch.screenY }}</text>
<text id="touch-cancel-changed-touch-screen-y">{{
touch.screenY
}}</text>
</view>
</template>
</view>
......@@ -148,7 +176,7 @@
<text class="title3">touch[{{ index }}]:</text>
<view class="uni-list-cell">
<text>identifier: </text>
<text id="touch-move-touch-identifier">{{touch.identifier}}</text>
<text id="touch-move-touch-identifier">{{ touch.identifier }}</text>
</view>
<view class="uni-list-cell">
<text>pageX: </text>
......@@ -180,7 +208,9 @@
<text class="title3">touch[{{ index }}]:</text>
<view class="uni-list-cell">
<text>identifier: </text>
<text id="touch-move-changed-touch-identifier">{{touch.identifier}}</text>
<text id="touch-move-changed-touch-identifier">{{
touch.identifier
}}</text>
</view>
<view class="uni-list-cell">
<text>pageX: </text>
......@@ -192,19 +222,27 @@
</view>
<view class="uni-list-cell">
<text>clientX: </text>
<text id="touch-move-changed-touch-client-x">{{ touch.clientX }}</text>
<text id="touch-move-changed-touch-client-x">{{
touch.clientX
}}</text>
</view>
<view class="uni-list-cell">
<text>clientY: </text>
<text id="touch-move-changed-touch-client-y">{{ touch.clientY }}</text>
<text id="touch-move-changed-touch-client-y">{{
touch.clientY
}}</text>
</view>
<view class="uni-list-cell">
<text>screenX: </text>
<text id="touch-move-changed-touch-screen-x">{{ touch.screenX }}</text>
<text id="touch-move-changed-touch-screen-x">{{
touch.screenX
}}</text>
</view>
<view class="uni-list-cell">
<text>screenY: </text>
<text id="touch-move-changed-touch-screen-y">{{ touch.screenY }}</text>
<text id="touch-move-changed-touch-screen-y">{{
touch.screenY
}}</text>
</view>
</template>
</view>
......@@ -216,7 +254,7 @@
<text class="title3">touch[{{ index }}]:</text>
<view class="uni-list-cell">
<text>identifier: </text>
<text id="touch-end-touch-identifier">{{touch.identifier}}</text>
<text id="touch-end-touch-identifier">{{ touch.identifier }}</text>
</view>
<view class="uni-list-cell">
<text>pageX: </text>
......@@ -248,7 +286,9 @@
<text class="title3">touch[{{ index }}]:</text>
<view class="uni-list-cell">
<text>identifier: </text>
<text id="touch-end-changed-touch-identifier">{{touch.identifier}}</text>
<text id="touch-end-changed-touch-identifier">{{
touch.identifier
}}</text>
</view>
<view class="uni-list-cell">
<text>pageX: </text>
......@@ -260,19 +300,27 @@
</view>
<view class="uni-list-cell">
<text>clientX: </text>
<text id="touch-end-changed-touch-client-x">{{ touch.clientX }}</text>
<text id="touch-end-changed-touch-client-x">{{
touch.clientX
}}</text>
</view>
<view class="uni-list-cell">
<text>clientY: </text>
<text id="touch-end-changed-touch-client-y">{{ touch.clientY }}</text>
<text id="touch-end-changed-touch-client-y">{{
touch.clientY
}}</text>
</view>
<view class="uni-list-cell">
<text>screenX: </text>
<text id="touch-end-changed-touch-screen-x">{{ touch.screenX }}</text>
<text id="touch-end-changed-touch-screen-x">{{
touch.screenX
}}</text>
</view>
<view class="uni-list-cell">
<text>screenY: </text>
<text id="touch-end-changed-touch-screen-y">{{ touch.screenY }}</text>
<text id="touch-end-changed-touch-screen-y">{{
touch.screenY
}}</text>
</view>
</template>
</view>
......@@ -284,7 +332,7 @@
<text class="title3">touch[{{ index }}]:</text>
<view class="uni-list-cell">
<text>identifier: </text>
<text id="long-press-touch-identifier">{{touch.identifier}}</text>
<text id="long-press-touch-identifier">{{ touch.identifier }}</text>
</view>
<view class="uni-list-cell">
<text>pageX: </text>
......@@ -316,7 +364,9 @@
<text class="title3">touch[{{ index }}]:</text>
<view class="uni-list-cell">
<text>identifier: </text>
<text id="long-press-changed-touch-identifier">{{touch.identifier}}</text>
<text id="long-press-changed-touch-identifier">{{
touch.identifier
}}</text>
</view>
<view class="uni-list-cell">
<text>pageX: </text>
......@@ -328,19 +378,27 @@
</view>
<view class="uni-list-cell">
<text>clientX: </text>
<text id="long-press-changed-touch-client-x">{{ touch.clientX }}</text>
<text id="long-press-changed-touch-client-x">{{
touch.clientX
}}</text>
</view>
<view class="uni-list-cell">
<text>clientY: </text>
<text id="long-press-changed-touch-client-y">{{ touch.clientY }}</text>
<text id="long-press-changed-touch-client-y">{{
touch.clientY
}}</text>
</view>
<view class="uni-list-cell">
<text>screenX: </text>
<text id="long-press-changed-touch-screen-x">{{ touch.screenX }}</text>
<text id="long-press-changed-touch-screen-x">{{
touch.screenX
}}</text>
</view>
<view class="uni-list-cell">
<text>screenY: </text>
<text id="long-press-changed-touch-screen-y">{{ touch.screenY }}</text>
<text id="long-press-changed-touch-screen-y">{{
touch.screenY
}}</text>
</view>
</template>
</view>
......@@ -375,7 +433,7 @@
export default {
data() {
return {
title: 'general-event',
title: 'public-events',
touchStartEvent: null as TouchEvent | null,
touchCancelEvent: null as TouchEvent | null,
touchMoveEvent: null as TouchEvent | null,
......
......@@ -3,7 +3,7 @@
describe('transition event', () => {
let page;
beforeAll(async () => {
page = await program.reLaunch('/pages/component/general-event/transition-event')
page = await program.reLaunch('/pages/component/public-events/transition-events')
await page.waitFor(3000);
});
......
const PAGE_PATH = '/pages/component/general-attribute/general-attribute'
const PAGE_PATH = '/pages/component/public-properties/public-properties'
describe('general attribute', () => {
let page
......
......@@ -28,7 +28,7 @@
<text class="btn-inner">{{ validateGeneralAttrText }}</text>
</view>
<view class="btn btn-ref uni-common-mt" @click="changeHeight">
<text class="btn-inner">{{changeHeightByRefText}}</text>
<text class="btn-inner">{{ changeHeightByRefText }}</text>
</view>
<view class="view-class" :hover-class="hoverClass" ref="view-target">
<text class="text">按下 50 ms 后背景变红</text>
......@@ -55,7 +55,7 @@
export default {
data() {
return {
title: 'general-attribute',
title: 'public-properties',
generalId: 'general-id',
generalClass: 'general-class',
generalName: 'general-name',
......
......@@ -83,10 +83,10 @@ const pages = [
// '/pages/component/unicloud-db/unicloud-db/contacts/detail',
'/pages/component/unicloud-db/unicloud-db/mixin-datacom/mixin-datacom',
// 单独测试例截图
// '/pages/component/general-attribute/general-attribute',
'/pages/component/general-event/general-event',
'/pages/component/general-event/transition-event',
'/pages/component/general-event/touch-event',
// '/pages/component/public-properties/public-properties',
'/pages/component/public-events/public-events',
'/pages/component/public-events/transition-events',
'/pages/component/public-events/touch-events',
// 单独测试例截图
// '/pages/component/nested-scroll-header/nested-scroll-header',
// 单独测试例截图
......@@ -349,7 +349,7 @@ function getWaitForTagName(pagePath) {
return 'video'
}
if (
pagePath === '/pages/component/general-event/transition-event' ||
pagePath === '/pages/component/public-events/transition-events' ||
pagePath === '/pages/component/list-view/list-view-refresh' ||
pagePath === '/pages/API/env/env'
) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册