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

!5613 【Distributeddatamgr】【Master】PasteBoeadPixelMapJsunit.test.ets用例修改

Merge pull request !5613 from Maowen/master
......@@ -181,30 +181,6 @@ export default function pasteBoardTest(){
done();
})
/**
* @tc.number SUB_PASTEBOARD_FUNCTION_ETS_TEST_0500
* @tc.name Create PixelMap data with string type parameters;
* @tc.desc Test pasteBoard API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 2
*/
it('SUB_PASTEBOARD_FUNCTION_ETS_TEST_0500', 0, async function (done) {
console.info("SUB_PASTEBOARD_FUNCTION_ETS_TEST_0500 start")
var systemPasteBoard = pasteboard.getSystemPasteboard();
await systemPasteBoard.clear().then(async () => {
var pasteData = null;
var pixelMap = "pixelMap";
try{
pasteData = pasteboard.createPixelMapData(pixelMap)
}catch(err){
console.info("Create pixleMap data fail " + err)
}
expect(pasteData == null).assertTrue();
})
done();
})
/**
* @tc.number SUB_PASTEBOARD_FUNCTION_ETS_TEST_0600
* @tc.name Create PixelMap data with parameter is null;
......@@ -229,30 +205,6 @@ export default function pasteBoardTest(){
done();
})
/**
* @tc.number SUB_PASTEBOARD_FUNCTION_ETS_TEST_0700
* @tc.name Create PixelMap record with string type parameters;
* @tc.desc Test pasteBoard API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 2
*/
it('SUB_PASTEBOARD_FUNCTION_ETS_TEST_0700', 0, async function (done) {
console.info("SUB_PASTEBOARD_FUNCTION_ETS_TEST_0700 start")
var systemPasteBoard = pasteboard.getSystemPasteboard();
await systemPasteBoard.clear().then(async () => {
var pixelMapRecord = undefined;
var pixelMap = "pixelMap";
try{
pixelMapRecord = pasteboard.createPixelMapRecord(pixelMap)
}catch(err){
console.info("Create pixleMap data fail " + err)
}
expect(pixelMapRecord == null).assertTrue();
})
done();
})
/**
* @tc.number SUB_PASTEBOARD_FUNCTION_ETS_TEST_0800
* @tc.name Create PixelMap record with parameter is null;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册