diff --git a/pages/component/textarea/textarea.test.js b/pages/component/textarea/textarea.test.js index 8c9854381a3288bd459cf76d4eb782093ce5bffd..7a5cd7fe0516349528d6b3077e97c2f8d25e8cf2 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 81ac3d87399238df86dd4841573145f4226ce991..136ff7289092fc12fabdf3cb648f2470209adfee 100644 --- a/pages/component/textarea/textarea.uvue +++ b/pages/component/textarea/textarea.uvue @@ -1,197 +1,197 @@ - - -