提交 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
......
...@@ -91,7 +91,7 @@ describe('pickerViewPropsJsTest', function () { ...@@ -91,7 +91,7 @@ describe('pickerViewPropsJsTest', function () {
console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj)); console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj));
console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('pickerView') expect(obj.$type).assertEqual('picker-view')
expect(obj.$attrs.id).assertEqual('idProp') expect(obj.$attrs.id).assertEqual('idProp')
done(); done();
}); });
...@@ -109,7 +109,7 @@ describe('pickerViewPropsJsTest', function () { ...@@ -109,7 +109,7 @@ describe('pickerViewPropsJsTest', function () {
console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj)); console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj));
console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('pickerView') expect(obj.$type).assertEqual('picker-view')
expect(obj.$attrs.id).assertEqual('classProp') expect(obj.$attrs.id).assertEqual('classProp')
expect(obj.$attrs.className).assertEqual('classProp') expect(obj.$attrs.className).assertEqual('classProp')
done(); done();
...@@ -128,7 +128,7 @@ describe('pickerViewPropsJsTest', function () { ...@@ -128,7 +128,7 @@ describe('pickerViewPropsJsTest', function () {
console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj)); console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj));
console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('pickerView') expect(obj.$type).assertEqual('picker-view')
expect(obj.$attrs.id).assertEqual('classPropNone') expect(obj.$attrs.id).assertEqual('classPropNone')
expect(obj.$attrs.className).assertEqual(undefined) expect(obj.$attrs.className).assertEqual(undefined)
console.info("[pickerViewProps] get className value is: " + JSON.stringify(obj.$attrs.className)); console.info("[pickerViewProps] get className value is: " + JSON.stringify(obj.$attrs.className));
...@@ -174,7 +174,7 @@ describe('pickerViewPropsJsTest', function () { ...@@ -174,7 +174,7 @@ describe('pickerViewPropsJsTest', function () {
console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj)); console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj));
console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('pickerView') expect(obj.$type).assertEqual('picker-view')
expect(obj.$attrs.id).assertEqual('refProp') expect(obj.$attrs.id).assertEqual('refProp')
expect(obj.$attrs.ref).assertEqual('refProp') expect(obj.$attrs.ref).assertEqual('refProp')
done(); done();
...@@ -193,7 +193,7 @@ describe('pickerViewPropsJsTest', function () { ...@@ -193,7 +193,7 @@ describe('pickerViewPropsJsTest', function () {
console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj)); console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj));
console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('pickerView') expect(obj.$type).assertEqual('picker-view')
expect(obj.$attrs.id).assertEqual('refPropNone') expect(obj.$attrs.id).assertEqual('refPropNone')
expect(obj.$attrs.ref).assertEqual(undefined) expect(obj.$attrs.ref).assertEqual(undefined)
console.info("[pickerViewProps] get ref value is: " + JSON.stringify(obj.$attrs.ref)); console.info("[pickerViewProps] get ref value is: " + JSON.stringify(obj.$attrs.ref));
...@@ -213,7 +213,7 @@ describe('pickerViewPropsJsTest', function () { ...@@ -213,7 +213,7 @@ describe('pickerViewPropsJsTest', function () {
console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj)); console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj));
console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('pickerView') expect(obj.$type).assertEqual('picker-view')
expect(obj.$attrs.id).assertEqual('disabledPropTrue') expect(obj.$attrs.id).assertEqual('disabledPropTrue')
expect(obj.$attrs.disabled).assertEqual('true') expect(obj.$attrs.disabled).assertEqual('true')
done(); done();
...@@ -232,7 +232,7 @@ describe('pickerViewPropsJsTest', function () { ...@@ -232,7 +232,7 @@ describe('pickerViewPropsJsTest', function () {
console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj)); console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj));
console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('pickerView') expect(obj.$type).assertEqual('picker-view')
expect(obj.$attrs.id).assertEqual('disabledPropFalse') expect(obj.$attrs.id).assertEqual('disabledPropFalse')
expect(obj.$attrs.disabled).assertEqual('false') expect(obj.$attrs.disabled).assertEqual('false')
done(); done();
...@@ -251,7 +251,7 @@ describe('pickerViewPropsJsTest', function () { ...@@ -251,7 +251,7 @@ describe('pickerViewPropsJsTest', function () {
console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj)); console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj));
console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('pickerView') expect(obj.$type).assertEqual('picker-view')
expect(obj.$attrs.id).assertEqual('disabledPropNone') expect(obj.$attrs.id).assertEqual('disabledPropNone')
expect(obj.$attrs.disabled).assertEqual('false') expect(obj.$attrs.disabled).assertEqual('false')
done(); done();
...@@ -270,7 +270,7 @@ describe('pickerViewPropsJsTest', function () { ...@@ -270,7 +270,7 @@ describe('pickerViewPropsJsTest', function () {
console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj)); console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj));
console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('pickerView') expect(obj.$type).assertEqual('picker-view')
expect(obj.$attrs.id).assertEqual('focusablePropTrue') expect(obj.$attrs.id).assertEqual('focusablePropTrue')
expect(obj.$attrs.focusable).assertEqual('true') expect(obj.$attrs.focusable).assertEqual('true')
done(); done();
...@@ -289,7 +289,7 @@ describe('pickerViewPropsJsTest', function () { ...@@ -289,7 +289,7 @@ describe('pickerViewPropsJsTest', function () {
console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj)); console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj));
console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('pickerView') expect(obj.$type).assertEqual('picker-view')
expect(obj.$attrs.id).assertEqual('focusablePropFalse') expect(obj.$attrs.id).assertEqual('focusablePropFalse')
expect(obj.$attrs.focusable).assertEqual('false') expect(obj.$attrs.focusable).assertEqual('false')
done(); done();
...@@ -308,7 +308,7 @@ describe('pickerViewPropsJsTest', function () { ...@@ -308,7 +308,7 @@ describe('pickerViewPropsJsTest', function () {
console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj)); console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj));
console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('pickerView') expect(obj.$type).assertEqual('picker-view')
expect(obj.$attrs.id).assertEqual('focusablePropNone') expect(obj.$attrs.id).assertEqual('focusablePropNone')
expect(obj.$attrs.focusable).assertEqual('false') expect(obj.$attrs.focusable).assertEqual('false')
done(); done();
...@@ -327,7 +327,7 @@ describe('pickerViewPropsJsTest', function () { ...@@ -327,7 +327,7 @@ describe('pickerViewPropsJsTest', function () {
console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj)); console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj));
console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('pickerView') expect(obj.$type).assertEqual('picker-view')
expect(obj.$attrs.id).assertEqual('dataProp') expect(obj.$attrs.id).assertEqual('dataProp')
expect(obj.$attrs.datapickerView).assertEqual(undefined); expect(obj.$attrs.datapickerView).assertEqual(undefined);
console.info("[pickerViewProps] get datapickerView value is: " + JSON.stringify(obj.$attrs.datapickerView)); console.info("[pickerViewProps] get datapickerView value is: " + JSON.stringify(obj.$attrs.datapickerView));
...@@ -347,7 +347,7 @@ describe('pickerViewPropsJsTest', function () { ...@@ -347,7 +347,7 @@ describe('pickerViewPropsJsTest', function () {
console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj)); console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj));
console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('pickerView') expect(obj.$type).assertEqual('picker-view')
expect(obj.$attrs.id).assertEqual('dataPropNone') expect(obj.$attrs.id).assertEqual('dataPropNone')
expect(obj.$attrs.datapickerView).assertEqual(undefined) expect(obj.$attrs.datapickerView).assertEqual(undefined)
console.info("[pickerViewProps] get datapickerView value is: " + JSON.stringify(obj.$attrs.datapickerView)); console.info("[pickerViewProps] get datapickerView value is: " + JSON.stringify(obj.$attrs.datapickerView));
...@@ -367,7 +367,7 @@ describe('pickerViewPropsJsTest', function () { ...@@ -367,7 +367,7 @@ describe('pickerViewPropsJsTest', function () {
console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj)); console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj));
console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('pickerView') expect(obj.$type).assertEqual('picker-view')
expect(obj.$attrs.id).assertEqual('clickEffectPropSmall') expect(obj.$attrs.id).assertEqual('clickEffectPropSmall')
expect(obj.$attrs.clickEffect).assertEqual('spring-small') expect(obj.$attrs.clickEffect).assertEqual('spring-small')
done(); done();
...@@ -386,7 +386,7 @@ describe('pickerViewPropsJsTest', function () { ...@@ -386,7 +386,7 @@ describe('pickerViewPropsJsTest', function () {
console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj)); console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj));
console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('pickerView') expect(obj.$type).assertEqual('picker-view')
expect(obj.$attrs.id).assertEqual('clickEffectPropMedium') expect(obj.$attrs.id).assertEqual('clickEffectPropMedium')
expect(obj.$attrs.clickEffect).assertEqual('spring-medium') expect(obj.$attrs.clickEffect).assertEqual('spring-medium')
done(); done();
...@@ -405,7 +405,7 @@ describe('pickerViewPropsJsTest', function () { ...@@ -405,7 +405,7 @@ describe('pickerViewPropsJsTest', function () {
console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj)); console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj));
console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('pickerView') expect(obj.$type).assertEqual('picker-view')
expect(obj.$attrs.id).assertEqual('clickEffectPropLarge') expect(obj.$attrs.id).assertEqual('clickEffectPropLarge')
expect(obj.$attrs.clickEffect).assertEqual('spring-large') expect(obj.$attrs.clickEffect).assertEqual('spring-large')
done(); done();
...@@ -424,7 +424,7 @@ describe('pickerViewPropsJsTest', function () { ...@@ -424,7 +424,7 @@ describe('pickerViewPropsJsTest', function () {
console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj)); console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj));
console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('pickerView') expect(obj.$type).assertEqual('picker-view')
expect(obj.$attrs.id).assertEqual('clickEffectPropNone') expect(obj.$attrs.id).assertEqual('clickEffectPropNone')
expect(obj.$attrs.clickEffect).assertEqual(undefined) expect(obj.$attrs.clickEffect).assertEqual(undefined)
console.info("[pickerViewProps] get clickEffect value is: " + JSON.stringify(obj.$attrs.clickEffect)); console.info("[pickerViewProps] get clickEffect value is: " + JSON.stringify(obj.$attrs.clickEffect));
...@@ -444,7 +444,7 @@ describe('pickerViewPropsJsTest', function () { ...@@ -444,7 +444,7 @@ describe('pickerViewPropsJsTest', function () {
console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj)); console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj));
console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('pickerView') expect(obj.$type).assertEqual('picker-view')
expect(obj.$attrs.id).assertEqual('dirPropRtl') expect(obj.$attrs.id).assertEqual('dirPropRtl')
expect(obj.$attrs.dir).assertEqual('rtl') expect(obj.$attrs.dir).assertEqual('rtl')
done(); done();
...@@ -463,7 +463,7 @@ describe('pickerViewPropsJsTest', function () { ...@@ -463,7 +463,7 @@ describe('pickerViewPropsJsTest', function () {
console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj)); console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj));
console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('pickerView') expect(obj.$type).assertEqual('picker-view')
expect(obj.$attrs.id).assertEqual('dirPropLtr') expect(obj.$attrs.id).assertEqual('dirPropLtr')
expect(obj.$attrs.dir).assertEqual('ltr') expect(obj.$attrs.dir).assertEqual('ltr')
done(); done();
...@@ -482,7 +482,7 @@ describe('pickerViewPropsJsTest', function () { ...@@ -482,7 +482,7 @@ describe('pickerViewPropsJsTest', function () {
console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj)); console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj));
console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('pickerView') expect(obj.$type).assertEqual('picker-view')
expect(obj.$attrs.id).assertEqual('dirPropAuto') expect(obj.$attrs.id).assertEqual('dirPropAuto')
expect(obj.$attrs.dir).assertEqual('auto') expect(obj.$attrs.dir).assertEqual('auto')
done(); done();
...@@ -501,7 +501,7 @@ describe('pickerViewPropsJsTest', function () { ...@@ -501,7 +501,7 @@ describe('pickerViewPropsJsTest', function () {
console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj)); console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj));
console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('pickerView') expect(obj.$type).assertEqual('picker-view')
expect(obj.$attrs.id).assertEqual('dirPropNone') expect(obj.$attrs.id).assertEqual('dirPropNone')
expect(obj.$attrs.dir).assertEqual('auto') expect(obj.$attrs.dir).assertEqual('auto')
done(); done();
...@@ -520,7 +520,7 @@ describe('pickerViewPropsJsTest', function () { ...@@ -520,7 +520,7 @@ describe('pickerViewPropsJsTest', function () {
console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj)); console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj));
console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('pickerView') expect(obj.$type).assertEqual('picker-view')
expect(obj.$attrs.id).assertEqual('forPropNull') expect(obj.$attrs.id).assertEqual('forPropNull')
expect(obj.$attrs.for).assertEqual(undefined) expect(obj.$attrs.for).assertEqual(undefined)
console.info("[pickerViewProps] get for value is: " + JSON.stringify(obj.$attrs.for)); console.info("[pickerViewProps] get for value is: " + JSON.stringify(obj.$attrs.for));
...@@ -540,7 +540,7 @@ describe('pickerViewPropsJsTest', function () { ...@@ -540,7 +540,7 @@ describe('pickerViewPropsJsTest', function () {
console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj)); console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj));
console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('pickerView') expect(obj.$type).assertEqual('picker-view')
expect(obj.$attrs.id).assertEqual('forPropOne') expect(obj.$attrs.id).assertEqual('forPropOne')
expect(obj.$attrs.for).assertEqual(undefined) expect(obj.$attrs.for).assertEqual(undefined)
console.info("[pickerViewProps] get for value is: " + JSON.stringify(obj.$attrs.for)); console.info("[pickerViewProps] get for value is: " + JSON.stringify(obj.$attrs.for));
...@@ -560,7 +560,7 @@ describe('pickerViewPropsJsTest', function () { ...@@ -560,7 +560,7 @@ describe('pickerViewPropsJsTest', function () {
console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj)); console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj));
console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('pickerView') expect(obj.$type).assertEqual('picker-view')
expect(obj.$attrs.id).assertEqual('forPropThree') expect(obj.$attrs.id).assertEqual('forPropThree')
expect(obj.$attrs.for).assertEqual(undefined) expect(obj.$attrs.for).assertEqual(undefined)
console.info("[pickerViewProps] get for value is: " + JSON.stringify(obj.$attrs.for)); console.info("[pickerViewProps] get for value is: " + JSON.stringify(obj.$attrs.for));
...@@ -580,7 +580,7 @@ describe('pickerViewPropsJsTest', function () { ...@@ -580,7 +580,7 @@ describe('pickerViewPropsJsTest', function () {
console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj)); console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj));
console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('pickerView') expect(obj.$type).assertEqual('picker-view')
expect(obj.$attrs.id).assertEqual('ifPropTrue') expect(obj.$attrs.id).assertEqual('ifPropTrue')
expect(obj.$attrs.if).assertEqual(undefined) expect(obj.$attrs.if).assertEqual(undefined)
console.info("[pickerViewProps] get for value is: " + JSON.stringify(obj.$attrs.if)); console.info("[pickerViewProps] get for value is: " + JSON.stringify(obj.$attrs.if));
...@@ -638,7 +638,7 @@ describe('pickerViewPropsJsTest', function () { ...@@ -638,7 +638,7 @@ describe('pickerViewPropsJsTest', function () {
console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj)); console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj));
console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('pickerView') expect(obj.$type).assertEqual('picker-view')
expect(obj.$attrs.id).assertEqual('showPropTrue') expect(obj.$attrs.id).assertEqual('showPropTrue')
expect(obj.$attrs.show).assertEqual('true') expect(obj.$attrs.show).assertEqual('true')
console.info("[pickerViewProps] get show value is: " + JSON.stringify(obj.$attrs.show)); console.info("[pickerViewProps] get show value is: " + JSON.stringify(obj.$attrs.show));
...@@ -658,7 +658,7 @@ describe('pickerViewPropsJsTest', function () { ...@@ -658,7 +658,7 @@ describe('pickerViewPropsJsTest', function () {
console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj)); console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj));
console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('pickerView') expect(obj.$type).assertEqual('picker-view')
expect(obj.$attrs.id).assertEqual('showPropFalse') expect(obj.$attrs.id).assertEqual('showPropFalse')
expect(obj.$attrs.show).assertEqual('false') expect(obj.$attrs.show).assertEqual('false')
console.info("[pickerViewProps] get show value is: " + JSON.stringify(obj.$attrs.show)); console.info("[pickerViewProps] get show value is: " + JSON.stringify(obj.$attrs.show));
...@@ -678,7 +678,7 @@ describe('pickerViewPropsJsTest', function () { ...@@ -678,7 +678,7 @@ describe('pickerViewPropsJsTest', function () {
console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj)); console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj));
console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('pickerView') expect(obj.$type).assertEqual('picker-view')
expect(obj.$attrs.id).assertEqual('showPropNone') expect(obj.$attrs.id).assertEqual('showPropNone')
expect(obj.$attrs.show).assertEqual('true') expect(obj.$attrs.show).assertEqual('true')
console.info("[pickerViewProps] get show value is: " + JSON.stringify(obj.$attrs.show)); console.info("[pickerViewProps] get show value is: " + JSON.stringify(obj.$attrs.show));
...@@ -690,98 +690,98 @@ describe('pickerViewPropsJsTest', function () { ...@@ -690,98 +690,98 @@ describe('pickerViewPropsJsTest', function () {
* @tc.name testPickerViewPickerViewText * @tc.name testPickerViewPickerViewText
* @tc.desc ACE * @tc.desc ACE
*/ */
it('testPickerViewPickerViewText', 0, async function (done) { // it('testPickerViewPickerViewText', 0, async function (done) {
console.info('testPickerViewPickerViewText START'); // console.info('testPickerViewPickerViewText START');
console.info("[pickerViewProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); // console.info("[pickerViewProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
//
let obj = JSON.parse(globalThis.value.pickerViewText); // let obj = JSON.parse(globalThis.value.pickerViewText);
console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj)); // console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj));
console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); // console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
//
expect(obj.$type).assertEqual('pickerView') // expect(obj.$type).assertEqual('pickerView')
expect(obj.$attrs.id).assertEqual('pickerViewText') // expect(obj.$attrs.id).assertEqual('pickerViewText')
expect(obj.$attrs.type).assertEqual('text') // expect(obj.$attrs.type).assertEqual('text')
console.info("[pickerViewProps] get type value is: " + JSON.stringify(obj.$attrs.type)); // console.info("[pickerViewProps] get type value is: " + JSON.stringify(obj.$attrs.type));
done(); // done();
}); // });
/** /**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testPickerViewPickerViewTime * @tc.name testPickerViewPickerViewTime
* @tc.desc ACE * @tc.desc ACE
*/ */
it('testPickerViewPickerViewTime', 0, async function (done) { // it('testPickerViewPickerViewTime', 0, async function (done) {
console.info('testPickerViewPickerViewTime START'); // console.info('testPickerViewPickerViewTime START');
console.info("[pickerViewProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); // console.info("[pickerViewProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
//
let obj = JSON.parse(globalThis.value.pickerViewTime); // let obj = JSON.parse(globalThis.value.pickerViewTime);
console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj)); // console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj));
console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); // console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
//
expect(obj.$type).assertEqual('pickerView') // expect(obj.$type).assertEqual('pickerView')
expect(obj.$attrs.id).assertEqual('pickerViewTime') // expect(obj.$attrs.id).assertEqual('pickerViewTime')
expect(obj.$attrs.type).assertEqual('time') // expect(obj.$attrs.type).assertEqual('time')
console.info("[pickerViewProps] get type value is: " + JSON.stringify(obj.$attrs.type)); // console.info("[pickerViewProps] get type value is: " + JSON.stringify(obj.$attrs.type));
done(); // done();
}); // });
/** /**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testPickerViewPickerViewDate * @tc.name testPickerViewPickerViewDate
* @tc.desc ACE * @tc.desc ACE
*/ */
it('testPickerViewPickerViewDate', 0, async function (done) { // it('testPickerViewPickerViewDate', 0, async function (done) {
console.info('testPickerViewPickerViewDate START'); // console.info('testPickerViewPickerViewDate START');
console.info("[pickerViewProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); // console.info("[pickerViewProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
//
let obj = JSON.parse(globalThis.value.pickerViewDate); // let obj = JSON.parse(globalThis.value.pickerViewDate);
console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj)); // console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj));
console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); // console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
//
expect(obj.$type).assertEqual('pickerView') // expect(obj.$type).assertEqual('pickerView')
expect(obj.$attrs.id).assertEqual('pickerViewDate') // expect(obj.$attrs.id).assertEqual('pickerViewDate')
expect(obj.$attrs.type).assertEqual('date') // expect(obj.$attrs.type).assertEqual('date')
console.info("[pickerViewProps] get type value is: " + JSON.stringify(obj.$attrs.type)); // console.info("[pickerViewProps] get type value is: " + JSON.stringify(obj.$attrs.type));
done(); // done();
}); // });
/** /**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testPickerViewPickerViewDatetime * @tc.name testPickerViewPickerViewDatetime
* @tc.desc ACE * @tc.desc ACE
*/ */
it('testPickerViewPickerViewDatetime', 0, async function (done) { // it('testPickerViewPickerViewDatetime', 0, async function (done) {
console.info('testPickerViewPickerViewDatetime START'); // console.info('testPickerViewPickerViewDatetime START');
console.info("[pickerViewProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); // console.info("[pickerViewProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
//
let obj = JSON.parse(globalThis.value.pickerViewDatetime); // let obj = JSON.parse(globalThis.value.pickerViewDatetime);
console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj)); // console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj));
console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); // console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
//
expect(obj.$type).assertEqual('pickerView') // expect(obj.$type).assertEqual('pickerView')
expect(obj.$attrs.id).assertEqual('pickerViewDatetime') // expect(obj.$attrs.id).assertEqual('pickerViewDatetime')
expect(obj.$attrs.type).assertEqual('datetime') // expect(obj.$attrs.type).assertEqual('datetime')
console.info("[pickerViewProps] get type value is: " + JSON.stringify(obj.$attrs.type)); // console.info("[pickerViewProps] get type value is: " + JSON.stringify(obj.$attrs.type));
done(); // done();
}); // });
/** /**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testPickerViewPickerViewMultiText * @tc.name testPickerViewPickerViewMultiText
* @tc.desc ACE * @tc.desc ACE
*/ */
it('testPickerViewPickerViewMultiText', 0, async function (done) { // it('testPickerViewPickerViewMultiText', 0, async function (done) {
console.info('testPickerViewPickerViewMultiText START'); // console.info('testPickerViewPickerViewMultiText START');
console.info("[pickerViewProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); // console.info("[pickerViewProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
//
let obj = JSON.parse(globalThis.value.pickerViewMultiText); // let obj = JSON.parse(globalThis.value.pickerViewMultiText);
console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj)); // console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj));
console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); // console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
//
expect(obj.$type).assertEqual('pickerView') // expect(obj.$type).assertEqual('pickerView')
expect(obj.$attrs.id).assertEqual('pickerViewMultiText') // expect(obj.$attrs.id).assertEqual('pickerViewMultiText')
expect(obj.$attrs.type).assertEqual('multi-text') // expect(obj.$attrs.type).assertEqual('multi-text')
console.info("[pickerViewProps] get type value is: " + JSON.stringify(obj.$attrs.type)); // console.info("[pickerViewProps] 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.
先完成此消息的编辑!
想要评论请 注册