提交 79f5b439 编写于 作者: Q qinliwen

<ImageXTS修改>

Signed-off-by: Nqinliwen <qinliwen3@huawei.com>
上级 efb7ef25
...@@ -19,7 +19,9 @@ group("multimedia") { ...@@ -19,7 +19,9 @@ group("multimedia") {
deps = [ deps = [
"audio/audio_js_standard/audioManager:audio_manager_js_hap", "audio/audio_js_standard/audioManager:audio_manager_js_hap",
"camera/camera_js_standard:camera_standard_ets_hap", "camera/camera_js_standard:camera_standard_ets_hap",
"image/image_js_standard:image_js_hap", "image/image_js_standard/image:image_js_hap",
"image/image_js_standard/imageDecodeOptions:image_DecodeOptions_js_hap",
"image/image_js_standard/imageExif:image_exif_js_hap",
"media/media_js_standard/audioCodecFormat:audio_codec_format_js_hap", "media/media_js_standard/audioCodecFormat:audio_codec_format_js_hap",
"media/media_js_standard/audioDecoder:audio_decoder_js_hap", "media/media_js_standard/audioDecoder:audio_decoder_js_hap",
"media/media_js_standard/audioEncoder:audio_encoder_js_hap", "media/media_js_standard/audioEncoder:audio_encoder_js_hap",
......
{
"description": "Configuration for Image Tests",
"driver": {
"type": "JSUnitTest",
"test-timeout": "1500000",
"package": "ohos.acts.multimedia.image",
"shell-timeout": "120000"
},
"kits": [
{
"type": "PushKit",
"pre-push": [
],
"push": [
"./resource/image/test.tiff ->/storage/media/100/local/files",
"./resource/image/test.123 ->/storage/media/100/local/files",
"./resource/image/test.bmp ->/storage/media/100/local/files",
"./resource/image/test.png ->/storage/media/100/local/files",
"./resource/image/test.gif ->/storage/media/100/local/files",
"./resource/image/test.jpg ->/storage/media/100/local/files",
"./resource/image/test_exif.jpg ->/storage/media/100/local/files",
"./resource/image/moving_test.gif ->/storage/media/100/local/files"
]
},
{
"type": "ShellKit",
"run-command": [
"mkdir /storage/media/100/local/files/img",
"cp /storage/media/100/local/files/test.tiff /storage/media/100/local/files/img/",
"cp /storage/media/100/local/files/test.123 /storage/media/100/local/files/img/",
"cp /storage/media/100/local/files/test.bmp /storage/media/100/local/files/img/",
"cp /storage/media/100/local/files/test.bmp /storage/media/100/local/files/img/test0.bmp",
"cp /storage/media/100/local/files/test.bmp /storage/media/100/local/files/img/test1.bmp",
"cp /storage/media/100/local/files/test.bmp /storage/media/100/local/files/img/test2.bmp",
"cp /storage/media/100/local/files/test.bmp /storage/media/100/local/files/img/test3.bmp",
"cp /storage/media/100/local/files/test.bmp /storage/media/100/local/files/img/test4.bmp",
"cp /storage/media/100/local/files/test.bmp /storage/media/100/local/files/img/test5.bmp",
"cp /storage/media/100/local/files/test.bmp /storage/media/100/local/files/img/test6.bmp",
"cp /storage/media/100/local/files/test.bmp /storage/media/100/local/files/img/test7.bmp",
"cp /storage/media/100/local/files/test.bmp /storage/media/100/local/files/img/test8.bmp",
"cp /storage/media/100/local/files/test.bmp /storage/media/100/local/files/img/test9.bmp",
"cp /storage/media/100/local/files/test.bmp /storage/media/100/local/files/img/test10.bmp",
"cp /storage/media/100/local/files/test.bmp /storage/media/100/local/files/img/test11.bmp",
"cp /storage/media/100/local/files/test.bmp /storage/media/100/local/files/img/test12.bmp",
"cp /storage/media/100/local/files/test.bmp /storage/media/100/local/files/img/test13.bmp",
"cp /storage/media/100/local/files/test.bmp /storage/media/100/local/files/img/test14.bmp",
"cp /storage/media/100/local/files/test.bmp /storage/media/100/local/files/img/test15.bmp",
"cp /storage/media/100/local/files/test.png /storage/media/100/local/files/img/",
"cp /storage/media/100/local/files/test.png /storage/media/100/local/files/img/test0.png",
"cp /storage/media/100/local/files/test.png /storage/media/100/local/files/img/test1.png",
"cp /storage/media/100/local/files/test.png /storage/media/100/local/files/img/test2.png",
"cp /storage/media/100/local/files/test.png /storage/media/100/local/files/img/test3.png",
"cp /storage/media/100/local/files/test.png /storage/media/100/local/files/img/test4.png",
"cp /storage/media/100/local/files/test.png /storage/media/100/local/files/img/test5.png",
"cp /storage/media/100/local/files/test.png /storage/media/100/local/files/img/test6.png",
"cp /storage/media/100/local/files/test.png /storage/media/100/local/files/img/test7.png",
"cp /storage/media/100/local/files/test.png /storage/media/100/local/files/img/test8.png",
"cp /storage/media/100/local/files/test.png /storage/media/100/local/files/img/test9.png",
"cp /storage/media/100/local/files/test.png /storage/media/100/local/files/img/test10.png",
"cp /storage/media/100/local/files/test.png /storage/media/100/local/files/img/test11.png",
"cp /storage/media/100/local/files/test.png /storage/media/100/local/files/img/test12.png",
"cp /storage/media/100/local/files/test.png /storage/media/100/local/files/img/test13.png",
"cp /storage/media/100/local/files/test.png /storage/media/100/local/files/img/test14.png",
"cp /storage/media/100/local/files/test.png /storage/media/100/local/files/img/test15.png",
"cp /storage/media/100/local/files/test.png /storage/media/100/local/files/img/test00.png",
"cp /storage/media/100/local/files/test.png /storage/media/100/local/files/img/test01.png",
"cp /storage/media/100/local/files/test.png /storage/media/100/local/files/img/test02.png",
"cp /storage/media/100/local/files/test.png /storage/media/100/local/files/img/test03.png",
"cp /storage/media/100/local/files/test.png /storage/media/100/local/files/img/test04.png",
"cp /storage/media/100/local/files/test.png /storage/media/100/local/files/img/test05.png",
"cp /storage/media/100/local/files/test.png /storage/media/100/local/files/img/test06.png",
"cp /storage/media/100/local/files/test.png /storage/media/100/local/files/img/test07.png",
"cp /storage/media/100/local/files/test.png /storage/media/100/local/files/img/test08.png",
"cp /storage/media/100/local/files/test.png /storage/media/100/local/files/img/test09.png",
"cp /storage/media/100/local/files/test.gif /storage/media/100/local/files/img/",
"cp /storage/media/100/local/files/test.jpg /storage/media/100/local/files/img/",
"cp /storage/media/100/local/files/test.jpg /storage/media/100/local/files/img/test0.jpg",
"cp /storage/media/100/local/files/test_exif.jpg /storage/media/100/local/files/img/",
"cp /storage/media/100/local/files/moving_test.gif /storage/media/100/local/files/img/",
"chmod -R 666 /data/media/*",
"chmod -R 666 /storage/media/100/local/files/img/*",
"killall com.ohos.medialibrary.MediaScannerAbilityA",
"aa start -a MediaScannerAbility -b com.ohos.medialibrary.MediaScannerAbilityA"
],
"teardown-command":[
]
},
{
"test-file-name": [
"ActsImageJsTest.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
}
]
}
{
"description": "Configuration for Image Tests",
"driver": {
"type": "JSUnitTest",
"test-timeout": "300000",
"package": "ohos.acts.multimedia.image",
"shell-timeout": "120000"
},
"kits": [
{
"type": "ShellKit",
"run-command": [
"mkdir /data/app/el2/100/base/ohos.acts.multimedia.image/files",
"chmod 777 /data/app/el2/100/base/ohos.acts.multimedia.image/files"
]
},
{
"type": "PushKit",
"pre-push": [
],
"push": [
"./resource/image/test.bmp ->/data/app/el2/100/base/ohos.acts.multimedia.image/files",
"./resource/image/test.png ->/data/app/el2/100/base/ohos.acts.multimedia.image/files",
"./resource/image/test.123 ->/data/app/el2/100/base/ohos.acts.multimedia.image/files",
"./resource/image/test.gif ->/data/app/el2/100/base/ohos.acts.multimedia.image/files",
"./resource/image/test.jpg ->/data/app/el2/100/base/ohos.acts.multimedia.image/files",
"./resource/image/moving_test.gif ->/data/app/el2/100/base/ohos.acts.multimedia.image/files"
]
},
{
"type": "ShellKit",
"run-command": [
"chmod 777 /data/app/el2/100/base/ohos.acts.multimedia.image/files/test.bmp",
"chmod 777 /data/app/el2/100/base/ohos.acts.multimedia.image/files/test.png",
"chmod 777 /data/app/el2/100/base/ohos.acts.multimedia.image/files/test.123",
"chmod 777 /data/app/el2/100/base/ohos.acts.multimedia.image/files/test.gif",
"chmod 777 /data/app/el2/100/base/ohos.acts.multimedia.image/files/test.jpg",
"chmod 777 /data/app/el2/100/base/ohos.acts.multimedia.image/files/moving_test.gif"
],
"teardown-command":[
]
},
{
"test-file-name": [
"ActsImageJsTest.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
}
]
}
# 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("image_DecodeOptions_js_hap") {
hap_profile = "./src/main/config.json"
deps = [
":image_DecodeOptions_js_assets",
":image_DecodeOptions_resources",
]
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "ActsImageDecodeOptionsJsTest"
}
ohos_js_assets("image_DecodeOptions_js_assets") {
source_dir = "./src/main/js/default"
}
ohos_resources("image_DecodeOptions_resources") {
sources = [ "./src/main/resources" ]
hap_profile = "./src/main/config.json"
}
{
"description": "Configuration for Image Tests",
"driver": {
"type": "JSUnitTest",
"test-timeout": "1200000",
"package": "ohos.acts.multimedia.image.DecodeOptions",
"shell-timeout": "120000"
},
"kits": [
{
"type": "ShellKit",
"run-command": [
"mkdir /data/app/el2/100/base/ohos.acts.multimedia.image.DecodeOptions/files",
"chmod 777 /data/app/el2/100/base/ohos.acts.multimedia.image.DecodeOptions/files"
]
},
{
"type": "PushKit",
"pre-push": [
],
"push": [
"./resource/image/test.bmp ->/data/app/el2/100/base/ohos.acts.multimedia.image.DecodeOptions/files",
"./resource/image/test.png ->/data/app/el2/100/base/ohos.acts.multimedia.image.DecodeOptions/files",
"./resource/image/test.tiff ->/data/app/el2/100/base/ohos.acts.multimedia.image.DecodeOptions/files",
"./resource/image/test.jpg ->/data/app/el2/100/base/ohos.acts.multimedia.image.DecodeOptions/files",
"./resource/image/moving_test.gif ->/data/app/el2/100/base/ohos.acts.multimedia.image.DecodeOptions/files"
]
},
{
"type": "ShellKit",
"run-command": [
"chmod 777 /data/app/el2/100/base/ohos.acts.multimedia.image.DecodeOptions/files/test.bmp",
"chmod 777 /data/app/el2/100/base/ohos.acts.multimedia.image.DecodeOptions/files/test.png",
"chmod 777 /data/app/el2/100/base/ohos.acts.multimedia.image.DecodeOptions/files/test.tiff",
"chmod 777 /data/app/el2/100/base/ohos.acts.multimedia.image.DecodeOptions/files/test.jpg",
"chmod 777 /data/app/el2/100/base/ohos.acts.multimedia.image.DecodeOptions/files/moving_test.gif"
],
"teardown-command":[
]
},
{
"test-file-name": [
"ActsImageDecodeOptionsJsTest.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
}
]
}
{
"app": {
"apiVersion": {
"compatible": 6,
"releaseType": "Beta1",
"target": 7
},
"vendor": "acts",
"bundleName": "ohos.acts.multimedia.image.DecodeOptions",
"version": {
"code": 1000000,
"name": "1.0.0"
}
},
"deviceConfig": {
"default": {
"debug": true
}
},
"module": {
"abilities": [
{
"iconId": 16777218,
"skills": [
{
"entities": [
"entity.system.home"
],
"actions": [
"action.system.home"
]
}
],
"descriptionId": 16777217,
"visible": true,
"labelId": 16777216,
"icon": "$media:icon",
"name": "ohos.acts.multimedia.image.DecodeOptions.MainAbility",
"description": "$string:mainability_description",
"label": "$string:entry_MainAbility",
"type": "page",
"homeAbility": true,
"launchType": "standard"
}
],
"deviceType": [
"phone",
"tablet",
"tv",
"wearable"
],
"mainAbility": "ohos.acts.multimedia.image.DecodeOptions.MainAbility",
"distro": {
"moduleType": "entry",
"installationFree": false,
"deliveryWithInstall": true,
"moduleName": "entry"
},
"reqPermissions": [
{
"name": "ohos.permission.GET_BUNDLE_INFO",
"reason": "use ohos.permission.GET_BUNDLE_INFO"
},
{
"name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"reason":"use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name" : "ohos.permission.GRANT_SENSITIVE_PERMISSIONS",
"reason" : "use ohos.permission.GRANT_SENSITIVE_PERMISSIONS"
},
{
"name" : "ohos.permission.REVOKE_SENSITIVE_PERMISSIONS",
"reason" : "use ohos.permission.REVOKE_SENSITIVE_PERMISSIONS"
},
{
"name": "ohos.permission.MEDIA_LOCATION",
"reason":"use ohos.permission.MEDIA_LOCATION"
},
{
"name": "ohos.permission.READ_MEDIA",
"reason":"use ohos.permission.READ_MEDIA"
},
{
"name": "ohos.permission.WRITE_MEDIA",
"reason":"use ohos.permission.WRITE_MEDIA"
}
],
"package": "ohos.acts.multimedia.image.DecodeOptions",
"name": ".MyApplication",
"js": [
{
"pages": [
"pages/index/index"
],
"name": "default",
"window": {
"designWidth": 720,
"autoDesignWidth": true
}
}
]
}
}
\ No newline at end of file
/*
* 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.
*/
export default {
onCreate() {
console.info('AceApplication onCreate');
},
onDestroy() {
console.info('AceApplication onDestroy');
}
};
{
"strings": {
"hello": "Hello",
"world": "World"
}
}
\ No newline at end of file
{
"strings": {
"hello": "您好",
"world": "世界"
}
}
\ No newline at end of file
.container {
flex-direction: column;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
}
.title {
font-size: 40px;
color: #000000;
opacity: 0.9;
}
@media screen and (device-type: tablet) and (orientation: landscape) {
.title {
font-size: 100px;
}
}
@media screen and (device-type: wearable) {
.title {
font-size: 28px;
color: #FFFFFF;
}
}
@media screen and (device-type: tv) {
.container {
background-image: url("/common/images/Wallpaper.png");
background-size: cover;
background-repeat: no-repeat;
background-position: center;
}
.title {
font-size: 100px;
color: #FFFFFF;
}
}
@media screen and (device-type: phone) and (orientation: landscape) {
.title {
font-size: 60px;
}
}
<div class="container">
<text class="title">
{{ $t('strings.hello') }} {{ title }}
</text>
</div>
/*
* 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 {Core, ExpectExtend} from 'deccjsunit/index'
export default {
data: {
title: ""
},
onInit() {
this.title = this.$t('strings.world');
},
onShow() {
console.info('onShow finish')
const core = Core.getInstance()
const expectExtend = new ExpectExtend({
'id': 'extend'
})
core.addService('expect', expectExtend)
core.init()
const configService = core.getDefaultService('config')
this.timeout = 60000
configService.setConfig(this)
require('../../../test/List.test')
core.execute()
},
onReady() {
},
}
\ No newline at end of file
/*
* 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.
*/
require('./image.test.js')
\ No newline at end of file
{
"string": [
{
"name": "entry_MainAbility",
"value": "ImageJSTestMain"
},
{
"name": "mainability_description",
"value": "ImageJSTestMain Ability"
}
]
}
\ No newline at end of file
# 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("image_exif_js_hap") {
hap_profile = "./src/main/config.json"
deps = [
":image_exif_js_assets",
":image_exif_resources",
]
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "ActsImageExifJsTest"
}
ohos_js_assets("image_exif_js_assets") {
source_dir = "./src/main/js/default"
}
ohos_resources("image_exif_resources") {
sources = [ "./src/main/resources" ]
hap_profile = "./src/main/config.json"
}
{
"description": "Configuration for Image Tests",
"driver": {
"type": "JSUnitTest",
"test-timeout": "300000",
"package": "ohos.acts.multimedia.image.Exif",
"shell-timeout": "120000"
},
"kits": [
{
"type": "ShellKit",
"run-command": [
"mkdir /data/app/el2/100/base/ohos.acts.multimedia.image.Exif/files",
"chmod 777 /data/app/el2/100/base/ohos.acts.multimedia.image.Exif/files"
]
},
{
"type": "PushKit",
"pre-push": [
],
"push": [
"./resource/image/test_exif.jpg ->/data/app/el2/100/base/ohos.acts.multimedia.image.Exif/files"
]
},
{
"type": "ShellKit",
"run-command": [
"chmod 777 /data/app/el2/100/base/ohos.acts.multimedia.image.Exif/files/test_exif.jpg"
],
"teardown-command":[
]
},
{
"test-file-name": [
"ActsImageExifJsTest.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
}
]
}
{
"app": {
"apiVersion": {
"compatible": 6,
"releaseType": "Beta1",
"target": 7
},
"vendor": "acts",
"bundleName": "ohos.acts.multimedia.image.Exif",
"version": {
"code": 1000000,
"name": "1.0.0"
}
},
"deviceConfig": {
"default": {
"debug": true
}
},
"module": {
"abilities": [
{
"iconId": 16777218,
"skills": [
{
"entities": [
"entity.system.home"
],
"actions": [
"action.system.home"
]
}
],
"descriptionId": 16777217,
"visible": true,
"labelId": 16777216,
"icon": "$media:icon",
"name": "ohos.acts.multimedia.image.Exif.MainAbility",
"description": "$string:mainability_description",
"label": "$string:entry_MainAbility",
"type": "page",
"homeAbility": true,
"launchType": "standard"
}
],
"deviceType": [
"phone",
"tablet",
"tv",
"wearable"
],
"mainAbility": "ohos.acts.multimedia.image.Exif.MainAbility",
"distro": {
"moduleType": "entry",
"installationFree": false,
"deliveryWithInstall": true,
"moduleName": "entry"
},
"reqPermissions": [
{
"name": "ohos.permission.GET_BUNDLE_INFO",
"reason": "use ohos.permission.GET_BUNDLE_INFO"
},
{
"name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"reason":"use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name" : "ohos.permission.GRANT_SENSITIVE_PERMISSIONS",
"reason" : "use ohos.permission.GRANT_SENSITIVE_PERMISSIONS"
},
{
"name" : "ohos.permission.REVOKE_SENSITIVE_PERMISSIONS",
"reason" : "use ohos.permission.REVOKE_SENSITIVE_PERMISSIONS"
},
{
"name": "ohos.permission.MEDIA_LOCATION",
"reason":"use ohos.permission.MEDIA_LOCATION"
},
{
"name": "ohos.permission.READ_MEDIA",
"reason":"use ohos.permission.READ_MEDIA"
},
{
"name": "ohos.permission.WRITE_MEDIA",
"reason":"use ohos.permission.WRITE_MEDIA"
}
],
"package": "ohos.acts.multimedia.image.Exif",
"name": ".MyApplication",
"js": [
{
"pages": [
"pages/index/index"
],
"name": "default",
"window": {
"designWidth": 720,
"autoDesignWidth": true
}
}
]
}
}
\ No newline at end of file
/*
* 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.
*/
export default {
onCreate() {
console.info('AceApplication onCreate');
},
onDestroy() {
console.info('AceApplication onDestroy');
}
};
{
"strings": {
"hello": "Hello",
"world": "World"
}
}
\ No newline at end of file
{
"strings": {
"hello": "您好",
"world": "世界"
}
}
\ No newline at end of file
.container {
flex-direction: column;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
}
.title {
font-size: 40px;
color: #000000;
opacity: 0.9;
}
@media screen and (device-type: tablet) and (orientation: landscape) {
.title {
font-size: 100px;
}
}
@media screen and (device-type: wearable) {
.title {
font-size: 28px;
color: #FFFFFF;
}
}
@media screen and (device-type: tv) {
.container {
background-image: url("/common/images/Wallpaper.png");
background-size: cover;
background-repeat: no-repeat;
background-position: center;
}
.title {
font-size: 100px;
color: #FFFFFF;
}
}
@media screen and (device-type: phone) and (orientation: landscape) {
.title {
font-size: 60px;
}
}
<div class="container">
<text class="title">
{{ $t('strings.hello') }} {{ title }}
</text>
</div>
/*
* 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 {Core, ExpectExtend} from 'deccjsunit/index'
export default {
data: {
title: ""
},
onInit() {
this.title = this.$t('strings.world');
},
onShow() {
console.info('onShow finish')
const core = Core.getInstance()
const expectExtend = new ExpectExtend({
'id': 'extend'
})
core.addService('expect', expectExtend)
core.init()
const configService = core.getDefaultService('config')
this.timeout = 60000
configService.setConfig(this)
require('../../../test/List.test')
core.execute()
},
onReady() {
},
}
\ No newline at end of file
/*
* 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.
*/
require('./image.test.js')
\ No newline at end of file
/*
* 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.
*/
let tc_020buf = new Uint8Array([0,0,0,4,0,0,0,8,1,0,0,12,1,1,1,16,1,1,1,20,2,2,2,24,3,3,3,28,4,4,4,32,5,5,5,36,6,6,6,40,7,7,7,44,9,9,8,48,10,10,10,52,12,12,12,56,14,14,13,60,16,16,15,64,18,18,17,68,20,20,19,72,22,22,22,76,25,24,24,80,27,27,27,84,30,30,29,88,33,32,32,92,36,35,35,96])
let tc_020_1buf = new Uint8Array([0,0,0,4,0,0,0,8,1,0,0,12,1,1,1,16,1,1,1,20,2,2,2,24,3,3,3,28,4,4,4,32,5,5,5,36,6,6,6,40,7,7,7,44,9,9,8,48,10,10,10,52,12,12,12,56,14,14,13,60,16,16,15,64,18,18,17,68,20,20,19,72,22,22,22,76,25,24,24,80,27,27,27,84,30,30,29,88,33,32,32,92,36,35,35,96])
let tc_021buf = new Uint8Array([0,0,0,4,0,0,0,8])
let tc_021_1buf = new Uint8Array([0,0,0,4,0,0,0,8])
let tc_022buf = new Uint8Array([0,0,0,4,0,0,0,8])
export {tc_020buf, tc_020_1buf, tc_021buf, tc_021_1buf, tc_022buf}
\ No newline at end of file
{
"string": [
{
"name": "entry_MainAbility",
"value": "ImageJSTestMain"
},
{
"name": "mainability_description",
"value": "ImageJSTestMain Ability"
}
]
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册