提交 7a7a7ed9 编写于 作者: taohebin@dcloud.io's avatar taohebin@dcloud.io

test: textarea flex:1 的测试

上级 187c1143
......@@ -49,6 +49,15 @@ describe('component-native-textarea', () => {
expect(await textarea.attribute("cursor-color")).toBe("transparent")
})
it("flex 1 height exception", async () => {
const bottomTextarea = await page.$('#textarea-height-exception');
var {
height
} = await bottomTextarea.size()
expect(height).toEqual(150)
})
it("inputmode", async () => {
const inputmodeEnum = await page.data("inputmode_enum")
for (var i = 0; i < inputmodeEnum.length; i++) {
......
......@@ -138,6 +138,9 @@ export default {
title="如果 textarea 是在一个 position:fixed 的区域,需要显示指定属性 fixed 为 true(仅限小程序平台)"
@change="change_fixed_boolean"
></boolean-data>
<view style="flex-direction:row;justify-content:center;">
<textarea id="textarea-height-exception" style="flex:1;border: 1 solid #666;margin: 10px" placeholder="底部textarea测试键盘遮挡"/>
</view>
</view>
<!-- #ifdef APP -->
</scroll-view>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册