提交 0d90f453 编写于 作者: Z zhangrao

add compnent

Signed-off-by: Nzhangrao <zhangrao@huawei.com>
上级 cf4a9bb4
......@@ -36,7 +36,7 @@ export default function animateJsunit() {
console.info("push animate page result:" + JSON.stringify(result));
}
} catch (err) {
console.error("push animate page error:" + JSON.stringify(result));
console.error("push animate page error:" + err);
}
done()
});
......
......@@ -37,7 +37,7 @@ export default function appearJsunit() {
console.info("push appear page result: " + JSON.stringify(result));
}
} catch (err) {
console.error("push appear page error: " + JSON.stringify(result));
console.error("push appear page error: " + err);
}
done()
});
......
......@@ -35,7 +35,7 @@ export default function areaChangeJsunit() {
console.info("push areaChange page success " + JSON.stringify(result));
}
} catch (err) {
console.error("push areaChange page error " + JSON.stringify(result));
console.error("push areaChange page error: " + err);
}
done()
});
......
......@@ -37,7 +37,7 @@ export default function badgeJsunit() {
console.info("push badge page result: " + JSON.stringify(result));
}
} catch (err) {
console.error("push badge page error: " + JSON.stringify(result));
console.error("push badge page error: " + err);
}
done()
});
......
......@@ -37,7 +37,7 @@ export default function buttonJsunit() {
console.info("push button page result: " + JSON.stringify(result));
}
} catch (err) {
console.error("push button page error: " + JSON.stringify(result));
console.error("push button page error: " + err);
}
done()
});
......
......@@ -15,7 +15,6 @@
*/
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "deccjsunit/index.ets";
import router from '@system.router';
import events_emitter from '@ohos.emitter';
import Utils from './Utils';
export default function canvasJsunit() {
......@@ -36,7 +35,7 @@ export default function canvasJsunit() {
console.info("push canvas2 page result:" + JSON.stringify(result));
}
} catch (err) {
console.error("push canvas page error:" + JSON.stringify(result));
console.error("push canvas page error:" + err);
}
done()
});
......
......@@ -15,7 +15,6 @@
*/
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "deccjsunit/index.ets";
import router from '@system.router';
import events_emitter from '@ohos.emitter';
import Utils from './Utils';
export default function canvasJsunit() {
......@@ -36,7 +35,7 @@ export default function canvasJsunit() {
console.info("push canvas page result:" + JSON.stringify(result));
}
} catch (err) {
console.error("push canvas page error:" + JSON.stringify(result));
console.error("push canvas page error:" + err);
}
done()
});
......
......@@ -15,7 +15,6 @@
*/
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "deccjsunit/index.ets";
import router from '@system.router';
import events_emitter from '@ohos.events.emitter';
import Utils from './Utils';
export default function columnJsunit() {
......@@ -36,7 +35,7 @@ export default function columnJsunit() {
console.info("push column page result:" + JSON.stringify(result));
}
} catch (err) {
console.error("push column page error:" + JSON.stringify(result));
console.error("push column page error:" + err);
}
done()
});
......
......@@ -36,7 +36,7 @@ export default function ellipseJsunit() {
console.info("push ellipse page result:" + JSON.stringify(result));
}
} catch (err) {
console.error("push ellipse page error:" + JSON.stringify(result));
console.error("push ellipse page error:" + err);
}
done()
});
......
......@@ -36,7 +36,7 @@ export default function enableJsunit() {
console.info("push enable page result:" + JSON.stringify(result));
}
} catch (err) {
console.error("push enable page error:" + JSON.stringify(result));
console.error("push enable page error:" + err);
}
done()
});
......
......@@ -35,7 +35,7 @@ export default function gaugeJsunit() {
console.info("push gauge page success " + JSON.stringify(result));
}
} catch (err) {
console.error("push gauge page error " + JSON.stringify(err));
console.error("push gauge page error " + err);
}
done()
});
......
......@@ -36,7 +36,7 @@ export default function girdContainerJsunit() {
console.info("push girdContainer page result:" + JSON.stringify(result));
}
} catch (err) {
console.error("push girdContainer page error:" + JSON.stringify(result));
console.error("push girdContainer page error:" + err);
}
done()
});
......
......@@ -36,7 +36,7 @@ export default function gridJsunit() {
console.info('beforeEach push prompt page result:' + JSON.stringify(result));
}
} catch (err) {
console.error('beforeEach push prompt page error:' + JSON.stringify(result));
console.error('beforeEach push prompt page error:' + err);
}
done()
});
......
......@@ -38,7 +38,7 @@ import textStyleJsunit from './general-properties/TextStyleJsunit.test.ets';
import imageEffectsJsunit from './general-properties/ImageEffectsJsunit.test.ets';
import transformJsunit from './general-properties/TransFormJsunit.test.ets';
import gridSettingsJsunit from './general-properties/GridSettingsJsunit.test.ets';
import touchJsunit from './general-properties/touchJsunit.test.ets'
import touchJsunit from './general-properties/TouchJsunit.test.ets'
import backgroundJsunit from './general-properties/BackgroundJsunit.test.ets';
import borderJsunit from './general-properties/BorderJsunit.test.ets';
import flexJsunit from './general-properties/FlexJsunit.test.ets';
......
......@@ -36,7 +36,7 @@ export default function listJsunit() {
console.info("push list page result:" + JSON.stringify(result));
}
} catch (err) {
console.error("push list page error:" + JSON.stringify(result));
console.error("push list page error:" + err);
}
done()
});
......
......@@ -36,7 +36,7 @@ export default function longPressGestureJsunit() {
console.info("push longPressGesture page result:" + JSON.stringify(result));
}
} catch (err) {
console.error("push longPressGesture page error:" + JSON.stringify(result));
console.error("push longPressGesture page error:" + err);
}
done()
});
......
// @ts-nocheck
/**
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
......@@ -35,7 +36,7 @@ export default function motionPathJsunit() {
console.info("push motionPath page success " + JSON.stringify(result));
}
} catch (err) {
console.error("push motionPath page error " + JSON.stringify(result));
console.error("push motionPath page error: " + err);
}
done()
});
......
......@@ -36,7 +36,7 @@ export default function enableJsunit() {
console.info("push overlay page result:" + JSON.stringify(result));
}
} catch (err) {
console.error("push overlay page error:" + JSON.stringify(result));
console.error("push overlay page error:" + err);
}
done()
});
......
// @ts-nocheck
/**
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
......@@ -34,7 +35,7 @@ export default function progressJsunit() {
console.info("push progress page success " + JSON.stringify(result));
}
} catch (err) {
console.error("push progress page error " + JSON.stringify(err));
console.error("push progress page error " + err);
}
done()
});
......
......@@ -35,7 +35,7 @@ export default function qrCodeJsunit() {
console.info("push QrCode page success " + JSON.stringify(result));
}
} catch (err) {
console.error("push QrCode page error " + JSON.stringify(err));
console.error("push QrCode page error: " + err);
}
done()
});
......
......@@ -34,7 +34,7 @@ export default function ratingJsunit() {
console.info("push rating page success " + JSON.stringify(result));
}
} catch (err) {
console.error("push rating page error " + JSON.stringify(err));
console.error("push rating page error: " + err);
}
done()
});
......
......@@ -35,7 +35,7 @@ export default function scrollCodeJsunit() {
console.info("push ScrollCode page success " + JSON.stringify(result));
}
} catch (err) {
console.error("push ScrollCode page error " + JSON.stringify(err));
console.error("push ScrollCode page error: " + err);
}
done()
});
......
......@@ -37,7 +37,7 @@ export default function shapeJsunit() {
console.info("push shape page success " + JSON.stringify(result));
}
} catch (err) {
console.error("push shape page error " + JSON.stringify(result));
console.error("push shape page error: " + err);
}
done()
});
......
......@@ -35,7 +35,7 @@ export default function spanJsunit() {
console.info("push span page success " + JSON.stringify(result));
}
} catch (err) {
console.error("push span page error " + JSON.stringify(err));
console.error("push span page error: " + err);
}
done()
});
......
// @ts-nocheck
/**
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
......@@ -12,7 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// @ts-nocheck
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "deccjsunit/index.ets"
import router from '@system.router';
import Utils from './Utils';
......@@ -35,7 +35,7 @@ export default function stepperJsunit() {
console.info("push stepper page success " + JSON.stringify(result));
}
} catch (err) {
console.error("push stepper page error " + JSON.stringify(result));
console.error("push stepper page error: " + err);
}
done()
});
......
// @ts-nocheck
/**
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
......@@ -12,7 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// @ts-nocheck
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "deccjsunit/index.ets"
import router from '@system.router';
import Utils from './Utils';
......@@ -35,7 +35,7 @@ export default function swiperJsunit() {
console.info("push swiper page success " + JSON.stringify(result));
}
} catch (err) {
console.error("push swiper page error " + JSON.stringify(result));
console.error("push swiper page error: " + err);
}
done()
});
......
......@@ -34,7 +34,7 @@ export default function systemRouterJsunit() {
expect(pages.name).assertEqual('systemRouterA');
expect(pages.path).assertEqual('pages/');
} catch (err) {
console.error("[systemRouterTest001] push page error " + JSON.stringify(result));
console.error("[systemRouterTest001] push page error: " + err);
}
await Utils.sleep(2000);
done();
......
// @ts-nocheck
/**
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
......@@ -12,7 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// @ts-nocheck
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "deccjsunit/index.ets"
import router from '@system.router';
import Utils from './Utils';
......@@ -36,7 +36,7 @@ export default function tabsJsunit() {
console.info("push tabs page result:" + JSON.stringify(result));
}
} catch (err) {
console.error("push tabs page error:" + JSON.stringify(result));
console.error("push tabs page error:" + err);
}
done()
});
......
......@@ -36,7 +36,7 @@ export default function longPressGestureJsunit() {
console.info("push tapGesture page result:" + JSON.stringify(result));
}
} catch (err) {
console.error("push tapGesture page error:" + JSON.stringify(result));
console.error("push tapGesture page error:" + err);
}
done()
});
......
......@@ -36,7 +36,7 @@ export default function textJsunit() {
console.info("push text page result:" + JSON.stringify(result));
}
} catch (err) {
console.error("push text page error:" + JSON.stringify(result));
console.error("push text page error:" + err);
}
done()
});
......
......@@ -36,7 +36,7 @@ export default function ToggleJsunit() {
console.info("push toggle page result:" + JSON.stringify(result));
}
} catch (err) {
console.error("push toggle page error:" + JSON.stringify(result));
console.error("push toggle page error:" + err);
}
done()
});
......
......@@ -36,7 +36,7 @@ export default function enableJsunit() {
console.info("push zIndex page result:" + JSON.stringify(result));
}
} catch (err) {
console.error("push zIndex page error:" + JSON.stringify(result));
console.error("push zIndex page error:" + err);
}
done()
});
......
......@@ -36,7 +36,7 @@ export default function backgroundJsunit() {
console.info("push background page success " + JSON.stringify(result));
}
} catch (err) {
console.error("push background page error " + JSON.stringify(result));
console.error("push background page error: " + err);
}
done()
});
......
......@@ -36,7 +36,7 @@ export default function borderJsunit() {
console.info("push border page success " + JSON.stringify(result));
}
} catch (err) {
console.error("push border page error " + JSON.stringify(result));
console.error("push border page error: " + err);
}
done()
});
......
......@@ -35,7 +35,7 @@ export default function clickEventJsunit() {
console.info("push clickEvent page result:" + JSON.stringify(result));
}
} catch (err) {
console.error("push clickEvent page error:" + JSON.stringify(result));
console.error("push clickEvent page error:" + err);
}
done()
});
......
......@@ -35,7 +35,7 @@ export default function colorGradientJsunit() {
console.info("push colorGradient page result:" + JSON.stringify(result));
}
} catch (err) {
console.error("push colorGradient page error:" + JSON.stringify(result));
console.error("push colorGradient page error:" + err);
}
done()
});
......
......@@ -35,7 +35,7 @@ export default function flexJsunit() {
console.info("push flex page success " + JSON.stringify(result));
}
} catch (err) {
console.error("push flex page error " + JSON.stringify(result));
console.error("push flex page error: " + err);
}
done()
});
......
......@@ -35,7 +35,7 @@ export default function gridSettingsJsunit() {
console.info("push gridSettings page result:" + JSON.stringify(result));
}
} catch (err) {
console.error("push gridSettings page error:" + JSON.stringify(result));
console.error("push gridSettings page error:" + err);
}
done();
});
......
......@@ -35,7 +35,7 @@ export default function imageEffectsJsunit() {
console.info("push imageEffects page success " + JSON.stringify(result));
}
} catch (err) {
console.error("push imageEffects page error " + JSON.stringify(err));
console.error("push imageEffects page error: " + err);
}
done()
});
......
......@@ -36,7 +36,7 @@ export default function layoutConstraintsJsunit() {
console.info("push layoutConstraints page result:" + JSON.stringify(result));
}
} catch (err) {
console.error("push layoutConstraints page error:" + JSON.stringify(result));
console.error("push layoutConstraints page error:" + err);
}
done()
});
......
......@@ -35,7 +35,7 @@ export default function opacitySettingJsunit() {
console.info("push opacitySetting page result:" + JSON.stringify(result));
}
} catch (err) {
console.error("push opacitySetting page error:" + JSON.stringify(result));
console.error("push opacitySetting page error:" + err);
}
done()
});
......
......@@ -39,7 +39,7 @@ export default function PanGestureJsunit() {
console.info("push PanGesture page result:" + JSON.stringify(result));
}
} catch (err) {
console.error("push PanGesture page error:" + JSON.stringify(result));
console.error("push PanGesture page error:" + err);
}
done()
});
......
......@@ -35,7 +35,7 @@ export default function positionSettingJsunit() {
console.info("push positionSetting page result:" + JSON.stringify(result));
}
} catch (err) {
console.error("push positionSetting page error:" + JSON.stringify(result));
console.error("push positionSetting page error:" + err);
}
done()
});
......
......@@ -39,7 +39,7 @@ export default function ResponseRegionJsunit() {
console.info("push ResponseRegion page result:" + JSON.stringify(result));
}
} catch (err) {
console.error("push ResponseRegion page error:" + JSON.stringify(result));
console.error("push ResponseRegion page error:" + err);
}
done()
});
......
......@@ -35,7 +35,7 @@ export default function shapeClippingJsunit() {
console.info("push shapeClipping page result:" + JSON.stringify(result));
}
} catch (err) {
console.error("push shapeClipping page error:" + JSON.stringify(result));
console.error("push shapeClipping page error:" + err);
}
done()
});
......
......@@ -35,7 +35,7 @@ export default function sizeSettingJsunit() {
console.info("push sizeSetting page result:" + JSON.stringify(result));
}
} catch (err) {
console.error("push sizeSetting page error:" + JSON.stringify(result));
console.error("push sizeSetting page error:" + err);
}
done()
});
......
......@@ -35,7 +35,7 @@ export default function textStyleJsunit() {
console.info("push textStyle page result:" + JSON.stringify(result));
}
} catch (err) {
console.error("push textStyle page error:" + JSON.stringify(result));
console.error("push textStyle page error:" + err);
}
done();
});
......
......@@ -34,7 +34,7 @@ export default function touchAbleJsunit() {
console.info("push touchAble page result:" + JSON.stringify(result));
}
} catch (err) {
console.error("push touchAble page error:" + JSON.stringify(result));
console.error("push touchAble page error:" + err);
}
done()
});
......
......@@ -37,7 +37,7 @@ export default function touchJsunit() {
console.info("push touch page result: " + JSON.stringify(result));
}
}catch(err){
console.error("push touch page error: " + JSON.stringify(result));
console.error("push touch page error: " + err);
}
done()
});
......
......@@ -36,7 +36,7 @@ export default function transFormJsunit() {
console.info("push transForm page result:" + JSON.stringify(result));
}
} catch (err) {
console.error("push transForm page error:" + JSON.stringify(result));
console.error("push transForm page error:" + err);
}
done()
});
......
......@@ -36,7 +36,7 @@ export default function visibilityJsunit() {
console.info("push visibility page result:" + JSON.stringify(result));
}
} catch (err) {
console.error("push visibility page error:" + JSON.stringify(result));
console.error("push visibility page error:" + err);
}
done()
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册