提交 4e4a46bd 编写于 作者: B bayanxing

add test cases

Signed-off-by: Nbayanxing <bayanxing@kaihongdigi.com>
上级 4924e81a
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
showPropTrue : null, showPropTrue : null,
showPropFalse : null, showPropFalse : null,
showPropNone : null , showPropNone : null ,
array:['#',1,2,3,4,5,6,7,8], array:[1,2,3,4,5,6,7,8],
scrollPageTrue:null, scrollPageTrue:null,
scrollPageFalse:null, scrollPageFalse:null,
scrollPageNone:null, scrollPageNone:null,
...@@ -99,77 +99,45 @@ ...@@ -99,77 +99,45 @@
this.getCommonPropValues(); this.getCommonPropValues();
this.getSpecificPropValues() this.getSpecificPropValues()
globalThis.value = { globalThis.value = {
idProp : this.idProp, idProp : this.idProp, classProp : this.classProp,
classProp : this.classProp, classPropNone : this.classPropNone, styleProp : this.styleProp,
classPropNone : this.classPropNone, refProp : this.refProp, refPropNone : this.refPropNone,
styleProp : this.styleProp, disabledPropTrue : this.disabledPropTrue, disabledPropFalse : this.disabledPropFalse,
refProp : this.refProp, disabledPropNone : this.disabledPropNone, focusablePropTrue : this.focusablePropTrue,
refPropNone : this.refPropNone, focusablePropFalse : this.focusablePropFalse, focusablePropNone : this.focusablePropNone,
disabledPropTrue : this.disabledPropTrue, dataProp : this.dataProp, dataPropNone : this.dataPropNone,
disabledPropFalse : this.disabledPropFalse, clickEffectPropSmall : this.clickEffectPropSmall, clickEffectPropMedium : this.clickEffectPropMedium,
disabledPropNone : this.disabledPropNone, clickEffectPropLarge : this.clickEffectPropLarge, clickEffectPropNone : this.clickEffectPropNone,
focusablePropTrue : this.focusablePropTrue, dirPropRtl : this.dirPropRtl, dirPropAuto : this.dirPropAuto,
focusablePropFalse : this.focusablePropFalse, dirPropLtr : this.dirPropLtr, dirPropNone : this.dirPropNone,
focusablePropNone : this.focusablePropNone, forPropNull : this.forPropNull, forPropOne : this.forPropOne,
dataProp : this.dataProp, forPropThree : this.forPropThree, ifPropTrue : this.ifPropTrue,
dataPropNone : this.dataPropNone, showPropTrue : this.showPropTrue, showPropFalse : this.showPropFalse,
clickEffectPropSmall : this.clickEffectPropSmall, showPropNone : this.showPropNone, scrollPageTrue:this.scrollPageTrue,
clickEffectPropMedium : this.clickEffectPropMedium, scrollPageFalse:this.scrollPageFalse, scrollPageNone:this.scrollPageNone,
clickEffectPropLarge : this.clickEffectPropLarge, cachedcount:this.cachedcount, scrollbarOff:this.scrollbarOff,
clickEffectPropNone : this.clickEffectPropNone, scrollbarAuto:this.scrollbarAuto, scrollbarOn:this.scrollbarOn,
dirPropRtl : this.dirPropRtl, scrollbarNone:this.scrollbarNone, scrolleffectSpring:this.scrolleffectSpring,
dirPropAuto : this.dirPropAuto,
dirPropLtr : this.dirPropLtr,
dirPropNone : this.dirPropNone,
forPropNull : this.forPropNull,
forPropOne : this.forPropOne,
forPropThree : this.forPropThree,
ifPropTrue : this.ifPropTrue,
showPropTrue : this.showPropTrue,
showPropFalse : this.showPropFalse,
showPropNone : this.showPropNone,
scrollPageTrue:this.scrollPageTrue,
scrollPageFalse:this.scrollPageFalse,
scrollPageNone:this.scrollPageNone,
cachedcount:this.cachedcount,
scrollbarOff:this.scrollbarOff,
scrollbarAuto:this.scrollbarAuto,
scrollbarOn:this.scrollbarOn,
scrollbarNone:this.scrollbarNone,
scrolleffectSpring:this.scrolleffectSpring,
scrolleffectFade:this.scrolleffectFade, scrolleffectFade:this.scrolleffectFade,
scrolleffectNo:this.scrolleffectNo, scrolleffectNo:this.scrolleffectNo, scrolleffectNone:this.scrolleffectNone,
scrolleffectNone:this.scrolleffectNone, indexerTrue:this.indexerTrue, indexerFalse:this.indexerFalse,
indexerTrue:this.indexerTrue, indexerArray:this.indexerArray, indexerNone:this.indexerNone,
indexerFalse:this.indexerFalse, indexercircleTrue:this.indexercircleTrue, indexercircleFalse:this.indexercircleFalse,
indexerArray:this.indexerArray, indexercircleNone:this.indexercircleNone, indexermultiTrue:this.indexermultiTrue,
indexerNone:this.indexerNone, indexermultiFalse:this.indexermultiFalse, indexermultiNone:this.indexermultiNone,
indexercircleTrue:this.indexercircleTrue, indexerbubbleTrue:this.indexerbubbleTrue, indexerbubbleFalse:this.indexerbubbleFalse,
indexercircleFalse:this.indexercircleFalse, indexerbubbleNone:this.indexerbubbleNone, dividerTrue:this.dividerTrue,
indexercircleNone:this.indexercircleNone, dividerFalse:this.dividerFalse, dividerNone:this.dividerNone,
indexermultiTrue:this.indexermultiTrue, shapemodeDefault:this.shapemodeDefault, shapemodeRect:this.shapemodeRect,
indexermultiFalse:this.indexermultiFalse, shapemodeRound:this.shapemodeRound, shapemodeNone:this.shapemodeNone,
indexermultiNone:this.indexermultiNone,
indexerbubbleTrue:this.indexerbubbleTrue,
indexerbubbleFalse:this.indexerbubbleFalse,
indexerbubbleNone:this.indexerbubbleNone,
dividerTrue:this.dividerTrue,
dividerFalse:this.dividerFalse,
dividerNone:this.dividerNone,
shapemodeDefault:this.shapemodeDefault,
shapemodeRect:this.shapemodeRect,
shapemodeRound:this.shapemodeRound,
shapemodeNone:this.shapemodeNone,
chainanimationTrue:this.chainanimationTrue, chainanimationTrue:this.chainanimationTrue,
chainanimationFalse:this.chainanimationFalse, chainanimationFalse:this.chainanimationFalse,
chainanimationNone:this.chainanimationNone, chainanimationNone:this.chainanimationNone,
updateeffectTrue:this.updateeffectTrue, updateeffectTrue:this.updateeffectTrue,
updateeffectFalse:this.updateeffectFalse, updateeffectFalse:this.updateeffectFalse,
updateeffectNone:this.updateeffectNone, updateeffectNone:this.updateeffectNone,
initialindex:this.initialindex, initialindex:this.initialindex, initialoffset:this.initialoffset,
initialoffset:this.initialoffset, selected:this.selected, selectedNone:this.selectedNone
selected:this.selected,
selectedNone:this.selectedNone
} }
}, },
......
...@@ -43,7 +43,7 @@ require('./badgeProps.test.js') ...@@ -43,7 +43,7 @@ require('./badgeProps.test.js')
require('./dialogProps.test.js') require('./dialogProps.test.js')
require('./formProps.test.js') require('./formProps.test.js')
require('./listProps.test.js') require('./listProps.test.js')
require('./lsitItemProps.test.js') require('./listItemProps.test.js')
require('./listItemGroupProps.test.js') require('./listItemGroupProps.test.js')
require('./stepperProps.test.js') require('./stepperProps.test.js')
require('./stepperItemProps.test.js') require('./stepperItemProps.test.js')
...@@ -286,7 +286,7 @@ ...@@ -286,7 +286,7 @@
expect(obj.$type).assertEqual('dialog') expect(obj.$type).assertEqual('dialog')
expect(obj.$attrs.id).assertEqual('focusablePropNone') expect(obj.$attrs.id).assertEqual('focusablePropNone')
expect(obj.$attrs.focusable).assertEqual('false') expect(obj.$attrs.focusable).assertEqual(undefined)
done(); done();
}); });
......
...@@ -286,7 +286,7 @@ describe('formPropsJsTest', function () { ...@@ -286,7 +286,7 @@ describe('formPropsJsTest', function () {
expect(obj.$type).assertEqual('form') expect(obj.$type).assertEqual('form')
expect(obj.$attrs.id).assertEqual('focusablePropNone') expect(obj.$attrs.id).assertEqual('focusablePropNone')
expect(obj.$attrs.focusable).assertEqual('false') expect(obj.$attrs.focusable).assertEqual(undefined)
done(); done();
}); });
......
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj)); console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj));
console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('listItemGroup') expect(obj.$type).assertEqual('list-item-group')
expect(obj.$attrs.id).assertEqual('idProp') expect(obj.$attrs.id).assertEqual('idProp')
done(); done();
}) })
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj)); console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj));
console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('listItemGroup') expect(obj.$type).assertEqual('list-item-group')
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();
...@@ -130,7 +130,7 @@ ...@@ -130,7 +130,7 @@
console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj)); console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj));
console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('listItemGroup') expect(obj.$type).assertEqual('list-item-group')
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("[listItemGroupProps] get className value is: " + JSON.stringify(obj.$attrs.className)); console.info("[listItemGroupProps] get className value is: " + JSON.stringify(obj.$attrs.className));
...@@ -150,7 +150,7 @@ ...@@ -150,7 +150,7 @@
console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj)); console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj));
console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('listItemGroup') expect(obj.$type).assertEqual('list-item-group')
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();
...@@ -169,7 +169,7 @@ ...@@ -169,7 +169,7 @@
console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj)); console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj));
console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('listItemGroup') expect(obj.$type).assertEqual('list-item-group')
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("[listItemGroupProps] get ref value is: " + JSON.stringify(obj.$attrs.ref)); console.info("[listItemGroupProps] get ref value is: " + JSON.stringify(obj.$attrs.ref));
...@@ -189,7 +189,7 @@ ...@@ -189,7 +189,7 @@
console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj)); console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj));
console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('listItemGroup') expect(obj.$type).assertEqual('list-item-group')
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();
...@@ -208,7 +208,7 @@ ...@@ -208,7 +208,7 @@
console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj)); console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj));
console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('listItemGroup') expect(obj.$type).assertEqual('list-item-group')
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();
...@@ -227,7 +227,7 @@ ...@@ -227,7 +227,7 @@
console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj)); console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj));
console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('listItemGroup') expect(obj.$type).assertEqual('list-item-group')
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();
...@@ -246,7 +246,7 @@ ...@@ -246,7 +246,7 @@
console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj)); console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj));
console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('listItemGroup') expect(obj.$type).assertEqual('list-item-group')
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();
...@@ -265,7 +265,7 @@ ...@@ -265,7 +265,7 @@
console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj)); console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj));
console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('listItemGroup') expect(obj.$type).assertEqual('list-item-group')
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();
...@@ -284,7 +284,7 @@ ...@@ -284,7 +284,7 @@
console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj)); console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj));
console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('listItemGroup') expect(obj.$type).assertEqual('list-item-group')
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();
...@@ -303,10 +303,10 @@ ...@@ -303,10 +303,10 @@
console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj)); console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj));
console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('listItemGroup') expect(obj.$type).assertEqual('list-item-group')
expect(obj.$attrs.id).assertEqual('dataProp') expect(obj.$attrs.id).assertEqual('dataProp')
expect(obj.$attrs.datalistItemGroup).assertEqual(undefined); expect(obj.$attrs.datalistItemGroup).assertEqual(undefined);
console.info("[listItemGroupProps] get datalistItemGroup value is: " + JSON.stringify(obj.$attrs.datalistItemGroup)); console.info("[listGroupProps] value is: " + JSON.stringify(obj.$attrs.datalistItemGroup));
done(); done();
}); });
...@@ -323,10 +323,10 @@ ...@@ -323,10 +323,10 @@
console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj)); console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj));
console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('listItemGroup') expect(obj.$type).assertEqual('list-item-group')
expect(obj.$attrs.id).assertEqual('dataPropNone') expect(obj.$attrs.id).assertEqual('dataPropNone')
expect(obj.$attrs.datalistItemGroup).assertEqual(undefined) expect(obj.$attrs.datalistItemGroup).assertEqual(undefined)
console.info("[listItemGroupProps] get datalistItemGroup value is: " + JSON.stringify(obj.$attrs.datalistItemGroup)); console.info("[listGroupProps] value is: " + JSON.stringify(obj.$attrs.datalistItemGroup));
done(); done();
}); });
...@@ -343,7 +343,7 @@ ...@@ -343,7 +343,7 @@
console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj)); console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj));
console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('listItemGroup') expect(obj.$type).assertEqual('list-item-group')
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();
...@@ -362,7 +362,7 @@ ...@@ -362,7 +362,7 @@
console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj)); console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj));
console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('listItemGroup') expect(obj.$type).assertEqual('list-item-group')
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();
...@@ -381,7 +381,7 @@ ...@@ -381,7 +381,7 @@
console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj)); console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj));
console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('listItemGroup') expect(obj.$type).assertEqual('list-item-group')
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();
...@@ -400,7 +400,7 @@ ...@@ -400,7 +400,7 @@
console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj)); console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj));
console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('listItemGroup') expect(obj.$type).assertEqual('list-item-group')
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("[listItemGroupProps] get clickEffect value is: " + JSON.stringify(obj.$attrs.clickEffect)); console.info("[listItemGroupProps] get clickEffect value is: " + JSON.stringify(obj.$attrs.clickEffect));
...@@ -420,7 +420,7 @@ ...@@ -420,7 +420,7 @@
console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj)); console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj));
console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('listItemGroup') expect(obj.$type).assertEqual('list-item-group')
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();
...@@ -439,7 +439,7 @@ ...@@ -439,7 +439,7 @@
console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj)); console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj));
console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('listItemGroup') expect(obj.$type).assertEqual('list-item-group')
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();
...@@ -458,7 +458,7 @@ ...@@ -458,7 +458,7 @@
console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj)); console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj));
console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('listItemGroup') expect(obj.$type).assertEqual('list-item-group')
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();
...@@ -477,7 +477,7 @@ ...@@ -477,7 +477,7 @@
console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj)); console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj));
console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('listItemGroup') expect(obj.$type).assertEqual('list-item-group')
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();
...@@ -496,7 +496,7 @@ ...@@ -496,7 +496,7 @@
console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj)); console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj));
console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('listItemGroup') expect(obj.$type).assertEqual('list-item-group')
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("[listItemGroupProps] get for value is: " + JSON.stringify(obj.$attrs.for)); console.info("[listItemGroupProps] get for value is: " + JSON.stringify(obj.$attrs.for));
...@@ -516,13 +516,12 @@ ...@@ -516,13 +516,12 @@
console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj)); console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj));
console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('listItemGroup') expect(obj.$type).assertEqual('list-item-group')
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("[listItemGroupProps] get for value is: " + JSON.stringify(obj.$attrs.for)); console.info("[listItemGroupProps] get for value is: " + JSON.stringify(obj.$attrs.for));
done(); done();
}); });
/** /**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testlistItemGroupForPropThree * @tc.name testlistItemGroupForPropThree
...@@ -536,7 +535,7 @@ ...@@ -536,7 +535,7 @@
console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj)); console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj));
console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('listItemGroup') expect(obj.$type).assertEqual('list-item-group')
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("[listItemGroupProps] get for value is: " + JSON.stringify(obj.$attrs.for)); console.info("[listItemGroupProps] get for value is: " + JSON.stringify(obj.$attrs.for));
...@@ -556,7 +555,7 @@ ...@@ -556,7 +555,7 @@
console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj)); console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj));
console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('listItemGroup') expect(obj.$type).assertEqual('list-item-group')
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("[listItemGroupProps] get for value is: " + JSON.stringify(obj.$attrs.if)); console.info("[listItemGroupProps] get for value is: " + JSON.stringify(obj.$attrs.if));
...@@ -576,7 +575,7 @@ ...@@ -576,7 +575,7 @@
console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj)); console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj));
console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('listItemGroup') expect(obj.$type).assertEqual('list-item-group')
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("[listItemGroupProps] get show value is: " + JSON.stringify(obj.$attrs.show)); console.info("[listItemGroupProps] get show value is: " + JSON.stringify(obj.$attrs.show));
...@@ -596,7 +595,7 @@ ...@@ -596,7 +595,7 @@
console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj)); console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj));
console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('listItemGroup') expect(obj.$type).assertEqual('list-item-group')
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("[listItemGroupProps] get show value is: " + JSON.stringify(obj.$attrs.show)); console.info("[listItemGroupProps] get show value is: " + JSON.stringify(obj.$attrs.show));
...@@ -616,7 +615,7 @@ ...@@ -616,7 +615,7 @@
console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj)); console.info("[listItemGroupProps] get inspector value is: " + JSON.stringify(obj));
console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[listItemGroupProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('listItemGroup') expect(obj.$type).assertEqual('list-item-group')
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("[listItemGroupProps] get show value is: " + JSON.stringify(obj.$attrs.show)); console.info("[listItemGroupProps] get show value is: " + JSON.stringify(obj.$attrs.show));
...@@ -638,7 +637,7 @@ ...@@ -638,7 +637,7 @@
console.info("[listLitemGruopProps] get inspector value is: " + JSON.stringify(obj)); console.info("[listLitemGruopProps] get inspector value is: " + JSON.stringify(obj));
console.info("[listLitemGruopProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[listLitemGruopProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('listLitemGruop') expect(obj.$type).assertEqual('list-item-group')
expect(obj.$attrs.id).assertEqual('Type') expect(obj.$attrs.id).assertEqual('Type')
expect(obj.$attrs.type).assertEqual('default') expect(obj.$attrs.type).assertEqual('default')
console.info("[listLitemGruopProps] get type value is: " + JSON.stringify(obj.$attrs.type)); console.info("[listLitemGruopProps] get type value is: " + JSON.stringify(obj.$attrs.type));
...@@ -658,9 +657,9 @@ ...@@ -658,9 +657,9 @@
console.info("[listLitemGruopProps] get inspector value is: " + JSON.stringify(obj)); console.info("[listLitemGruopProps] get inspector value is: " + JSON.stringify(obj));
console.info("[listLitemGruopProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); console.info("[listLitemGruopProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('listLitemGruop') expect(obj.$type).assertEqual('list-item-group')
expect(obj.$attrs.id).assertEqual('TypeNone') expect(obj.$attrs.id).assertEqual('TypeNone')
expect(obj.$attrs.type).assertEqual(undefined) expect(obj.$attrs.type).assertEqual('default')
console.info("[listLitemGruopProps] get type value is: " + JSON.stringify(obj.$attrs.type)); console.info("[listLitemGruopProps] get type value is: " + JSON.stringify(obj.$attrs.type));
done(); done();
}); });
......
...@@ -286,7 +286,7 @@ ...@@ -286,7 +286,7 @@
expect(obj.$type).assertEqual('list') expect(obj.$type).assertEqual('list')
expect(obj.$attrs.id).assertEqual('focusablePropNone') expect(obj.$attrs.id).assertEqual('focusablePropNone')
expect(obj.$attrs.focusable).assertEqual('false') expect(obj.$attrs.focusable).assertEqual(undefined)
done(); done();
}); });
...@@ -680,7 +680,7 @@ ...@@ -680,7 +680,7 @@
expect(obj.$type).assertEqual('list') expect(obj.$type).assertEqual('list')
expect(obj.$attrs.id).assertEqual('scrollPageNone') expect(obj.$attrs.id).assertEqual('scrollPageNone')
expect(obj.$attrs.scrollpage).assertEqual(undefined) expect(obj.$attrs.scrollpage).assertEqual('false')
console.info("[listProps] get scrollpage value is: " + JSON.stringify(obj.$attrs.scrollpage)); console.info("[listProps] get scrollpage value is: " + JSON.stringify(obj.$attrs.scrollpage));
done(); done();
}); });
...@@ -781,7 +781,7 @@ ...@@ -781,7 +781,7 @@
expect(obj.$type).assertEqual('list') expect(obj.$type).assertEqual('list')
expect(obj.$attrs.id).assertEqual('scrollbarNone') expect(obj.$attrs.id).assertEqual('scrollbarNone')
expect(obj.$attrs.scrollbar).assertEqual('on') expect(obj.$attrs.scrollbar).assertEqual('off')
console.info("[listProps] get scrollbar value is: " + JSON.stringify(obj.$attrs.scrollbar)); console.info("[listProps] get scrollbar value is: " + JSON.stringify(obj.$attrs.scrollbar));
done(); done();
}); });
...@@ -861,7 +861,7 @@ ...@@ -861,7 +861,7 @@
expect(obj.$type).assertEqual('list') expect(obj.$type).assertEqual('list')
expect(obj.$attrs.id).assertEqual('scrolleffectNone') expect(obj.$attrs.id).assertEqual('scrolleffectNone')
expect(obj.$attrs.scrolleffect).assertEqual(undefined) expect(obj.$attrs.scrolleffect).assertEqual('spring')
console.info("[listProps] get scrolleffect value is: " + JSON.stringify(obj.$attrs.scrolleffect)); console.info("[listProps] get scrolleffect value is: " + JSON.stringify(obj.$attrs.scrolleffect));
done(); done();
}); });
...@@ -941,7 +941,7 @@ ...@@ -941,7 +941,7 @@
expect(obj.$type).assertEqual('list') expect(obj.$type).assertEqual('list')
expect(obj.$attrs.id).assertEqual('indexerNone') expect(obj.$attrs.id).assertEqual('indexerNone')
expect(obj.$attrs.indexer).assertEqual(undefined) expect(obj.$attrs.indexer).assertEqual('false')
console.info("[listProps] get indexer value is: " + JSON.stringify(obj.$attrs.indexer)); console.info("[listProps] get indexer value is: " + JSON.stringify(obj.$attrs.indexer));
done(); done();
}); });
...@@ -1001,7 +1001,7 @@ ...@@ -1001,7 +1001,7 @@
expect(obj.$type).assertEqual('list') expect(obj.$type).assertEqual('list')
expect(obj.$attrs.id).assertEqual('indexercircleNone') expect(obj.$attrs.id).assertEqual('indexercircleNone')
expect(obj.$attrs.indexercircle).assertEqual(undefined) expect(obj.$attrs.indexercircle).assertEqual('false')
console.info("[listProps] get indexercircle value is: " + JSON.stringify(obj.$attrs.indexercircle)); console.info("[listProps] get indexercircle value is: " + JSON.stringify(obj.$attrs.indexercircle));
done(); done();
}); });
...@@ -1061,7 +1061,7 @@ ...@@ -1061,7 +1061,7 @@
expect(obj.$type).assertEqual('list') expect(obj.$type).assertEqual('list')
expect(obj.$attrs.id).assertEqual('indexermultiNone') expect(obj.$attrs.id).assertEqual('indexermultiNone')
expect(obj.$attrs.indexermulti).assertEqual(undefined) expect(obj.$attrs.indexermulti).assertEqual('true')
console.info("[listProps] get indexermulti value is: " + JSON.stringify(obj.$attrs.indexermulti)); console.info("[listProps] get indexermulti value is: " + JSON.stringify(obj.$attrs.indexermulti));
done(); done();
}); });
...@@ -1121,7 +1121,7 @@ ...@@ -1121,7 +1121,7 @@
expect(obj.$type).assertEqual('list') expect(obj.$type).assertEqual('list')
expect(obj.$attrs.id).assertEqual('indexerbubbleNone') expect(obj.$attrs.id).assertEqual('indexerbubbleNone')
expect(obj.$attrs.indexerbubble).assertEqual(undefined) expect(obj.$attrs.indexerbubble).assertEqual('true')
console.info("[listProps] get indexerbubble value is: " + JSON.stringify(obj.$attrs.indexerbubble)); console.info("[listProps] get indexerbubble value is: " + JSON.stringify(obj.$attrs.indexerbubble));
done(); done();
}); });
...@@ -1181,7 +1181,7 @@ ...@@ -1181,7 +1181,7 @@
expect(obj.$type).assertEqual('list') expect(obj.$type).assertEqual('list')
expect(obj.$attrs.id).assertEqual('dividerNone') expect(obj.$attrs.id).assertEqual('dividerNone')
expect(obj.$attrs.divider).assertEqual(undefined) expect(obj.$attrs.divider).assertEqual('false')
console.info("[listProps] get divider value is: " + JSON.stringify(obj.$attrs.divider)); console.info("[listProps] get divider value is: " + JSON.stringify(obj.$attrs.divider));
done(); done();
}); });
...@@ -1261,7 +1261,7 @@ ...@@ -1261,7 +1261,7 @@
expect(obj.$type).assertEqual('list') expect(obj.$type).assertEqual('list')
expect(obj.$attrs.id).assertEqual('shapemodeNone') expect(obj.$attrs.id).assertEqual('shapemodeNone')
expect(obj.$attrs.shapemode).assertEqual(undefined) expect(obj.$attrs.shapemode).assertEqual('default')
console.info("[listProps] get shapemode value is: " + JSON.stringify(obj.$attrs.shapemode)); console.info("[listProps] get shapemode value is: " + JSON.stringify(obj.$attrs.shapemode));
done(); done();
}); });
...@@ -1321,7 +1321,7 @@ ...@@ -1321,7 +1321,7 @@
expect(obj.$type).assertEqual('list') expect(obj.$type).assertEqual('list')
expect(obj.$attrs.id).assertEqual('chainanimationNone') expect(obj.$attrs.id).assertEqual('chainanimationNone')
expect(obj.$attrs.chainanimation).assertEqual(undefined) expect(obj.$attrs.chainanimation).assertEqual('false')
console.info("[listProps] get chainanimation value is: " + JSON.stringify(obj.$attrs.chainanimation)); console.info("[listProps] get chainanimation value is: " + JSON.stringify(obj.$attrs.chainanimation));
done(); done();
}); });
...@@ -1381,7 +1381,7 @@ ...@@ -1381,7 +1381,7 @@
expect(obj.$type).assertEqual('list') expect(obj.$type).assertEqual('list')
expect(obj.$attrs.id).assertEqual('updateeffectNone') expect(obj.$attrs.id).assertEqual('updateeffectNone')
expect(obj.$attrs.updateeffect).assertEqual(undefined) expect(obj.$attrs.updateeffect).assertEqual('false')
console.info("[listProps] get updateeffect value is: " + JSON.stringify(obj.$attrs.updateeffect)); console.info("[listProps] get updateeffect value is: " + JSON.stringify(obj.$attrs.updateeffect));
done(); done();
}); });
......
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/audio_js_standard/audioManager/src/main/java" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册