diff --git a/distributeddatamgr/Pasteboardjsapitest/entry/src/main/ets/test/PasteBoardSystemPasteBoard.test.ets b/distributeddatamgr/Pasteboardjsapitest/entry/src/main/ets/test/PasteBoardSystemPasteBoard.test.ets index e2727f3028514d9526010f67bdb5baa2b980cb48..ccf914f1d6a2ba4c9c3a41b4201ec5eceae8ca52 100644 --- a/distributeddatamgr/Pasteboardjsapitest/entry/src/main/ets/test/PasteBoardSystemPasteBoard.test.ets +++ b/distributeddatamgr/Pasteboardjsapitest/entry/src/main/ets/test/PasteBoardSystemPasteBoard.test.ets @@ -36,18 +36,21 @@ export default function pasteBoardSystemPasteBoardTest(){ * @tc.level : Level 2 */ it('SUB_PASTEBOARD_FUNCTION_ETS_CLEARDATA_CALLBACK_0100', 0, async function (done) { - console.info("SUB_PASTEBOARD_FUNCTION_ETS_CLEARDATA_CALLBACK_0100 start") - let pasteData = pasteboard.createData('string', ARRAY_BUFFER); - let systemPasteBoard = pasteboard.getSystemPasteboard(); - await systemPasteBoard.setData(pasteData) - await systemPasteBoard.clearData(async (err, data) => { - console.info("Clear the data in the system pasteBoard finished") - await systemPasteBoard.hasData().then((data) => { - console.info(`Succeeded in checking the PasteData. Data: ${data}`); - expect(data).assertEqual(false); - }) + console.info(TAG + "SUB_PASTEBOARD_FUNCTION_ETS_CLEARDATA_CALLBACK_0100 start") + let pasteData = pasteboard.createData('string', ARRAY_BUFFER); + let systemPasteBoard = pasteboard.getSystemPasteboard(); + await systemPasteBoard.setData(pasteData) + await systemPasteBoard.clearData(async (err, data) => { + console.info(TAG + "Clear the data in the system pasteBoard finished") + await systemPasteBoard.hasData().then((data) => { + console.info(TAG + `Succeeded in checking the PasteData. Data: ${data}`); + expect(data).assertEqual(false); }) - }); + }) + done(); + console.info("SUB_PASTEBOARD_FUNCTION_ETS_CLEARDATA_CALLBACK_0100 end") + }) + /** * @tc.number SUB_PASTEBOARD_FUNCTION_ETS_CLEARDATA_CALLBACK_0200