提交 e6ffb0cf 编写于 作者: D dongwei

add test cases

Signed-off-by: Ndongwei <dongwei@kaihongdigi.com>
上级 2039b062
...@@ -115,6 +115,5 @@ export default { ...@@ -115,6 +115,5 @@ export default {
this.toPropNone = this.$element("toPropNone").getInspector() this.toPropNone = this.$element("toPropNone").getInspector()
this.valuesProp = this.$element("valuesProp").getInspector() this.valuesProp = this.$element("valuesProp").getInspector()
this.valuesPropNone = this.$element("valuesPropNone").getInspector() this.valuesPropNone = this.$element("valuesPropNone").getInspector()
return
}, },
} }
...@@ -131,6 +131,5 @@ export default { ...@@ -131,6 +131,5 @@ export default {
this.rotatePropRotate = this.$element("rotatePropRotate").getInspector() this.rotatePropRotate = this.$element("rotatePropRotate").getInspector()
this.rotatePropAutoReverse = this.$element("rotatePropAutoReverse").getInspector() this.rotatePropAutoReverse = this.$element("rotatePropAutoReverse").getInspector()
this.rotatePropNumber = this.$element("rotatePropNumber").getInspector() this.rotatePropNumber = this.$element("rotatePropNumber").getInspector()
return
}, },
} }
...@@ -130,6 +130,5 @@ export default { ...@@ -130,6 +130,5 @@ export default {
this.typePropRotate = this.$element("typePropRotate").getInspector() this.typePropRotate = this.$element("typePropRotate").getInspector()
this.typePropSkewX = this.$element("typePropSkewX").getInspector() this.typePropSkewX = this.$element("typePropSkewX").getInspector()
this.typePropSkewY = this.$element("typePropSkewY").getInspector() this.typePropSkewY = this.$element("typePropSkewY").getInspector()
return
}, },
} }
...@@ -224,7 +224,7 @@ ...@@ -224,7 +224,7 @@
<input class ="event5" <input class ="event5"
type="checkbox" type="checkbox"
onchange="checkChange" onchange="checkChange"
onaccessibility="accessibility"> onaccessibility="onAccessibility">
</input> </input>
</div> </div>
<div style="background-color: #000000; width: 100%; height: 2px;"> <div style="background-color: #000000; width: 100%; height: 2px;">
......
...@@ -514,9 +514,10 @@ export default { ...@@ -514,9 +514,10 @@ export default {
}); });
}, },
accessibility(event){ onAccessibility(event) {
prompt.showToast({ if (event.eventType == 1) {
message: JSON.stringify(event) console.log('abc');
}); }
console.log("onAccessibility" + JSON.stringify(event));
} }
} }
/**
* 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.
*/
\ 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.
*/
\ 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.
*/
\ 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.
*/
\ 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.
*/
\ 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.
*/
\ 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.
*/
\ 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.
*/
\ No newline at end of file
...@@ -60,7 +60,6 @@ export default { ...@@ -60,7 +60,6 @@ export default {
onShow(){ onShow(){
this.getCommonPropValues(); this.getCommonPropValues();
// this.getSpecificPropValues();
globalThis.value = { globalThis.value = {
idProp : this.idProp, idProp : this.idProp,
classProp : this.classProp, classProp : this.classProp,
...@@ -129,12 +128,5 @@ export default { ...@@ -129,12 +128,5 @@ export default {
this.showPropTrue = this.$element("showPropTrue").getInspector() this.showPropTrue = this.$element("showPropTrue").getInspector()
this.showPropFalse = this.$element("showPropFalse").getInspector() this.showPropFalse = this.$element("showPropFalse").getInspector()
this.showPropNone = this.$element("showPropNone").getInspector() this.showPropNone = this.$element("showPropNone").getInspector()
},
getSpecificPropValues () {
// this.pickerViewViewText = this.$element("pickerViewViewText").getInspector()
// this.pickerViewViewDate = this.$element("pickerViewViewDate").getInspector()
// this.pickerViewViewTime = this.$element("pickerViewViewTime").getInspector()
// this.pickerViewViewDatetime = this.$element("pickerViewViewDatetime").getInspector()
// this.pickerViewViewMultiText = this.$element("pickerViewViewMultiText").getInspector()
} }
} }
...@@ -193,13 +193,13 @@ ...@@ -193,13 +193,13 @@
ondragend="dragEnd" ondragenter="dragEnter" ondragend="dragEnd" ondragenter="dragEnter"
ondragover="dragOver" ondragleave="dragLeave" ondragover="dragOver" ondragleave="dragLeave"
ondrop="drop" value="value" ondrop="drop" value="value"
onaccessibility="accessibility"> onaccessibility="onAccessibility">
</qrcode> </qrcode>
<text class="sub-title"> <text class="sub-title">
qrcode特有事件1 qrcode特有事件1
</text> </text>
<qrcode class ="event3" value="value" <qrcode class ="event3" value="value"
onaccessibility="accessibility"> onaccessibility="onAccessibility">
</qrcode> </qrcode>
</div> </div>
<div style="background-color: #000000; width: 100%; height: 2px;"> <div style="background-color: #000000; width: 100%; height: 2px;">
......
...@@ -451,9 +451,10 @@ export default { ...@@ -451,9 +451,10 @@ export default {
}, 1500) }, 1500)
}, },
accessibility(event){ onAccessibility(event) {
prompt.showToast({ if (event.eventType == 1) {
message: JSON.stringify(event) console.log('abc');
}); }
console.log("onAccessibility" + JSON.stringify(event));
} }
} }
...@@ -192,7 +192,7 @@ ...@@ -192,7 +192,7 @@
rating="1" rating="1"
stepsize="1" stepsize="1"
onchange="change" onchange="change"
onaccessibility="accessibility"> onaccessibility="onAccessibility">
</rating> </rating>
</div> </div>
<div style="background-color: #000000; width: 100%; height: 2px;"> <div style="background-color: #000000; width: 100%; height: 2px;">
......
...@@ -457,9 +457,10 @@ export default { ...@@ -457,9 +457,10 @@ export default {
}); });
}, },
accessibility(event){ onAccessibility(event) {
prompt.showToast({ if (event.eventType == 1) {
message: JSON.stringify(event) console.log('abc');
}); }
console.log("onAccessibility" + JSON.stringify(event));
} }
} }
...@@ -18,7 +18,8 @@ import prompt from '@system.prompt'; ...@@ -18,7 +18,8 @@ import prompt from '@system.prompt';
export default { export default {
data:{ data:{
content: ` content: `
<div class="flex-direction: column; background-color: #ffffff; padding: 30px; margin-bottom: 30px;" style="background-color: #FFFFFF"> <div class="flex-direction: column; background-color: #ffffff;
padding: 30px; margin-bottom: 30px;" style="background-color: #FFFFFF">
<style>h1{color: yellow;}</style> <style>h1{color: yellow;}</style>
<p class="item-title">h1</p> <p class="item-title">h1</p>
<h1>文本测试(h1测试)</h1> <h1>文本测试(h1测试)</h1>
......
...@@ -122,7 +122,7 @@ ...@@ -122,7 +122,7 @@
<div class="yellowDiv"> <div class="yellowDiv">
<richtext class ="event5" <richtext class ="event5"
oncomplete="complete" oncomplete="complete"
onaccessibility="accessibility"> onaccessibility="onAccessibility">
</richtext> </richtext>
</div> </div>
</div> </div>
......
...@@ -391,9 +391,10 @@ export default { ...@@ -391,9 +391,10 @@ export default {
}); });
}, },
accessibility(event){ onAccessibility(event) {
prompt.showToast({ if (event.eventType == 1) {
message: JSON.stringify(event) console.log('abc');
}); }
console.log("onAccessibility" + JSON.stringify(event));
} }
} }
...@@ -154,7 +154,7 @@ ...@@ -154,7 +154,7 @@
</text> </text>
<select class ="event4" <select class ="event4"
onchange="change" onchange="change"
onaccessibility="accessibility"> onaccessibility="onAccessibility">
</select> </select>
</div> </div>
<div style="background-color: #000000; width: 100%; height: 2px;"> <div style="background-color: #000000; width: 100%; height: 2px;">
......
...@@ -457,9 +457,10 @@ export default { ...@@ -457,9 +457,10 @@ export default {
}); });
}, },
accessibility(event){ onAccessibility(event) {
prompt.showToast({ if (event.eventType == 1) {
message: JSON.stringify(event) console.log('abc');
}); }
console.log("onAccessibility" + JSON.stringify(event));
} }
} }
...@@ -203,7 +203,7 @@ ...@@ -203,7 +203,7 @@
</text> </text>
<slider class ="event4" <slider class ="event4"
onchange="change" onchange="change"
onaccessibility="accessibility"> onaccessibility="onAccessibility">
</slider> </slider>
</div> </div>
<div style="background-color: #000000; width: 100%; height: 2px;"> <div style="background-color: #000000; width: 100%; height: 2px;">
......
...@@ -457,9 +457,10 @@ export default { ...@@ -457,9 +457,10 @@ export default {
}); });
}, },
accessibility(event){ onAccessibility(event) {
prompt.showToast({ if (event.eventType == 1) {
message: JSON.stringify(event) console.log('abc');
}); }
console.log("onAccessibility" + JSON.stringify(event));
} }
} }
...@@ -115,6 +115,5 @@ export default { ...@@ -115,6 +115,5 @@ export default {
this.strokeWidthPropNone = this.$element("strokeWidthPropNone").getInspector() this.strokeWidthPropNone = this.$element("strokeWidthPropNone").getInspector()
this.strokeOpacityProp = this.$element("strokeOpacityProp").getInspector() this.strokeOpacityProp = this.$element("strokeOpacityProp").getInspector()
this.strokeOpacityPropNone = this.$element("strokeOpacityPropNone").getInspector() this.strokeOpacityPropNone = this.$element("strokeOpacityPropNone").getInspector()
return
}, },
} }
...@@ -94,6 +94,5 @@ export default { ...@@ -94,6 +94,5 @@ export default {
this.strokeWidthPropNone = this.$element("strokeWidthPropNone").getInspector() this.strokeWidthPropNone = this.$element("strokeWidthPropNone").getInspector()
this.strokeOpacityProp = this.$element("strokeOpacityProp").getInspector() this.strokeOpacityProp = this.$element("strokeOpacityProp").getInspector()
this.strokeOpacityPropNone = this.$element("strokeOpacityPropNone").getInspector() this.strokeOpacityPropNone = this.$element("strokeOpacityPropNone").getInspector()
return
}, },
} }
...@@ -115,6 +115,5 @@ export default { ...@@ -115,6 +115,5 @@ export default {
this.strokeWidthPropNone = this.$element("strokeWidthPropNone").getInspector() this.strokeWidthPropNone = this.$element("strokeWidthPropNone").getInspector()
this.strokeOpacityProp = this.$element("strokeOpacityProp").getInspector() this.strokeOpacityProp = this.$element("strokeOpacityProp").getInspector()
this.strokeOpacityPropNone = this.$element("strokeOpacityPropNone").getInspector() this.strokeOpacityPropNone = this.$element("strokeOpacityPropNone").getInspector()
return
}, },
} }
...@@ -430,7 +430,7 @@ ...@@ -430,7 +430,7 @@
expect(obj.$attrs.stroke).assertEqual('red') expect(obj.$attrs.stroke).assertEqual('red')
console.info("[circleProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke)); console.info("[circleProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
expect(obj.$attrs.strokeDashoffset).assertEqual('23') expect(obj.$attrs.strokeDashoffset).assertEqual('23')
console.info("[circleProps] get inspector dashoffset value is: " + JSON.stringify(obj.$attrs.strokeDashoffset)); console.info("[circleProps] get dashoffset value is:" + JSON.stringify(obj.$attrs.strokeDashoffset));
done(); done();
}); });
...@@ -641,7 +641,7 @@ ...@@ -641,7 +641,7 @@
expect(obj.$attrs.stroke).assertEqual('red') expect(obj.$attrs.stroke).assertEqual('red')
console.info("[circleProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke)); console.info("[circleProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
expect(obj.$attrs.strokeMiterlimit).assertEqual('10') expect(obj.$attrs.strokeMiterlimit).assertEqual('10')
console.info("[circleProps] get inspector miterlimit value is: " + JSON.stringify(obj.$attrs.strokeMiterlimit)); console.info("[circleProps] get miterlimit value is: " + JSON.stringify(obj.$attrs.strokeMiterlimit));
done(); done();
}); });
......
...@@ -448,7 +448,7 @@ ...@@ -448,7 +448,7 @@
expect(obj.$attrs.stroke).assertEqual('red') expect(obj.$attrs.stroke).assertEqual('red')
console.info("[ellipseProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke)); console.info("[ellipseProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
expect(obj.$attrs.strokeDashoffset).assertEqual('23') expect(obj.$attrs.strokeDashoffset).assertEqual('23')
console.info("[ellipseProps] get inspector dashoffset value is: " + JSON.stringify(obj.$attrs.strokeDashoffset)); console.info("[ellipseProps] get dashoffset value is: " + JSON.stringify(obj.$attrs.strokeDashoffset));
done(); done();
}); });
...@@ -673,7 +673,7 @@ ...@@ -673,7 +673,7 @@
expect(obj.$attrs.stroke).assertEqual('red') expect(obj.$attrs.stroke).assertEqual('red')
console.info("[ellipseProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke)); console.info("[ellipseProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
expect(obj.$attrs.strokeMiterlimit).assertEqual('10') expect(obj.$attrs.strokeMiterlimit).assertEqual('10')
console.info("[ellipseProps] get inspector miterlimit value is: " + JSON.stringify(obj.$attrs.strokeMiterlimit)); console.info("[ellipseProps] get miterlimit value is: " + JSON.stringify(obj.$attrs.strokeMiterlimit));
done(); done();
}); });
......
...@@ -236,7 +236,7 @@ ...@@ -236,7 +236,7 @@
expect(obj.$attrs.stroke).assertEqual('red') expect(obj.$attrs.stroke).assertEqual('red')
console.info("[lineProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke)); console.info("[lineProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
expect(obj.$attrs.strokeDasharray).assertEqual('2 3') expect(obj.$attrs.strokeDasharray).assertEqual('2 3')
console.info("[lineProps] get inspector stroke-dasharray value is: " + JSON.stringify(obj.$attrs.strokeDasharray)); console.info("[lineProps] get stroke-dasharray value is: " + JSON.stringify(obj.$attrs.strokeDasharray));
done(); done();
}); });
...@@ -270,7 +270,7 @@ ...@@ -270,7 +270,7 @@
expect(obj.$attrs.stroke).assertEqual('red') expect(obj.$attrs.stroke).assertEqual('red')
console.info("[lineProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke)); console.info("[lineProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
expect(obj.$attrs.strokeDashoffset).assertEqual('23') expect(obj.$attrs.strokeDashoffset).assertEqual('23')
console.info("[lineProps] get inspector stroke-dashoffset value is: " + JSON.stringify(obj.$attrs.strokeDashoffset)); console.info("[lineProps] get stroke-dashoffset value is: " + JSON.stringify(obj.$attrs.strokeDashoffset));
done(); done();
}); });
...@@ -305,7 +305,7 @@ ...@@ -305,7 +305,7 @@
expect(obj.$attrs.stroke).assertEqual('red') expect(obj.$attrs.stroke).assertEqual('red')
console.info("[lineProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke)); console.info("[lineProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
expect(obj.$attrs.strokeLinejoin).assertEqual('bevel') expect(obj.$attrs.strokeLinejoin).assertEqual('bevel')
console.info("[lineProps] get inspector stroke-linejoin value is: " + JSON.stringify(obj.$attrs.strokeLinejoin)); console.info("[lineProps] get stroke-linejoin value is: " + JSON.stringify(obj.$attrs.strokeLinejoin));
done(); done();
}); });
...@@ -339,7 +339,7 @@ ...@@ -339,7 +339,7 @@
expect(obj.$attrs.stroke).assertEqual('red') expect(obj.$attrs.stroke).assertEqual('red')
console.info("[lineProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke)); console.info("[lineProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
expect(obj.$attrs.strokeLinejoin).assertEqual('miter') expect(obj.$attrs.strokeLinejoin).assertEqual('miter')
console.info("[lineProps] get inspector stroke-linejoin value is: " + JSON.stringify(obj.$attrs.strokeLinejoin)); console.info("[lineProps] get stroke-linejoin value is: " + JSON.stringify(obj.$attrs.strokeLinejoin));
done(); done();
}); });
...@@ -373,7 +373,7 @@ ...@@ -373,7 +373,7 @@
expect(obj.$attrs.stroke).assertEqual('red') expect(obj.$attrs.stroke).assertEqual('red')
console.info("[lineProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke)); console.info("[lineProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
expect(obj.$attrs.strokeLinejoin).assertEqual('round') expect(obj.$attrs.strokeLinejoin).assertEqual('round')
console.info("[lineProps] get inspector stroke-linejoin value is: " + JSON.stringify(obj.$attrs.strokeLinejoin)); console.info("[lineProps] get stroke-linejoin value is: " + JSON.stringify(obj.$attrs.strokeLinejoin));
done(); done();
}); });
...@@ -509,7 +509,7 @@ ...@@ -509,7 +509,7 @@
expect(obj.$attrs.stroke).assertEqual('red') expect(obj.$attrs.stroke).assertEqual('red')
console.info("[lineProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke)); console.info("[lineProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
expect(obj.$attrs.strokeMiterlimit).assertEqual('10') expect(obj.$attrs.strokeMiterlimit).assertEqual('10')
console.info("[lineProps] get inspector stroke-miterlimit value is: " + JSON.stringify(obj.$attrs.strokeMiterlimit)); console.info("[lineProps] get stroke-miterlimit value is: " + JSON.stringify(obj.$attrs.strokeMiterlimit));
done(); done();
}); });
...@@ -676,7 +676,8 @@ ...@@ -676,7 +676,8 @@
console.info("[lineProps] get inspector stroke-width value is: " + JSON.stringify(obj.$attrs.strokeWidth)); console.info("[lineProps] get inspector stroke-width value is: " + JSON.stringify(obj.$attrs.strokeWidth));
expect(obj.$attrs.stroke).assertEqual('red') expect(obj.$attrs.stroke).assertEqual('red')
console.info("[lineProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke)); console.info("[lineProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
expect(obj.$attrs.transform).assertEqual('translate(10,5) scale(0.5 1.3) rotate(20 40 90) skewX(10) skewY(-15)') expect(obj.$attrs.transform).assertEqual('translate(10,5) scale(0.5 1.3) rotate(20 40 90) ' +
'skewX(10) skewY(-15)')
console.info("[lineProps] get inspector transform value is: " + JSON.stringify(obj.$attrs.transform)); console.info("[lineProps] get inspector transform value is: " + JSON.stringify(obj.$attrs.transform));
done(); done();
}); });
......
...@@ -382,7 +382,7 @@ describe('polygonPropsJsTest', function () { ...@@ -382,7 +382,7 @@ describe('polygonPropsJsTest', function () {
expect(obj.$attrs.stroke).assertEqual('red') expect(obj.$attrs.stroke).assertEqual('red')
console.info("[polygonProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke)); console.info("[polygonProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
expect(obj.$attrs.strokeDashoffset).assertEqual('23') expect(obj.$attrs.strokeDashoffset).assertEqual('23')
console.info("[polygonProps] get inspector dashoffset value is: " + JSON.stringify(obj.$attrs.strokeDashoffset)); console.info("[polygonProps] get dashoffset value is: " + JSON.stringify(obj.$attrs.strokeDashoffset));
done(); done();
}); });
...@@ -565,7 +565,7 @@ describe('polygonPropsJsTest', function () { ...@@ -565,7 +565,7 @@ describe('polygonPropsJsTest', function () {
expect(obj.$attrs.stroke).assertEqual('red') expect(obj.$attrs.stroke).assertEqual('red')
console.info("[polygonProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke)); console.info("[polygonProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
expect(obj.$attrs.strokeMiterlimit).assertEqual('10') expect(obj.$attrs.strokeMiterlimit).assertEqual('10')
console.info("[polygonProps] get inspector miterlimit value is: " + JSON.stringify(obj.$attrs.strokeMiterlimit)); console.info("[polygonProps] get miterlimit value is:" + JSON.stringify(obj.$attrs.strokeMiterlimit));
done(); done();
}); });
......
...@@ -356,7 +356,7 @@ ...@@ -356,7 +356,7 @@
expect(obj.$attrs.stroke).assertEqual('red') expect(obj.$attrs.stroke).assertEqual('red')
console.info("[polylineProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke)); console.info("[polylineProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
expect(obj.$attrs.strokeDasharray).assertEqual('2 3') expect(obj.$attrs.strokeDasharray).assertEqual('2 3')
console.info("[polylineProps] get inspector dasharray value is: " + JSON.stringify(obj.$attrs.strokeDasharray)); console.info("[polylineProps] get ins dasharray value is: " + JSON.stringify(obj.$attrs.strokeDasharray));
done(); done();
}); });
...@@ -382,7 +382,7 @@ ...@@ -382,7 +382,7 @@
expect(obj.$attrs.stroke).assertEqual('red') expect(obj.$attrs.stroke).assertEqual('red')
console.info("[polylineProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke)); console.info("[polylineProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
expect(obj.$attrs.strokeDashoffset).assertEqual('23') expect(obj.$attrs.strokeDashoffset).assertEqual('23')
console.info("[polylineProps] get inspector dashoffset value is: " + JSON.stringify(obj.$attrs.strokeDashoffset)); console.info("[polylineProps] get ins dashoffset value is: " + JSON.stringify(obj.$attrs.strokeDashoffset));
done(); done();
}); });
...@@ -565,7 +565,7 @@ ...@@ -565,7 +565,7 @@
expect(obj.$attrs.stroke).assertEqual('red') expect(obj.$attrs.stroke).assertEqual('red')
console.info("[polylineProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke)); console.info("[polylineProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
expect(obj.$attrs.strokeMiterlimit).assertEqual('10') expect(obj.$attrs.strokeMiterlimit).assertEqual('10')
console.info("[polylineProps] get inspector miterlimit value is: " + JSON.stringify(obj.$attrs.strokeMiterlimit)); console.info("[polylineProps] get ins miterlimit value is: " + JSON.stringify(obj.$attrs.strokeMiterlimit));
done(); done();
}); });
......
...@@ -135,33 +135,6 @@ describe('togglePropsJsTest', function () { ...@@ -135,33 +135,6 @@ describe('togglePropsJsTest', function () {
done(); done();
}); });
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testtoggleStyleProp
* @tc.desc ACEs
*/
// it('testtoggleStyleProp', 0, async function (done) {
// console.info('testtoggleStyleProp START');
// console.info("[toggleProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
//
// let obj = JSON.parse(globalThis.value.styleProp);
// console.info("[toggleProps] get inspector value is: " + JSON.stringify(obj));
// console.info("[toggleProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
//
// expect(obj.$type).assertEqual('toggle')
// expect(obj.$attrs.id).assertEqual('styleProp')
// expect(obj.$attrs.style).assertEqual(undefined)
// console.info("[toggleProps] get style value is: " + JSON.stringify(obj.$attrs.style));
//
// expect(obj.$styles.width).assertEqual(undefined);
// console.info("[toggleProps] get style width value is: " + JSON.stringify(obj.$styles.width));
// expect(obj.$styles.height).assertEqual(undefined);
// console.info("[toggleProps] get style height value is: " + JSON.stringify(obj.$styles.height));
// expect(obj.$styles.get('background-color')).assertEqual(undefined);
// console.info("[toggleProps] get style background-color value is: " + JSON.stringify(obj.$styles.get('background-color')));
// done();
// });
/** /**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testtoggleRefProp * @tc.name testtoggleRefProp
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册