Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
hello-uvue
提交
cde9978b
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看板
提交
cde9978b
编写于
3月 18, 2024
作者:
DCloud-WZF
💬
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
test: 补充 v-bind 测试
上级
4f4f81dc
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
70 addition
and
75 deletion
+70
-75
pages.json
pages.json
+57
-62
pages/directive/v-bind/v-bind-attribute.test.js
pages/directive/v-bind/v-bind-attribute.test.js
+13
-13
未找到文件。
pages.json
浏览文件 @
cde9978b
...
...
@@ -54,12 +54,12 @@
"navigationBarTitleText"
:
"v-bind-props"
}
},
//
{
//
"path"
:
"pages/directive/v-bind/v-bind-attribute"
,
//
"style"
:
{
//
"navigationBarTitleText"
:
"v-bind-attribute"
//
}
//
},
{
"path"
:
"pages/directive/v-bind/v-bind-attribute"
,
"style"
:
{
"navigationBarTitleText"
:
"v-bind-attribute"
}
},
{
"path"
:
"pages/directive/v-for/v-for"
,
"style"
:
{
...
...
@@ -311,17 +311,17 @@
"navigationBarTitleText"
:
"slots"
}
},
{
"path"
:
"pages/rendering/template/template"
,
"style"
:
{
"navigationBarTitleText"
:
"template"
}
},
{
"path"
:
"pages/rendering/template/template-map-style"
,
"style"
:
{
"navigationBarTitleText"
:
"template-map-style"
}
{
"path"
:
"pages/rendering/template/template"
,
"style"
:
{
"navigationBarTitleText"
:
"template"
}
},
{
"path"
:
"pages/rendering/template/template-map-style"
,
"style"
:
{
"navigationBarTitleText"
:
"template-map-style"
}
},
{
"path"
:
"pages/rendering/unrecognized-component/unrecognized-component"
,
...
...
@@ -417,7 +417,7 @@
"navigationBarTitleText"
:
"defineExpose"
}
},
//
#ifdef
APP
//
#ifdef
APP
{
"path"
:
"pages/composition-api/basic/define-model/define-model"
,
"style"
:
{
...
...
@@ -430,7 +430,7 @@
"navigationBarTitleText"
:
"defineOptions"
}
},
//
#endif
//
#endif
{
"path"
:
"pages/composition-api/basic/define-slots/define-slots"
,
"style"
:
{
...
...
@@ -608,58 +608,53 @@
}
},
{
"path"
:
"pages/composition-api/lifecycle/page-lifecycle/page-lifecycle"
,
"style"
:
{
"navigationBarTitleText"
:
"页面生命周期"
,
"path"
:
"pages/composition-api/lifecycle/page-lifecycle/page-lifecycle"
,
"style"
:
{
"navigationBarTitleText"
:
"页面生命周期"
,
"enablePullDownRefresh"
:
true
}
},
{
"path"
:
"pages/composition-api/lifecycle/component-lifecycle/component-lifecycle"
,
"style"
:
{
"path"
:
"pages/composition-api/lifecycle/component-lifecycle/component-lifecycle"
,
"style"
:
{
"navigationBarTitleText"
:
"组件生命周期"
,
"enablePullDownRefresh"
:
true
}
},
{
"path"
:
"pages/composition-api/dependency-injection/provide/provide"
,
"style"
:
{
"navigationBarTitleText"
:
"依赖注入"
}
},
{
"path"
:
"pages/built-in-component/teleport/teleport"
,
"style"
:
{
"navigationBarTitleText"
:
"teleport"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/webview-screenshot-comparison/webview-screenshot-comparison"
,
"style"
:
{
"navigationBarTitleText"
:
"截图对比测试"
,
"navigationStyle"
:
"custom"
}
},
{
"path"
:
"pages/webview-screenshot/webview-screenshot"
,
"style"
:
{
"navigationBarTitleText"
:
"webview 截图测试"
,
"navigationStyle"
:
"custom"
}
},
{
"path"
:
"pages/type/type"
,
"style"
:
{
"navigationBarTitleText"
:
""
,
"enablePullDownRefresh"
:
false
}
}
"path"
:
"pages/composition-api/dependency-injection/provide/provide"
,
"style"
:
{
"navigationBarTitleText"
:
"依赖注入"
}
},
{
"path"
:
"pages/built-in-component/teleport/teleport"
,
"style"
:
{
"navigationBarTitleText"
:
"teleport"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/webview-screenshot-comparison/webview-screenshot-comparison"
,
"style"
:
{
"navigationBarTitleText"
:
"截图对比测试"
,
"navigationStyle"
:
"custom"
}
},
{
"path"
:
"pages/webview-screenshot/webview-screenshot"
,
"style"
:
{
"navigationBarTitleText"
:
"webview 截图测试"
,
"navigationStyle"
:
"custom"
}
},
{
"path"
:
"pages/type/type"
,
"style"
:
{
"navigationBarTitleText"
:
""
,
"enablePullDownRefresh"
:
false
}
}
],
"tabBar"
:
{
"color"
:
"#7A7E83"
,
...
...
pages/directive/v-bind/v-bind-attribute.test
1
.js
→
pages/directive/v-bind/v-bind-attribute.test.js
浏览文件 @
cde9978b
const
PAGE_PATH
=
'
/pages/directive/v-bind/v-bind-attribute
'
describe
(
'
v-bind-attribute
'
,
()
=>
{
let
page
beforeAll
(
async
()
=>
{
page
=
await
program
.
reLaunch
(
PAGE_PATH
)
await
page
.
waitFor
(
500
)
})
it
(
'
attribute
'
,
async
()
=>
{
const
view1
=
await
page
.
$
(
'
.attribute
'
)
expect
(
await
view1
.
attribute
(
'
id1
'
)).
toBe
(
'
id1
'
)
expect
(
await
view1
.
attribute
(
'
id2
'
)).
toBe
(
'
id2
'
)
})
const
PAGE_PATH
=
'
/pages/directive/v-bind/v-bind-attribute
'
describe
(
'
v-bind-attribute
'
,
()
=>
{
let
page
beforeAll
(
async
()
=>
{
page
=
await
program
.
reLaunch
(
PAGE_PATH
)
await
page
.
waitFor
(
500
)
})
it
(
'
attribute
'
,
async
()
=>
{
const
view1
=
await
page
.
$
(
'
.attribute
'
)
expect
(
await
view1
.
attribute
(
'
id1
'
)).
toBe
(
'
id1
'
)
expect
(
await
view1
.
attribute
(
'
id2
'
)).
toBe
(
'
id2
'
)
})
})
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录