提交 a660f6a5 编写于 作者: H hu0475

完成graphic子系统Display模块的跨平台测试套

Signed-off-by: Nhu0475 <huyanqiang5@huawei.com>
上级 7b0dc34a
......@@ -62,106 +62,6 @@ export default function DisplayTest() {
}
});
/**
* @tc.number: TEST_RECT_LEFT_001
* @tc.name : testRect_Left001
* @tc.desc : To test value of RECT.
* @tc.size : MediumTest
* @tc.type : Field
* @tc.level : Level 1
*/
it('testRect_Left001', 0, async function (done) {
try {
var rect = {
left : 20,
top : 40,
width : 100,
height : 200
}
expect(rect.left).assertEqual(20);
done();
} catch (err) {
console.error('test value of rect error :' + JSON.stringify(err));
expect().assertFail();
done();
}
});
/**
* @tc.number: TEST_RECT_TOP_001
* @tc.name : testRect_Top001
* @tc.desc : To test value of RECT.
* @tc.size : MediumTest
* @tc.type : Field
* @tc.level : Level 1
*/
it('testRect_Top001', 0, async function (done) {
try {
var rect = {
left : 20,
top : 40,
width : 100,
height : 200
}
expect(rect.top).assertEqual(40);
done();
} catch (err) {
console.error('test value of rect error :' + JSON.stringify(err));
expect().assertFail();
done();
}
});
/**
* @tc.number: TEST_RECT_WIDTH_001
* @tc.name : testRect_Width001
* @tc.desc : To test value of RECT.
* @tc.size : MediumTest
* @tc.type : Field
* @tc.level : Level 1
*/
it('testRect_Width001', 0, async function (done) {
try {
var rect = {
left : 20,
top : 40,
width : 100,
height : 200
}
expect(rect.width).assertEqual(100);
done();
} catch (err) {
console.error('test value of rect error :' + JSON.stringify(err));
expect().assertFail();
done();
}
});
/**
* @tc.number: TEST_RECT_HEIGHT_001
* @tc.name : testRect_Height001
* @tc.desc : To test value of RECT.
* @tc.size : MediumTest
* @tc.type : Field
* @tc.level : Level 1
*/
it('testRect_Height001', 0, async function (done) {
try {
var rect = {
left : 20,
top : 40,
width : 100,
height : 200
}
expect(rect.height).assertEqual(200);
done();
} catch (err) {
console.error('test value of rect error :' + JSON.stringify(err));
expect().assertFail();
done();
}
});
/**
* @tc.number: TEST_DISPLAY_ORIENTATION_001
* @tc.name : testDisplay_Orientation001
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册