提交 e6575c3d 编写于 作者: Z zhangyushuai 提交者: 张育帅

fixed d75981fd from https://gitee.com/yu-shuai-zhang/xts_acts/pulls/4288

add pastboard promise appi and formate build.gn 3
Signed-off-by: Nzhangyushuai <zhangyushuai1@huawei.com>
上级 27358578
......@@ -20,6 +20,7 @@ group("miscservices") {
"TimeTest_js:ActsTimeJSApiTest",
"TimerTest_js:ActsTimerJSApiTest",
"actspasteboardjsapitest:ActsPasteBoardJSApiTest",
"screenlock_js:ActsScreenLockJSApiTest",
"wallpaper_js:ActsWallpaperJSApiTest",
]
}
......@@ -3629,7 +3629,12 @@ describe('PasteBoardTest', function() {
console.log('f_test69 Converts the PlainTextData to text')
var pasteDataRecord = pasteData1.getRecordAt(0)
console.log('f_test69 pasteDataRecord.convertToText = ' + pasteDataRecord.convertToText);
pasteDataRecord.convertToText().then((data) => {
console.info('convertToText success data : ' + JSON.stringify(data));
}).catch((error) => {
console.error('convertToText failed because ' + JSON.stringify(error));
});;
console.log('SUB_pasteBoard_function_JS_API_6900 end');
done();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册