diff --git a/compileruntime/BUILD.gn b/compileruntime/BUILD.gn index 3aaf52b7c9eff5a4c1c5df3f587e2bee446a0074..91b8dcf274ab32e5006719a8591565a1f2afd30d 100644 --- a/compileruntime/BUILD.gn +++ b/compileruntime/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (C) 2021 Huawei Device Co., Ltd. +# Copyright (C) 2022 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at diff --git a/compileruntime/convertxml_lib_standard/BUILD.gn b/compileruntime/convertxml_lib_standard/BUILD.gn index 5ba3897cc574ba4c6da9ab40406dfa661df47bb1..52f9b4b6d8d980ae8e8959172756a399b0a9d237 100644 --- a/compileruntime/convertxml_lib_standard/BUILD.gn +++ b/compileruntime/convertxml_lib_standard/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (C) 2021 Huawei Device Co., Ltd. +# Copyright (C) 2022 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at diff --git a/compileruntime/convertxml_lib_standard/src/main/js/default/app.js b/compileruntime/convertxml_lib_standard/src/main/js/default/app.js index e423f4bce4698ec1d7dc86c3eea3990a5e7b1085..830070d196d86b127cea947d168bfd116f446205 100644 --- a/compileruntime/convertxml_lib_standard/src/main/js/default/app.js +++ b/compileruntime/convertxml_lib_standard/src/main/js/default/app.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/compileruntime/convertxml_lib_standard/src/main/js/default/pages/index/index.js b/compileruntime/convertxml_lib_standard/src/main/js/default/pages/index/index.js index 2a25e4cb3e98d7a5827e6d35defc7579f5de766f..e104eaf7a17c519d3227097d9725fec83d8e7850 100644 --- a/compileruntime/convertxml_lib_standard/src/main/js/default/pages/index/index.js +++ b/compileruntime/convertxml_lib_standard/src/main/js/default/pages/index/index.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,7 +13,6 @@ * limitations under the License. */ -import file from '@system.file' import app from '@system.app' import device from '@system.device' import router from '@system.router' @@ -21,7 +20,7 @@ import {Core} from 'deccjsunit/index' export default { data: { - title: "" + title: '' }, onInit() { this.title = this.$t('strings.world'); diff --git a/compileruntime/convertxml_lib_standard/src/main/js/test/List.test.js b/compileruntime/convertxml_lib_standard/src/main/js/test/List.test.js index 7db366a6f5705c134b5bc61ddf6c865c656dd9d5..2c6b6915349673639e6bce8f50a52737dcff82a1 100644 --- a/compileruntime/convertxml_lib_standard/src/main/js/test/List.test.js +++ b/compileruntime/convertxml_lib_standard/src/main/js/test/List.test.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/compileruntime/convertxml_lib_standard/src/main/js/test/convertxml.test.js b/compileruntime/convertxml_lib_standard/src/main/js/test/convertxml.test.js index b2afb2b1c8e3a3dfd7832df9d714de6dd6cde760..0db34a21f18a8f74904f4a2a6e2298d97febeb06 100644 --- a/compileruntime/convertxml_lib_standard/src/main/js/test/convertxml.test.js +++ b/compileruntime/convertxml_lib_standard/src/main/js/test/convertxml.test.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/compileruntime/process_lib_standard/BUILD.gn b/compileruntime/process_lib_standard/BUILD.gn index c9f80a094811ecf9c4b27aceb96154462d2c5e4a..3f3d67ed2a8d9962733b1bda7d1c4e729abb1241 100644 --- a/compileruntime/process_lib_standard/BUILD.gn +++ b/compileruntime/process_lib_standard/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (C) 2021 Huawei Device Co., Ltd. +# Copyright (C) 2022 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at diff --git a/compileruntime/process_lib_standard/src/main/js/default/app.js b/compileruntime/process_lib_standard/src/main/js/default/app.js index ef92b6e96e9db7d997b0be7c2068d560b1cab26d..ff2c11965e08dd2df603562158980963c00e7a25 100644 --- a/compileruntime/process_lib_standard/src/main/js/default/app.js +++ b/compileruntime/process_lib_standard/src/main/js/default/app.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the 'License'); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/compileruntime/process_lib_standard/src/main/js/default/pages/index/index.js b/compileruntime/process_lib_standard/src/main/js/default/pages/index/index.js index 0e33931bedcdb1c1f9ea423220b49c3efad2bd76..42d42db918814d6c4a2ceb069090eaa46ded042b 100644 --- a/compileruntime/process_lib_standard/src/main/js/default/pages/index/index.js +++ b/compileruntime/process_lib_standard/src/main/js/default/pages/index/index.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the 'License'); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,7 +13,6 @@ * limitations under the License. */ -import file from '@system.file' import app from '@system.app' import device from '@system.device' import router from '@system.router' @@ -21,7 +20,7 @@ import {Core} from 'deccjsunit/index' export default { data: { - title: "" + title: '' }, onInit() { this.title = this.$t('strings.world'); diff --git a/compileruntime/process_lib_standard/src/main/js/test/List.test.js b/compileruntime/process_lib_standard/src/main/js/test/List.test.js index 8999be239e22f86496965016a9715bc9b599319f..c996626bcf5b017b22bac04079e7def12271c2a0 100644 --- a/compileruntime/process_lib_standard/src/main/js/test/List.test.js +++ b/compileruntime/process_lib_standard/src/main/js/test/List.test.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the 'License'); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/compileruntime/process_lib_standard/src/main/js/test/Process.test.js b/compileruntime/process_lib_standard/src/main/js/test/Process.test.js index bec88ea5193113dfcba4be886111140feca6134f..018d91a145a8f1df6c9e0309266f5f33a7fbbafb 100644 --- a/compileruntime/process_lib_standard/src/main/js/test/Process.test.js +++ b/compileruntime/process_lib_standard/src/main/js/test/Process.test.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the 'License'); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/compileruntime/uri_lib_standard/BUILD.gn b/compileruntime/uri_lib_standard/BUILD.gn index d21c11588c083b8d067a271c1b583d68d70a82d8..fb2825d11c245e0051898b828f7c7f91f5cd4516 100644 --- a/compileruntime/uri_lib_standard/BUILD.gn +++ b/compileruntime/uri_lib_standard/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (C) 2021 Huawei Device Co., Ltd. +# Copyright (C) 2022 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at diff --git a/compileruntime/uri_lib_standard/src/main/js/default/app.js b/compileruntime/uri_lib_standard/src/main/js/default/app.js index e423f4bce4698ec1d7dc86c3eea3990a5e7b1085..830070d196d86b127cea947d168bfd116f446205 100644 --- a/compileruntime/uri_lib_standard/src/main/js/default/app.js +++ b/compileruntime/uri_lib_standard/src/main/js/default/app.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/compileruntime/uri_lib_standard/src/main/js/default/pages/index/index.js b/compileruntime/uri_lib_standard/src/main/js/default/pages/index/index.js index b3e2a9019e2372d65eec2af6e96bc44c6bbf30ed..e478684e6715484fcbef0d6b02ff9b6e2ae197c3 100644 --- a/compileruntime/uri_lib_standard/src/main/js/default/pages/index/index.js +++ b/compileruntime/uri_lib_standard/src/main/js/default/pages/index/index.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,7 +13,6 @@ * limitations under the License. */ -import file from '@system.file' import app from '@system.app' import device from '@system.device' import router from '@system.router' @@ -21,7 +20,7 @@ import {Core} from 'deccjsunit/index' export default { data: { - title: "" + title: '' }, onInit() { this.title = this.$t('strings.world'); diff --git a/compileruntime/uri_lib_standard/src/main/js/test/List.test.js b/compileruntime/uri_lib_standard/src/main/js/test/List.test.js index 72ee52203cee7d86c5185df1b0b65806e63ec21b..3c2c1f5d051f0f15a35050cd4d766e35e9587e35 100644 --- a/compileruntime/uri_lib_standard/src/main/js/test/List.test.js +++ b/compileruntime/uri_lib_standard/src/main/js/test/List.test.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/compileruntime/uri_lib_standard/src/main/js/test/uri.test.js b/compileruntime/uri_lib_standard/src/main/js/test/uri.test.js index 0e1917609e64ecbbadb58be26327d39558ec8e25..f8b022a04886bd08cd352a84f0da9b34d29a4687 100644 --- a/compileruntime/uri_lib_standard/src/main/js/test/uri.test.js +++ b/compileruntime/uri_lib_standard/src/main/js/test/uri.test.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/compileruntime/url_lib_standard/BUILD.gn b/compileruntime/url_lib_standard/BUILD.gn index 57f3ed486b0a08925864a6c87964b304ca64c9e2..bef6a34b6d2c614f605bfe896a858920cfa6e0bf 100644 --- a/compileruntime/url_lib_standard/BUILD.gn +++ b/compileruntime/url_lib_standard/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (C) 2021 Huawei Device Co., Ltd. +# Copyright (C) 2022 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at diff --git a/compileruntime/url_lib_standard/src/main/js/default/app.js b/compileruntime/url_lib_standard/src/main/js/default/app.js index ef92b6e96e9db7d997b0be7c2068d560b1cab26d..ff2c11965e08dd2df603562158980963c00e7a25 100644 --- a/compileruntime/url_lib_standard/src/main/js/default/app.js +++ b/compileruntime/url_lib_standard/src/main/js/default/app.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the 'License'); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/compileruntime/url_lib_standard/src/main/js/default/pages/index/index.js b/compileruntime/url_lib_standard/src/main/js/default/pages/index/index.js index dc029ade093130d2906be55d19567f5d31672972..e104eaf7a17c519d3227097d9725fec83d8e7850 100644 --- a/compileruntime/url_lib_standard/src/main/js/default/pages/index/index.js +++ b/compileruntime/url_lib_standard/src/main/js/default/pages/index/index.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import file from '@system.file' + import app from '@system.app' import device from '@system.device' import router from '@system.router' @@ -20,7 +20,7 @@ import {Core} from 'deccjsunit/index' export default { data: { - title: "" + title: '' }, onInit() { this.title = this.$t('strings.world'); diff --git a/compileruntime/url_lib_standard/src/main/js/test/List.test.js b/compileruntime/url_lib_standard/src/main/js/test/List.test.js index e6046fd924bbce146525b8268100322301eb80fe..2f11eb319729471e6a164ed862a491c09e9b8a34 100644 --- a/compileruntime/url_lib_standard/src/main/js/test/List.test.js +++ b/compileruntime/url_lib_standard/src/main/js/test/List.test.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the 'License'); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/compileruntime/url_lib_standard/src/main/js/test/url.test.js b/compileruntime/url_lib_standard/src/main/js/test/url.test.js index 455b99f259e9b837ea1ba24a81d322b9f4aae3ab..253205bca6ac69babfb20fd611c530d7f1fefeb1 100644 --- a/compileruntime/url_lib_standard/src/main/js/test/url.test.js +++ b/compileruntime/url_lib_standard/src/main/js/test/url.test.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/compileruntime/util_lib_standard/BUILD.gn b/compileruntime/util_lib_standard/BUILD.gn index 7678fff0f3c1e37a15a52e80ac77645fd920aaad..1657feb599a62c4fb08f25c15a759843946a88ee 100644 --- a/compileruntime/util_lib_standard/BUILD.gn +++ b/compileruntime/util_lib_standard/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (C) 2021 Huawei Device Co., Ltd. +# Copyright (C) 2022 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at diff --git a/compileruntime/util_lib_standard/src/main/js/default/app.js b/compileruntime/util_lib_standard/src/main/js/default/app.js index ef92b6e96e9db7d997b0be7c2068d560b1cab26d..ff2c11965e08dd2df603562158980963c00e7a25 100644 --- a/compileruntime/util_lib_standard/src/main/js/default/app.js +++ b/compileruntime/util_lib_standard/src/main/js/default/app.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the 'License'); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/compileruntime/util_lib_standard/src/main/js/default/pages/index/index.js b/compileruntime/util_lib_standard/src/main/js/default/pages/index/index.js index 2a25e4cb3e98d7a5827e6d35defc7579f5de766f..e104eaf7a17c519d3227097d9725fec83d8e7850 100644 --- a/compileruntime/util_lib_standard/src/main/js/default/pages/index/index.js +++ b/compileruntime/util_lib_standard/src/main/js/default/pages/index/index.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,7 +13,6 @@ * limitations under the License. */ -import file from '@system.file' import app from '@system.app' import device from '@system.device' import router from '@system.router' @@ -21,7 +20,7 @@ import {Core} from 'deccjsunit/index' export default { data: { - title: "" + title: '' }, onInit() { this.title = this.$t('strings.world'); diff --git a/compileruntime/util_lib_standard/src/main/js/test/List.test.js b/compileruntime/util_lib_standard/src/main/js/test/List.test.js index 2201f3b5bea736246b4ca9254f68c3e11b0a6ec3..f7b342457745b05fe81f7b3d0d45349f7f88a463 100644 --- a/compileruntime/util_lib_standard/src/main/js/test/List.test.js +++ b/compileruntime/util_lib_standard/src/main/js/test/List.test.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the 'License'); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/compileruntime/util_lib_standard/src/main/js/test/util.test.js b/compileruntime/util_lib_standard/src/main/js/test/util.test.js index 4873fe5c186e952a9fe5c42e3c1dbb6857742f21..31b13999874dc65561fe66c17d5beccde9d59e0e 100644 --- a/compileruntime/util_lib_standard/src/main/js/test/util.test.js +++ b/compileruntime/util_lib_standard/src/main/js/test/util.test.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/compileruntime/worker_lib_standard/BUILD.gn b/compileruntime/worker_lib_standard/BUILD.gn index 4906a546e407c76c6229294ed80854e986cf907b..534a78db86305aab446020a20b392a858efb2134 100644 --- a/compileruntime/worker_lib_standard/BUILD.gn +++ b/compileruntime/worker_lib_standard/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (C) 2021 Huawei Device Co., Ltd. +# Copyright (C) 2022 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at diff --git a/compileruntime/worker_lib_standard/src/main/js/default/app.js b/compileruntime/worker_lib_standard/src/main/js/default/app.js index c67dd35e75bcc7d807a855dbe2ff49a07a9bc673..5cdca0218254017a127aa38111a179debf319fb1 100644 --- a/compileruntime/worker_lib_standard/src/main/js/default/app.js +++ b/compileruntime/worker_lib_standard/src/main/js/default/app.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/compileruntime/worker_lib_standard/src/main/js/default/pages/index/index.js b/compileruntime/worker_lib_standard/src/main/js/default/pages/index/index.js index b641a66e74225b2b87d4afb0d5513ed742f2f789..70372a8dc02b308decca64d54fa640aade6c3cfd 100644 --- a/compileruntime/worker_lib_standard/src/main/js/default/pages/index/index.js +++ b/compileruntime/worker_lib_standard/src/main/js/default/pages/index/index.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,7 +13,6 @@ * limitations under the License. */ -import file from '@system.file' import app from '@system.app' import device from '@system.device' import router from '@system.router' @@ -22,7 +21,7 @@ import {Core, Constant, ExpectExtend, ReportExtend, InstrumentLog} from 'deccjsu export default { data: { - title: "" + title: '' }, onInit() { this.title = this.$t('strings.world'); @@ -36,11 +35,11 @@ export default { }, onclick: function () { router.replace({ - uri: "pages/second/second" + uri: 'pages/second/second' }) }, touchMove(e) { - if (e.direction == "right") { + if (e.direction === 'right') { this.appExit(); } }, diff --git a/compileruntime/worker_lib_standard/src/main/js/default/pages/second/second.js b/compileruntime/worker_lib_standard/src/main/js/default/pages/second/second.js index 46f4e681c548f476f243bd6bb0375144486adc69..6d0859a15a11ca39368ce0b7ec4cae3e73c506bd 100644 --- a/compileruntime/worker_lib_standard/src/main/js/default/pages/second/second.js +++ b/compileruntime/worker_lib_standard/src/main/js/default/pages/second/second.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/compileruntime/worker_lib_standard/src/main/js/default/workers/worker.js b/compileruntime/worker_lib_standard/src/main/js/default/workers/worker.js index a91ae6a485b3bb4a03596269e2d5b26a474e90f2..d7321f891774710a844250d59a24d25b1ea4e990 100644 --- a/compileruntime/worker_lib_standard/src/main/js/default/workers/worker.js +++ b/compileruntime/worker_lib_standard/src/main/js/default/workers/worker.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -23,7 +23,7 @@ parentPort.onclose = function() { } parentPort.onmessage = function(e) { - var data = e.data; + let data = e.data; console.info("worker:: worker thread worker data is " + data.data); switch(data.type) { case "normal": @@ -33,7 +33,6 @@ parentPort.onmessage = function(e) { break; case "error": throw new Error("123"); - break; case "buffer": console.info("worker:: worker.js receive buffer length is " + data.data.byteLength); parentPort.postMessage(data, [data.data]); @@ -45,12 +44,12 @@ parentPort.onmessage = function(e) { } } -// 反序列错误 +// Deserialization error parentPort.onmessageerror = function() { console.info("worker:: worker.js onmessageerror"); } -// js执行异常 +// js execution error parentPort.onerror = function(data) { console.info("worker:: worker.js onerror " + data.lineno + ", msg = " + data.message + ", filename = " + data.filename + ", colno = " + data.colno); } \ No newline at end of file diff --git a/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_002.js b/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_002.js index c5eb66b50ba130770b35ea641a0c9aded953305a..75b1ccd3ddb75e3e8242b8695dc5494097f0840a 100644 --- a/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_002.js +++ b/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_002.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -18,6 +18,6 @@ const parentPort = worker.parentPort; parentPort.onmessage = function(e) { console.log("worker:: worker receive data " + e.data); - var data = e.data + " worker"; + let data = e.data + " worker"; parentPort.postMessage(data) } \ No newline at end of file diff --git a/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_003.js b/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_003.js index a2f87c7de322fe6d5c8a76c310df7e082d1eaf99..a45ecabfecd06cf0ba365a9210ec31df67519444 100644 --- a/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_003.js +++ b/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_003.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -17,6 +17,6 @@ import worker from '@ohos.worker'; const parentPort = worker.parentPort; parentPort.onmessage = function(e) { - var data = e.data * 2 + 1 + let data = e.data * 2 + 1 parentPort.postMessage(data) } \ No newline at end of file diff --git a/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_004.js b/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_004.js index 6b29b6a2ee0ec03ceeceaac43e155c91922ecc71..42bfc919130be308ed4397701b18fc091f15c0d9 100644 --- a/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_004.js +++ b/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_004.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -17,7 +17,7 @@ import worker from '@ohos.worker'; const parentPort = worker.parentPort; parentPort.onmessage = function(e) { - var data = e.data; + let data = e.data; data.message = "hello world " + "worker" parentPort.postMessage(data) } \ No newline at end of file diff --git a/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_005.js b/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_005.js index 97184693b5dc15b40907cb7a7b3d8ea5aec5c806..77679245eaa55e0f9cef372499bac2dc6976f2f2 100644 --- a/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_005.js +++ b/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_005.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_006.js b/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_006.js index 133518f6ca89a551bc5659c62d7196d26e98d002..fdd8d8783ba081a5ba0d2297dc217c880272d35d 100644 --- a/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_006.js +++ b/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_006.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_007.js b/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_007.js index 1f966745d18f37d2c63f5b634c961a775a40db27..6b7e100b6aaf053c81bc80f0b0b6ce7d73baa799 100644 --- a/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_007.js +++ b/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_007.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_008.js b/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_008.js index 1bede55995cccd698ea5f53226d84f24e32abe6b..0b5f4de6fe8d362f87b44f2d87a4d7ebcc49d4bd 100644 --- a/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_008.js +++ b/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_008.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_009.js b/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_009.js index 9e6af87ecebd81fb22725118e2a2b4a3c7c8ea00..646e818638e3d22fef5c2f056484a1436fb0fa80 100644 --- a/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_009.js +++ b/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_009.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -19,7 +19,7 @@ const parentPort = worker.parentPort; var ss = undefined; parentPort.onmessage = function(e) { - var data = e.data; + let data = e.data; switch(data.type) { case "new": ss = new worker.Worker("workers/worker_0091.js"); diff --git a/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_0091.js b/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_0091.js index 88dec2cfaf8ac4d4385fa66a3c163df82f08ca6e..a7a1ff89c812ef1b6ae8767448ecf0d36c26e92c 100644 --- a/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_0091.js +++ b/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_0091.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_010.js b/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_010.js index 4b2fe2bab92b0cdc84a866967270b207e0982b93..444946ad6a73b8174b5e1fe93953cccf2cf85356 100644 --- a/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_010.js +++ b/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_010.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -21,7 +21,7 @@ var backValue = undefined; var flag = false; parentPort.onmessage = function(e) { - var data = e.data; + let data = e.data; switch(data.type) { case "new": ss = new worker.Worker("workers/worker_0101.js"); diff --git a/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_0101.js b/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_0101.js index 3e3ac36797a0e785eadfe98a644f18c8afa3943d..9cc4eaeed94f47e864cb6b5da227a1815d7a7ce1 100644 --- a/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_0101.js +++ b/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_0101.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -17,6 +17,6 @@ import worker from "@ohos.worker" const parentPort = worker.parentPort; parentPort.onmessage = function(e) { - var data = e.data; // 12 + let data = e.data; // 12 parentPort.postMessage(data * 2 + 1); // 25 } \ No newline at end of file diff --git a/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_011.js b/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_011.js index 7fa824a29f831676a94499eefbbf16f237adb6af..1a0ddd93b4a6cf645757f9310462bc6e69033fb0 100644 --- a/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_011.js +++ b/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_011.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -21,7 +21,7 @@ var backValue = undefined; var flag = false; parentPort.onmessage = function(e) { - var data = e.data; + let data = e.data; switch(data.type) { case "new": ss = new worker.Worker("workers/worker_0111.js"); diff --git a/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_0111.js b/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_0111.js index f942d2040ec412a8351406acea745b0d864b3c24..d06da03b8e27636752521d43109fa737900938a9 100644 --- a/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_0111.js +++ b/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_0111.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_012.js b/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_012.js index 30acbbe7fe142adf91fb4181b36820b65940ea65..ae3c8f78308c615332ba0402a14c8066aa3291c8 100644 --- a/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_012.js +++ b/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_012.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -21,7 +21,7 @@ var backValue = undefined; var flag = false; parentPort.onmessage = function(e) { - var data = e.data; + let data = e.data; switch(data.type) { case "new": ss = new worker.Worker("workers/worker_0121.js"); diff --git a/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_0121.js b/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_0121.js index 7ad306fb78d34919c1757bc7d0dbe7a991914d6f..42fb4c47eb5b6fe417095181ba3f5a41c8b1e9e8 100644 --- a/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_0121.js +++ b/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_0121.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -21,7 +21,7 @@ var backValue = undefined; var flag = false; parentPort.onmessage = function(e) { - var data = e.data; + let data = e.data; switch(data.type) { case "new": ss = new worker.Worker("workers/worker_0122.js"); diff --git a/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_0122.js b/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_0122.js index 92b3f38920fd009ff578234e45fdd59a53223f48..41abfa902d197c06746babd4026bdaa05d435704 100644 --- a/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_0122.js +++ b/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_0122.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_013.js b/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_013.js index a80bc24eecfde0eebb7fa6e364ed4ab7f7a0a06a..11eb95ff01b583aa826cee0629121e692ef4cc6b 100644 --- a/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_013.js +++ b/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_013.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_0131.js b/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_0131.js index 811ef958ac51c4dd6640e1d8c36491eaeae96965..0004da32865620e764cb51dc427f0c29694059f6 100644 --- a/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_0131.js +++ b/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_0131.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -17,6 +17,6 @@ import worker from "@ohos.worker" const parentPort = worker.parentPort; parentPort.onmessage = function(e) { - var data = e.data; // hello world + let data = e.data; // hello world parentPort.postMessage(data + " worker"); // hello world worker } \ No newline at end of file diff --git a/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_014.js b/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_014.js index a58f6c5b4e5fea3bb174f2beb9deb3468037d4df..30e7f366a3526d2879ed02be68cc89599d4d0943 100644 --- a/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_014.js +++ b/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_014.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -21,7 +21,7 @@ var backValue = undefined; var flag = false; parentPort.onmessage = function(e) { - var data = e.data; + let data = e.data; switch(data.type) { case "new": ss = new worker.Worker("workers/worker_0141.js"); diff --git a/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_0141.js b/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_0141.js index 2cc95a09575fb868197605287d8fb549bd4d0048..c8d5b7d7b63cdc61f31e4c622fd67355d20cfe6a 100644 --- a/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_0141.js +++ b/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_0141.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -17,7 +17,7 @@ import worker from "@ohos.worker" const parentPort = worker.parentPort; parentPort.onmessage = function(e) { - var data = e.data; + let data = e.data; data[0] += 1 parentPort.postMessage(data); // [2, 2] } \ No newline at end of file diff --git a/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_015.js b/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_015.js index 5f18b2d4682e085f52ccde66cc0f1a69a8a8ea70..2e4e0a1f04b41ea720c59bf255b3c44d8d066dae 100644 --- a/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_015.js +++ b/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_015.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_0151.js b/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_0151.js index d1114c5d4bc484c215fec4d47717a1440ca44f1f..d9cc1e07a22997acd5f4389c2fee3c3b9c2a433f 100644 --- a/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_0151.js +++ b/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_0151.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -21,7 +21,7 @@ var backValue = undefined; var flag = false; parentPort.onmessage = function(e) { - var data = e.data; + let data = e.data; switch(data.type) { case "new": ss = new worker.Worker("workers/worker_0152.js"); diff --git a/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_0152.js b/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_0152.js index eb22d7afbc5a47808ae6e3d28e3c1a2a77cbab7f..ea073a6040b65d3bab5367ea9022d147bb42e559 100644 --- a/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_0152.js +++ b/compileruntime/worker_lib_standard/src/main/js/default/workers/worker_0152.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -17,6 +17,6 @@ import worker from "@ohos.worker" const parentPort = worker.parentPort; parentPort.onmessage = function(e) { - var data = e.data; + let data = e.data; parentPort.postMessage(data + 3); // 16 } \ No newline at end of file diff --git a/compileruntime/worker_lib_standard/src/main/js/test/List.test.js b/compileruntime/worker_lib_standard/src/main/js/test/List.test.js index 6a95903f18c4065ec3a9458ffbca47c6c5a7b837..65bc7662112f3e656959d461db4805dad5ea247f 100644 --- a/compileruntime/worker_lib_standard/src/main/js/test/List.test.js +++ b/compileruntime/worker_lib_standard/src/main/js/test/List.test.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,4 +13,4 @@ * limitations under the License. */ -require("./Worker.test.js") \ No newline at end of file +require('./Worker.test.js') \ No newline at end of file diff --git a/compileruntime/worker_lib_standard/src/main/js/test/Worker.test.js b/compileruntime/worker_lib_standard/src/main/js/test/Worker.test.js index 245be48e7d164221f7c5c9521cb7d4c4cda51e09..f10a4b553a53301072f1048cac4542b689d6162e 100644 --- a/compileruntime/worker_lib_standard/src/main/js/test/Worker.test.js +++ b/compileruntime/worker_lib_standard/src/main/js/test/Worker.test.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/compileruntime/xml_lib_standard/BUILD.gn b/compileruntime/xml_lib_standard/BUILD.gn index f92371eb9f41aa2ee54d92d98a4c5a85e6e01746..9bf40e8f2abca80923105106fc6fd2990557138e 100644 --- a/compileruntime/xml_lib_standard/BUILD.gn +++ b/compileruntime/xml_lib_standard/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (C) 2021 Huawei Device Co., Ltd. +# Copyright (C) 2022 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at diff --git a/compileruntime/xml_lib_standard/src/main/js/default/app.js b/compileruntime/xml_lib_standard/src/main/js/default/app.js index e423f4bce4698ec1d7dc86c3eea3990a5e7b1085..830070d196d86b127cea947d168bfd116f446205 100644 --- a/compileruntime/xml_lib_standard/src/main/js/default/app.js +++ b/compileruntime/xml_lib_standard/src/main/js/default/app.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/compileruntime/xml_lib_standard/src/main/js/default/pages/index/index.js b/compileruntime/xml_lib_standard/src/main/js/default/pages/index/index.js index 2a25e4cb3e98d7a5827e6d35defc7579f5de766f..5e67f8e072d3ae666870549ab0c59e410073f383 100644 --- a/compileruntime/xml_lib_standard/src/main/js/default/pages/index/index.js +++ b/compileruntime/xml_lib_standard/src/main/js/default/pages/index/index.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,7 +13,7 @@ * limitations under the License. */ -import file from '@system.file' + import app from '@system.app' import device from '@system.device' import router from '@system.router' @@ -21,7 +21,7 @@ import {Core} from 'deccjsunit/index' export default { data: { - title: "" + title: '' }, onInit() { this.title = this.$t('strings.world'); diff --git a/compileruntime/xml_lib_standard/src/main/js/test/List.test.js b/compileruntime/xml_lib_standard/src/main/js/test/List.test.js index c3a6fb3c86ed8e5b19848d7e92b63d1bc44db547..18b4dae16b7d704dcc6a3c5b867a10ca38d78cd5 100644 --- a/compileruntime/xml_lib_standard/src/main/js/test/List.test.js +++ b/compileruntime/xml_lib_standard/src/main/js/test/List.test.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/compileruntime/xml_lib_standard/src/main/js/test/xml.test.js b/compileruntime/xml_lib_standard/src/main/js/test/xml.test.js index 34386817c1e9fe3b2cc5a80bc13360b349b45498..1eef587adf9c167b7106de663890804e4ca3fb04 100644 --- a/compileruntime/xml_lib_standard/src/main/js/test/xml.test.js +++ b/compileruntime/xml_lib_standard/src/main/js/test/xml.test.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the 'License'); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -113,7 +113,7 @@ describe('XmlSerializerXmlPullParserTest', function () { /** * @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.author: lihucheng */ @@ -134,7 +134,7 @@ describe('XmlSerializerXmlPullParserTest', function () { /** * @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.author: lihucheng */ @@ -157,7 +157,7 @@ describe('XmlSerializerXmlPullParserTest', function () { /** * @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.author: lihucheng */ @@ -180,7 +180,7 @@ describe('XmlSerializerXmlPullParserTest', function () { /** * @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.author: lihucheng */ @@ -205,7 +205,7 @@ describe('XmlSerializerXmlPullParserTest', function () { /** * @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.author: lihucheng */ @@ -1136,8 +1136,8 @@ describe('XmlSerializerXmlPullParserTest', function () { ' John & Hans' + ' Happy' + ' Happy' + - ' Work' + - ' Play' + + ' Work' + + ' Play' + ' ' + ' ' + ' ' + @@ -1175,8 +1175,8 @@ describe('XmlSerializerXmlPullParserTest', function () { 'falsefalsekey:925170amp;amp;falsetruekey:425670 Hansfalsefalsekey:326670companyfalsetruekey:1017070 ' + 'falsetruekey:227770titlefalsetruekey:428270 Happyfalsefalsekey:329070titlefalsetruekey:1019470 ' + 'falsetruekey:2210170titlefalsetruekey:4210670 Happyfalsefalsekey:3211470titlefalsetruekey:10111870 ' + - 'falsetruekey:2212470todofalsetruekey:4212870 Workfalsefalsekey:3213570todofalsetruekey:10113970 ' + - 'falsetruekey:2214570todofalsetruekey:4214970 Playfalsefalsekey:3215670todofalsetruekey:10116070 ' + + 'falsetruekey:2212470lensfalsetruekey:4212870 Workfalsefalsekey:3213570lensfalsetruekey:10113970 ' + + 'falsetruekey:2214570lensfalsetruekey:4214970 Playfalsefalsekey:3215670lensfalsetruekey:10116070 ' + 'falsetruekey:8117270go therefalsetruekey:10117670 falsetruekey:2217970afalsetruekey:' + '2318370btruetruekey:3318370bfalsetruekey:3218770afalsetruekey:10119170 falsetruekey:2223870table ' + 'http://www.w3.org/TR/html4/hfalsefalsekey:10224670 ' + @@ -1206,8 +1206,8 @@ describe('XmlSerializerXmlPullParserTest', function () { ' John & Hans' + ' Happy' + ' Happy' + - ' Work' + - ' Play' + + ' Work' + + ' Play' + ' ' + ' ' + ' ' + @@ -1245,8 +1245,8 @@ describe('XmlSerializerXmlPullParserTest', function () { 'John falsefalsekey:925170amp;amp;falsetruekey:425670 Hansfalsefalsekey:326670companyfalsetruekey:1017070' + ' falsetruekey:227770titlefalsetruekey:428270 Happyfalsefalsekey:329070titlefalsetruekey:1019470 ' + 'falsetruekey:2210170titlefalsetruekey:4210670 Happyfalsefalsekey:3211470titlefalsetruekey:10111870 ' + - 'falsetruekey:2212470todofalsetruekey:4212870 Workfalsefalsekey:3213570todofalsetruekey:10113970 ' + - 'falsetruekey:2214570todofalsetruekey:4214970 Playfalsefalsekey:3215670todofalsetruekey:10116070 ' + + 'falsetruekey:2212470lensfalsetruekey:4212870 Workfalsefalsekey:3213570lensfalsetruekey:10113970 ' + + 'falsetruekey:2214570lensfalsetruekey:4214970 Playfalsefalsekey:3215670lensfalsetruekey:10116070 ' + 'falsetruekey:8117270go therefalsetruekey:10117670 falsetruekey:2217970afalsetruekey:' + '2318370btruetruekey:3318370bfalsetruekey:3218770afalsetruekey:10119170 falsetruekey:' + '2223871h:tablefalsefalsekey:10224670 falsetruekey:2325270h:trfalsetruekey:10326470 ' + @@ -1273,8 +1273,8 @@ describe('XmlSerializerXmlPullParserTest', function () { ' John & Hans' + ' Happy' + ' Happy' + - ' Work' + - ' Play' + + ' Work' + + ' Play' + ' ' + ' ' + ' ' + @@ -1311,9 +1311,9 @@ describe('XmlSerializerXmlPullParserTest', function () { ':1013270 falsetruekey:224170companyfalsetruekey:424670 John falsefalsekey:925170amp;amp;falsetruekey' + ':425670 Hansfalsefalsekey:326670companyfalsetruekey:1017070 falsetruekey:227770titlefalsetruekey:428' + '270 Happyfalsefalsekey:329070titlefalsetruekey:1019470 falsetruekey:2210170titlefalsetruekey:4210670 ' + - 'Happyfalsefalsekey:3211470titlefalsetruekey:10111870 falsetruekey:2212470todofalsetruekey:4212870 ' + - 'Workfalsefalsekey:3213570todofalsetruekey:10113970 falsetruekey:2214570todofalsetruekey:4214970 ' + - 'Playfalsefalsekey:3215670todofalsetruekey:10116070 falsetruekey:8117270go therefalsetruekey' + + 'Happyfalsefalsekey:3211470titlefalsetruekey:10111870 falsetruekey:2212470lensfalsetruekey:4212870 ' + + 'Workfalsefalsekey:3213570lensfalsetruekey:10113970 falsetruekey:2214570lensfalsetruekey:4214970 ' + + 'Playfalsefalsekey:3215670lensfalsetruekey:10116070 falsetruekey:8117270go therefalsetruekey' + ':10117670 falsetruekey:2217970afalsetruekey:2318370btruetruekey:3318370bfalsetruekey' + ':3218770afalsetruekey:10119170 falsetruekey:2223871h:tablefalsefalsekey:10224670 ' + 'falsetruekey:2325270h:trfalsetruekey:10326470 falsetruekey:' + @@ -1341,8 +1341,8 @@ describe('XmlSerializerXmlPullParserTest', function () { ' John & Hans' + ' Happy' + ' Happy' + - ' Work' + - ' Play' + + ' Work' + + ' Play' + ' ' + ' ' + ' ' + @@ -1386,8 +1386,8 @@ describe('XmlSerializerXmlPullParserTest', function () { ' John & Hans' + ' Happy' + ' Happy' + - ' Work' + - ' Play' + + ' Work' + + ' Play' + ' ' + ' ' + ' ' + @@ -1411,7 +1411,7 @@ describe('XmlSerializerXmlPullParserTest', function () { } var options = {supportDoctype:true, ignoreNameSpace:true, tagValueCallbackFunction:func1} 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) }) }) \ No newline at end of file