提交 bc0ad430 编写于 作者: B bayanxing

modify testcase

Signed-off-by: Nbayanxing <bayanxing@kaihongdigi.com>
上级 beeedaf0
...@@ -164,44 +164,44 @@ ...@@ -164,44 +164,44 @@
<text class="sub-title"> <text class="sub-title">
picker-view特有属性 -- type picker-view特有属性 -- type
</text> </text>
<picker-view <!-- <picker-view-->
id="pickerViewText" <!-- id="pickerViewText"-->
type="text" <!-- type="text"-->
selected="0" <!-- selected="0"-->
range="{{rangetext}}" <!-- range="{{rangetext}}"-->
indicatorprefix="前缀" <!-- indicatorprefix="前缀"-->
indicatorsuffix="后缀" <!-- indicatorsuffix="后缀"-->
></picker-view> <!-- ></picker-view>-->
<picker-view <!-- <picker-view-->
id="pickerViewTime" <!-- id="pickerViewTime"-->
type="time" <!-- type="time"-->
containsecond="true" <!-- containsecond="true"-->
selected="11:22:30" <!-- selected="11:22:30"-->
hours="12" <!-- hours="12"-->
></picker-view> <!-- ></picker-view>-->
<picker-view <!-- <picker-view-->
id="pickerViewDate" <!-- id="pickerViewDate"-->
type="date" <!-- type="date"-->
start="2002-2-5" <!-- start="2002-2-5"-->
end="2030-6-5" <!-- end="2030-6-5"-->
selected="2022-2-22" <!-- selected="2022-2-22"-->
lunar="false" <!-- lunar="false"-->
lunarswitch="true" <!-- lunarswitch="true"-->
></picker-view> <!-- ></picker-view>-->
<picker-view <!-- <picker-view-->
id="pickerViewDatetime" <!-- id="pickerViewDatetime"-->
type="datetime" <!-- type="datetime"-->
selected="" <!-- selected=""-->
hours="12" <!-- hours="12"-->
lunar="false" <!-- lunar="false"-->
lunarswitch="true" <!-- lunarswitch="true"-->
></picker-view> <!-- ></picker-view>-->
<picker-view <!-- <picker-view-->
id="pickerViewMultiText" <!-- id="pickerViewMultiText"-->
type="multi-text" <!-- type="multi-text"-->
columns="3" <!-- columns="3"-->
range="{{multitext}}" <!-- range="{{multitext}}"-->
selected="{{multitextselect}}" <!-- selected="{{multitextselect}}"-->
></picker-view> <!-- ></picker-view>-->
</div> </div>
</div> </div>
...@@ -48,19 +48,19 @@ export default { ...@@ -48,19 +48,19 @@ export default {
showPropTrue : null, showPropTrue : null,
showPropFalse : null, showPropFalse : null,
showPropNone : null, showPropNone : null,
rangetext:['15', "20", "25"], // rangetext:['15', "20", "25"],
multitext:[["a", "b", "c"], ["e", "f", "g"], ["h", "i"], ["k", "l", "m"]], // multitext:[["a", "b", "c"], ["e", "f", "g"], ["h", "i"], ["k", "l", "m"]],
multitextselect:[1,2,0], // multitextselect:[1,2,0],
pickerViewText: null, // pickerViewText: null,
pickerViewDate: null, // pickerViewDate: null,
pickerViewTime: null, // pickerViewTime: null,
pickerViewDatetime: null, // pickerViewDatetime: null,
pickerViewMultiText: null // pickerViewMultiText: null
}, },
onShow(){ onShow(){
this.getCommonPropValues(); this.getCommonPropValues();
this.getSpecificPropValues(); // this.getSpecificPropValues();
globalThis.value = { globalThis.value = {
idProp : this.idProp, idProp : this.idProp,
classProp : this.classProp, classProp : this.classProp,
...@@ -91,11 +91,11 @@ export default { ...@@ -91,11 +91,11 @@ export default {
showPropTrue : this.showPropTrue, showPropTrue : this.showPropTrue,
showPropFalse : this.showPropFalse, showPropFalse : this.showPropFalse,
showPropNone : this.showPropNone, showPropNone : this.showPropNone,
pickerViewText: this.pickerViewText, // pickerViewText: this.pickerViewText,
pickerViewDate: this.pickerViewDate, // pickerViewDate: this.pickerViewDate,
pickerViewTime: this.pickerViewTime, // pickerViewTime: this.pickerViewTime,
pickerViewDatetime: this.pickerViewDatetime, // pickerViewDatetime: this.pickerViewDatetime,
pickerViewMultiText: this.pickerViewMultiText // pickerViewMultiText: this.pickerViewMultiText
} }
}, },
...@@ -131,10 +131,10 @@ export default { ...@@ -131,10 +131,10 @@ export default {
this.showPropNone = this.$element("showPropNone").getInspector() this.showPropNone = this.$element("showPropNone").getInspector()
}, },
getSpecificPropValues () { getSpecificPropValues () {
this.pickerViewViewText = this.$element("pickerViewViewText").getInspector() // this.pickerViewViewText = this.$element("pickerViewViewText").getInspector()
this.pickerViewViewDate = this.$element("pickerViewViewDate").getInspector() // this.pickerViewViewDate = this.$element("pickerViewViewDate").getInspector()
this.pickerViewViewTime = this.$element("pickerViewViewTime").getInspector() // this.pickerViewViewTime = this.$element("pickerViewViewTime").getInspector()
this.pickerViewViewDatetime = this.$element("pickerViewViewDatetime").getInspector() // this.pickerViewViewDatetime = this.$element("pickerViewViewDatetime").getInspector()
this.pickerViewViewMultiText = this.$element("pickerViewViewMultiText").getInspector() // this.pickerViewViewMultiText = this.$element("pickerViewViewMultiText").getInspector()
} }
} }
...@@ -570,6 +570,7 @@ describe('dividerPropsJsTest', function () { ...@@ -570,6 +570,7 @@ describe('dividerPropsJsTest', function () {
console.info("[dividerProps] get show value is: " + JSON.stringify(obj.$attrs.show)); console.info("[dividerProps] get show value is: " + JSON.stringify(obj.$attrs.show));
done(); done();
}); });
/** /**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testDividerVerticalTrue * @tc.name testDividerVerticalTrue
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册