From f8fc68443f3cfacb3400d4ba773fba51700bd3e7 Mon Sep 17 00:00:00 2001 From: lina123456 Date: Tue, 4 Apr 2023 20:00:19 +0800 Subject: [PATCH] fixed 2ef43af from https://gitee.com/lina123456/xts_acts/pulls/8357 Signed-off-by: lina123456 --- .../entry/src/main/ets/test/PasteBoardEtsunitTest.ets | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/distributeddatamgr/Pasteboardjsapitest/entry/src/main/ets/test/PasteBoardEtsunitTest.ets b/distributeddatamgr/Pasteboardjsapitest/entry/src/main/ets/test/PasteBoardEtsunitTest.ets index 47c98bfa2..40b783ff6 100644 --- a/distributeddatamgr/Pasteboardjsapitest/entry/src/main/ets/test/PasteBoardEtsunitTest.ets +++ b/distributeddatamgr/Pasteboardjsapitest/entry/src/main/ets/test/PasteBoardEtsunitTest.ets @@ -2113,7 +2113,10 @@ export default function pasteBoardJEtsunitTest() { console.info('f_test39: Sets the Property') var pasteDataProperty = pasteData1.getProperty() console.info('f_test39: timestamp = ' + pasteDataProperty.timestamp) - pasteDataProperty.additions["one"] = "Hello" + let object = { + bundleName: "pasteBoardJEtsunitTest" + }; + pasteDataProperty.additions["one"] = object; pasteDataProperty.shareOption = 1; pasteData1.setProperty(pasteDataProperty); @@ -2127,14 +2130,15 @@ export default function pasteBoardJEtsunitTest() { expect(pasteDataProperty1.shareOption == 1).assertTrue(); console.info('f_test39: timestamp = ' + pasteDataProperty1.timestamp); console.info('f_test39: shareOption = ' + pasteDataProperty1.shareOption); + let tag1 = pasteData1.getTag(); + console.info('f_test39: gettag = ' + tag1); + console.info('f_test39: additions = ' + pasteDataProperty1.additions["one"]) console.info('SUB_pasteBoard_function_JS_API_3900 end'); done(); }); }); }); - console.info('f_test39: timestamp = ' + pasteDataProperty1.timestamp) - console.info('f_test39: additions = ' + pasteDataProperty1.additions["one"]) console.info('SUB_pasteBoard_function_JS_API_3900 end'); done(); -- GitLab