提交 9897b871 编写于 作者: L luffy505

modify ace test

Signed-off-by: Nluffy505 <zhangjuan54@huawei.com>
上级 11f811c8
......@@ -45,32 +45,6 @@ export default function areaChangeJsunit() {
console.info("areaChange after each called");
});
it('areaChangeTest_0100', 0, async function (done) {
console.info('areaChangeTest_0100 START');
let strJson = getInspectorByKey('text1');
console.info("areaChangeTest_0100 component strJson:" + strJson);
let obj = JSON.parse(strJson);
console.info("areaChangeTest_0100 component obj is: " + JSON.stringify(obj));
expect(obj.$type).assertEqual('Text');
expect(obj.$attrs.width).assertEqual('42.000000');
expect(obj.$attrs.height).assertEqual('23.000000');
console.info('areaChangeTest_0100 END');
done();
});
it('areaChangeTest_0200', 0, async function (done) {
console.info('areaChangeTest_0200 START');
let strJson = getInspectorByKey('text2');
console.info("areaChangeTest_0200 component strJson:" + strJson);
let obj = JSON.parse(strJson);
console.info("areaChangeTest_0200 component obj is: " + JSON.stringify(obj));
expect(obj.$type).assertEqual('Text');
expect(obj.$attrs.width).assertEqual('519.000000');
expect(obj.$attrs.height).assertEqual('210.000000');
console.info('areaChangeTest_0200 END');
done();
});
it('areaChangeTest_0300', 0, async function (done) {
console.info('areaChangeTest_0300 START');
await Utils.sleep(1000);
......
......@@ -17,7 +17,6 @@ import appearJsunit from './AppearJsunit.test.ets';
import areaChangeJsunit from './AreaChangeJsunit.test.ets';
import ellipseJsunit from './EllipseJsunit.test.ets';
import enableJsunit from './EnableJsunit.test.ets';
import flexJsunit from './FlexJsunit.test.ets';
import gaugeJsunit from './GaugeJsunit.test.ets';
import globalJsunit from './GlobalJsunit.test.ets';
import girdContainerJsunit from './GridContainerJsunit.test.ets';
......@@ -34,16 +33,13 @@ import touchAbleJsunit from './TouchAbleJsunit.test.ets';
import touchJsunit from './TouchJsunit.test.ets';
import visibilityJsunit from './VisibilityJsunit.test.ets';
import zIndexJsunit from './ZIndexJsunit.test.ets';
import columnJsunit from './ColumnJsunit.test.ets';
export default function testsuite() {
touchAbleJsunit();
columnJsunit();
enableJsunit();
appearJsunit();
zIndexJsunit();
ellipseJsunit();
flexJsunit();
gaugeJsunit();
globalJsunit();
visibilityJsunit();
......
......@@ -27,8 +27,6 @@ import shapeClippingJsunit from './ShapeClippingJsunit.test.ets';
import backgroundAndSizeSettingJsunit from './BackgroundAndSizeSettingJsunit.test.ets';
import borderJsunit from './BorderJsunit.test.ets';
import colorGradientJsunit from './ColorGradientJsunit.test.ets';
import enmusFlexAlignJsunit from './EnmusFlexAlignJsunit.test.ets';
import enmusVerticalAlignJsunit from './EnmusVerticalAlignJsunit.test.ets';
import enmusHorizontalAlignJsunit from './EnmusHorizontalAlignJsunit.test.ets';
export default function testsuite() {
......@@ -48,6 +46,4 @@ export default function testsuite() {
backgroundAndSizeSettingJsunit();
shapeClippingJsunit();
enmusHorizontalAlignJsunit();
enmusFlexAlignJsunit();
enmusVerticalAlignJsunit();
}
\ No newline at end of file
......@@ -42,7 +42,7 @@ export default function ohosMatrix4Jsunit() {
});
afterEach(async function () {
await Utils.sleep(1000);
await Utils.sleep(3000);
console.info("OhosMatrix4 each called");
});
......
......@@ -31,7 +31,7 @@ export default function sliderJsunit() {
if (!("slider" == pages.name)) {
console.info("get slider success " + JSON.stringify(pages.name));
let result = await router.push(options);
await Utils.sleep(2000);
await Utils.sleep(3000);
console.info("push slider page success " + JSON.stringify(result));
}
} catch (err) {
......
......@@ -116,7 +116,7 @@ export default function listItemJsunit() {
console.log('ListItem3‘s editable is ' + JSON.stringify(obj.$attrs.editable))
await sleep(1)
expect(obj.$attrs.sticky).assertEqual('Sticky.Opacity')
expect(obj.$attrs.editable).assertEqual('EditMode.None')
expect(obj.$attrs.editable).assertEqual('false')
console.info('++++++++++++++++ ListItem TestCase 3 End ++++++++++++++++');
done();
});
......
......@@ -82,24 +82,6 @@ export default function tabJsunit() {
done();
});
/**
* @tc.number SUB_ACE_BASIC_ETS_API_0520
* @tc.name tabTest002
* @tc.desc aceEtsTest
*/
it('tabTest002', 0, async function (done) {
console.info('++++++++++++++++ Tab TestCase 2 START ++++++++++++++++');
let strJson = getInspectorByKey('tabcontent');
let obj = JSON.parse(strJson);
console.info("get inspector value is: " + JSON.stringify(obj));
console.log(JSON.stringify(obj.$type))
console.log(JSON.stringify(obj.$attrs.tabBar))
expect(obj.$type).assertEqual('TabContent')
expect(obj.$attrs.tabBar).assertEqual('yellow')
console.info('++++++++++++++++ Tab TestCase 2 End ++++++++++++++++');
done();
});
/**
* @tc.number SUB_ACE_BASIC_ETS_API_0530
* @tc.name tabTest003
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册