From ed7b8cf8385263310f44b100e4d6e9f775ccb38c Mon Sep 17 00:00:00 2001 From: jixinbao Date: Tue, 2 Jul 2024 14:32:22 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=90=8C=E6=AD=A5=20alpha=20=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E6=B5=8B=E8=AF=95=E4=BB=A3=E7=A0=81=EF=BC=8C=E6=97=A0?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/component/textarea/textarea.test.js | 17 +- pages/component/textarea/textarea.uvue | 392 +++++++++++----------- 2 files changed, 203 insertions(+), 206 deletions(-) diff --git a/pages/component/textarea/textarea.test.js b/pages/component/textarea/textarea.test.js index 8c985438..7a5cd7fe 100644 --- a/pages/component/textarea/textarea.test.js +++ b/pages/component/textarea/textarea.test.js @@ -64,7 +64,7 @@ describe('component-native-textarea', () => { var x = inputmodeEnum[i] console.log(x['value'], x['name']) var selected = x['value'] - 1 - if(i == inputmodeEnum.length - 1){ + if (i == inputmodeEnum.length - 1) { selected = i } await page.callMethod("radio_change_inputmode_enum", selected); @@ -74,18 +74,10 @@ describe('component-native-textarea', () => { } }) - if (!process.env.uniTestPlatformInfo.startsWith('android')) { - // TODO: 暂时规避 android 端测试 - it('both set modelValue and value', async () => { - let textarea2 = await page.$('.both-set-textarea'); - expect(await textarea2.value()).toBe("123") - }) - } - it("maxlength", async () => { const input = await page.$('#textarea-instance-maxlength'); let str = ""; - for(let i = 0;i < 200;i++){ + for (let i = 0; i < 200; i++) { str += `${i}` } await page.setData({ @@ -98,4 +90,9 @@ describe('component-native-textarea', () => { }) }) + it('both set modelValue and value', async () => { + const textarea2 = await page.$('#both-model-value'); + expect(await textarea2.value()).toEqual("123") + }) + }); diff --git a/pages/component/textarea/textarea.uvue b/pages/component/textarea/textarea.uvue index 81ac3d87..136ff728 100644 --- a/pages/component/textarea/textarea.uvue +++ b/pages/component/textarea/textarea.uvue @@ -1,197 +1,197 @@ - - -