提交 a2acac67 编写于 作者: Y yaocui

update

Signed-off-by: Nyaocui <yaocui2@h-partners.com>
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry'
import { Hypium } from 'hypium/index' import { Hypium } from '@ohos/hypium'
import testsuite from '../test/List.test' import testsuite from '../test/List.test'
export default { export default {
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry'
import { Hypium } from 'hypium/index' import { Hypium } from '@ohos/hypium'
import testsuite from '../test/List.test' import testsuite from '../test/List.test'
export default { export default {
......
...@@ -35,19 +35,20 @@ export default function pasteBoardSystemPasteBoardTest(){ ...@@ -35,19 +35,20 @@ export default function pasteBoardSystemPasteBoardTest(){
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 2 * @tc.level : Level 2
*/ */
it('SUB_PASTEBOARD_FUNCTION_ETS_CLEARDATA_CALLBACK_0100', 0, async function (done) { it('SUB_PASTEBOARD_FUNCTION_ETS_CLEARDATA_CALLBACK_0100', 0, async function (done) {
console.info("SUB_PASTEBOARD_FUNCTION_ETS_CLEARDATA_CALLBACK_0100 start") console.info("SUB_PASTEBOARD_FUNCTION_ETS_CLEARDATA_CALLBACK_0100 start")
let pasteData = pasteboard.createData('string', ARRAY_BUFFER); let pasteData = pasteboard.createData('string', ARRAY_BUFFER);
let systemPasteBoard = pasteboard.getSystemPasteboard(); let systemPasteBoard = pasteboard.getSystemPasteboard();
await systemPasteBoard.setData(pasteData) await systemPasteBoard.setData(pasteData)
await systemPasteBoard.clearData(async (err, data) => { await systemPasteBoard.clearData(async (err, data) => {
console.info("Clear the data in the system pasteBoard finished") console.info("Clear the data in the system pasteBoard finished")
})
await systemPasteBoard.hasData().then((data) => { await systemPasteBoard.hasData().then((data) => {
console.info(`Succeeded in checking the PasteData. Data: ${data}`);
expect(data).assertEqual(false); expect(data).assertEqual(false);
done();
console.info("SUB_PASTEBOARD_FUNCTION_ETS_CLEARDATA_CALLBACK_0100 end")
}) })
done(); })
console.info("SUB_PASTEBOARD_FUNCTION_ETS_CLEARDATA_CALLBACK_0100 end")
}) })
/** /**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册