Signed-off-by: LVB8189 <lvbai1@huawei.com>

Changes to be committed:
This commit is contained in:
LVB8189 2022-08-30 14:06:51 +08:00
parent 529cd42db5
commit 5c5eae0e3e

View File

@ -124,7 +124,6 @@ export function mockPasteBoard() {
plainText: '[PC preview] unknow plainText',
uri: '[PC preview] unknow uri',
pixelMap: PixelMapMock,
data: '[PC preview] unknow data',
convertToText: function (...args) {
console.warn("PasteDataRecord.convertToText interface mocked in the Previewer. How this interface works on the" +
" Previewer may be different from that on a real device.")
@ -141,7 +140,6 @@ export function mockPasteBoard() {
const shareOptionMock = {
InApp: "[PC Preview] unknown InApp",
LocalDevice: "[PC Preview] unknown LocalDevice",
CrossDevice: "[PC Preview] unknown CrossDevice"
}
const PasteDataPropertyMock = {
additions: '[PC preview] unknow additions',
@ -248,11 +246,6 @@ export function mockPasteBoard() {
" the Previewer may be different from that on a real device.")
return PasteDataMock;
},
createData: function (...args) {
console.warn("pasteboard.createData interface mocked in the Previewer. How this interface works on" +
" the Previewer may be different from that on a real device.")
return PasteDataMock;
},
createWantData: function (...args) {
console.warn("pasteboard.createWantData interface mocked in the Previewer. How this interface works on" +
" the Previewer may be different from that on a real device.")
@ -278,11 +271,6 @@ export function mockPasteBoard() {
" the Previewer may be different from that on a real device.")
return PasteDataRecordMock;
},
createRecord: function (...args) {
console.warn("pasteboard.createRecord interface mocked in the Previewer. How this interface works on" +
" the Previewer may be different from that on a real device.")
return PasteDataRecordMock;
},
createPlainTextRecord: function (...args) {
console.warn("pasteboard.createPlainTextRecord interface mocked in the Previewer. How this interface works on" +
" the Previewer may be different from that on a real device.")