提交 27947385 编写于 作者: DCloud-yinjiacheng's avatar DCloud-yinjiacheng

更新text自动化测试用例

上级 1204641f
...@@ -30,6 +30,12 @@ describe('text-props', () => { ...@@ -30,6 +30,12 @@ describe('text-props', () => {
expect(width).toBe(0) expect(width).toBe(0)
expect(height).toBe(0) expect(height).toBe(0)
} }
const element3 = await page.$('#empty-text3')
if (element3 != null) {
const { width, height } = await element3.size()
expect(width).toBe(0)
expect(height).toBe(0)
}
await page.setData({ await page.setData({
autoTest: false autoTest: false
}) })
......
...@@ -107,6 +107,9 @@ ...@@ -107,6 +107,9 @@
</view> </view>
<view class="uni-row"> <view class="uni-row">
<text id="empty-text2">{{emptyText}}</text> <text id="empty-text2">{{emptyText}}</text>
</view>
<view class="uni-row">
<text id="empty-text3" style="width: 100px;height: 100px;">{{emptyText}}</text>
</view> </view>
<text>一级节点文本 <text>一级节点文本
<text>二级节点文本 <text>二级节点文本
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册