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