提交 e3331e17 编写于 作者: 雪洛's avatar 雪洛

test: 增加backgroundColorContent测试例

上级 4adfc953
......@@ -1271,6 +1271,14 @@
"navigationBarTitleText" : "swiper嵌套list-view",
"enablePullDownRefresh" : false
}
},
{
"path" : "pages/template/test-background-color-content/test-background-color-content",
"style" :
{
"navigationBarTitleText" : "",
"backgroundColorContent": "#fffae8"
}
}
// #endif
],
......
describe('PagesJson-backgroundColorContent', () => {
let page;
beforeAll(async () => {
page = await program.reLaunch(
'/pages/template/test-background-color-content/test-background-color-content')
await page.waitFor(500);
});
it('background color content size', async () => {
await program.pageScrollTo(1000)
const image = await program.screenshot();
expect(image).toSaveImageSnapshot()
})
});
<template>
<!-- #ifdef APP -->
<scroll-view style="flex:1">
<!-- #endif -->
<view style="height: 3000px; border: dashed 10px #000000;"></view>
<!-- #ifdef APP -->
</scroll-view>
<!-- #endif -->
</template>
<script>
export default {
data() {
return {
}
},
methods: {
}
}
</script>
<style>
</style>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册