提交 fc8110f9 编写于 作者: X xllify

Modify xts_acts issue bug master

Signed-off-by: Nxllify <lixinlong18@huawei.com>

 Please enter the commit message for your changes. Lines starting
 with '#' will be ignored, and an empty message aborts the commit.

 On branch master
 Your branch is up to date with 'origin/master'.
上级 13a1638d
# Copyright (C) 2021 Huawei Device Co., Ltd. # Copyright (C) 2022 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License.
# You may obtain a copy of the License at # You may obtain a copy of the License at
......
# Copyright (C) 2021 Huawei Device Co., Ltd. # Copyright (C) 2022 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License.
# You may obtain a copy of the License at # You may obtain a copy of the License at
......
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
......
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
* limitations under the License. * limitations under the License.
*/ */
import file from '@system.file'
import app from '@system.app' import app from '@system.app'
import device from '@system.device' import device from '@system.device'
import router from '@system.router' import router from '@system.router'
...@@ -21,7 +20,7 @@ import {Core} from 'deccjsunit/index' ...@@ -21,7 +20,7 @@ import {Core} from 'deccjsunit/index'
export default { export default {
data: { data: {
title: "" title: ''
}, },
onInit() { onInit() {
this.title = this.$t('strings.world'); this.title = this.$t('strings.world');
......
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
......
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the 'License') * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
......
# Copyright (C) 2021 Huawei Device Co., Ltd. # Copyright (C) 2022 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License.
# You may obtain a copy of the License at # You may obtain a copy of the License at
......
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the 'License'); * Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
......
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the 'License'); * Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
* limitations under the License. * limitations under the License.
*/ */
import file from '@system.file'
import app from '@system.app' import app from '@system.app'
import device from '@system.device' import device from '@system.device'
import router from '@system.router' import router from '@system.router'
...@@ -21,7 +20,7 @@ import {Core} from 'deccjsunit/index' ...@@ -21,7 +20,7 @@ import {Core} from 'deccjsunit/index'
export default { export default {
data: { data: {
title: "" title: ''
}, },
onInit() { onInit() {
this.title = this.$t('strings.world'); this.title = this.$t('strings.world');
......
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the 'License'); * Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
......
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the 'License'); * Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
......
# Copyright (C) 2021 Huawei Device Co., Ltd. # Copyright (C) 2022 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License.
# You may obtain a copy of the License at # You may obtain a copy of the License at
......
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
......
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
* limitations under the License. * limitations under the License.
*/ */
import file from '@system.file'
import app from '@system.app' import app from '@system.app'
import device from '@system.device' import device from '@system.device'
import router from '@system.router' import router from '@system.router'
...@@ -21,7 +20,7 @@ import {Core} from 'deccjsunit/index' ...@@ -21,7 +20,7 @@ import {Core} from 'deccjsunit/index'
export default { export default {
data: { data: {
title: "" title: ''
}, },
onInit() { onInit() {
this.title = this.$t('strings.world'); this.title = this.$t('strings.world');
......
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
......
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the 'License') * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
......
# Copyright (C) 2021 Huawei Device Co., Ltd. # Copyright (C) 2022 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License.
# You may obtain a copy of the License at # You may obtain a copy of the License at
......
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the 'License'); * Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
......
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import file from '@system.file'
import app from '@system.app' import app from '@system.app'
import device from '@system.device' import device from '@system.device'
import router from '@system.router' import router from '@system.router'
...@@ -20,7 +20,7 @@ import {Core} from 'deccjsunit/index' ...@@ -20,7 +20,7 @@ import {Core} from 'deccjsunit/index'
export default { export default {
data: { data: {
title: "" title: ''
}, },
onInit() { onInit() {
this.title = this.$t('strings.world'); this.title = this.$t('strings.world');
......
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the 'License'); * Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
......
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the 'License') * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
......
# Copyright (C) 2021 Huawei Device Co., Ltd. # Copyright (C) 2022 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License.
# You may obtain a copy of the License at # You may obtain a copy of the License at
......
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the 'License'); * Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
......
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
* limitations under the License. * limitations under the License.
*/ */
import file from '@system.file'
import app from '@system.app' import app from '@system.app'
import device from '@system.device' import device from '@system.device'
import router from '@system.router' import router from '@system.router'
...@@ -21,7 +20,7 @@ import {Core} from 'deccjsunit/index' ...@@ -21,7 +20,7 @@ import {Core} from 'deccjsunit/index'
export default { export default {
data: { data: {
title: "" title: ''
}, },
onInit() { onInit() {
this.title = this.$t('strings.world'); this.title = this.$t('strings.world');
......
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the 'License'); * Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
......
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the 'License') * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
......
# Copyright (C) 2021 Huawei Device Co., Ltd. # Copyright (C) 2022 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License.
# You may obtain a copy of the License at # You may obtain a copy of the License at
......
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
......
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
* limitations under the License. * limitations under the License.
*/ */
import file from '@system.file'
import app from '@system.app' import app from '@system.app'
import device from '@system.device' import device from '@system.device'
import router from '@system.router' import router from '@system.router'
...@@ -22,7 +21,7 @@ import {Core, Constant, ExpectExtend, ReportExtend, InstrumentLog} from 'deccjsu ...@@ -22,7 +21,7 @@ import {Core, Constant, ExpectExtend, ReportExtend, InstrumentLog} from 'deccjsu
export default { export default {
data: { data: {
title: "" title: ''
}, },
onInit() { onInit() {
this.title = this.$t('strings.world'); this.title = this.$t('strings.world');
...@@ -36,11 +35,11 @@ export default { ...@@ -36,11 +35,11 @@ export default {
}, },
onclick: function () { onclick: function () {
router.replace({ router.replace({
uri: "pages/second/second" uri: 'pages/second/second'
}) })
}, },
touchMove(e) { touchMove(e) {
if (e.direction == "right") { if (e.direction === 'right') {
this.appExit(); this.appExit();
} }
}, },
......
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
......
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
...@@ -23,7 +23,7 @@ parentPort.onclose = function() { ...@@ -23,7 +23,7 @@ parentPort.onclose = function() {
} }
parentPort.onmessage = function(e) { parentPort.onmessage = function(e) {
var data = e.data; let data = e.data;
console.info("worker:: worker thread worker data is " + data.data); console.info("worker:: worker thread worker data is " + data.data);
switch(data.type) { switch(data.type) {
case "normal": case "normal":
...@@ -33,7 +33,6 @@ parentPort.onmessage = function(e) { ...@@ -33,7 +33,6 @@ parentPort.onmessage = function(e) {
break; break;
case "error": case "error":
throw new Error("123"); throw new Error("123");
break;
case "buffer": case "buffer":
console.info("worker:: worker.js receive buffer length is " + data.data.byteLength); console.info("worker:: worker.js receive buffer length is " + data.data.byteLength);
parentPort.postMessage(data, [data.data]); parentPort.postMessage(data, [data.data]);
...@@ -45,12 +44,12 @@ parentPort.onmessage = function(e) { ...@@ -45,12 +44,12 @@ parentPort.onmessage = function(e) {
} }
} }
// 反序列错误 // Deserialization error
parentPort.onmessageerror = function() { parentPort.onmessageerror = function() {
console.info("worker:: worker.js onmessageerror"); console.info("worker:: worker.js onmessageerror");
} }
// js执行异常 // js execution error
parentPort.onerror = function(data) { parentPort.onerror = function(data) {
console.info("worker:: worker.js onerror " + data.lineno + ", msg = " + data.message + ", filename = " + data.filename + ", colno = " + data.colno); console.info("worker:: worker.js onerror " + data.lineno + ", msg = " + data.message + ", filename = " + data.filename + ", colno = " + data.colno);
} }
\ No newline at end of file
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
...@@ -18,6 +18,6 @@ const parentPort = worker.parentPort; ...@@ -18,6 +18,6 @@ const parentPort = worker.parentPort;
parentPort.onmessage = function(e) { parentPort.onmessage = function(e) {
console.log("worker:: worker receive data " + e.data); console.log("worker:: worker receive data " + e.data);
var data = e.data + " worker"; let data = e.data + " worker";
parentPort.postMessage(data) parentPort.postMessage(data)
} }
\ No newline at end of file
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
...@@ -17,6 +17,6 @@ import worker from '@ohos.worker'; ...@@ -17,6 +17,6 @@ import worker from '@ohos.worker';
const parentPort = worker.parentPort; const parentPort = worker.parentPort;
parentPort.onmessage = function(e) { parentPort.onmessage = function(e) {
var data = e.data * 2 + 1 let data = e.data * 2 + 1
parentPort.postMessage(data) parentPort.postMessage(data)
} }
\ No newline at end of file
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
...@@ -17,7 +17,7 @@ import worker from '@ohos.worker'; ...@@ -17,7 +17,7 @@ import worker from '@ohos.worker';
const parentPort = worker.parentPort; const parentPort = worker.parentPort;
parentPort.onmessage = function(e) { parentPort.onmessage = function(e) {
var data = e.data; let data = e.data;
data.message = "hello world " + "worker" data.message = "hello world " + "worker"
parentPort.postMessage(data) parentPort.postMessage(data)
} }
\ No newline at end of file
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
......
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
......
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
......
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
......
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
...@@ -19,7 +19,7 @@ const parentPort = worker.parentPort; ...@@ -19,7 +19,7 @@ const parentPort = worker.parentPort;
var ss = undefined; var ss = undefined;
parentPort.onmessage = function(e) { parentPort.onmessage = function(e) {
var data = e.data; let data = e.data;
switch(data.type) { switch(data.type) {
case "new": case "new":
ss = new worker.Worker("workers/worker_0091.js"); ss = new worker.Worker("workers/worker_0091.js");
......
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
......
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
...@@ -21,7 +21,7 @@ var backValue = undefined; ...@@ -21,7 +21,7 @@ var backValue = undefined;
var flag = false; var flag = false;
parentPort.onmessage = function(e) { parentPort.onmessage = function(e) {
var data = e.data; let data = e.data;
switch(data.type) { switch(data.type) {
case "new": case "new":
ss = new worker.Worker("workers/worker_0101.js"); ss = new worker.Worker("workers/worker_0101.js");
......
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
...@@ -17,6 +17,6 @@ import worker from "@ohos.worker" ...@@ -17,6 +17,6 @@ import worker from "@ohos.worker"
const parentPort = worker.parentPort; const parentPort = worker.parentPort;
parentPort.onmessage = function(e) { parentPort.onmessage = function(e) {
var data = e.data; // 12 let data = e.data; // 12
parentPort.postMessage(data * 2 + 1); // 25 parentPort.postMessage(data * 2 + 1); // 25
} }
\ No newline at end of file
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
...@@ -21,7 +21,7 @@ var backValue = undefined; ...@@ -21,7 +21,7 @@ var backValue = undefined;
var flag = false; var flag = false;
parentPort.onmessage = function(e) { parentPort.onmessage = function(e) {
var data = e.data; let data = e.data;
switch(data.type) { switch(data.type) {
case "new": case "new":
ss = new worker.Worker("workers/worker_0111.js"); ss = new worker.Worker("workers/worker_0111.js");
......
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
......
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
...@@ -21,7 +21,7 @@ var backValue = undefined; ...@@ -21,7 +21,7 @@ var backValue = undefined;
var flag = false; var flag = false;
parentPort.onmessage = function(e) { parentPort.onmessage = function(e) {
var data = e.data; let data = e.data;
switch(data.type) { switch(data.type) {
case "new": case "new":
ss = new worker.Worker("workers/worker_0121.js"); ss = new worker.Worker("workers/worker_0121.js");
......
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
...@@ -21,7 +21,7 @@ var backValue = undefined; ...@@ -21,7 +21,7 @@ var backValue = undefined;
var flag = false; var flag = false;
parentPort.onmessage = function(e) { parentPort.onmessage = function(e) {
var data = e.data; let data = e.data;
switch(data.type) { switch(data.type) {
case "new": case "new":
ss = new worker.Worker("workers/worker_0122.js"); ss = new worker.Worker("workers/worker_0122.js");
......
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
......
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
......
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
...@@ -17,6 +17,6 @@ import worker from "@ohos.worker" ...@@ -17,6 +17,6 @@ import worker from "@ohos.worker"
const parentPort = worker.parentPort; const parentPort = worker.parentPort;
parentPort.onmessage = function(e) { parentPort.onmessage = function(e) {
var data = e.data; // hello world let data = e.data; // hello world
parentPort.postMessage(data + " worker"); // hello world worker parentPort.postMessage(data + " worker"); // hello world worker
} }
\ No newline at end of file
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
...@@ -21,7 +21,7 @@ var backValue = undefined; ...@@ -21,7 +21,7 @@ var backValue = undefined;
var flag = false; var flag = false;
parentPort.onmessage = function(e) { parentPort.onmessage = function(e) {
var data = e.data; let data = e.data;
switch(data.type) { switch(data.type) {
case "new": case "new":
ss = new worker.Worker("workers/worker_0141.js"); ss = new worker.Worker("workers/worker_0141.js");
......
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
...@@ -17,7 +17,7 @@ import worker from "@ohos.worker" ...@@ -17,7 +17,7 @@ import worker from "@ohos.worker"
const parentPort = worker.parentPort; const parentPort = worker.parentPort;
parentPort.onmessage = function(e) { parentPort.onmessage = function(e) {
var data = e.data; let data = e.data;
data[0] += 1 data[0] += 1
parentPort.postMessage(data); // [2, 2] parentPort.postMessage(data); // [2, 2]
} }
\ No newline at end of file
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
......
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
...@@ -21,7 +21,7 @@ var backValue = undefined; ...@@ -21,7 +21,7 @@ var backValue = undefined;
var flag = false; var flag = false;
parentPort.onmessage = function(e) { parentPort.onmessage = function(e) {
var data = e.data; let data = e.data;
switch(data.type) { switch(data.type) {
case "new": case "new":
ss = new worker.Worker("workers/worker_0152.js"); ss = new worker.Worker("workers/worker_0152.js");
......
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
...@@ -17,6 +17,6 @@ import worker from "@ohos.worker" ...@@ -17,6 +17,6 @@ import worker from "@ohos.worker"
const parentPort = worker.parentPort; const parentPort = worker.parentPort;
parentPort.onmessage = function(e) { parentPort.onmessage = function(e) {
var data = e.data; let data = e.data;
parentPort.postMessage(data + 3); // 16 parentPort.postMessage(data + 3); // 16
} }
\ No newline at end of file
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
...@@ -13,4 +13,4 @@ ...@@ -13,4 +13,4 @@
* limitations under the License. * limitations under the License.
*/ */
require("./Worker.test.js") require('./Worker.test.js')
\ No newline at end of file \ No newline at end of file
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the 'License') * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
......
# Copyright (C) 2021 Huawei Device Co., Ltd. # Copyright (C) 2022 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License.
# You may obtain a copy of the License at # You may obtain a copy of the License at
......
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
......
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* limitations under the License. * limitations under the License.
*/ */
import file from '@system.file'
import app from '@system.app' import app from '@system.app'
import device from '@system.device' import device from '@system.device'
import router from '@system.router' import router from '@system.router'
...@@ -21,7 +21,7 @@ import {Core} from 'deccjsunit/index' ...@@ -21,7 +21,7 @@ import {Core} from 'deccjsunit/index'
export default { export default {
data: { data: {
title: "" title: ''
}, },
onInit() { onInit() {
this.title = this.$t('strings.world'); this.title = this.$t('strings.world');
......
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
......
/* /*
* Copyright (C) 2021 Huawei Device Co., Ltd. * Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the 'License'); * Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
...@@ -113,7 +113,7 @@ describe('XmlSerializerXmlPullParserTest', function () { ...@@ -113,7 +113,7 @@ describe('XmlSerializerXmlPullParserTest', function () {
/** /**
* @tc.name: testStartElement001 * @tc.name: testStartElement001
* @tc.desc: Writes a elemnet start tag with the given name. * @tc.desc: Writes an elemnet start tag with the given name.
* @tc.require: AR000GGRB8 * @tc.require: AR000GGRB8
* @tc.author: lihucheng * @tc.author: lihucheng
*/ */
...@@ -134,7 +134,7 @@ describe('XmlSerializerXmlPullParserTest', function () { ...@@ -134,7 +134,7 @@ describe('XmlSerializerXmlPullParserTest', function () {
/** /**
* @tc.name: testStartElement002 * @tc.name: testStartElement002
* @tc.desc: Writes a elemnet start tag with the given name. * @tc.desc: Writes an elemnet start tag with the given name.
* @tc.require: AR000GGRB8 * @tc.require: AR000GGRB8
* @tc.author: lihucheng * @tc.author: lihucheng
*/ */
...@@ -157,7 +157,7 @@ describe('XmlSerializerXmlPullParserTest', function () { ...@@ -157,7 +157,7 @@ describe('XmlSerializerXmlPullParserTest', function () {
/** /**
* @tc.name: testStartElement003 * @tc.name: testStartElement003
* @tc.desc: Writes a elemnet start tag with the given name. * @tc.desc: Writes an elemnet start tag with the given name.
* @tc.require: AR000GGRB8 * @tc.require: AR000GGRB8
* @tc.author: lihucheng * @tc.author: lihucheng
*/ */
...@@ -180,7 +180,7 @@ describe('XmlSerializerXmlPullParserTest', function () { ...@@ -180,7 +180,7 @@ describe('XmlSerializerXmlPullParserTest', function () {
/** /**
* @tc.name: testStartElement004 * @tc.name: testStartElement004
* @tc.desc: Writes a elemnet start tag with the given name. * @tc.desc: Writes an elemnet start tag with the given name.
* @tc.require: AR000GGRB8 * @tc.require: AR000GGRB8
* @tc.author: lihucheng * @tc.author: lihucheng
*/ */
...@@ -205,7 +205,7 @@ describe('XmlSerializerXmlPullParserTest', function () { ...@@ -205,7 +205,7 @@ describe('XmlSerializerXmlPullParserTest', function () {
/** /**
* @tc.name: testStartElement005 * @tc.name: testStartElement005
* @tc.desc: Writes a elemnet start tag with the given name. * @tc.desc: Writes an elemnet start tag with the given name.
* @tc.require: AR000GGRB8 * @tc.require: AR000GGRB8
* @tc.author: lihucheng * @tc.author: lihucheng
*/ */
...@@ -1136,8 +1136,8 @@ describe('XmlSerializerXmlPullParserTest', function () { ...@@ -1136,8 +1136,8 @@ describe('XmlSerializerXmlPullParserTest', function () {
' <company>John &amp; Hans</company>' + ' <company>John &amp; Hans</company>' +
' <title>Happy</title>' + ' <title>Happy</title>' +
' <title>Happy</title>' + ' <title>Happy</title>' +
' <todo>Work</todo>' + ' <lens>Work</lens>' +
' <todo>Play</todo>' + ' <lens>Play</lens>' +
' <?go there?>' + ' <?go there?>' +
' <a><b/></a>' + ' <a><b/></a>' +
' <h:table xmlns:h="http://www.w3.org/TR/html4/">' + ' <h:table xmlns:h="http://www.w3.org/TR/html4/">' +
...@@ -1175,8 +1175,8 @@ describe('XmlSerializerXmlPullParserTest', function () { ...@@ -1175,8 +1175,8 @@ describe('XmlSerializerXmlPullParserTest', function () {
'falsefalsekey:925170amp;amp;falsetruekey:425670 Hansfalsefalsekey:326670companyfalsetruekey:1017070 ' + 'falsefalsekey:925170amp;amp;falsetruekey:425670 Hansfalsefalsekey:326670companyfalsetruekey:1017070 ' +
'falsetruekey:227770titlefalsetruekey:428270 Happyfalsefalsekey:329070titlefalsetruekey:1019470 ' + 'falsetruekey:227770titlefalsetruekey:428270 Happyfalsefalsekey:329070titlefalsetruekey:1019470 ' +
'falsetruekey:2210170titlefalsetruekey:4210670 Happyfalsefalsekey:3211470titlefalsetruekey:10111870 ' + 'falsetruekey:2210170titlefalsetruekey:4210670 Happyfalsefalsekey:3211470titlefalsetruekey:10111870 ' +
'falsetruekey:2212470todofalsetruekey:4212870 Workfalsefalsekey:3213570todofalsetruekey:10113970 ' + 'falsetruekey:2212470lensfalsetruekey:4212870 Workfalsefalsekey:3213570lensfalsetruekey:10113970 ' +
'falsetruekey:2214570todofalsetruekey:4214970 Playfalsefalsekey:3215670todofalsetruekey:10116070 ' + 'falsetruekey:2214570lensfalsetruekey:4214970 Playfalsefalsekey:3215670lensfalsetruekey:10116070 ' +
'falsetruekey:8117270go therefalsetruekey:10117670 falsetruekey:2217970afalsetruekey:' + 'falsetruekey:8117270go therefalsetruekey:10117670 falsetruekey:2217970afalsetruekey:' +
'2318370btruetruekey:3318370bfalsetruekey:3218770afalsetruekey:10119170 falsetruekey:2223870table ' + '2318370btruetruekey:3318370bfalsetruekey:3218770afalsetruekey:10119170 falsetruekey:2223870table ' +
'http://www.w3.org/TR/html4/hfalsefalsekey:10224670 ' + 'http://www.w3.org/TR/html4/hfalsefalsekey:10224670 ' +
...@@ -1206,8 +1206,8 @@ describe('XmlSerializerXmlPullParserTest', function () { ...@@ -1206,8 +1206,8 @@ describe('XmlSerializerXmlPullParserTest', function () {
' <company>John &amp; Hans</company>' + ' <company>John &amp; Hans</company>' +
' <title>Happy</title>' + ' <title>Happy</title>' +
' <title>Happy</title>' + ' <title>Happy</title>' +
' <todo>Work</todo>' + ' <lens>Work</lens>' +
' <todo>Play</todo>' + ' <lens>Play</lens>' +
' <?go there?>' + ' <?go there?>' +
' <a><b/></a>' + ' <a><b/></a>' +
' <h:table xmlns:h="http://www.w3.org/TR/html4/">' + ' <h:table xmlns:h="http://www.w3.org/TR/html4/">' +
...@@ -1245,8 +1245,8 @@ describe('XmlSerializerXmlPullParserTest', function () { ...@@ -1245,8 +1245,8 @@ describe('XmlSerializerXmlPullParserTest', function () {
'John falsefalsekey:925170amp;amp;falsetruekey:425670 Hansfalsefalsekey:326670companyfalsetruekey:1017070' + 'John falsefalsekey:925170amp;amp;falsetruekey:425670 Hansfalsefalsekey:326670companyfalsetruekey:1017070' +
' falsetruekey:227770titlefalsetruekey:428270 Happyfalsefalsekey:329070titlefalsetruekey:1019470 ' + ' falsetruekey:227770titlefalsetruekey:428270 Happyfalsefalsekey:329070titlefalsetruekey:1019470 ' +
'falsetruekey:2210170titlefalsetruekey:4210670 Happyfalsefalsekey:3211470titlefalsetruekey:10111870 ' + 'falsetruekey:2210170titlefalsetruekey:4210670 Happyfalsefalsekey:3211470titlefalsetruekey:10111870 ' +
'falsetruekey:2212470todofalsetruekey:4212870 Workfalsefalsekey:3213570todofalsetruekey:10113970 ' + 'falsetruekey:2212470lensfalsetruekey:4212870 Workfalsefalsekey:3213570lensfalsetruekey:10113970 ' +
'falsetruekey:2214570todofalsetruekey:4214970 Playfalsefalsekey:3215670todofalsetruekey:10116070 ' + 'falsetruekey:2214570lensfalsetruekey:4214970 Playfalsefalsekey:3215670lensfalsetruekey:10116070 ' +
'falsetruekey:8117270go therefalsetruekey:10117670 falsetruekey:2217970afalsetruekey:' + 'falsetruekey:8117270go therefalsetruekey:10117670 falsetruekey:2217970afalsetruekey:' +
'2318370btruetruekey:3318370bfalsetruekey:3218770afalsetruekey:10119170 falsetruekey:' + '2318370btruetruekey:3318370bfalsetruekey:3218770afalsetruekey:10119170 falsetruekey:' +
'2223871h:tablefalsefalsekey:10224670 falsetruekey:2325270h:trfalsetruekey:10326470 ' + '2223871h:tablefalsefalsekey:10224670 falsetruekey:2325270h:trfalsetruekey:10326470 ' +
...@@ -1273,8 +1273,8 @@ describe('XmlSerializerXmlPullParserTest', function () { ...@@ -1273,8 +1273,8 @@ describe('XmlSerializerXmlPullParserTest', function () {
' <company>John &amp; Hans</company>' + ' <company>John &amp; Hans</company>' +
' <title>Happy</title>' + ' <title>Happy</title>' +
' <title>Happy</title>' + ' <title>Happy</title>' +
' <todo>Work</todo>' + ' <lens>Work</lens>' +
' <todo>Play</todo>' + ' <lens>Play</lens>' +
' <?go there?>' + ' <?go there?>' +
' <a><b/></a>' + ' <a><b/></a>' +
' <h:table xmlns:h="http://www.w3.org/TR/html4/">' + ' <h:table xmlns:h="http://www.w3.org/TR/html4/">' +
...@@ -1311,9 +1311,9 @@ describe('XmlSerializerXmlPullParserTest', function () { ...@@ -1311,9 +1311,9 @@ describe('XmlSerializerXmlPullParserTest', function () {
':1013270 falsetruekey:224170companyfalsetruekey:424670 John falsefalsekey:925170amp;amp;falsetruekey' + ':1013270 falsetruekey:224170companyfalsetruekey:424670 John falsefalsekey:925170amp;amp;falsetruekey' +
':425670 Hansfalsefalsekey:326670companyfalsetruekey:1017070 falsetruekey:227770titlefalsetruekey:428' + ':425670 Hansfalsefalsekey:326670companyfalsetruekey:1017070 falsetruekey:227770titlefalsetruekey:428' +
'270 Happyfalsefalsekey:329070titlefalsetruekey:1019470 falsetruekey:2210170titlefalsetruekey:4210670 ' + '270 Happyfalsefalsekey:329070titlefalsetruekey:1019470 falsetruekey:2210170titlefalsetruekey:4210670 ' +
'Happyfalsefalsekey:3211470titlefalsetruekey:10111870 falsetruekey:2212470todofalsetruekey:4212870 ' + 'Happyfalsefalsekey:3211470titlefalsetruekey:10111870 falsetruekey:2212470lensfalsetruekey:4212870 ' +
'Workfalsefalsekey:3213570todofalsetruekey:10113970 falsetruekey:2214570todofalsetruekey:4214970 ' + 'Workfalsefalsekey:3213570lensfalsetruekey:10113970 falsetruekey:2214570lensfalsetruekey:4214970 ' +
'Playfalsefalsekey:3215670todofalsetruekey:10116070 falsetruekey:8117270go therefalsetruekey' + 'Playfalsefalsekey:3215670lensfalsetruekey:10116070 falsetruekey:8117270go therefalsetruekey' +
':10117670 falsetruekey:2217970afalsetruekey:2318370btruetruekey:3318370bfalsetruekey' + ':10117670 falsetruekey:2217970afalsetruekey:2318370btruetruekey:3318370bfalsetruekey' +
':3218770afalsetruekey:10119170 falsetruekey:2223871h:tablefalsefalsekey:10224670 ' + ':3218770afalsetruekey:10119170 falsetruekey:2223871h:tablefalsefalsekey:10224670 ' +
'falsetruekey:2325270h:trfalsetruekey:10326470 falsetruekey:' + 'falsetruekey:2325270h:trfalsetruekey:10326470 falsetruekey:' +
...@@ -1341,8 +1341,8 @@ describe('XmlSerializerXmlPullParserTest', function () { ...@@ -1341,8 +1341,8 @@ describe('XmlSerializerXmlPullParserTest', function () {
' <company>John &amp; Hans</company>' + ' <company>John &amp; Hans</company>' +
' <title>Happy</title>' + ' <title>Happy</title>' +
' <title>Happy</title>' + ' <title>Happy</title>' +
' <todo>Work</todo>' + ' <lens>Work</lens>' +
' <todo>Play</todo>' + ' <lens>Play</lens>' +
' <?go there?>' + ' <?go there?>' +
' <a><b/></a>' + ' <a><b/></a>' +
' <h:table xmlns:h="http://www.w3.org/TR/html4/">' + ' <h:table xmlns:h="http://www.w3.org/TR/html4/">' +
...@@ -1386,8 +1386,8 @@ describe('XmlSerializerXmlPullParserTest', function () { ...@@ -1386,8 +1386,8 @@ describe('XmlSerializerXmlPullParserTest', function () {
' <company>John &amp; Hans</company>' + ' <company>John &amp; Hans</company>' +
' <title>Happy</title>' + ' <title>Happy</title>' +
' <title>Happy</title>' + ' <title>Happy</title>' +
' <todo>Work</todo>' + ' <lens>Work</lens>' +
' <todo>Play</todo>' + ' <lens>Play</lens>' +
' <?go there?>' + ' <?go there?>' +
' <a><b/></a>' + ' <a><b/></a>' +
' <h:table xmlns:h="http://www.w3.org/TR/html4/">' + ' <h:table xmlns:h="http://www.w3.org/TR/html4/">' +
...@@ -1411,7 +1411,7 @@ describe('XmlSerializerXmlPullParserTest', function () { ...@@ -1411,7 +1411,7 @@ describe('XmlSerializerXmlPullParserTest', function () {
} }
var options = {supportDoctype:true, ignoreNameSpace:true, tagValueCallbackFunction:func1} var options = {supportDoctype:true, ignoreNameSpace:true, tagValueCallbackFunction:func1}
that.parse(options); that.parse(options);
var str3 = 'note:company:title:title:todo:todo:a:b:h:table:h:tr:h:td:h:td:' var str3 = 'note:company:title:title:lens:lens:a:b:h:table:h:tr:h:td:h:td:'
expect(str1).assertEqual(str3) expect(str1).assertEqual(str3)
}) })
}) })
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册