mirror of
https://gitee.com/openharmony/distributeddatamgr_pasteboard
synced 2024-11-23 16:10:00 +00:00
update interfaces/kits/napi/test/unittest/pasteboardapi/PasteBoardPromiseJsunit.test.js.
Signed-off-by: zuotao <zuotao2@huawei.com>
This commit is contained in:
parent
01c2d2760e
commit
3b0988ec2a
@ -835,11 +835,11 @@ describe('PasteBoardJSTest', function () {
|
|||||||
let pasteDataRecord = pasteboard.createUriRecord(uriText1);
|
let pasteDataRecord = pasteboard.createUriRecord(uriText1);
|
||||||
let replace = pasteData1.replaceRecordAt(0, pasteDataRecord);
|
let replace = pasteData1.replaceRecordAt(0, pasteDataRecord);
|
||||||
expect(replace).assertEqual(true);
|
expect(replace).assertEqual(true);
|
||||||
let primaryUri = pasteData1.getPrimaryUri();
|
let primaryUri1 = pasteData1.getPrimaryUri();
|
||||||
expect(primaryUri).assertEqual(uriText1);
|
expect(primaryUri1).assertEqual(uriText1);
|
||||||
expect(pasteData1.hasMimeType(pasteboard.MIMETYPE_TEXT_URI)).assertEqual(true);
|
expect(pasteData1.hasMimeType(pasteboard.MIMETYPE_TEXT_URI)).assertEqual(true);
|
||||||
let primaryUri = pasteData1.getPrimaryUri();
|
let primaryUri2 = pasteData1.getPrimaryUri();
|
||||||
expect(primaryUri).assertEqual(uriText1);
|
expect(primaryUri2).assertEqual(uriText1);
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user