未验证 提交 a91341cd 编写于 作者: B bayanxing 提交者: Gitee

!28 add test cases and props files

Merge pull request !28 from 缪嘉男/xts_acts_dev
/**
* Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development 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 {
flex-direction:row;
width:100%;
height:100%;
}
.title{
width: 100%;
font-size: 18px;
margin: 2px;
padding: 2px;
font-weight: bold;
text-align: center;
}
.sub-title{
width: 100%;
font-size: 14px;
text-align: left;
margin: 2px;
padding: 2px;
}
.prop-container{
flex-direction: column;
flex-weight: 1;
}
#idProp {
flex-weight: 1;
background-color:#f00000;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
.classProp {
flex-weight: 1;
background-color:#0f0000;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
#classPropNone {
flex-weight: 1;
background-color:#0000e0;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
#refProp {
flex-weight: 1;
background-color:#00f000;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
#refPropNone {
flex-weight: 1;
background-color:#00000e;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
#disabledPropTrue {
flex-weight: 1;
background-color:#000f00;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
#disabledPropFalse {
flex-weight: 1;
background-color:#0000f0;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
#disabledPropNone {
flex-weight: 1;
background-color:#d00000;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
#focusablePropTrue {
flex-weight: 1;
background-color:#00000f;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
#focusablePropFalse {
flex-weight: 1;
background-color:#ff0000;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
#focusablePropNone {
flex-weight: 1;
background-color:#0d0000;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
#dataProp {
flex-weight: 1;
background-color:#0ff000;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
#dataPropNone {
flex-weight: 1;
background-color:#00d000;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
#clickEffectPropSmall {
height: 15px;
background-color:#00ff00;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
#clickEffectPropMedium {
height: 15px;
background-color:#000ff0;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
#clickEffectPropLarge {
height: 15px;
background-color:#fff000;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
#clickEffectPropNone{
height: 15px;
background-color:#000d00;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
#dirPropRtl {
flex-weight: 1;
background-color:#0fff00;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
#dirPropAuto {
flex-weight: 1;
background-color:#00fff0;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
#dirPropLtr {
flex-weight: 1;
background-color:#000fff;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
#dirPropNone {
flex-weight: 1;
background-color:#0000d0;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
#forPropNull {
flex-weight: 1;
background-color:#ffff00;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
#forPropOne {
flex-weight: 1;
background-color:#00e000;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
#forPropThree {
flex-weight: 1;
background-color:#000e00;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
#ifPropTrue {
flex-weight: 1;
background-color:#0ffff0;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
#ifPropFalse {
flex-weight: 1;
background-color:#00ffff;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
#ifPropNone {
flex-weight: 1;
background-color:#00000d;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
#showPropTrue {
flex-weight: 1;
background-color:#e00000;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
#showPropFalse {
flex-weight: 1;
background-color:#0e0000;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
#showPropNone {
flex-weight: 1;
background-color:#c00000;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
.specific-container{
flex-direction: column;
flex-weight: 1;
}
#mutedPropFalse {
flex-weight: 1;
background-color:#c00000;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
#mutedPropTrue {
flex-weight: 1;
background-color:#0e0000;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
#mutedPropNone {
flex-weight: 1;
background-color:#00e000;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
#srcProp {
flex-weight: 1;
background-color:#c00000;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
#srcPropNone {
flex-weight: 1;
background-color:#0e0000;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
#autoplayPropFalse {
flex-weight: 1;
background-color:#c00000;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
#autoplayPropTrue {
flex-weight: 1;
background-color:#0e0000;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
#autoplayPropNone {
flex-weight: 1;
background-color:#00e000;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
#posterProp {
flex-weight: 1;
background-color:#c00000;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
#posterPropNone {
flex-weight: 1;
background-color:#0e0000;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
#controlsPropFalse {
flex-weight: 1;
background-color:#c00000;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
#controlsPropTrue {
flex-weight: 1;
background-color:#0e0000;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
#controlsPropNone {
flex-weight: 1;
background-color:#00e000;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
#loopPropFalse {
flex-weight: 1;
background-color:#c00000;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
#loopPropTrue {
flex-weight: 1;
background-color:#0e0000;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
#loopPropNone {
flex-weight: 1;
background-color:#00e000;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
#starttimeProp {
flex-weight: 1;
background-color:#c00000;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
#directionPropAuto {
flex-weight: 1;
background-color:#c00000;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
#directionPropVertical {
flex-weight: 1;
background-color:#0e0000;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
#directionPropHorizontal {
flex-weight: 1;
background-color:#00e000;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
#directionPropAdapt {
flex-weight: 1;
background-color:#000ee0;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
#directionPropNone{
flex-weight: 1;
background-color:#00000e;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
#speedProp {
flex-weight: 1;
background-color:#c00000;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
#speedPropNone {
flex-weight: 1;
background-color:#0e0000;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
\ No newline at end of file
<!--/**
* Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development 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.
*/-->
<div class="container">
<div class="prop-container">
<text class="title">
video通用属性
</text>
<text class="sub-title">
通用属性 -- id
</text>
<video id="idProp">
</video>
<text class="sub-title">
通用属性 -- class
</text>
<video id="classProp"
class="classProp">
</video>
<video id="classPropNone"
class="">
</video>
<text class="sub-title">
通用属性 -- style
</text>
<video id="styleProp"
style="width:10%;height:20px;background-color:red">
</video>
<text class="sub-title">
通用属性 -- ref
</text>
<video id="refProp"
ref="refProp">
</video>
<video id="refPropNone"
ref="">
</video>
<text class="sub-title">
通用属性 -- disabled
</text>
<video id="disabledPropTrue"
disabled="true">
</video>
<video id="disabledPropFalse"
disabled="false">
</video>
<video id="disabledPropNone"
disabled="">
</video>
<text class="sub-title">
通用属性 -- focusable
</text>
<video id="focusablePropTrue"
focusable="true">
</video>
<video id="focusablePropFalse"
focusable="false">
</video>
<video id="focusablePropNone"
focusable="">
</video>
<text class="sub-title">
通用属性 -- data-*
</text>
<video id="dataProp"
data-div="通用属性 -- data-*">
</video>
<video id="dataPropNone"
data-div="">
</video>
<text class="sub-title">
渲染属性 -- for
</text>
<video id="forPropNull"
for="">
</video>
<video id="forPropOne"
for="{{listOne}}">
</video>
<video id="forPropThree"
for="{{listThree}}">
</video>
<text class="sub-title">
渲染属性 -- if
</text>
<video id="ifPropTrue"
if="true">
</video>
<text class="sub-title">
渲染属性 -- show
</text>
<video id="showPropTrue"
show="true">
</video>
<video id="showPropFalse"
show="false">
</video>
<video id="showPropNone"
show="">
</video>
</div>
<div style="background-color: #000000; width: 2px; height: 100%;">
</div>
<div class="specific-container">
<text class="title">
video特有属性
</text>
<text class="sub-title">
静音播放属性 -- muted
</text>
<video id="mutedPropFalse"
muted="false">
</video>
<video id="mutedPropTrue"
muted="true">
</video>
<video id="mutedPropNone"
muted="">
</video>
<text class="sub-title">
视频路径属性 -- src
</text>
<video id="srcProp"
src="/common/images/video.mp4">
</video>
<video id="srcPropNone"
src="">
</video>
<text class="sub-title">
自动播放属性 -- autoplay
</text>
<video id="autoplayPropFalse"
autoplay="false">
</video>
<video id="autoplayPropTrue"
autoplay="true">
</video>
<video id="autoplayPropNone"
autoplay="">
</video>
<text class="sub-title">
预览海报属性 -- poster
</text>
<video id="posterProp"
poster="/common/images/image.png">
</video>
<video id="posterPropNone"
poster="">
</video>
<text class="sub-title">
显隐控制栏属性 -- controls
</text>
<video id="controlsPropFalse"
controls="false">
</video>
<video id="controlsPropTrue"
controls="true">
</video>
<video id="controlsPropNone"
controls="">
</video>
<text class="sub-title">
重头循环属性 -- loop
</text>
<video id="loopPropFalse"
loop="false">
</video>
<video id="loopPropTrue"
loop="true">
</video>
<video id="loopPropNone"
loop="">
</video>
<text class="sub-title">
起始时间属性 -- starttime
</text>
<video id="starttimeProp"
starttime="3">
</video>
<text class="sub-title">
全屏下布局属性 -- direction
</text>
<video id="directionPropAuto"
direction="auto">
</video>
<video id="directionPropVertical"
direction="vertical">
</video>
<video id="directionPropHorizontal"
direction="horizontal">
</video>
<video id="directionPropAdapt"
direction="adapt">
</video>
<video id="directionPropNone"
direction="">
</video>
<text class="sub-title">
播放速度属性 -- speed
</text>
<video id="speedProp"
speed="1.0">
</video>
<video id="speedPropNone"
speed="">
</video>
</div>
</div>
/**
* Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development 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 prompt from '@system.prompt';
export default {
data:{
listOne:[{}],
listThree:[{},{},{}],
idProp : null,
classProp : null,
classPropNone : null,
styleProp : null,
refProp : null,
refPropNone : null,
disabledPropTrue : null,
disabledPropFalse : null,
disabledPropNone : null,
focusablePropTrue : null,
focusablePropFalse : null,
focusablePropNone : null,
dataProp : null,
dataPropNone : null,
forPropNull : null,
forPropOne : null,
forPropThree : null,
ifPropTrue : null,
ifPropFalse : null,
ifPropNone : null,
showPropTrue : null,
showPropFalse : null,
showPropNone : null,
mutedPropFalse : null,
mutedPropTrue : null,
mutedPropNone : null,
srcProp : null,
srcPropNone : null,
autoplayPropFalse : null,
autoplayPropTrue : null,
autoplayPropNone : null,
posterProp : null,
posterPropNone : null,
controlsPropFalse : null,
controlsPropTrue : null,
controlsPropNone : null,
loopPropFalse : null,
loopPropTrue : null,
loopPropNone : null,
starttimeProp : null,
directionPropAuto : null,
directionPropVertical : null,
directionPropHorizontal : null,
directionPropAdapt : null,
directionPropNone : null,
speedProp : null,
speedPropNone : null,
},
onShow(){
this.getCommonPropValues();
globalThis.value = {
idProp : this.idProp,
classProp : this.classProp,
classPropNone : this.classPropNone,
styleProp : this.styleProp,
refProp : this.refProp,
refPropNone : this.refPropNone,
disabledPropTrue : this.disabledPropTrue,
disabledPropFalse : this.disabledPropFalse,
disabledPropNone : this.disabledPropNone,
focusablePropTrue : this.focusablePropTrue,
focusablePropFalse : this.focusablePropFalse,
focusablePropNone : this.focusablePropNone,
dataProp : this.dataProp,
dataPropNone : this.dataPropNone,
forPropNull : this.forPropNull,
forPropOne : this.forPropOne,
forPropThree : this.forPropThree,
ifPropTrue : this.ifPropTrue,
showPropTrue : this.showPropTrue,
showPropFalse : this.showPropFalse,
showPropNone : this.showPropNone,
mutedPropFalse : this.mutedPropFalse,
mutedPropTrue : this.mutedPropTrue,
mutedPropNone : this.mutedPropNone,
srcProp : this.srcProp,
srcPropNone : this.srcPropNone,
autoplayPropFalse : this.autoplayPropFalse,
autoplayPropTrue : this.autoplayPropTrue,
autoplayPropNone : this.autoplayPropNone,
posterProp : this.posterProp,
posterPropNone : this.posterPropNone,
controlsPropFalse : this.controlsPropFalse,
controlsPropTrue : this.controlsPropTrue,
controlsPropNone : this.controlsPropNone,
loopPropFalse : this.loopPropFalse,
loopPropTrue : this.loopPropTrue,
loopPropNone : this.loopPropNone,
starttimeProp : this.starttimeProp,
directionPropAuto : this.directionPropAuto,
directionPropVertical : this.directionPropVertical,
directionPropHorizontal : this.directionPropHorizontal,
directionPropAdapt : this.directionPropAdapt,
directionPropNone : this.directionPropNone,
speedProp : this.speedProp,
speedPropNone : this.speedPropNone,
}
},
getCommonPropValues(){
this.idProp = this.$element("idProp").getInspector()
this.classProp = this.$element("classProp").getInspector()
this.classPropNone = this.$element("classPropNone").getInspector()
this.styleProp = this.$element("styleProp").getInspector()
this.refProp = this.$element("refProp").getInspector()
this.refPropNone = this.$element("refPropNone").getInspector()
this.disabledPropTrue = this.$element("disabledPropTrue").getInspector()
this.disabledPropFalse = this.$element("disabledPropFalse").getInspector()
this.disabledPropNone = this.$element("disabledPropNone").getInspector()
this.focusablePropTrue = this.$element("focusablePropTrue").getInspector()
this.focusablePropFalse = this.$element("focusablePropFalse").getInspector()
this.focusablePropNone = this.$element("focusablePropNone").getInspector()
this.dataProp = this.$element("dataProp").getInspector()
this.dataPropNone = this.$element("dataPropNone").getInspector()
this.forPropNull = this.$element("forPropNull").getInspector()
this.forPropOne = this.$element("forPropOne").getInspector()
this.forPropThree = this.$element("forPropThree").getInspector()
this.ifPropTrue = this.$element("ifPropTrue").getInspector()
this.showPropTrue = this.$element("showPropTrue").getInspector()
this.showPropFalse = this.$element("showPropFalse").getInspector()
this.showPropNone = this.$element("showPropNone").getInspector()
this.mutedPropFalse = this.$element("mutedPropFalse").getInspector()
this.mutedPropTrue = this.$element("mutedPropTrue").getInspector()
this.mutedPropNone = this.$element("mutedPropNone").getInspector()
this.srcProp = this.$element("srcProp").getInspector()
this.srcPropNone = this.$element("srcPropNone").getInspector()
this.autoplayPropFalse = this.$element("autoplayPropFalse").getInspector()
this.autoplayPropTrue = this.$element("autoplayPropTrue").getInspector()
this.autoplayPropNone = this.$element("autoplayPropNone").getInspector()
this.posterProp = this.$element("posterProp").getInspector()
this.posterPropNone = this.$element("posterPropNone").getInspector()
this.controlsPropFalse = this.$element("controlsPropFalse").getInspector()
this.controlsPropTrue = this.$element("controlsPropTrue").getInspector()
this.controlsPropNone = this.$element("controlsPropNone").getInspector()
this.loopPropFalse = this.$element("loopPropFalse").getInspector()
this.loopPropTrue = this.$element("loopPropTrue").getInspector()
this.loopPropNone = this.$element("loopPropNone").getInspector()
this.starttimeProp = this.$element("starttimeProp").getInspector()
this.directionPropAuto = this.$element("directionPropAuto").getInspector()
this.directionPropVertical = this.$element("directionPropVertical").getInspector()
this.directionPropHorizontal = this.$element("directionPropHorizontal").getInspector()
this.directionPropAdapt = this.$element("directionPropAdapt").getInspector()
this.directionPropNone = this.$element("directionPropNone").getInspector()
this.speedProp = this.$element("speedProp").getInspector()
this.speedPropNone = this.$element("speedPropNone").getInspector()
return
},
}
// @ts-nocheck
/**
* Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
......
/**
* Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development 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';
import {describe, beforeAll,afterAll, it, expect} from 'deccjsunit/index';
describe('videoPropsJsTest', function () {
async function sleep(time) {
return new Promise((resolve, reject) => {
setTimeout(() => {
resolve()
}, time)
}).then(() => {
console.info(`sleep ${time} over...`)
})
};
async function backToIndex() {
let backToIndexPromise = new Promise((resolve, reject) => {
setTimeout(() => {
router.back({
uri: 'pages/index/index'
});
resolve();
}, 500);
});
let clearPromise = new Promise((resolve, reject) => {
setTimeout(() => {
router.clear();
resolve();
}, 500);
});
await backToIndexPromise.then(() => {
return clearPromise;
});
}
/**
* run before testcase
*/
beforeAll(async function (done) {
console.info('[videoPropsJsTest] before each called')
let result;
let options = {
uri: 'pages/video/prop/index'
}
try {
result = router.push(options)
console.info("push videoProps page success " + JSON.stringify(result));
} catch (err) {
console.error("push videoProps page error " + JSON.stringify(result));
}
await sleep(4000)
done()
});
/**
* run after testcase
*/
afterAll(async function () {
console.info('[videoPropsJsTest] after each called')
await backToIndex()
await sleep(1000)
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testVideoIdProp
* @tc.desc ACE
*/
it('testVideoIdProp', 0, async function (done) {
console.info('testVideoIdProp START');
console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
let obj = JSON.parse(globalThis.value.idProp);
console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
console.info("[videoProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('video')
expect(obj.$attrs.id).assertEqual('idProp')
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testVideoClassProp
* @tc.desc ACE
*/
it('testVideoClassProp', 0, async function (done) {
console.info('testVideoClassProp START');
console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
let obj = JSON.parse(globalThis.value.classProp);
console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
console.info("[videoProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('video')
expect(obj.$attrs.id).assertEqual('classProp')
expect(obj.$attrs.className).assertEqual('classProp')
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testVideoClassPropNone
* @tc.desc ACE
*/
it('testVideoClassPropNone', 0, async function (done) {
console.info('testVideoClassPropNone START');
console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
let obj = JSON.parse(globalThis.value.classPropNone);
console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
console.info("[videoProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('video')
expect(obj.$attrs.id).assertEqual('classPropNone')
expect(obj.$attrs.className).assertEqual(undefined)
console.info("[videoProps] get className value is: " + JSON.stringify(obj.$attrs.className));
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testDivStyleProp
* @tc.desc ACEs
*/
// it('testDivStyleProp', 0, async function (done) {
// console.info('testDivStyleProp START');
// console.info("[divProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
//
// let obj = JSON.parse(globalThis.value.styleProp);
// console.info("[divProps] get inspector value is: " + JSON.stringify(obj));
// console.info("[divProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
//
// expect(obj.$type).assertEqual('div')
// expect(obj.$attrs.id).assertEqual('styleProp')
// expect(obj.$attrs.style).assertEqual(undefined)
// console.info("[divProps] get style value is: " + JSON.stringify(obj.$attrs.style));
//
// expect(obj.$styles.width).assertEqual(undefined);
// console.info("[divProps] get style width value is: " + JSON.stringify(obj.$styles.width));
// expect(obj.$styles.height).assertEqual(undefined);
// console.info("[divProps] get style height value is: " + JSON.stringify(obj.$styles.height));
// expect(obj.$styles.get('background-color')).assertEqual(undefined);
// done();
// });
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testVideoRefProp
* @tc.desc ACE
*/
it('testVideoRefProp', 0, async function (done) {
console.info('testVideoRefProp START');
console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
let obj = JSON.parse(globalThis.value.refProp);
console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
console.info("[videoProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('video')
expect(obj.$attrs.id).assertEqual('refProp')
expect(obj.$attrs.ref).assertEqual('refProp')
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testVideoRefPropNone
* @tc.desc ACE
*/
it('testVideoRefPropNone', 0, async function (done) {
console.info('testVideoRefPropNone START');
console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
let obj = JSON.parse(globalThis.value.refPropNone);
console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
console.info("[videoProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('video')
expect(obj.$attrs.id).assertEqual('refPropNone')
expect(obj.$attrs.ref).assertEqual(undefined)
console.info("[videoProps] get ref value is: " + JSON.stringify(obj.$attrs.ref));
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testVideoDisabledPropTrue
* @tc.desc ACE
*/
it('testVideoDisabledPropTrue', 0, async function (done) {
console.info('testVideoDisabledPropTrue START');
console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
let obj = JSON.parse(globalThis.value.disabledPropTrue);
console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
console.info("[videoProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('video')
expect(obj.$attrs.id).assertEqual('disabledPropTrue')
expect(obj.$attrs.disabled).assertEqual('true')
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testVideoDisabledPropFalse
* @tc.desc ACE
*/
it('testVideoDisabledPropFalse', 0, async function (done) {
console.info('testVideoDisabledPropFalse START');
console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
let obj = JSON.parse(globalThis.value.disabledPropFalse);
console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
console.info("[videoProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('video')
expect(obj.$attrs.id).assertEqual('disabledPropFalse')
expect(obj.$attrs.disabled).assertEqual('false')
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testVideoDisabledPropNone
* @tc.desc ACE
*/
it('testVideoDisabledPropNone', 0, async function (done) {
console.info('testVideoDisabledPropNone START');
console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
let obj = JSON.parse(globalThis.value.disabledPropNone);
console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
console.info("[videoProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('video')
expect(obj.$attrs.id).assertEqual('disabledPropNone')
expect(obj.$attrs.disabled).assertEqual('false')
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testVideoFocusablePropTrue
* @tc.desc ACE
*/
it('testVideoFocusablePropTrue', 0, async function (done) {
console.info('testVideoFocusablePropTrue START');
console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
let obj = JSON.parse(globalThis.value.focusablePropTrue);
console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
console.info("[videoProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('video')
expect(obj.$attrs.id).assertEqual('focusablePropTrue')
expect(obj.$attrs.focusable).assertEqual('true')
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testVideoFocusablePropFalse
* @tc.desc ACE
*/
it('testVideoFocusablePropFalse', 0, async function (done) {
console.info('testVideoFocusablePropFalse START');
console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
let obj = JSON.parse(globalThis.value.focusablePropFalse);
console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
console.info("[videoProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('video')
expect(obj.$attrs.id).assertEqual('focusablePropFalse')
expect(obj.$attrs.focusable).assertEqual('false')
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testVideoFocusablePropNone
* @tc.desc ACE
*/
it('testVideoFocusablePropNone', 0, async function (done) {
console.info('testVideoFocusablePropNone START');
console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
let obj = JSON.parse(globalThis.value.focusablePropNone);
console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
console.info("[videoProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('video')
expect(obj.$attrs.id).assertEqual('focusablePropNone')
expect(obj.$attrs.focusable).assertEqual('false')
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testVideoDataProp
* @tc.desc ACE
*/
it('testVideoDataProp', 0, async function (done) {
console.info('testVideoDataProp START');
console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
let obj = JSON.parse(globalThis.value.dataProp);
console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
console.info("[videoProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('video')
expect(obj.$attrs.id).assertEqual('dataProp')
expect(obj.$attrs.dataDiv).assertEqual(undefined);
console.info("[videoProps] get dataDiv value is: " + JSON.stringify(obj.$attrs.dataDiv));
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testVideoDataPropNone
* @tc.desc ACE
*/
it('testVideoDataPropNone', 0, async function (done) {
console.info('testVideoDataPropNone START');
console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
let obj = JSON.parse(globalThis.value.dataPropNone);
console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
console.info("[videoProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('video')
expect(obj.$attrs.id).assertEqual('dataPropNone')
expect(obj.$attrs.dataDiv).assertEqual(undefined)
console.info("[videoProps] get dataDiv value is: " + JSON.stringify(obj.$attrs.dataDiv));
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testDivClickEffectPropSmall
* @tc.desc ACE
*/
// it('testVideoClickEffectPropSmall', 0, async function (done) {
// console.info('testVideoClickEffectPropSmall START');
// console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
//
// let obj = JSON.parse(globalThis.value.clickEffectPropSmall);
// console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
// console.info("[videoProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
//
// expect(obj.$type).assertEqual('video')
// expect(obj.$attrs.id).assertEqual('clickEffectPropSmall')
// expect(obj.$attrs.clickEffect).assertEqual('spring-small')
// done();
// });
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testDivClickEffectPropMedium
* @tc.desc ACE
*/
// it('testDivClickEffectPropMedium', 0, async function (done) {
// console.info('testDivClickEffectPropMedium START');
// console.info("[divProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
//
// let obj = JSON.parse(globalThis.value.clickEffectPropMedium);
// console.info("[divProps] get inspector value is: " + JSON.stringify(obj));
// console.info("[divProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
//
// expect(obj.$type).assertEqual('div')
// expect(obj.$attrs.id).assertEqual('clickEffectPropMedium')
// expect(obj.$attrs.clickEffect).assertEqual('spring-medium')
// done();
// });
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testDivClickEffectPropLarge
* @tc.desc ACE
*/
// it('testDivClickEffectPropLarge', 0, async function (done) {
// console.info('testDivClickEffectPropLarge START');
// console.info("[divProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
//
// let obj = JSON.parse(globalThis.value.clickEffectPropLarge);
// console.info("[divProps] get inspector value is: " + JSON.stringify(obj));
// console.info("[divProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
//
// expect(obj.$type).assertEqual('div')
// expect(obj.$attrs.id).assertEqual('clickEffectPropLarge')
// expect(obj.$attrs.clickEffect).assertEqual('spring-large')
// done();
// });
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testDivClickEffectPropNone
* @tc.desc ACE
*/
// it('testDivClickEffectPropNone', 0, async function (done) {
// console.info('testDivClickEffectPropNone START');
// console.info("[divProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
//
// let obj = JSON.parse(globalThis.value.clickEffectPropNone);
// console.info("[divProps] get inspector value is: " + JSON.stringify(obj));
// console.info("[divProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
//
// expect(obj.$type).assertEqual('div')
// expect(obj.$attrs.id).assertEqual('clickEffectPropNone')
// expect(obj.$attrs.clickEffect).assertEqual(undefined)
// console.info("[divProps] get clickEffect value is: " + JSON.stringify(obj.$attrs.clickEffect));
// done();
// });
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testDivDirPropRtl
* @tc.desc ACE
*/
// it('testDivDirPropRtl', 0, async function (done) {
// console.info('testDivDirPropRtl START');
// console.info("[divProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
//
// let obj = JSON.parse(globalThis.value.dirPropRtl);
// console.info("[divProps] get inspector value is: " + JSON.stringify(obj));
// console.info("[divProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
//
// expect(obj.$type).assertEqual('div')
// expect(obj.$attrs.id).assertEqual('dirPropRtl')
// expect(obj.$attrs.dir).assertEqual('rtl')
// done();
// });
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testDivDirPropLtr
* @tc.desc ACE
*/
// it('testDivDirPropLtr', 0, async function (done) {
// console.info('testDivDirPropLtr START');
// console.info("[divProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
//
// let obj = JSON.parse(globalThis.value.dirPropLtr);
// console.info("[divProps] get inspector value is: " + JSON.stringify(obj));
// console.info("[divProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
//
// expect(obj.$type).assertEqual('div')
// expect(obj.$attrs.id).assertEqual('dirPropLtr')
// expect(obj.$attrs.dir).assertEqual('ltr')
// done();
// });
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testDivDirPropAuto
* @tc.desc ACE
*/
// it('testDivDirPropAuto', 0, async function (done) {
// console.info('testDivDirPropAuto START');
// console.info("[divProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
//
// let obj = JSON.parse(globalThis.value.dirPropAuto);
// console.info("[divProps] get inspector value is: " + JSON.stringify(obj));
// console.info("[divProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
//
// expect(obj.$type).assertEqual('div')
// expect(obj.$attrs.id).assertEqual('dirPropAuto')
// expect(obj.$attrs.dir).assertEqual('auto')
// done();
// });
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testDivDirPropNone
* @tc.desc ACE
*/
// it('testDivDirPropNone', 0, async function (done) {
// console.info('testDivDirPropNone START');
// console.info("[divProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
//
// let obj = JSON.parse(globalThis.value.dirPropNone);
// console.info("[divProps] get inspector value is: " + JSON.stringify(obj));
// console.info("[divProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
//
// expect(obj.$type).assertEqual('div')
// expect(obj.$attrs.id).assertEqual('dirPropNone')
// expect(obj.$attrs.dir).assertEqual('auto')
// done();
// });
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testVideoForPropNull
* @tc.desc ACE
*/
it('testVideoForPropNull', 0, async function (done) {
console.info('testVideoForPropNull START');
console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
let obj = JSON.parse(globalThis.value.forPropNull);
console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
console.info("[videoProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('video')
expect(obj.$attrs.id).assertEqual('forPropNull')
expect(obj.$attrs.for).assertEqual(undefined)
console.info("[videoProps] get for value is: " + JSON.stringify(obj.$attrs.for));
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testVideoForPropOne
* @tc.desc ACE
*/
it('testVideoForPropOne', 0, async function (done) {
console.info('testVideoForPropOne START');
console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
let obj = JSON.parse(globalThis.value.forPropOne);
console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
console.info("[videoProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('video')
expect(obj.$attrs.id).assertEqual('forPropOne')
expect(obj.$attrs.for).assertEqual(undefined)
console.info("[videoProps] get for value is: " + JSON.stringify(obj.$attrs.for));
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testVideoForPropThree
* @tc.desc ACE
*/
it('testVideoForPropThree', 0, async function (done) {
console.info('testVideoForPropThree START');
console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
let obj = JSON.parse(globalThis.value.forPropThree);
console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
console.info("[videoProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('video')
expect(obj.$attrs.id).assertEqual('forPropThree')
expect(obj.$attrs.for).assertEqual(undefined)
console.info("[videoProps] get for value is: " + JSON.stringify(obj.$attrs.for));
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testVideoIfPropTrue
* @tc.desc ACE
*/
it('testVideoIfPropTrue', 0, async function (done) {
console.info('testVideoIfPropTrue START');
console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
let obj = JSON.parse(globalThis.value.ifPropTrue);
console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
console.info("[videoProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('video')
expect(obj.$attrs.id).assertEqual('ifPropTrue')
expect(obj.$attrs.if).assertEqual(undefined)
console.info("[videoProps] get for value is: " + JSON.stringify(obj.$attrs.if));
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testDivIfPropFalse
* @tc.desc ACE
*/
// it('testDivIfPropFalse', 0, async function (done) {
// console.info('testDivIfPropFalse START');
// console.info("[divProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
//
// let obj = JSON.parse(globalThis.value.ifPropFalse);
// console.info("[divProps] get inspector value is: " + JSON.stringify(obj));
// console.info("[divProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
//
// expect(obj.$type).assertEqual('div')
// expect(obj.$attrs.id).assertEqual('ifPropFalse')
// expect(obj.$attrs.if).assertEqual(false)
// done();
// });
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testDivIfPropNone
* @tc.desc ACE
*/
// it('testDivIfPropNone', 0, async function (done) {
// console.info('testDivIfPropNone START');
// console.info("[divProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
//
// let obj = JSON.parse(globalThis.value.ifPropNone);
// console.info("[divProps] get inspector value is: " + JSON.stringify(obj));
// console.info("[divProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
//
// expect(obj.$type).assertEqual('div')
// expect(obj.$attrs.id).assertEqual('ifPropNone')
// expect(obj.$attrs.if).assertEqual(false)
// done();
// });
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testVideoShowPropTrue
* @tc.desc ACE
*/
it('testVideoShowPropTrue', 0, async function (done) {
console.info('testVideoShowPropTrue START');
console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
let obj = JSON.parse(globalThis.value.showPropTrue);
console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
console.info("[videoProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('video')
expect(obj.$attrs.id).assertEqual('showPropTrue')
expect(obj.$attrs.show).assertEqual('true')
console.info("[videoProps] get show value is: " + JSON.stringify(obj.$attrs.show));
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testVideoShowPropFalse
* @tc.desc ACE
*/
it('testVideoShowPropFalse', 0, async function (done) {
console.info('testVideoShowPropFalse START');
console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
let obj = JSON.parse(globalThis.value.showPropFalse);
console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
console.info("[videoProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('video')
expect(obj.$attrs.id).assertEqual('showPropFalse')
expect(obj.$attrs.show).assertEqual('false')
console.info("[videoProps] get show value is: " + JSON.stringify(obj.$attrs.show));
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testVideoShowPropNone
* @tc.desc ACE
*/
it('testVideoShowPropNone', 0, async function (done) {
console.info('testVideoShowPropNone START');
console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
let obj = JSON.parse(globalThis.value.showPropNone);
console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
console.info("[videoProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('video')
expect(obj.$attrs.id).assertEqual('showPropNone')
expect(obj.$attrs.show).assertEqual('true')
console.info("[videoProps] get show value is: " + JSON.stringify(obj.$attrs.show));
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testVideoMutedPropFalse
* @tc.desc ACE
*/
it('testVideoMutedPropFalse', 0, async function (done) {
console.info('testVideoMutedPropFalse START');
console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
let obj = JSON.parse(globalThis.value.mutedPropFalse);
console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
console.info("[videoProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('video')
expect(obj.$attrs.id).assertEqual('mutedPropFalse')
expect(obj.$attrs.muted).assertEqual('false')
console.info("[videoProps] get muted value is: " + JSON.stringify(obj.$attrs.muted));
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testVideoMutedPropTrue
* @tc.desc ACE
*/
it('testVideoMutedPropTrue', 0, async function (done) {
console.info('testVideoMutedPropTrue START');
console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
let obj = JSON.parse(globalThis.value.mutedPropTrue);
console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
console.info("[videoProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('video')
expect(obj.$attrs.id).assertEqual('mutedPropTrue')
expect(obj.$attrs.muted).assertEqual('true')
console.info("[videoProps] get muted value is: " + JSON.stringify(obj.$attrs.muted));
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testVideoMutedPropNone
* @tc.desc ACE
*/
it('testVideoMutedPropNone', 0, async function (done) {
console.info('testVideoMutedPropNone START');
console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
let obj = JSON.parse(globalThis.value.mutedPropNone);
console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
console.info("[videoProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('video')
expect(obj.$attrs.id).assertEqual('mutedPropNone')
expect(obj.$attrs.muted).assertEqual('false')
console.info("[videoProps] get muted value is: " + JSON.stringify(obj.$attrs.muted));
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testVideoSrcProp
* @tc.desc ACE
*/
it('testVideoSrcProp', 0, async function (done) {
console.info('testVideoSrcProp START');
console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
let obj = JSON.parse(globalThis.value.srcProp);
console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
console.info("[videoProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('video')
expect(obj.$attrs.id).assertEqual('srcProp')
expect(obj.$attrs.src).assertEqual('/common/images/video.mp4')
console.info("[videoProps] get src value is: " + JSON.stringify(obj.$attrs.src));
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testVideoSrcPropNone
* @tc.desc ACE
*/
it('testVideoSrcPropNone', 0, async function (done) {
console.info('testVideoSrcPropNone START');
console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
let obj = JSON.parse(globalThis.value.srcPropNone);
console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
console.info("[videoProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('video')
expect(obj.$attrs.id).assertEqual('srcPropNone')
expect(obj.$attrs.src).assertEqual(undefined)
console.info("[videoProps] get src value is: " + JSON.stringify(obj.$attrs.src));
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testVideoAutoplayPropFalse
* @tc.desc ACE
*/
it('testVideoAutoplayPropFalse', 0, async function (done) {
console.info('testVideoAutoplayPropFalse START');
console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
let obj = JSON.parse(globalThis.value.autoplayPropFalse);
console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
console.info("[videoProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('video')
expect(obj.$attrs.id).assertEqual('autoplayPropFalse')
expect(obj.$attrs.autoplay).assertEqual('false')
console.info("[videoProps] get autoplay value is: " + JSON.stringify(obj.$attrs.autoplay));
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testVideoAutoplayPropTrue
* @tc.desc ACE
*/
it('testVideoAutoplayPropFalse', 0, async function (done) {
console.info('testVideoAutoplayPropTrue START');
console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
let obj = JSON.parse(globalThis.value.autoplayPropTrue);
console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
console.info("[videoProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('video')
expect(obj.$attrs.id).assertEqual('autoplayPropTrue')
expect(obj.$attrs.autoplay).assertEqual('true')
console.info("[videoProps] get autoplay value is: " + JSON.stringify(obj.$attrs.autoplay));
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testVideoAutoplayPropNone
* @tc.desc ACE
*/
it('testVideoAutoplayPropNone', 0, async function (done) {
console.info('testVideoAutoplayPropNone START');
console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
let obj = JSON.parse(globalThis.value.autoplayPropNone);
console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
console.info("[videoProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('video')
expect(obj.$attrs.id).assertEqual('autoplayPropNone')
expect(obj.$attrs.autoplay).assertEqual('false')
console.info("[videoProps] get autoplay value is: " + JSON.stringify(obj.$attrs.autoplay));
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testVideoPosterProp
* @tc.desc ACE
*/
it('testVideoPosterProp', 0, async function (done) {
console.info('testVideoPosterProp START');
console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
let obj = JSON.parse(globalThis.value.posterProp);
console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
console.info("[videoProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('video')
expect(obj.$attrs.id).assertEqual('posterProp')
expect(obj.$attrs.poster).assertEqual('/common/images/image.png')
console.info("[videoProps] get poster value is: " + JSON.stringify(obj.$attrs.poster));
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testVideoPosterPropNone
* @tc.desc ACE
*/
it('testVideoPosterPropNone', 0, async function (done) {
console.info('testVideoPosterPropNone START');
console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
let obj = JSON.parse(globalThis.value.posterPropNone);
console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
console.info("[videoProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('video')
expect(obj.$attrs.id).assertEqual('posterPropNone')
expect(obj.$attrs.poster).assertEqual(undefined)
console.info("[videoProps] get poster value is: " + JSON.stringify(obj.$attrs.poster));
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testVideoControlsPropFalse
* @tc.desc ACE
*/
it('testVideoControlsPropFalse', 0, async function (done) {
console.info('testVideoControlsPropFalse START');
console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
let obj = JSON.parse(globalThis.value.controlsPropFalse);
console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
console.info("[videoProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('video')
expect(obj.$attrs.id).assertEqual('controlsPropFalse')
expect(obj.$attrs.controls).assertEqual('false')
console.info("[videoProps] get controls value is: " + JSON.stringify(obj.$attrs.controls));
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testVideoControlsPropTrue
* @tc.desc ACE
*/
it('testVideoControlsPropTrue', 0, async function (done) {
console.info('testVideoControlsPropTrue START');
console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
let obj = JSON.parse(globalThis.value.controlsPropTrue);
console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
console.info("[videoProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('video')
expect(obj.$attrs.id).assertEqual('controlsPropTrue')
expect(obj.$attrs.controls).assertEqual('true')
console.info("[videoProps] get controls value is: " + JSON.stringify(obj.$attrs.controls));
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testVideoControlsPropNone
* @tc.desc ACE
*/
it('testVideoControlsPropNone', 0, async function (done) {
console.info('testVideoControlsPropNone START');
console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
let obj = JSON.parse(globalThis.value.controlsPropNone);
console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
console.info("[videoProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('video')
expect(obj.$attrs.id).assertEqual('controlsPropNone')
expect(obj.$attrs.controls).assertEqual('true')
console.info("[videoProps] get controls value is: " + JSON.stringify(obj.$attrs.controls));
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testVideoLoopPropFalse
* @tc.desc ACE
*/
it('testVideoLoopPropFalse', 0, async function (done) {
console.info('testVideoLoopPropFalse START');
console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
let obj = JSON.parse(globalThis.value.loopPropFalse);
console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
console.info("[videoProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('video')
expect(obj.$attrs.id).assertEqual('loopPropFalse')
expect(obj.$attrs.loop).assertEqual('false')
console.info("[videoProps] get loop value is: " + JSON.stringify(obj.$attrs.loop));
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testVideoLoopPropTrue
* @tc.desc ACE
*/
it('testVideoLoopPropTrue', 0, async function (done) {
console.info('testVideoLoopPropTrue START');
console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
let obj = JSON.parse(globalThis.value.loopPropTrue);
console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
console.info("[videoProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('video')
expect(obj.$attrs.id).assertEqual('loopPropTrue')
expect(obj.$attrs.loop).assertEqual('true')
console.info("[videoProps] get loop value is: " + JSON.stringify(obj.$attrs.loop));
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testVideoLoopPropNone
* @tc.desc ACE
*/
it('testVideoLoopPropNone', 0, async function (done) {
console.info('testVideoLoopPropNone START');
console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
let obj = JSON.parse(globalThis.value.loopPropNone);
console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
console.info("[videoProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('video')
expect(obj.$attrs.id).assertEqual('loopPropNone')
expect(obj.$attrs.loop).assertEqual('false')
console.info("[videoProps] get loop value is: " + JSON.stringify(obj.$attrs.loop));
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testVideoStarttimeProp
* @tc.desc ACE
*/
it('testVideoStarttimeProp', 0, async function (done) {
console.info('testVideoStarttimeProp START');
console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
let obj = JSON.parse(globalThis.value.starttimeProp);
console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
console.info("[videoProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('video')
expect(obj.$attrs.id).assertEqual('starttimeProp')
expect(obj.$attrs.starttime).assertEqual('3')
console.info("[videoProps] get starttime value is: " + JSON.stringify(obj.$attrs.starttime));
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testVideoDirectionPropAuto
* @tc.desc ACE
*/
it('testVideoDirectionPropAuto', 0, async function (done) {
console.info('testVideoDirectionPropAuto START');
console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
let obj = JSON.parse(globalThis.value.directionPropAuto);
console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
console.info("[videoProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('video')
expect(obj.$attrs.id).assertEqual('directionPropAuto')
expect(obj.$attrs.direction).assertEqual('auto')
console.info("[videoProps] get direction value is: " + JSON.stringify(obj.$attrs.direction));
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testVideoDirectionPropVertical
* @tc.desc ACE
*/
it('testVideoDirectionPropVertical', 0, async function (done) {
console.info('testVideoDirectionPropVertical START');
console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
let obj = JSON.parse(globalThis.value.directionPropVertical);
console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
console.info("[videoProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('video')
expect(obj.$attrs.id).assertEqual('directionPropVertical')
expect(obj.$attrs.direction).assertEqual('vertical')
console.info("[videoProps] get direction value is: " + JSON.stringify(obj.$attrs.direction));
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testVideoDirectionPropHorizontal
* @tc.desc ACE
*/
it('testVideoDirectionPropHorizontal', 0, async function (done) {
console.info('testVideoDirectionPropHorizontal START');
console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
let obj = JSON.parse(globalThis.value.directionPropHorizontal);
console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
console.info("[videoProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('video')
expect(obj.$attrs.id).assertEqual('directionPropHorizontal')
expect(obj.$attrs.direction).assertEqual('horizontal')
console.info("[videoProps] get direction value is: " + JSON.stringify(obj.$attrs.direction));
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testVideoDirectionPropAdapt
* @tc.desc ACE
*/
it('testVideoDirectionPropAdapt', 0, async function (done) {
console.info('testVideoDirectionPropAdapt START');
console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
let obj = JSON.parse(globalThis.value.directionPropAdapt);
console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
console.info("[videoProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('video')
expect(obj.$attrs.id).assertEqual('directionPropAdapt')
expect(obj.$attrs.direction).assertEqual('adapt')
console.info("[videoProps] get direction value is: " + JSON.stringify(obj.$attrs.direction));
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testVideoDirectionPropNone
* @tc.desc ACE
*/
it('testVideoDirectionPropNone', 0, async function (done) {
console.info('testVideoDirectionPropNone START');
console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
let obj = JSON.parse(globalThis.value.directionPropNone);
console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
console.info("[videoProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('video')
expect(obj.$attrs.id).assertEqual('directionPropNone')
expect(obj.$attrs.direction).assertEqual('auto')
console.info("[videoProps] get direction value is: " + JSON.stringify(obj.$attrs.direction));
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testVideoSpeedProp
* @tc.desc ACE
*/
it('testVideoSpeedProp', 0, async function (done) {
console.info('testVideoSpeedProp START');
console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
let obj = JSON.parse(globalThis.value.speedProp);
console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
console.info("[videoProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('video')
expect(obj.$attrs.id).assertEqual('speedProp')
expect(obj.$attrs.speed).assertEqual('1.0')
console.info("[videoProps] get speed value is: " + JSON.stringify(obj.$attrs.speed));
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testVideoSpeedPropNone
* @tc.desc ACE
*/
it('testVideoSpeedPropNone', 0, async function (done) {
console.info('testVideoSpeedPropNone START');
console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
let obj = JSON.parse(globalThis.value.speedPropNone);
console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
console.info("[videoProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('video')
expect(obj.$attrs.id).assertEqual('speedPropNone')
expect(obj.$attrs.speed).assertEqual('1')
console.info("[videoProps] get speed value is: " + JSON.stringify(obj.$attrs.speed));
done();
});
});
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册