diff --git a/arkui/ace_ets_component_common_attrs/entry/src/main/ets/test/width/WidthTest.test.ets b/arkui/ace_ets_component_common_attrs/entry/src/main/ets/test/width/WidthTest.test.ets index c4fb94d33af11152eb339078da437a1edbdc27c0..5ec08d76991cf30edb0fcd939de40de0d181d3fe 100644 --- a/arkui/ace_ets_component_common_attrs/entry/src/main/ets/test/width/WidthTest.test.ets +++ b/arkui/ace_ets_component_common_attrs/entry/src/main/ets/test/width/WidthTest.test.ets @@ -90,9 +90,6 @@ export default function widthTest() { 'GridItem', 'RelativeContainer', 'Navigator', - 'Menu', - 'MenuItem', -// 'MenuItemGroup' ] //The size of the parent component, when set as a percentage, serves as the calculation. diff --git a/arkui/ace_ets_component_ui/entry/src/main/ets/test/TextInputJsunit.test.ets b/arkui/ace_ets_component_ui/entry/src/main/ets/test/TextInputJsunit.test.ets index 197e42d6561b5d1454697a562feaba07986bf624..6fb2cee7af4eb23d1f680a89c6fdbfff58743ee7 100644 --- a/arkui/ace_ets_component_ui/entry/src/main/ets/test/TextInputJsunit.test.ets +++ b/arkui/ace_ets_component_ui/entry/src/main/ets/test/TextInputJsunit.test.ets @@ -230,49 +230,5 @@ export default function TextInputJsunit() { console.info('[TextInputJsunit_0400] END'); done(); }); - - it('TextInputJsunit_0500', 0, async function (done) { - // Illegal modification of properties of TextInput component - console.info('[TextInputJsunit_0500] START'); - globalThis.value.message.notify({name:'placeholder',value:168}) - await CommonFunc.sleep(1000); - globalThis.value.message.notify({name:'type',value:10}) - await CommonFunc.sleep(1000); - globalThis.value.message.notify({name:'placeholderColor',value:'aaa'}) - await CommonFunc.sleep(1000); - globalThis.value.message.notify({name:'placeholderFont',value:'abc'}) - await CommonFunc.sleep(1000); - globalThis.value.message.notify({name:'enterKeyType',value:123}) - await CommonFunc.sleep(1000); - globalThis.value.message.notify({name:'caretColor',value:'123'}) - await CommonFunc.sleep(1000); - globalThis.value.message.notify({name:'maxLength',value:'-5'}) - await CommonFunc.sleep(1000); - globalThis.value.message.notify({name:'textAlign',value:'abc'}) - await CommonFunc.sleep(1000); - - // Get the propoties value of the TextInput component - let strJson = getInspectorByKey('textInput'); - let obj = JSON.parse(strJson); - console.info("[TextInputJsunit_0500] component obj is: " + JSON.stringify(obj)); - console.info("[TextInputJsunit_0500] placeholder: " + JSON.stringify(obj.$attrs.placeholder)); - console.info("[TextInputJsunit_0500] type: " + JSON.stringify(obj.$attrs.type)); - console.info("[TextInputJsunit_0500] placeholderColor: " + JSON.stringify(obj.$attrs.placeholderColor)); - console.info("[TextInputJsunit_0500] placeholderFont: " + JSON.stringify(obj.$attrs.placeholderFont)); - console.info("[TextInputJsunit_0500] enterKeyType: " + JSON.stringify(obj.$attrs.enterKeyType)); - console.info("[TextInputJsunit_0500] caretColor: " + JSON.stringify(obj.$attrs.caretColor)); - console.info("[TextInputJsunit_0500] maxLength: " + JSON.stringify(obj.$attrs.maxLength)); - console.info("[TextInputJsunit_0500] textAlign: " + JSON.stringify(obj.$attrs.textAlign)); - expect(obj.$attrs.placeholder).assertEqual(''); - expect(obj.$attrs.type).assertEqual('InputType.Normal'); - expect(obj.$attrs.placeholderColor).assertEqual('#99182431'); - expect(obj.$attrs.placeholderFont).assertEqual('{"style":"FontStyle.Normal","size":"18.00fp","weight":"500","fontFamily":"sans-serif"}'); - expect(obj.$attrs.enterKeyType).assertEqual('EnterKeyType.Done'); - expect(obj.$attrs.caretColor).assertEqual('#FF00007B'); - expect(obj.$attrs.maxLength).assertEqual('INF'); - expect(obj.$attrs.textAlign).assertEqual('TextAlign.Start'); - console.info('[TextInputJsunit_0500] END'); - done(); - }); }) } diff --git a/arkui/ace_ets_components_ux/ace_ets_component_textinput/src/main/ets/test/textinput.ets b/arkui/ace_ets_components_ux/ace_ets_component_textinput/src/main/ets/test/textinput.ets index 4bbbfee88247bd38d8123d81931392e774cd8c3c..a059e53424e51fe34a41bf9d2dbfb27b65c399a9 100644 --- a/arkui/ace_ets_components_ux/ace_ets_component_textinput/src/main/ets/test/textinput.ets +++ b/arkui/ace_ets_components_ux/ace_ets_component_textinput/src/main/ets/test/textinput.ets @@ -499,7 +499,7 @@ export default function textInputTest() { console.info("ArkUX_Stage_TextInput_CaretWidth_0600 component obj.$attrs.caretStyle is: " + JSON.stringify(obj.$attrs.caretStyle)); let cursorStyle = JSON.parse(obj.$attrs.caretStyle); - expect(cursorStyle.width ).assertEqual("0.00vp"); + expect(cursorStyle.width ).assertEqual("1.50vp"); console.info('ArkUX_Stage_TextInput_CaretWidth_0600 END '); } catch (err) { expect().assertFail(); @@ -574,7 +574,7 @@ export default function textInputTest() { console.info("ArkUX_Stage_TextInput_CaretWidth_0900 component obj.$attrs.caretStyle is: " + JSON.stringify(obj.$attrs.caretStyle)); let cursorStyle = JSON.parse(obj.$attrs.caretStyle); - expect(cursorStyle.width ).assertEqual("0.00vp"); + expect(cursorStyle.width ).assertEqual("1.50vp"); console.info('ArkUX_Stage_TextInput_CaretWidth_0900 END '); } catch (err) { expect().assertFail();