提交 d5fcea02 编写于 作者: O openharmony_ci 提交者: Gitee

!603 L2 notification中ans整改

Merge pull request !603 from jiyong/master
...@@ -16,6 +16,9 @@ import("//build/ohos_var.gni") ...@@ -16,6 +16,9 @@ import("//build/ohos_var.gni")
group("notification") { group("notification") {
testonly = true testonly = true
if (is_standard_system) { if (is_standard_system) {
deps = [ "ces_standard:ces_standard" ] deps = [
"ans_standard:ans_standard",
"ces_standard:ces_standard",
]
} }
} }
# Copyright (c) 2021 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("//build/ohos_var.gni")
group("ans_standard") {
testonly = true
if (is_standard_system) {
deps = [
"cancel_test:cancel_test",
"publish_test:publish_test",
]
}
}
...@@ -10,10 +10,11 @@ ...@@ -10,10 +10,11 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# 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("//build/config/ohos/rules.gni") import("//build/ohos_var.gni")
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("AnsNotificationTestCancel") { group("cancel_test") {
test_hap_name = "AnsNotificationTestCancel" testonly = true
hap_source_path = "hap/ans_signed.hap" if (is_standard_system) {
deps = [ "MyApplicationCancelAll:ans_signed" ]
}
} }
# Copyright (c) 2021 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("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ans_signed") {
hap_profile = "./entry/src/main/config.json"
deps = [
":hjs_demo_js_assets",
":hjs_demo_resources",
]
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "ans_signed"
}
ohos_js_assets("hjs_demo_js_assets") {
source_dir = "./entry/src/main/js/default"
}
ohos_resources("hjs_demo_resources") {
sources = [ "./entry/src/main/js/resources" ]
hap_profile = "./entry/src/main/config.json"
}
{
"description": "Configuration for hjunit demo Tests",
"driver": {
"type": "JSUnitTest",
"test-timeout": "21600000",
"package": "com.example.myapplication",
"shell-timeout": "21600000"
},
"kits": [
{
"test-file-name": [
"ans_signed.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
}
]
}
...@@ -18,6 +18,9 @@ import device from '@system.device' ...@@ -18,6 +18,9 @@ import device from '@system.device'
import router from '@system.router' import router from '@system.router'
import {Core, ExpectExtend, ReportExtend} from 'deccjsunit/index' import {Core, ExpectExtend, ReportExtend} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default { export default {
data: { data: {
title: "" title: ""
......
# Copyright (c) 2021 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("//build/ohos_var.gni")
group("publish_test") {
testonly = true
if (is_standard_system) {
deps = [ "notification-ContentType-All:contentType-signed" ]
}
}
# Copyright (c) 2021 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("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("contentType-signed") {
hap_profile = "./entry/src/main/config.json"
deps = [
":hjs_demo_js_assets",
":hjs_demo_resources",
]
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "contentType-signed"
}
ohos_js_assets("hjs_demo_js_assets") {
source_dir = "./entry/src/main/js/default"
}
ohos_resources("hjs_demo_resources") {
sources = [ "./entry/src/main/js/resources" ]
hap_profile = "./entry/src/main/config.json"
}
{
"description": "Configuration for hjunit demo Tests",
"driver": {
"type": "JSUnitTest",
"test-timeout": "21600000",
"package": "com.example.test",
"shell-timeout": "21600000"
},
"kits": [
{
"test-file-name": [
"contentType-signed.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
}
]
}
...@@ -18,6 +18,9 @@ import device from '@system.device' ...@@ -18,6 +18,9 @@ import device from '@system.device'
import router from '@system.router' import router from '@system.router'
import {Core, ExpectExtend, ReportExtend} from 'deccjsunit/index' import {Core, ExpectExtend, ReportExtend} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default { export default {
data: { data: {
title: "" title: ""
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册