提交 d75981fd 编写于 作者: Z zhangyushuai

add pastboard promise appi and formate build.gn 3

Signed-off-by: Nzhangyushuai <zhangyushuai1@huawei.com>
上级 018095cf
...@@ -20,6 +20,7 @@ group("miscservices") { ...@@ -20,6 +20,7 @@ group("miscservices") {
"TimeTest_js:ActsTimeJSApiTest", "TimeTest_js:ActsTimeJSApiTest",
"TimerTest_js:ActsTimerJSApiTest", "TimerTest_js:ActsTimerJSApiTest",
"actspasteboardjsapitest:ActsPasteBoardJSApiTest", "actspasteboardjsapitest:ActsPasteBoardJSApiTest",
"screenlock_js:ActsScreenLockJSApiTest",
"wallpaper_js:ActsWallpaperJSApiTest", "wallpaper_js:ActsWallpaperJSApiTest",
] ]
} }
...@@ -3629,7 +3629,12 @@ describe('PasteBoardTest', function() { ...@@ -3629,7 +3629,12 @@ describe('PasteBoardTest', function() {
console.log('f_test69 Converts the PlainTextData to text') console.log('f_test69 Converts the PlainTextData to text')
var pasteDataRecord = pasteData1.getRecordAt(0) 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'); console.log('SUB_pasteBoard_function_JS_API_6900 end');
done(); done();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册