提交 ed5eb721 编写于 作者: B bayanxing

修改代码规范问题

Signed-off-by: Nbayanxing <bayanxing@kaihongdigi.com>
上级 04951709
...@@ -77,9 +77,12 @@ export default { ...@@ -77,9 +77,12 @@ export default {
disabledPropTrue : this.disabledPropTrue, disabledPropFalse : this.disabledPropFalse, disabledPropTrue : this.disabledPropTrue, disabledPropFalse : this.disabledPropFalse,
disabledPropNone : this.disabledPropNone, focusablePropTrue : this.focusablePropTrue, disabledPropNone : this.disabledPropNone, focusablePropTrue : this.focusablePropTrue,
focusablePropFalse : this.focusablePropFalse, focusablePropNone : this.focusablePropNone, focusablePropFalse : this.focusablePropFalse, focusablePropNone : this.focusablePropNone,
dataProp : this.dataProp, dataPropNone : this.dataPropNone, clickEffectPropSmall : this.clickEffectPropSmall, dataProp : this.dataProp, dataPropNone : this.dataPropNone,
clickEffectPropMedium : this.clickEffectPropMedium, clickEffectPropLarge : this.clickEffectPropLarge, clickEffectPropSmall : this.clickEffectPropSmall,
clickEffectPropNone : this.clickEffectPropNone, dirPropRtl : this.dirPropRtl, dirPropAuto : this.dirPropAuto, clickEffectPropMedium : this.clickEffectPropMedium,
clickEffectPropLarge : this.clickEffectPropLarge,
clickEffectPropNone : this.clickEffectPropNone, dirPropRtl : this.dirPropRtl,
dirPropAuto : this.dirPropAuto,
dirPropLtr : this.dirPropLtr, dirPropNone : this.dirPropNone, forPropNull : this.forPropNull, dirPropLtr : this.dirPropLtr, dirPropNone : this.dirPropNone, forPropNull : this.forPropNull,
forPropOne : this.forPropOne, forPropThree : this.forPropThree, ifPropTrue : this.ifPropTrue, forPropOne : this.forPropOne, forPropThree : this.forPropThree, ifPropTrue : this.ifPropTrue,
showPropTrue : this.showPropTrue, showPropFalse : this.showPropFalse, showPropNone : this.showPropNone, showPropTrue : this.showPropTrue, showPropFalse : this.showPropFalse, showPropNone : this.showPropNone,
......
...@@ -137,9 +137,12 @@ export default { ...@@ -137,9 +137,12 @@ export default {
disabledPropTrue : this.disabledPropTrue, disabledPropFalse : this.disabledPropFalse, disabledPropTrue : this.disabledPropTrue, disabledPropFalse : this.disabledPropFalse,
disabledPropNone : this.disabledPropNone, focusablePropTrue : this.focusablePropTrue, disabledPropNone : this.disabledPropNone, focusablePropTrue : this.focusablePropTrue,
focusablePropFalse : this.focusablePropFalse, focusablePropNone : this.focusablePropNone, focusablePropFalse : this.focusablePropFalse, focusablePropNone : this.focusablePropNone,
dataProp : this.dataProp, dataPropNone : this.dataPropNone, clickEffectPropSmall : this.clickEffectPropSmall, dataProp : this.dataProp, dataPropNone : this.dataPropNone,
clickEffectPropMedium : this.clickEffectPropMedium, clickEffectPropLarge : this.clickEffectPropLarge, clickEffectPropSmall : this.clickEffectPropSmall,
clickEffectPropNone : this.clickEffectPropNone, dirPropRtl : this.dirPropRtl, dirPropAuto : this.dirPropAuto, clickEffectPropMedium : this.clickEffectPropMedium,
clickEffectPropLarge : this.clickEffectPropLarge,
clickEffectPropNone : this.clickEffectPropNone, dirPropRtl : this.dirPropRtl,
dirPropAuto : this.dirPropAuto,
dirPropLtr : this.dirPropLtr, dirPropNone : this.dirPropNone, forPropNull : this.forPropNull, dirPropLtr : this.dirPropLtr, dirPropNone : this.dirPropNone, forPropNull : this.forPropNull,
forPropOne : this.forPropOne, forPropThree : this.forPropThree, ifPropTrue : this.ifPropTrue, forPropOne : this.forPropOne, forPropThree : this.forPropThree, ifPropTrue : this.ifPropTrue,
showPropTrue : this.showPropTrue, showPropFalse : this.showPropFalse, showPropNone : this.showPropNone, showPropTrue : this.showPropTrue, showPropFalse : this.showPropFalse, showPropNone : this.showPropNone,
......
...@@ -63,9 +63,12 @@ export default { ...@@ -63,9 +63,12 @@ export default {
disabledPropTrue : this.disabledPropTrue, disabledPropFalse : this.disabledPropFalse, disabledPropTrue : this.disabledPropTrue, disabledPropFalse : this.disabledPropFalse,
disabledPropNone : this.disabledPropNone, focusablePropTrue : this.focusablePropTrue, disabledPropNone : this.disabledPropNone, focusablePropTrue : this.focusablePropTrue,
focusablePropFalse : this.focusablePropFalse, focusablePropNone : this.focusablePropNone, focusablePropFalse : this.focusablePropFalse, focusablePropNone : this.focusablePropNone,
dataProp : this.dataProp, dataPropNone : this.dataPropNone, clickEffectPropSmall : this.clickEffectPropSmall, dataProp : this.dataProp, dataPropNone : this.dataPropNone,
clickEffectPropMedium : this.clickEffectPropMedium, clickEffectPropLarge : this.clickEffectPropLarge, clickEffectPropSmall : this.clickEffectPropSmall,
clickEffectPropNone : this.clickEffectPropNone, dirPropRtl : this.dirPropRtl, dirPropAuto : this.dirPropAuto, clickEffectPropMedium : this.clickEffectPropMedium,
clickEffectPropLarge : this.clickEffectPropLarge,
clickEffectPropNone : this.clickEffectPropNone, dirPropRtl : this.dirPropRtl,
dirPropAuto : this.dirPropAuto,
dirPropLtr : this.dirPropLtr, dirPropNone : this.dirPropNone, forPropNull : this.forPropNull, dirPropLtr : this.dirPropLtr, dirPropNone : this.dirPropNone, forPropNull : this.forPropNull,
forPropOne : this.forPropOne, forPropThree : this.forPropThree, ifPropTrue : this.ifPropTrue, forPropOne : this.forPropOne, forPropThree : this.forPropThree, ifPropTrue : this.ifPropTrue,
showPropTrue : this.showPropTrue, showPropFalse : this.showPropFalse, showPropNone : this.showPropNone, showPropTrue : this.showPropTrue, showPropFalse : this.showPropFalse, showPropNone : this.showPropNone,
......
...@@ -28,12 +28,6 @@ export default { ...@@ -28,12 +28,6 @@ export default {
styleProp : null, styleProp : null,
refProp : null, refProp : null,
refPropNone : null, refPropNone : null,
disabledPropTrue : null,
disabledPropFalse : null,
disabledPropNone : null,
focusablePropTrue : null,
focusablePropFalse : null,
focusablePropNone : null,
dataProp : null, dataProp : null,
dataPropNone : null, dataPropNone : null,
clickEffectPropSmall : null, clickEffectPropSmall : null,
...@@ -66,12 +60,12 @@ export default { ...@@ -66,12 +60,12 @@ export default {
globalThis.value = { globalThis.value = {
idProp : this.idProp, classProp : this.classProp, classPropNone : this.classPropNone, idProp : this.idProp, classProp : this.classProp, classPropNone : this.classPropNone,
styleProp : this.styleProp, refProp : this.refProp, refPropNone : this.refPropNone, styleProp : this.styleProp, refProp : this.refProp, refPropNone : this.refPropNone,
disabledPropTrue : this.disabledPropTrue, disabledPropFalse : this.disabledPropFalse, dataProp : this.dataProp, dataPropNone : this.dataPropNone,
disabledPropNone : this.disabledPropNone, focusablePropTrue : this.focusablePropTrue, clickEffectPropSmall : this.clickEffectPropSmall,
focusablePropFalse : this.focusablePropFalse, focusablePropNone : this.focusablePropNone, clickEffectPropMedium : this.clickEffectPropMedium,
dataProp : this.dataProp, dataPropNone : this.dataPropNone, clickEffectPropSmall : this.clickEffectPropSmall, clickEffectPropLarge : this.clickEffectPropLarge,
clickEffectPropMedium : this.clickEffectPropMedium, clickEffectPropLarge : this.clickEffectPropLarge, clickEffectPropNone : this.clickEffectPropNone, dirPropRtl : this.dirPropRtl,
clickEffectPropNone : this.clickEffectPropNone, dirPropRtl : this.dirPropRtl, dirPropAuto : this.dirPropAuto, dirPropAuto : this.dirPropAuto,
dirPropLtr : this.dirPropLtr, dirPropNone : this.dirPropNone, forPropNull : this.forPropNull, dirPropLtr : this.dirPropLtr, dirPropNone : this.dirPropNone, forPropNull : this.forPropNull,
forPropOne : this.forPropOne, forPropThree : this.forPropThree, ifPropTrue : this.ifPropTrue, forPropOne : this.forPropOne, forPropThree : this.forPropThree, ifPropTrue : this.ifPropTrue,
showPropTrue : this.showPropTrue, showPropFalse : this.showPropFalse, showPropNone : this.showPropNone, showPropTrue : this.showPropTrue, showPropFalse : this.showPropFalse, showPropNone : this.showPropNone,
...@@ -88,12 +82,6 @@ export default { ...@@ -88,12 +82,6 @@ export default {
this.styleProp = this.$element("styleProp").getInspector() this.styleProp = this.$element("styleProp").getInspector()
this.refProp = this.$element("refProp").getInspector() this.refProp = this.$element("refProp").getInspector()
this.refPropNone = this.$element("refPropNone").getInspector() this.refPropNone = this.$element("refPropNone").getInspector()
this.disabledPropTrue = this.$element("disabledPropTrue").getInspector()
this.disabledPropFalse = this.$element("disabledPropFalse").getInspector()
this.disabledPropNone = this.$element("disabledPropNone").getInspector()
this.focusablePropTrue = this.$element("focusablePropTrue").getInspector()
this.focusablePropFalse = this.$element("focusablePropFalse").getInspector()
this.focusablePropNone = this.$element("focusablePropNone").getInspector()
this.dataProp = this.$element("dataProp").getInspector() this.dataProp = this.$element("dataProp").getInspector()
this.dataPropNone = this.$element("dataPropNone").getInspector() this.dataPropNone = this.$element("dataPropNone").getInspector()
this.clickEffectPropSmall = this.$element("clickEffectPropSmall").getInspector() this.clickEffectPropSmall = this.$element("clickEffectPropSmall").getInspector()
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
flex-weight: 1; flex-weight: 1;
} }
.idProp { .spanTextTitle {
height: 15px; height: 15px;
font-size: 10px; font-size: 10px;
margin-bottom: 2px; margin-bottom: 2px;
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<text class="sub-title"> <text class="sub-title">
通用属性 -- id 通用属性 -- id
</text> </text>
<text class="idProp"> <text class="spanTextTitle">
<span id="idProp"> <span id="idProp">
span span
</span> </span>
...@@ -32,13 +32,13 @@ ...@@ -32,13 +32,13 @@
<text class="sub-title"> <text class="sub-title">
通用属性 -- class 通用属性 -- class
</text> </text>
<text class="idProp"> <text class="spanTextTitle">
<span id="classProp" <span id="classProp"
class="classProp"> class="classProp">
span span
</span> </span>
</text> </text>
<text class="idProp"> <text class="spanTextTitle">
<span id="classPropNone" <span id="classPropNone"
class=""> class="">
span span
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
<text class="sub-title"> <text class="sub-title">
通用属性 -- style 通用属性 -- style
</text> </text>
<text class="idProp"> <text class="spanTextTitle">
<span id="styleProp" <span id="styleProp"
style="width:80%;height:20px;background-color:red"> style="width:80%;height:20px;background-color:red">
span span
...@@ -61,13 +61,13 @@ ...@@ -61,13 +61,13 @@
<text class="sub-title"> <text class="sub-title">
通用属性 -- ref 通用属性 -- ref
</text> </text>
<text class="idProp"> <text class="spanTextTitle">
<span id="refProp" <span id="refProp"
ref="refProp"> ref="refProp">
span span
</span> </span>
</text> </text>
<text class="idProp"> <text class="spanTextTitle">
<span id="refPropNone" <span id="refPropNone"
ref=""> ref="">
span span
...@@ -77,13 +77,13 @@ ...@@ -77,13 +77,13 @@
<text class="sub-title"> <text class="sub-title">
通用属性 -- data-* 通用属性 -- data-*
</text> </text>
<text class="idProp"> <text class="spanTextTitle">
<span id="dataProp" <span id="dataProp"
data-Span="通用属性 -- data-Span"> data-Span="通用属性 -- data-Span">
span span
</span> </span>
</text> </text>
<text class="idProp"> <text class="spanTextTitle">
<span id="dataPropNone" <span id="dataPropNone"
data-Span=""> data-Span="">
span span
...@@ -93,25 +93,25 @@ ...@@ -93,25 +93,25 @@
<text class="sub-title"> <text class="sub-title">
通用属性 -- click-effect 通用属性 -- click-effect
</text> </text>
<text class="idProp"> <text class="spanTextTitle">
<span id="clickEffectPropSmall" <span id="clickEffectPropSmall"
click-effect="spring-small"> click-effect="spring-small">
span span
</span> </span>
</text> </text>
<text class="idProp"> <text class="spanTextTitle">
<span id="clickEffectPropMedium" <span id="clickEffectPropMedium"
click-effect="spring-medium"> click-effect="spring-medium">
span span
</span> </span>
</text> </text>
<text class="idProp"> <text class="spanTextTitle">
<span id="clickEffectPropLarge" <span id="clickEffectPropLarge"
click-effect="spring-large"> click-effect="spring-large">
span span
</span> </span>
</text> </text>
<text class="idProp"> <text class="spanTextTitle">
<span id="clickEffectPropNone" <span id="clickEffectPropNone"
click-effect=""> click-effect="">
span span
...@@ -121,25 +121,25 @@ ...@@ -121,25 +121,25 @@
<text class="sub-title"> <text class="sub-title">
通用属性 -- dir 通用属性 -- dir
</text> </text>
<text class="idProp"> <text class="spanTextTitle">
<span id="dirPropRtl" <span id="dirPropRtl"
dir="rtl"> dir="rtl">
span span
</span> </span>
</text> </text>
<text class="idProp"> <text class="spanTextTitle">
<span id="dirPropAuto" <span id="dirPropAuto"
dir="auto"> dir="auto">
span span
</span> </span>
</text> </text>
<text class="idProp"> <text class="spanTextTitle">
<span id="dirPropLtr" <span id="dirPropLtr"
dir="ltr"> dir="ltr">
span span
</span> </span>
</text> </text>
<text class="idProp"> <text class="spanTextTitle">
<span id="dirPropNone" <span id="dirPropNone"
dir=""> dir="">
span span
...@@ -149,19 +149,19 @@ ...@@ -149,19 +149,19 @@
<text class="sub-title"> <text class="sub-title">
渲染属性 -- for 渲染属性 -- for
</text> </text>
<text class="idProp"> <text class="spanTextTitle">
<span id="forPropNull" <span id="forPropNull"
for=""> for="">
span span
</span> </span>
</text> </text>
<text class="idProp"> <text class="spanTextTitle">
<span id="forPropOne" <span id="forPropOne"
for="{{listOne}}"> for="{{listOne}}">
span span
</span> </span>
</text> </text>
<text class="idProp"> <text class="spanTextTitle">
<span id="forPropThree" <span id="forPropThree"
for="{{listThree}}"> for="{{listThree}}">
span span
...@@ -171,7 +171,7 @@ ...@@ -171,7 +171,7 @@
<text class="sub-title"> <text class="sub-title">
渲染属性 -- if 渲染属性 -- if
</text> </text>
<text class="idProp"> <text class="spanTextTitle">
<span id="ifPropTrue" <span id="ifPropTrue"
if="true"> if="true">
span span
...@@ -182,21 +182,21 @@ ...@@ -182,21 +182,21 @@
<text class="sub-title"> <text class="sub-title">
渲染属性 -- show 渲染属性 -- show
</text> </text>
<text class="idProp"> <text class="spanTextTitle">
<span id="showPropTrue" <span id="showPropTrue"
show="true"> show="true">
span span
</span> </span>
</text> </text>
<text class="idProp"> <text class="spanTextTitle">
<span id="showPropFalse" <span id="showPropFalse"
show="false"> show="false">
span span
</span> </span>
</text> </text>
<text class="idProp"> <text class="spanTextTitle">
<span id="showPropNone" <span id="showPropNone"
show="false"> show="">
span span
</span> </span>
</text> </text>
...@@ -204,6 +204,7 @@ ...@@ -204,6 +204,7 @@
<div style="background-color: #000000; width: 2px; height: 100%;"> <div style="background-color: #000000; width: 2px; height: 100%;">
</div> </div>
<div class="specific-container"> <div class="specific-container">
</div> </div>
......
...@@ -26,12 +26,6 @@ export default { ...@@ -26,12 +26,6 @@ export default {
styleProp : null, styleProp : null,
refProp : null, refProp : null,
refPropNone : null, refPropNone : null,
disabledPropTrue : null,
disabledPropFalse : null,
disabledPropNone : null,
focusablePropTrue : null,
focusablePropFalse : null,
focusablePropNone : null,
dataProp : null, dataProp : null,
dataPropNone : null, dataPropNone : null,
clickEffectPropSmall : null, clickEffectPropSmall : null,
...@@ -56,12 +50,12 @@ export default { ...@@ -56,12 +50,12 @@ export default {
globalThis.value = { globalThis.value = {
idProp : this.idProp, classProp : this.classProp, classPropNone : this.classPropNone, idProp : this.idProp, classProp : this.classProp, classPropNone : this.classPropNone,
styleProp : this.styleProp, refProp : this.refProp, refPropNone : this.refPropNone, styleProp : this.styleProp, refProp : this.refProp, refPropNone : this.refPropNone,
disabledPropTrue : this.disabledPropTrue, disabledPropFalse : this.disabledPropFalse, dataProp : this.dataProp, dataPropNone : this.dataPropNone,
disabledPropNone : this.disabledPropNone, focusablePropTrue : this.focusablePropTrue, clickEffectPropSmall : this.clickEffectPropSmall,
focusablePropFalse : this.focusablePropFalse, focusablePropNone : this.focusablePropNone, clickEffectPropMedium : this.clickEffectPropMedium,
dataProp : this.dataProp, dataPropNone : this.dataPropNone, clickEffectPropSmall : this.clickEffectPropSmall, clickEffectPropLarge : this.clickEffectPropLarge,
clickEffectPropMedium : this.clickEffectPropMedium, clickEffectPropLarge : this.clickEffectPropLarge, clickEffectPropNone : this.clickEffectPropNone, dirPropRtl : this.dirPropRtl,
clickEffectPropNone : this.clickEffectPropNone, dirPropRtl : this.dirPropRtl, dirPropAuto : this.dirPropAuto, dirPropAuto : this.dirPropAuto,
dirPropLtr : this.dirPropLtr, dirPropNone : this.dirPropNone, forPropNull : this.forPropNull, dirPropLtr : this.dirPropLtr, dirPropNone : this.dirPropNone, forPropNull : this.forPropNull,
forPropOne : this.forPropOne, forPropThree : this.forPropThree, ifPropTrue : this.ifPropTrue, forPropOne : this.forPropOne, forPropThree : this.forPropThree, ifPropTrue : this.ifPropTrue,
showPropTrue : this.showPropTrue, showPropFalse : this.showPropFalse, showPropNone : this.showPropNone, showPropTrue : this.showPropTrue, showPropFalse : this.showPropFalse, showPropNone : this.showPropNone,
...@@ -74,12 +68,6 @@ export default { ...@@ -74,12 +68,6 @@ export default {
this.styleProp = this.$element("styleProp").getInspector() this.styleProp = this.$element("styleProp").getInspector()
this.refProp = this.$element("refProp").getInspector() this.refProp = this.$element("refProp").getInspector()
this.refPropNone = this.$element("refPropNone").getInspector() this.refPropNone = this.$element("refPropNone").getInspector()
this.disabledPropTrue = this.$element("disabledPropTrue").getInspector()
this.disabledPropFalse = this.$element("disabledPropFalse").getInspector()
this.disabledPropNone = this.$element("disabledPropNone").getInspector()
this.focusablePropTrue = this.$element("focusablePropTrue").getInspector()
this.focusablePropFalse = this.$element("focusablePropFalse").getInspector()
this.focusablePropNone = this.$element("focusablePropNone").getInspector()
this.dataProp = this.$element("dataProp").getInspector() this.dataProp = this.$element("dataProp").getInspector()
this.dataPropNone = this.$element("dataPropNone").getInspector() this.dataPropNone = this.$element("dataPropNone").getInspector()
this.clickEffectPropSmall = this.$element("clickEffectPropSmall").getInspector() this.clickEffectPropSmall = this.$element("clickEffectPropSmall").getInspector()
......
...@@ -70,12 +70,16 @@ export default { ...@@ -70,12 +70,16 @@ export default {
disabledPropTrue : this.disabledPropTrue, disabledPropFalse : this.disabledPropFalse, disabledPropTrue : this.disabledPropTrue, disabledPropFalse : this.disabledPropFalse,
disabledPropNone : this.disabledPropNone, focusablePropTrue : this.focusablePropTrue, disabledPropNone : this.disabledPropNone, focusablePropTrue : this.focusablePropTrue,
focusablePropFalse : this.focusablePropFalse, focusablePropNone : this.focusablePropNone, focusablePropFalse : this.focusablePropFalse, focusablePropNone : this.focusablePropNone,
dataProp : this.dataProp, dataPropNone : this.dataPropNone, clickEffectPropSmall : this.clickEffectPropSmall, dataProp : this.dataProp, dataPropNone : this.dataPropNone,
clickEffectPropMedium : this.clickEffectPropMedium, clickEffectPropLarge : this.clickEffectPropLarge, clickEffectPropSmall : this.clickEffectPropSmall,
clickEffectPropNone : this.clickEffectPropNone, dirPropRtl : this.dirPropRtl, dirPropAuto : this.dirPropAuto, clickEffectPropMedium : this.clickEffectPropMedium,
clickEffectPropLarge : this.clickEffectPropLarge,
clickEffectPropNone : this.clickEffectPropNone, dirPropRtl : this.dirPropRtl,
dirPropAuto : this.dirPropAuto,
dirPropLtr : this.dirPropLtr, dirPropNone : this.dirPropNone, forPropNull : this.forPropNull, dirPropLtr : this.dirPropLtr, dirPropNone : this.dirPropNone, forPropNull : this.forPropNull,
forPropOne : this.forPropOne, forPropThree : this.forPropThree, ifPropTrue : this.ifPropTrue, forPropOne : this.forPropOne, forPropThree : this.forPropThree, ifPropTrue : this.ifPropTrue,
showPropTrue : this.showPropTrue, showPropFalse : this.showPropFalse, showPropNone : this.showPropNone, showPropTrue : this.showPropTrue, showPropFalse : this.showPropFalse,
showPropNone : this.showPropNone,
checkedTrue : this.checkedTrue, checkedFalse : this.checkedFalse, checkedNone : this.checkedNone, checkedTrue : this.checkedTrue, checkedFalse : this.checkedFalse, checkedNone : this.checkedNone,
showTextTrue : this.showTextTrue, showTextFalse : this.showTextFalse, showTextNone : this.showTextNone, showTextTrue : this.showTextTrue, showTextFalse : this.showTextFalse, showTextNone : this.showTextNone,
......
/** /**
* Copyright (c) 2022 Shenzhen kaiHong Digital Industry Development Co., Ltd. * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
...@@ -168,120 +168,6 @@ describe('menuPropsJsTest', function () { ...@@ -168,120 +168,6 @@ describe('menuPropsJsTest', function () {
done(); done();
}); });
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testMenuDisabledPropTrue
* @tc.desc ACE
*/
it('testMenuDisabledPropTrue', 0, async function (done) {
console.info('testMenuDisabledPropTrue START');
console.info("[menuProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
let obj = JSON.parse(globalThis.value.disabledPropTrue);
console.info("[menuProps] get inspector value is: " + JSON.stringify(obj));
console.info("[menuProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('menu')
expect(obj.$attrs.id).assertEqual('disabledPropTrue')
expect(obj.$attrs.disabled).assertEqual('true')
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testMenuDisabledPropFalse
* @tc.desc ACE
*/
it('testMenuDisabledPropFalse', 0, async function (done) {
console.info('testMenuDisabledPropFalse START');
console.info("[menuProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
let obj = JSON.parse(globalThis.value.disabledPropFalse);
console.info("[menuProps] get inspector value is: " + JSON.stringify(obj));
console.info("[menuProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('menu')
expect(obj.$attrs.id).assertEqual('disabledPropFalse')
expect(obj.$attrs.disabled).assertEqual('false')
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testMenuDisabledPropNone
* @tc.desc ACE
*/
it('testMenuDisabledPropNone', 0, async function (done) {
console.info('testMenuDisabledPropNone START');
console.info("[menuProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
let obj = JSON.parse(globalThis.value.disabledPropNone);
console.info("[menuProps] get inspector value is: " + JSON.stringify(obj));
console.info("[menuProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('menu')
expect(obj.$attrs.id).assertEqual('disabledPropNone')
expect(obj.$attrs.disabled).assertEqual('false')
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testMenuFocusablePropTrue
* @tc.desc ACE
*/
it('testMenuFocusablePropTrue', 0, async function (done) {
console.info('testMenuFocusablePropTrue START');
console.info("[menuProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
let obj = JSON.parse(globalThis.value.focusablePropTrue);
console.info("[menuProps] get inspector value is: " + JSON.stringify(obj));
console.info("[menuProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('menu')
expect(obj.$attrs.id).assertEqual('focusablePropTrue')
expect(obj.$attrs.focusable).assertEqual('true')
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testMenuFocusablePropFalse
* @tc.desc ACE
*/
it('testMenuFocusablePropFalse', 0, async function (done) {
console.info('testMenuFocusablePropFalse START');
console.info("[menuProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
let obj = JSON.parse(globalThis.value.focusablePropFalse);
console.info("[menuProps] get inspector value is: " + JSON.stringify(obj));
console.info("[menuProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('menu')
expect(obj.$attrs.id).assertEqual('focusablePropFalse')
expect(obj.$attrs.focusable).assertEqual('false')
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testMenuFocusablePropNone
* @tc.desc ACE
*/
it('testMenuFocusablePropNone', 0, async function (done) {
console.info('testMenuFocusablePropNone START');
console.info("[menuProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
let obj = JSON.parse(globalThis.value.focusablePropNone);
console.info("[menuProps] get inspector value is: " + JSON.stringify(obj));
console.info("[menuProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('menu')
expect(obj.$attrs.id).assertEqual('focusablePropNone')
expect(obj.$attrs.focusable).assertEqual('false')
done();
});
/** /**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testMenuDataProp * @tc.name testMenuDataProp
...@@ -712,7 +598,7 @@ describe('menuPropsJsTest', function () { ...@@ -712,7 +598,7 @@ describe('menuPropsJsTest', function () {
expect(obj.$type).assertEqual('menu') expect(obj.$type).assertEqual('menu')
expect(obj.$attrs.id).assertEqual('typeNone') expect(obj.$attrs.id).assertEqual('typeNone')
expect(obj.$attrs.type).assertEqual(undefined) expect(obj.$attrs.type).assertEqual('click')
console.info("[menuProps] get type value is: " + JSON.stringify(obj.$attrs.type)); console.info("[menuProps] get type value is: " + JSON.stringify(obj.$attrs.type));
done(); done();
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册