提交 12771e04 编写于 作者: Y yqhan

Modify NewSecondWorker case problem

Describe: There is a problem with NewSecondWorker case, missing variable
definition.

issue:https://gitee.com/openharmony/xts_acts/issues/I51JZ2Signed-off-by: Nyqhan <hanyuqing2@huawei.com>
上级 388b54ff
...@@ -17,6 +17,7 @@ import worker from "@ohos.worker" ...@@ -17,6 +17,7 @@ import worker from "@ohos.worker"
const parentPort = worker.parentPort; const parentPort = worker.parentPort;
var ss = undefined; var ss = undefined;
var flag = false;
parentPort.onmessage = function(e) { parentPort.onmessage = function(e) {
let data = e.data; let data = e.data;
......
...@@ -40,7 +40,7 @@ describe('workerTest', function () { ...@@ -40,7 +40,7 @@ describe('workerTest', function () {
let isTerminate = false let isTerminate = false
ss.onexit = function () { ss.onexit = function () {
isTerminate = true isTerminate = true
} }
expect(ss != null).assertTrue() expect(ss != null).assertTrue()
...@@ -111,7 +111,7 @@ describe('workerTest', function () { ...@@ -111,7 +111,7 @@ describe('workerTest', function () {
let res = undefined let res = undefined
let flag = false let flag = false
let isTerminate = false let isTerminate = false
ss.onexit = function () { ss.onexit = function () {
isTerminate = true isTerminate = true
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册