From a62a150b7adc3ac1097d7329e0a8a2b335804e0e Mon Sep 17 00:00:00 2001 From: yqhan Date: Fri, 29 Apr 2022 14:25:28 +0800 Subject: [PATCH] Solve problems with worker's XTS cases Describe:In the pressure test environment, worker's XTS case has a probability of flashing back. issue:https://gitee.com/openharmony/xts_acts/issues/I55CS5?from=project-issue Signed-off-by: yqhan --- .../src/main/js/default/pages/index/index.js | 5 --- .../main/js/default/pages/second/second.css | 39 ------------------- .../main/js/default/pages/second/second.hml | 21 ---------- .../main/js/default/pages/second/second.js | 27 ------------- 4 files changed, 92 deletions(-) delete mode 100644 compileruntime/worker_lib_standard/src/main/js/default/pages/second/second.css delete mode 100644 compileruntime/worker_lib_standard/src/main/js/default/pages/second/second.hml delete mode 100644 compileruntime/worker_lib_standard/src/main/js/default/pages/second/second.js 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 70372a8dc..0f185cf96 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 @@ -33,11 +33,6 @@ export default { require('../../../test/List.test') core.execute() }, - onclick: function () { - router.replace({ - uri: 'pages/second/second' - }) - }, touchMove(e) { if (e.direction === 'right') { this.appExit(); diff --git a/compileruntime/worker_lib_standard/src/main/js/default/pages/second/second.css b/compileruntime/worker_lib_standard/src/main/js/default/pages/second/second.css deleted file mode 100644 index db2b048d6..000000000 --- a/compileruntime/worker_lib_standard/src/main/js/default/pages/second/second.css +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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 - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -.container { - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; - left: 0px; - top: 0px; - width: 100%; - height: 100%; -} - -.title { - font-size: 60px; - text-align: center; - width: 100%; - height: 40%; - margin: 10px; -} - -.btn { - width: 50%; - height: 100px; - font-size: 40px; -} diff --git a/compileruntime/worker_lib_standard/src/main/js/default/pages/second/second.hml b/compileruntime/worker_lib_standard/src/main/js/default/pages/second/second.hml deleted file mode 100644 index 4f0c7498b..000000000 --- a/compileruntime/worker_lib_standard/src/main/js/default/pages/second/second.hml +++ /dev/null @@ -1,21 +0,0 @@ - - -
- - {{ $t('strings.page') }} - - -
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 deleted file mode 100644 index 6d0859a15..000000000 --- a/compileruntime/worker_lib_standard/src/main/js/default/pages/second/second.js +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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 - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import router from '@system.router' - -export default { - data: { - title: 'World' - }, - onclick: function () { - router.replace({ - uri: "pages/index/index" - }) - } -} -- GitLab