提交 8f1c9c4f 编写于 作者: Y yqhan 提交者: hyq5234

fixed 46481c20 from https://gitee.com/hyq5234/xts_acts/pulls/4436

Override all interfaces of the worker

Describe:Modify XTS use cases of Worker module to cover all exposed
interfaces.

issue:https://gitee.com/openharmony/xts_acts/issues/I5I0CSSigned-off-by: Nyqhan <hanyuqing2@huawei.com>
上级 4af5ee50
...@@ -249,6 +249,8 @@ describe('workerTest', function () { ...@@ -249,6 +249,8 @@ describe('workerTest', function () {
} }
ss.onmessage = function (e) { ss.onmessage = function (e) {
res = e.data res = e.data
console.info("worker:: type " + e.type)
console.info("worker:: timeStamp " + e.timeStamp)
flag = true flag = true
} }
...@@ -322,6 +324,10 @@ describe('workerTest', function () { ...@@ -322,6 +324,10 @@ describe('workerTest', function () {
ss.onerror = function (e) { ss.onerror = function (e) {
res = e.message res = e.message
console.info("worker:: filename " + e.filename)
console.info("worker:: lineno " + e.lineno)
console.info("worker:: colno " + e.colno)
console.info("worker:: error " + e.error)
flag = true flag = true
} }
ss.onexit = function () { ss.onexit = function () {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册