Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
hello-uvue
提交
267be613
H
hello-uvue
项目概览
DCloud
/
hello-uvue
通知
350
Star
2
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
H
hello-uvue
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
267be613
编写于
1月 31, 2024
作者:
W
wangjinxin613
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat:优化截图对比测试例
上级
5a024040
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
239 addition
and
235 deletion
+239
-235
pages.json
pages.json
+2
-2
pages/component-instance/attrs/child.uvue
pages/component-instance/attrs/child.uvue
+6
-1
pages/webview-screenshot-comparison/webview-screenshot-comparison.test.js
...reenshot-comparison/webview-screenshot-comparison.test.js
+180
-178
pages/webview-screenshot/webview-screenshot.test.js
pages/webview-screenshot/webview-screenshot.test.js
+51
-54
未找到文件。
pages.json
浏览文件 @
267be613
...
...
@@ -673,8 +673,8 @@
"backgroundColorBottom"
:
"#F4F5F6"
,
"h5"
:
{
"maxWidth"
:
1190
,
"navigationBarTextStyle"
:
"
black
"
,
"navigationBarBackgroundColor"
:
"#
F1F1F1
"
"navigationBarTextStyle"
:
"
white
"
,
"navigationBarBackgroundColor"
:
"#
007AFF
"
}
},
"uniIdRouter"
:
{},
...
...
pages/component-instance/attrs/child.uvue
浏览文件 @
267be613
...
...
@@ -55,5 +55,10 @@ export default {
</script>
<style scoped>
.row {
display: flex;
flex-direction: row;
justify-content: space-between;
margin-bottom: 10px;
}
</style>
pages/webview-screenshot-comparison/webview-screenshot-comparison.test.js
浏览文件 @
267be613
...
...
@@ -4,7 +4,6 @@ const pages = [
'
pages/tab-bar/options-api
'
,
'
pages/tab-bar/composition-api
'
,
'
pages/app-instance/index/index
'
,
'
pages/app-instance/globalProperties/globalProperties
'
,
'
pages/built-in-component/keep-alive/keep-alive
'
,
'
pages/directive/v-bind/v-bind
'
,
'
pages/directive/v-bind/v-bind-class
'
,
...
...
@@ -26,22 +25,14 @@ const pages = [
'
pages/lifecycle/page/page
'
,
'
pages/lifecycle/component/component
'
,
'
pages/component-instance/data/data
'
,
'
pages/component-instance/props/props
'
,
'
pages/component-instance/el/el
'
,
'
pages/component-instance/options/options
'
,
'
pages/component-instance/slots/slots
'
,
'
pages/component-instance/refs/refs
'
,
'
pages/component-instance/attrs/attrs
'
,
'
pages/component-instance/watch-function/watch-function
'
,
'
pages/component-instance/watch-function/watch-array
'
,
'
pages/component-instance/emit-function/emit-function
'
,
'
pages/component-instance/nextTick-function/nextTick-function
'
,
'
pages/component-instance/methods/call-method-uni-element
'
,
'
pages/component-instance/methods/call-method-other
'
,
'
pages/component-instance/circular-reference/circular-reference
'
,
'
pages/state/data/data
'
,
'
pages/state/methods/methods
'
,
'
pages/state/props/props
'
,
'
pages/state/computed/computed
'
,
...
...
@@ -50,33 +41,15 @@ const pages = [
'
pages/rendering/template/template
'
,
'
pages/rendering/unrecognized-component/unrecognized-component
'
,
'
pages/rendering/component/component
'
,
'
pages/rendering/render/render
'
,
'
pages/composition/provide/provide
'
,
'
pages/composition/provide/provide-page2
'
,
'
pages/composition/inject/inject
'
,
'
pages/composition/setup/setup
'
,
'
pages/examples/nested-component-communication/nested-component-communication
'
,
'
pages/examples/set-custom-child-component-root-node-class/set-custom-child-component-root-node-class
'
,
'
pages/composition-api/basic/define-slots/define-slots
'
,
// 新增
'
pages/composition-api/basic/define-emits/define-emits
'
,
'
pages/composition-api/basic/define-expose/define-expose
'
,
'
pages/composition-api/basic/use-attrs/use-attrs
'
,
'
pages/composition-api/basic/use-slots/use-slots
'
,
'
pages/composition-api/reactivity/ref/ref
'
,
'
pages/composition-api/reactivity/computed/computed
'
,
'
pages/composition-api/reactivity/reactive/reactive
'
,
'
pages/composition-api/reactivity/readonly/readonly
'
,
'
pages/composition-api/reactivity/watch/watch
'
,
'
pages/composition-api/reactivity/watch-effect/watch-effect
'
,
'
pages/composition-api/reactivity/watch-post-effect/watch-post-effect
'
,
'
pages/composition-api/reactivity/watch-sync-effect/watch-sync-effect
'
,
'
pages/composition-api/reactivity/is-ref/is-ref
'
,
'
pages/composition-api/reactivity/un-ref/un-ref
'
,
'
pages/composition-api/reactivity/to-ref/to-ref
'
,
'
pages/composition-api/reactivity/is-proxy/is-proxy
'
,
'
pages/composition-api/reactivity/is-reactive/is-reactive
'
,
'
pages/composition-api/reactivity/is-readonly/is-readonly
'
,
...
...
@@ -92,11 +65,10 @@ const pages = [
'
pages/composition-api/reactivity/on-scope-dispose/on-scope-dispose
'
,
'
pages/composition-api/lifecycle/page-lifecycle/page-lifecycle
'
,
'
pages/composition-api/lifecycle/component-lifecycle/component-lifecycle
'
,
'
pages/composition-api/dependency-injection/provide/provide
'
,
'
pages/built-in-component/teleport/teleport
'
'
pages/built-in-component/teleport/teleport
'
,
'
pages/component-instance/watch-function/watch-function
'
//
web暂不支持
//
仅app
// 'pages/composition/mixins/mixins',
// 'pages/composition/mixins/mixins-page2',
// 'pages/directive/v-once/v-once',
...
...
@@ -104,6 +76,7 @@ const pages = [
// 'pages/component-instance/root/root',
// 'pages/composition-api/basic/define-model/define-model'
// 'pages/composition-api/basic/define-options/define-option'
// 'pages/composition-api/reactivity/to-ref/to-ref', // web端暂不支持toRef
// 动态内容
// 'pages/component-instance/force-update/force-update',
...
...
@@ -111,7 +84,36 @@ const pages = [
// 空白页面无内容
// 'pages/component-instance/methods/call-method-easycom-uni-modules',
// 'pages/component-instance/methods/call-method-easycom',
// 'pages/component-instance/methods/call-method-other',
// 仅web
// 'pages/composition/mixins/mixins-web',
// Object或Array数据渲染换行差异
// 'pages/app-instance/globalProperties/globalProperties',
// 'pages/component-instance/props/props',
// 'pages/composition-api/basic/define-props/define-props',
// 'pages/composition-api/basic/define-slots/define-slots',
// 'pages/composition-api/basic/use-slots/use-slots',
// 'pages/composition-api/dependency-injection/provide/provide',
// 'pages/composition-api/reactivity/computed/computed',
// 'pages/composition-api/reactivity/reactive/reactive',
// 'pages/composition-api/reactivity/readonly/readonly',
// 'pages/composition-api/reactivity/watch-effect/watch-effect',
// 'pages/composition-api/reactivity/watch-post-effect/watch-post-effect',
// 'pages/composition-api/reactivity/watch-sync-effect/watch-sync-effect',
// 'pages/composition-api/reactivity/watch/watch',
// 'pages/composition/provide/provide',
// 'pages/composition/provide/provide-page2',
// 'pages/state/data/data',
// 功能差异
// 'pages/composition/setup/setup',
// 'pages/component-instance/el/el',
// 样式差异
// 'pages/component-instance/slots/slots',
// 'pages/rendering/render/render',
]
const
childToParentPagesMap
=
new
Map
([
...
...
@@ -215,7 +217,7 @@ describe("shot-compare", () => {
const
isLoaded
=
await
page
.
data
(
"
isLoaded
"
);
return
isLoaded
||
Date
.
now
()
-
startTime
>
3000
;
});
await
page
.
waitFor
(
30
00
);
await
page
.
waitFor
(
45
00
);
// web 端非 adb 截图时设置 offsetY 移除导航栏
const
webSnapshot
=
await
program
.
screenshot
({
...
...
pages/webview-screenshot/webview-screenshot.test.js
浏览文件 @
267be613
...
...
@@ -35,11 +35,8 @@ const pages = [
'
pages/component-instance/watch-function/watch-function
'
,
'
pages/component-instance/watch-function/watch-array
'
,
'
pages/component-instance/emit-function/emit-function
'
,
'
pages/component-instance/nextTick-function/nextTick-function
'
,
'
pages/component-instance/methods/call-method-uni-element
'
,
'
pages/component-instance/methods/call-method-other
'
,
'
pages/component-instance/circular-reference/circular-reference
'
,
'
pages/state/data/data
'
,
'
pages/state/methods/methods
'
,
...
...
@@ -51,7 +48,6 @@ const pages = [
'
pages/rendering/unrecognized-component/unrecognized-component
'
,
'
pages/rendering/component/component
'
,
'
pages/rendering/render/render
'
,
'
pages/composition/provide/provide
'
,
'
pages/composition/provide/provide-page2
'
,
'
pages/composition/inject/inject
'
,
...
...
@@ -59,11 +55,9 @@ const pages = [
'
pages/examples/nested-component-communication/nested-component-communication
'
,
'
pages/examples/set-custom-child-component-root-node-class/set-custom-child-component-root-node-class
'
,
'
pages/composition-api/basic/define-slots/define-slots
'
,
// 新增
'
pages/composition-api/basic/define-props/define-props
'
,
'
pages/composition-api/basic/define-emits/define-emits
'
,
'
pages/composition-api/basic/define-expose/define-expose
'
,
'
pages/composition-api/basic/use-attrs/use-attrs
'
,
'
pages/composition-api/basic/use-slots/use-slots
'
,
'
pages/composition-api/reactivity/ref/ref
'
,
...
...
@@ -93,10 +87,9 @@ const pages = [
'
pages/composition-api/lifecycle/page-lifecycle/page-lifecycle
'
,
'
pages/composition-api/lifecycle/component-lifecycle/component-lifecycle
'
,
'
pages/composition-api/dependency-injection/provide/provide
'
,
'
pages/built-in-component/teleport/teleport
'
'
pages/built-in-component/teleport/teleport
'
,
//
web暂不支持
//
仅app
// 'pages/composition/mixins/mixins',
// 'pages/composition/mixins/mixins-page2',
// 'pages/directive/v-once/v-once',
...
...
@@ -111,7 +104,10 @@ const pages = [
// 空白页面无内容
// 'pages/component-instance/methods/call-method-easycom-uni-modules',
// 'pages/component-instance/methods/call-method-easycom',
// 'pages/component-instance/methods/call-method-other',
// 仅web
// 'pages/composition/mixins/mixins-web',
]
const
childToParentPagesMap
=
new
Map
([]);
...
...
@@ -212,7 +208,8 @@ describe("shot-compare", () => {
const
isLoaded
=
await
page
.
data
(
"
isLoaded
"
);
return
isLoaded
||
Date
.
now
()
-
startTime
>
3000
;
});
await
page
.
waitFor
(
4000
);
await
page
.
waitFor
(
5000
)
// web 端非 adb 截图时设置 offsetY 移除导航栏
const
webSnapshot
=
await
program
.
screenshot
({
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录