!561 Corrected the mock problem of the worker module of the language compilation subsystem

Merge pull request !561 from 李兴阳/master
This commit is contained in:
openharmony_ci
2022-07-26 02:41:14 +00:00
committed by Gitee
@@ -102,56 +102,56 @@ export function mockWorker() {
this.postMessage = function (...args) {
console.warn("Worker.postMessage interface mocked in the Previewer. How this interface works on the Previewer" +
" may be different from that on a real device.");
},
};
this.terminate = function (...args) {
console.warn("Worker.terminate interface mocked in the Previewer. How this interface works on the Previewer" +
" may be different from that on a real device.");
},
};
this.on = function (...args) {
console.warn("Worker.on interface mocked in the Previewer. How this interface works on the Previewer" +
" may be different from that on a real device.");
},
};
this.once = function (...args) {
console.warn("Worker.once interface mocked in the Previewer. How this interface works on the Previewer" +
" may be different from that on a real device.");
},
};
this.off = function (...args) {
console.warn("Worker.off interface mocked in the Previewer. How this interface works on the Previewer" +
" may be different from that on a real device.");
},
};
this.addEventListener = function (...args) {
console.warn("Worker.addEventListener interface mocked in the Previewer. How this interface works on the" +
" Previewer may be different from that on a real device.");
},
};
this.dispatchEvent = function (...args) {
console.warn("Worker.dispatchEvent interface mocked in the Previewer. How this interface works on the" +
" Previewer may be different from that on a real device.");
return paramMock.paramBooleanMock;
},
};
this.removeEventListener = function (...args) {
console.warn("Worker.removeEventListener interface mocked in the Previewer. How this interface works on the" +
" Previewer may be different from that on a real device.");
},
};
this.removeAllListener = function (...args) {
console.warn("Worker.removeAllListener interface mocked in the Previewer. How this interface works on the" +
" Previewer may be different from that on a real device.");
},
};
this.onmessage = function (...args) {
console.warn("Worker.onmessage interface mocked in the Previewer. How this interface works on the Previewer" +
" may be different from that on a real device.");
},
};
this.onmessageerror = function (...agrs) {
console.warn("Worker.onmessageerror interface mocked in the Previewer. How this interface works on the" +
" Previewer may be different from that on a real device.");
},
};
this.onerror = function (...args) {
console.warn("Worker.onerror interface mocked in the Previewer. How this interface works on the Previewer" +
" may be different from that on a real device.");
},
};
this.onclose = function (...args) {
console.warn("Worker.onclose interface mocked in the Previewer. How this interface works on the Previewer" +
" may be different from that on a real device.");
},
};
this.onexit = function (...args) {
console.warn("Worker.onexit interface mocked in the Previewer. How this interface works on the Previewer" +
" may be different from that on a real device.");