未验证 提交 550db230 编写于 作者: O openharmony_ci 提交者: Gitee

!6363 ace_ets_component_two部分未走回调用例修复 apilack、attrlack页 面代码编译warning修复

Merge pull request !6363 from Nicklaus/master
......@@ -20,7 +20,6 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default
struct AlphabetIndexerOnSelect {
private value: string[] = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N']
private content: string = "AlphabetIndexer Page"
......
......@@ -21,7 +21,6 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default
struct CheckBoxGroupSelectAll {
@State isSelect: boolean = true;
......
......@@ -18,7 +18,6 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default
struct CircleNe {
@State w: string = "100px";
@State h: string = "100px";
......
......@@ -19,7 +19,7 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default struct CommonBackgroundBlurStyle {
struct CommonBackgroundBlurStyle {
@State value: string = ''
aboutToAppear() {
......
......@@ -24,7 +24,7 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default struct Common_ts_ets_apiStaticClear {
struct Common_ts_ets_apiStaticClear {
@StorageLink('varA') varA: number = 2
private label: string = 'count'
@StorageLink('highScore') highScore: number = 0
......
......@@ -19,7 +19,7 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default struct CommonBackgroundBlurStyle {
struct CommonBackgroundBlurStyle {
@State value: string = ''
isEnv:boolean = Environment.EnvProp('accessibilityEnabled', 'default')
......
......@@ -19,7 +19,7 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default struct PanelBackgroundMask {
struct PanelBackgroundMask {
@State mode: PanelMode = PanelMode.Full
@State navBarPosition:PanelMode = PanelMode.Full
aboutToAppear() {
......
......@@ -18,7 +18,6 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default
struct StackAlignContent {
aboutToAppear() {
......
......@@ -18,7 +18,6 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default
struct TabsBarPosition {
private controller: TabsController = new TabsController()
......
......@@ -20,7 +20,7 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default struct CurvesSteps {
struct CurvesSteps {
@State curveApi:string = "success"
@State curve1:ICurve = Curves.springMotion(0.40, 0.99, 0)
@State curve2:ICurve = Curves.responsiveSpringMotion(0.40, 0.99, 0);
......
......@@ -19,7 +19,7 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default struct DomCreateElement {
struct DomCreateElement {
aboutToAppear() {
Log.showInfo(TAG, `aboutToAppear DomCreateElement start`)
}
......
......@@ -18,7 +18,6 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default
struct EllipseNe {
@State w: string = "300.00px";
@State h: string = "300.00px";
......
......@@ -19,7 +19,7 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default struct FeatureAbilityStartAbility {
struct FeatureAbilityStartAbility {
aboutToAppear() {
Log.showInfo(TAG, `aboutToAppear FeatureAbilityStartAbility start`)
}
......
......@@ -18,7 +18,6 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default
struct GaugeColors {
aboutToAppear() {
......
......@@ -19,7 +19,6 @@ import events_emitter from '@ohos.events.emitter';
@Entry
@Component
export default
struct GestureSetDirection {
@State offsetX: number = 10
@State offsetY: number = 10
......
......@@ -18,7 +18,6 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default
struct GridMaxCount {
@State Number: String[] = ['5', '6', '7', '8', '9']
aboutToAppear() {
......
......@@ -19,7 +19,6 @@ import events_emitter from '@ohos.events.emitter';
@Entry
@Component
export default
struct GridItemOnSelect {
@State Number: String[] = ['5', '6', '7', '8', '9']
@State isSelect: boolean = false;
......
......@@ -18,7 +18,6 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default
struct Grid_colSpan {
aboutToAppear() {
......
......@@ -18,7 +18,6 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default
struct Grid_rowOnBreakpointChange {
aboutToAppear() {
......
......@@ -19,7 +19,7 @@ import events_emitter from '@ohos.events.emitter';
@Entry
@Component
export default
struct ImageExample {
build() {
Column() {
......
......@@ -19,7 +19,6 @@ import events_emitter from '@ohos.events.emitter';
@Entry
@Component
export default
struct Inspector {
@State message: string = 'test'
@State setColor:string = '#F9CF93'
......
......@@ -148,7 +148,6 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default
struct LazyForEachOnDataAdd {
private data: MyDataSource = new MyDataSource()
private scroller: Scroller = new Scroller()
......
......@@ -19,7 +19,6 @@ let my_line = new Line()
@Entry
@Component
export default
struct LineNe {
aboutToAppear() {
......
......@@ -19,7 +19,6 @@ import events_emitter from '@ohos.events.emitter';
@Entry
@Component
export default
struct ListLanes {
private arr: number[] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
@State listPosition: number = 0 // 0代表滚动到List顶部,1代表中间值,2代表滚动到List底
......
......@@ -19,7 +19,6 @@ import events_emitter from '@ohos.events.emitter';
@Entry
@Component
export default
struct List_itemOnSelect {
aboutToAppear() {
Log.showInfo(TAG, `aboutToAppear List_itemOnSelect start`)
......
......@@ -20,7 +20,7 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default struct MediaQueryOff {
struct MediaQueryOff {
@State color: string = '#000'
@State text: string = 'Test'
listener = mediaquery.matchMediaSync('(orientation: landscape)')
......
......@@ -18,7 +18,7 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default struct NavigatorTarget {
struct NavigatorTarget {
aboutToAppear() {
Log.showInfo(TAG, `aboutToAppear NavigatorTarget start`)
}
......
......@@ -19,7 +19,7 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default struct PanelBackgroundMask {
struct PanelBackgroundMask {
@State mode: PanelMode = PanelMode.Full
aboutToAppear() {
......
......@@ -18,7 +18,7 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default struct PathNew {
struct PathNew {
private path: any = new Path({
width: 100,
height: 100,
......
......@@ -18,7 +18,7 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default struct PolyLineNe {
struct PolyLineNe {
private polyline: PolylineAttribute = new Polyline({
width: 100,
height: 100
......
......@@ -18,7 +18,7 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default struct PolygonNe {
struct PolygonNe {
private polygon: PolygonAttribute = new Polygon({
width: 100,
height: 100
......
......@@ -18,7 +18,6 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default
struct ProgressStyle {
aboutToAppear() {
......
......@@ -20,7 +20,7 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default struct PromptShowDialog {
struct PromptShowDialog {
aboutToAppear() {
Log.showInfo(TAG, `aboutToAppear PromptShowDialog start`)
}
......
......@@ -20,7 +20,7 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default struct PromptShowDialog {
struct PromptShowDialog {
aboutToAppear() {
Log.showInfo(TAG, `aboutToAppear PromptShowDialog start`)
}
......
......@@ -18,7 +18,7 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default struct RectNe {
struct RectNe {
private rect: RectAttribute = new Rect({
width: '90%',
height: 50,
......
......@@ -21,7 +21,7 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default struct RouterEnableAlertBeforeBackPage {
struct RouterEnableAlertBeforeBackPage {
aboutToAppear() {
Log.showInfo(TAG, `aboutToAppear RouterEnableAlertBeforeBackPage start`)
......
......@@ -18,7 +18,6 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default
struct ScrollOnScrollBegin {
scroller: Scroller = new Scroller()
private arr: number[] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
......
......@@ -19,7 +19,7 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default struct SearchOnCut {
struct SearchOnCut {
controller: SearchController = new SearchController()
aboutToAppear() {
......
......@@ -19,7 +19,6 @@ import events_emitter from '@ohos.events.emitter';
@Entry
@Component
export default
struct SelectOnSelect {
@State selectIndex:number = 1
......
......@@ -19,7 +19,6 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default
struct ShapeNe {
aboutToAppear() {
Log.showInfo(TAG, `aboutToAppear ShapeNe start`)
......
......@@ -18,7 +18,6 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default
struct SideBarShowSideBar {
normalIcon : Resource = $r("app.media.user")
selectedIcon: Resource = $r("app.media.userFull")
......
......@@ -18,7 +18,6 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default
struct StackAlignContent {
aboutToAppear() {
......
......@@ -22,7 +22,6 @@ let storage2 = new LocalStorage({"PropA":47});
@Entry(storage1)
@Component
export default
struct StateManagementGetShared {
@LocalStorageLink("storageSimpleProp") simpleVarName: number = 0
......
......@@ -44,7 +44,6 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default
struct SwiperCurve {
private swiperController: SwiperController = new SwiperController()
......
......@@ -18,7 +18,6 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default
struct TabsBarPosition {
private controller: TabsController = new TabsController()
......
......@@ -18,7 +18,6 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default
struct TextMinFontSize {
aboutToAppear() {
......
......@@ -18,7 +18,6 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default
struct TextAreaOnCut {
aboutToAppear() {
......
......@@ -18,7 +18,6 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default
struct TextInputOnEditChange {
@State num: number = 0
......
......@@ -18,7 +18,6 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default
struct TextPickerDefaultPickerItemHeight {
private select: number = 1
private fruits: string[] = ['1.apple', '2.orange','3.peach', '4.grape']
......
......@@ -20,7 +20,7 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default struct uiAppearanceSetDarkMode {
struct uiAppearanceSetDarkMode {
xcomponentController: XComponentController = new XComponentController()
aboutToAppear() {
......
......@@ -19,7 +19,6 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default
struct VideoOnFullscreenChange {
@State srcs: Resource = $rawfile('videoTest.mp4');
......
......@@ -19,7 +19,7 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default struct XcomponentGetXComponentContext {
struct XcomponentGetXComponentContext {
xcomponentController: XComponentController = new XComponentController()
aboutToAppear() {
......
......@@ -19,7 +19,6 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default
struct AlertDialogCenterStart {
aboutToAppear() {
......
......@@ -19,7 +19,6 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default
struct AnimatorOnframe {
aboutToAppear() {
......
......@@ -19,7 +19,6 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default
struct CanvasActualBoundingBoxAscent {
private settings: RenderingContextSettings = new RenderingContextSettings(true)//antialias:boolean
......
......@@ -19,7 +19,6 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default
struct CheckBoxGroup {
aboutToAppear() {
......
......@@ -20,7 +20,6 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default
struct CheckBoxGroupPart {
aboutToAppear() {
......
......@@ -19,7 +19,6 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default
struct ColorEnum {
build() {
Column() {
......
......@@ -19,7 +19,7 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default struct CommonColorMode {
struct CommonColorMode {
// popup构造器定义弹框内容
@Builder popupBuilder() {
......
......@@ -19,7 +19,6 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default
struct CopyOption {
aboutToAppear() {
......
......@@ -19,7 +19,6 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default
struct CurvesEaseOut {
@State widthSize: number = 400
@State heightSize: number = 200
......
......@@ -19,7 +19,7 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default struct DatePickerLunar {
struct DatePickerLunar {
private selectedDate: Date = new Date('2021-08-08')
aboutToAppear() {
......
......@@ -19,7 +19,6 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default
struct EnumsCancel {
@State widthSize: number = 200
......
......@@ -19,7 +19,7 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default struct FeatureAbilityStartAbility {
struct FeatureAbilityStartAbility {
aboutToAppear() {
Log.showInfo(TAG, `aboutToAppear FeatureAbilityStartAbility start`)
}
......
......@@ -19,7 +19,7 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default struct GestureParallel {
struct GestureParallel {
aboutToAppear() {
Log.showInfo(TAG, `aboutToAppear GestureParallel start`)
}
......
......@@ -19,7 +19,6 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default
struct GridColXl {
aboutToAppear() {
......
......@@ -20,7 +20,6 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default
struct GridRowXl {
aboutToAppear() {
......
......@@ -20,7 +20,6 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default
struct HoverEffect {
aboutToAppear() {
......
......@@ -20,7 +20,6 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default
struct ListIdle {
private arr: number[] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
@State editFlag: boolean = false
......
......@@ -19,7 +19,6 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default
struct LoadingProgressCircular {
@State circular:LoadingProgressStyle = LoadingProgressStyle.Circular;
@State orbital:LoadingProgressStyle = LoadingProgressStyle.Orbital;
......
......@@ -19,7 +19,6 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default
struct ProgressScaleCount {
aboutToAppear() {
......
......@@ -19,7 +19,6 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default
struct RadioGroup {
aboutToAppear() {
......
......@@ -21,7 +21,6 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default
struct RefreshDrag {
dragRefresh() {
var rect = Utils.getComponentRect("Refresh")
......
......@@ -19,7 +19,7 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default struct FormComponentFormDimension {
struct FormComponentFormDimension {
@State target: WindowAnimationTarget = undefined // 通过windowAnimationManager获取
aboutToAppear() {
......
......@@ -20,7 +20,6 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default
struct ResponseType {
aboutToAppear() {
......
......@@ -22,7 +22,6 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default
struct RouterStandard {
......
......@@ -19,7 +19,7 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default struct SidebarIcons {
struct SidebarIcons {
@State arr: number[] = [1, 2]
aboutToAppear() {
......
......@@ -21,7 +21,7 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default struct SliderMoving {
struct SliderMoving {
@State outSetValue: number = 40;
@State move:SliderChangeMode = SliderChangeMode.Moving;
slide() {
......
......@@ -19,7 +19,7 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default struct StateManagementDARK {
struct StateManagementDARK {
aboutToAppear() {
Log.showInfo(TAG, `aboutToAppear StateManagementDARK start`)
}
......
......@@ -19,7 +19,7 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default struct StepperItemDisabled {
struct StepperItemDisabled {
@State currentIndex: number = 0
@State firstState: ItemState = ItemState.Normal
@State secondState: ItemState = ItemState.Normal
......
......@@ -19,7 +19,7 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default struct SwiperMask {
struct SwiperMask {
private swiperController: SwiperController = new SwiperController()
private data: MyDataSource = new MyDataSource([])
......
......@@ -19,7 +19,7 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default struct Text_inputPhoneNumber {
struct Text_inputPhoneNumber {
@State text: string = ''
@State text1: string = 'PhoneNumber'
@State text2: string = 'Address'
......
......@@ -23,7 +23,6 @@ uiAppearance.DarkMode.ALWAYS_DARK
@Entry
@Component
export default
struct UiAppearanceALWAYS_DARK {
aboutToAppear() {
......
......@@ -20,7 +20,7 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default struct UnitsModuleName {
struct UnitsModuleName {
@State textHeight: number = 50
aboutToAppear() {
......
......@@ -19,7 +19,6 @@ const TAG = 'ets_apiLack_add';
@Entry
@Component
export default
struct WebEditText {
controller: WebController = new WebController();
webResourceResponse: WebResourceResponse = new WebResourceResponse();
......
......@@ -84,7 +84,7 @@ struct ImageAnimatorExample {
eventId: 114,
priority: events_emitter.EventPriority.LOW
}
console.info("start to emit action state")
console.info("onRepeat start to emit action state")
events_emitter.emit(backEvent, backData)
} catch (err) {
console.info("emit action state err: " + JSON.stringify(err.message))
......@@ -109,7 +109,7 @@ struct ImageAnimatorExample {
eventId: 115,
priority: events_emitter.EventPriority.LOW
}
console.info("button start to emit action state")
console.info("imageAnimator 115 button start to emit action state")
events_emitter.emit(backEvent, backData)
} catch (err) {
console.info("button emit action state err: " + JSON.stringify(err.message))
......
......@@ -64,7 +64,7 @@ struct PlacementExample {
eventId: 157,
priority: events_emitter.EventPriority.LOW
}
console.info("button start to emit action state")
console.info("PlacementExample button start to emit action state")
events_emitter.emit(backEvent, backData)
}catch(err){
console.info("button emit action state err: " + JSON.stringify(err.message))
......@@ -98,7 +98,7 @@ struct PlacementExample {
eventId: 158,
priority: events_emitter.EventPriority.LOW
}
console.info("button1 start to emit action state")
console.info("custom popupOne button1 start to emit action state")
events_emitter.emit(backEventOne, backDataOne)
}catch(err){
console.info("button1 emit action state err: " + JSON.stringify(err.message))
......
......@@ -74,6 +74,7 @@ export default function animationStatusJsunit() {
let callback = (indexEvent) => {
console.info("animationStatus03 get state result is: " + JSON.stringify(indexEvent));
expect(indexEvent.data.animationStatus).assertEqual(AnimationStatus.Paused);
done();
}
let indexEvent = {
eventId: 56,
......@@ -87,7 +88,6 @@ export default function animationStatusJsunit() {
console.info("animationStatus03 click result is: " + JSON.stringify(sendEventByKey('button2',10,"")));
await Utils.sleep(1000);
console.info('animationStatus03 END');
done();
});
it('animationStatus04', 0, async function (done) {
......@@ -96,6 +96,7 @@ export default function animationStatusJsunit() {
let callback = (indexEvent) => {
console.info("animationStatus04 get state result is: " + JSON.stringify(indexEvent));
expect(indexEvent.data.animationStatus).assertEqual(AnimationStatus.Stopped);
done();
}
let indexEvent = {
eventId: 57,
......@@ -109,7 +110,6 @@ export default function animationStatusJsunit() {
console.info("animationStatus04 click result is: " + JSON.stringify(sendEventByKey('button3',10,"")));
await Utils.sleep(1000);
console.info('animationStatus04 END');
done();
});
})
}
\ No newline at end of file
......@@ -53,6 +53,7 @@ export default function aboutToDisappearJsunit() {
let callback = (indexEvent) => {
console.info("bindMenuTest_0100 get state result is: " + JSON.stringify(indexEvent));
expect(indexEvent.data.ACTION).assertEqual(true);
done();
}
let indexEvent = {
eventId: 64,
......@@ -66,7 +67,6 @@ export default function aboutToDisappearJsunit() {
console.info("bindMenuTest_0100 button click result is: " + JSON.stringify(sendEventByKey('button',10,"")));
await Utils.sleep(1000);
console.info('bindMenuTest_0100 END');
done();
});
})
}
\ No newline at end of file
......@@ -52,6 +52,7 @@ export default function customPopupOptionJsunit(){
console.info("bindPopupTest_0100 get state result is: " + JSON.stringify(indexEvent));
expect(indexEvent.data.enableArrow).assertEqual(true);
expect(indexEvent.data.maskColor).assertEqual(0x33000000);
done();
}
let indexEvent = {
eventId: 67,
......@@ -67,7 +68,6 @@ export default function customPopupOptionJsunit(){
console.info("bindPopupTest_0100 click Two result is: " + JSON.stringify(sendEventByKey('image',10,"")));
await Utils.sleep(1000);
console.info('bindPopupTest_0100 END');
done();
});
it('bindPopupTest_0200', 0, async function (done) {
......
......@@ -52,6 +52,7 @@ export default function transFormJsunit() {
console.info("configurationTest_0100 get configurationEvent result is: " + JSON.stringify(backData));
expect(backData.data.COUNTRY).assertEqual('');
expect(backData.data.DIR).assertEqual('ltr');
done();
}
var configurationEvent = {
eventId: 78,
......@@ -63,7 +64,6 @@ export default function transFormJsunit() {
}
console.info("testAppear01 click result is: " + JSON.stringify(sendEventByKey('button', 10, "")));
console.info('[configurationTest01] END');
done();
});
})
}
......
......@@ -49,10 +49,11 @@ export default function imageAnimatorJsunit(){
it('imageAnimatorTest_0100', 0, async function (done) {
console.info('imageAnimatorTest_0100 START');
await Utils.sleep(1500);
await Utils.sleep(500);
let callback = (indexEvent) => {
console.info("imageAnimatorTest_0100 get state result is: " + JSON.stringify(indexEvent));
expect(indexEvent.data.state).assertEqual(AnimationStatus.Running);
expect(indexEvent.data.state).assertEqual(1);
done();
}
let indexEvent = {
eventId: 115,
......@@ -60,13 +61,11 @@ export default function imageAnimatorJsunit(){
}
try {
events_emitter.on(indexEvent, callback);
console.info("imageAnimatorTest_0100 click result is: " + JSON.stringify(sendEventByKey('button',10,"")));
} catch (err) {
console.info("imageAnimatorTest_0100 on events_emitter err : " + JSON.stringify(err));
}
console.info("imageAnimatorTest_0100 click result is: " + JSON.stringify(sendEventByKey('button',10,"")));
await Utils.sleep(1000);
console.info('imageAnimatorTest_0100 END');
done();
});
it('imageAnimatorTest_0200', 0, async function (done) {
......@@ -76,6 +75,7 @@ export default function imageAnimatorJsunit(){
console.info("imageAnimatorTest_0200 get state result is: " + JSON.stringify(indexEvent));
expect(indexEvent.data.state).assertEqual(AnimationStatus.Paused);
expect(indexEvent.data.fixedSize).assertEqual(false);
done();
}
let indexEvent = {
eventId: 116,
......@@ -89,7 +89,6 @@ export default function imageAnimatorJsunit(){
console.info("imageAnimatorTest_0200 click result is: " + JSON.stringify(sendEventByKey('button1',10,"")));
await Utils.sleep(1000);
console.info('imageAnimatorTest_0200 END');
done();
});
it('imageAnimatorTest_0300', 0, async function (done) {
......@@ -99,6 +98,7 @@ export default function imageAnimatorJsunit(){
console.info("imageAnimatorTest_0300 get state result is: " + JSON.stringify(indexEvent));
expect(indexEvent.data.state).assertEqual(AnimationStatus.Stopped);
expect(indexEvent.data.preDecode).assertEqual(0);
done();
}
let indexEvent = {
eventId: 117,
......@@ -112,7 +112,6 @@ export default function imageAnimatorJsunit(){
console.info("imageAnimatorTest_0300 click result is: " + JSON.stringify(sendEventByKey('button2',10,"")));
await Utils.sleep(1000);
console.info('imageAnimatorTest_0300 END');
done();
});
it('imageAnimatorTest_0400', 0, async function (done) {
......@@ -120,7 +119,8 @@ export default function imageAnimatorJsunit(){
await Utils.sleep(1500);
let callback = (indexEvent) => {
console.info("imageAnimatorTest_0400 get state result is: " + JSON.stringify(indexEvent));
expect(indexEvent.data.fillMode).assertEqual(Forwards);
expect(indexEvent.data.fillMode).assertEqual(0);
done();
}
let indexEvent = {
eventId: 118,
......@@ -134,7 +134,6 @@ export default function imageAnimatorJsunit(){
console.info("imageAnimatorTest_0400 click result is: " + JSON.stringify(sendEventByKey('button3',10,"")));
await Utils.sleep(1000);
console.info('imageAnimatorTest_0400 END');
done();
});
it('imageAnimatorTest_0500', 0, async function (done) {
......@@ -143,6 +142,7 @@ export default function imageAnimatorJsunit(){
let callback = (indexEvent) => {
console.info("imageAnimatorTest_0500 get state result is: " + JSON.stringify(indexEvent));
expect(indexEvent.data.iterations).assertEqual(1);
done();
}
let indexEvent = {
eventId: 119,
......@@ -156,7 +156,6 @@ export default function imageAnimatorJsunit(){
console.info("imageAnimatorTest_0500 click result is: " + JSON.stringify(sendEventByKey('button4',10,"")));
await Utils.sleep(1000);
console.info('imageAnimatorTest_0500 END');
done();
});
it('imageAnimatorTest_0600', 0, async function (done) {
......@@ -202,6 +201,7 @@ export default function imageAnimatorJsunit(){
let callbackOne = (indexEventOne) => {
console.info("imageAnimatorTest_0700 get state result is: " + JSON.stringify(indexEventOne));
expect(indexEventOne.data.preDecode).assertEqual(2);
done();
}
let indexEventOne = {
eventId: 120,
......@@ -215,7 +215,6 @@ export default function imageAnimatorJsunit(){
console.info("imageAnimatorTest_0700 click result is: " + JSON.stringify(sendEventByKey('button5',10,"")));
await Utils.sleep(1000);
console.info('imageAnimatorTest_0700 END');
done();
});
})
}
\ No newline at end of file
......@@ -63,9 +63,10 @@ export default function navigationJsunit() {
let callback = (indexEvent) => {
console.info("testNavigation_200 get state result is: " + JSON.stringify(indexEvent));
expect(indexEvent.data.ACTION).assertEqual(false);
done();
}
let indexEvent = {
eventId: 136,
eventId: 1366,
priority: events_emitter.EventPriority.LOW
}
try {
......@@ -76,7 +77,6 @@ export default function navigationJsunit() {
console.info("testNavigation_200 click result is: " + JSON.stringify(sendEventByKey('NavigationContent1',10,"")));
await Utils.sleep(2000);
console.info('testNavigation_200 END');
done();
});
it('testNavigation_300', 0, async function (done) {
......
......@@ -51,6 +51,7 @@ export default function pieceJsunit() {
let callback = (indexEvent) => {
console.info("test_pieceCode_01 get state result is: " + JSON.stringify(indexEvent));
expect(indexEvent.data.showDelete).assertEqual(true);
done();
}
let indexEvent = {
eventId: 156,
......@@ -66,6 +67,7 @@ export default function pieceJsunit() {
var callback1 = (eventData) => {
console.info("test_pieceCode_01 get event state result is: " + JSON.stringify(eventData));
expect(eventData.data.ACTION).assertEqual(true);
done();
}
var innerEventOne = {
eventId: 155,
......@@ -77,7 +79,6 @@ export default function pieceJsunit() {
console.info("test_pieceCode_01 on events_emitter err : " + JSON.stringify(err));
}
console.info('test_pieceCode_01 END');
done();
});
})
}
\ No newline at end of file
......@@ -51,6 +51,7 @@ export default function placementJsunit(){
let callback = (indexEvent) => {
console.info("placementTest_0100 get state result is: " + JSON.stringify(indexEvent));
expect(indexEvent.data.placement).assertEqual(Placement.TopLeft);
done();
}
let indexEvent = {
eventId: 157,
......@@ -65,7 +66,6 @@ export default function placementJsunit(){
await Utils.sleep(1500);
console.info("placementTest_0100 clickOne result is: " + JSON.stringify(sendEventByKey('image',10,"")));
console.info('placementTest_0100 END');
done();
});
it('placementTest_0200', 0, async function (done) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册