From 7900248d827df8f28df4bfb66c75f5051338fce9 Mon Sep 17 00:00:00 2001 From: logic42 Date: Sat, 25 Mar 2023 11:37:17 +0000 Subject: [PATCH] add testcase Assert Signed-off-by: logic42 --- .../entry/src/main/ets/test/PasteBoardRecord.test.ets | 1 + 1 file changed, 1 insertion(+) diff --git a/distributeddatamgr/Pasteboardjsapitest/entry/src/main/ets/test/PasteBoardRecord.test.ets b/distributeddatamgr/Pasteboardjsapitest/entry/src/main/ets/test/PasteBoardRecord.test.ets index deadf5614..c36853b30 100644 --- a/distributeddatamgr/Pasteboardjsapitest/entry/src/main/ets/test/PasteBoardRecord.test.ets +++ b/distributeddatamgr/Pasteboardjsapitest/entry/src/main/ets/test/PasteBoardRecord.test.ets @@ -59,6 +59,7 @@ export default function pasteBoardRecordTest(){ }) let pixelMapRecord = pasteData.getPrimaryPixelMap() expect(pixelMapRecord != null).assertTrue(); + expect(pixelMapRecord.getPixelBytesNumber() > 0).assertEqual(); console.info("SUB_PASTEBOARD_FUNCTION_ETS_CREATEDATA_0100 end") done(); }) -- GitLab