From e6ffb0cfa94d17d9328ff8bf2aa2190d9405e10c Mon Sep 17 00:00:00 2001 From: dongwei Date: Tue, 8 Mar 2022 20:23:15 +0800 Subject: [PATCH] add test cases Signed-off-by: dongwei --- .../js/default/pages/animate/prop/index.js | 1 - .../default/pages/animateMotion/prop/index.js | 1 - .../pages/animateTransform/prop/index.js | 1 - .../js/default/pages/input/router/index.hml | 2 +- .../js/default/pages/input/router/index.js | 9 ++++--- .../pages/obj_CanvasGradient/style/index.js | 14 ++++++++++ .../style/index.js | 14 ++++++++++ .../js/default/pages/obj_Image/style/index.js | 14 ++++++++++ .../pages/obj_ImageBitmap/style/index.js | 14 ++++++++++ .../pages/obj_ImageData/style/index.js | 14 ++++++++++ .../pages/obj_OffscreenCanvas/style/index.js | 14 ++++++++++ .../style/index.js | 14 ++++++++++ .../default/pages/obj_Path2D/style/index.js | 14 ++++++++++ .../js/default/pages/pickerView/prop/index.js | 8 ------ .../js/default/pages/qrcode/router/index.hml | 4 +-- .../js/default/pages/qrcode/router/index.js | 9 ++++--- .../js/default/pages/rating/router/index.hml | 2 +- .../js/default/pages/rating/router/index.js | 9 ++++--- .../js/default/pages/richtext/prop/index.js | 3 ++- .../default/pages/richtext/router/index.hml | 2 +- .../js/default/pages/richtext/router/index.js | 9 ++++--- .../js/default/pages/select/router/index.hml | 2 +- .../js/default/pages/select/router/index.js | 9 ++++--- .../js/default/pages/slider/router/index.hml | 2 +- .../js/default/pages/slider/router/index.js | 9 ++++--- .../js/default/pages/svg_text/prop/index.js | 1 - .../js/default/pages/textPath/prop/index.js | 1 - .../main/js/default/pages/tspan/prop/index.js | 1 - .../main/js/default/test/circleProps.test.js | 4 +-- .../main/js/default/test/ellipseProps.test.js | 4 +-- .../main/js/default/test/lineProps.test.js | 15 ++++++----- .../main/js/default/test/polygonProps.test.js | 4 +-- .../js/default/test/polylineProps.test.js | 6 ++--- .../main/js/default/test/toggleProps.test.js | 27 ------------------- 34 files changed, 168 insertions(+), 89 deletions(-) diff --git a/ace/ace_standard/src/main/js/default/pages/animate/prop/index.js b/ace/ace_standard/src/main/js/default/pages/animate/prop/index.js index fdcc1d201..65a3a874f 100644 --- a/ace/ace_standard/src/main/js/default/pages/animate/prop/index.js +++ b/ace/ace_standard/src/main/js/default/pages/animate/prop/index.js @@ -115,6 +115,5 @@ export default { this.toPropNone = this.$element("toPropNone").getInspector() this.valuesProp = this.$element("valuesProp").getInspector() this.valuesPropNone = this.$element("valuesPropNone").getInspector() - return }, } diff --git a/ace/ace_standard/src/main/js/default/pages/animateMotion/prop/index.js b/ace/ace_standard/src/main/js/default/pages/animateMotion/prop/index.js index 55fdc258a..c6e6990ab 100644 --- a/ace/ace_standard/src/main/js/default/pages/animateMotion/prop/index.js +++ b/ace/ace_standard/src/main/js/default/pages/animateMotion/prop/index.js @@ -131,6 +131,5 @@ export default { this.rotatePropRotate = this.$element("rotatePropRotate").getInspector() this.rotatePropAutoReverse = this.$element("rotatePropAutoReverse").getInspector() this.rotatePropNumber = this.$element("rotatePropNumber").getInspector() - return }, } diff --git a/ace/ace_standard/src/main/js/default/pages/animateTransform/prop/index.js b/ace/ace_standard/src/main/js/default/pages/animateTransform/prop/index.js index 7ccb0659d..9d0179f86 100644 --- a/ace/ace_standard/src/main/js/default/pages/animateTransform/prop/index.js +++ b/ace/ace_standard/src/main/js/default/pages/animateTransform/prop/index.js @@ -130,6 +130,5 @@ export default { this.typePropRotate = this.$element("typePropRotate").getInspector() this.typePropSkewX = this.$element("typePropSkewX").getInspector() this.typePropSkewY = this.$element("typePropSkewY").getInspector() - return }, } diff --git a/ace/ace_standard/src/main/js/default/pages/input/router/index.hml b/ace/ace_standard/src/main/js/default/pages/input/router/index.hml index 221e11528..018b2a137 100644 --- a/ace/ace_standard/src/main/js/default/pages/input/router/index.hml +++ b/ace/ace_standard/src/main/js/default/pages/input/router/index.hml @@ -224,7 +224,7 @@ + onaccessibility="onAccessibility">
diff --git a/ace/ace_standard/src/main/js/default/pages/input/router/index.js b/ace/ace_standard/src/main/js/default/pages/input/router/index.js index 26f025dc9..1dda54300 100644 --- a/ace/ace_standard/src/main/js/default/pages/input/router/index.js +++ b/ace/ace_standard/src/main/js/default/pages/input/router/index.js @@ -514,9 +514,10 @@ export default { }); }, - accessibility(event){ - prompt.showToast({ - message: JSON.stringify(event) - }); + onAccessibility(event) { + if (event.eventType == 1) { + console.log('abc'); + } + console.log("onAccessibility" + JSON.stringify(event)); } } diff --git a/ace/ace_standard/src/main/js/default/pages/obj_CanvasGradient/style/index.js b/ace/ace_standard/src/main/js/default/pages/obj_CanvasGradient/style/index.js index e69de29bb..4a45d3eb1 100644 --- a/ace/ace_standard/src/main/js/default/pages/obj_CanvasGradient/style/index.js +++ b/ace/ace_standard/src/main/js/default/pages/obj_CanvasGradient/style/index.js @@ -0,0 +1,14 @@ +/** + * 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 diff --git a/ace/ace_standard/src/main/js/default/pages/obj_CanvasRenderingContext2D/style/index.js b/ace/ace_standard/src/main/js/default/pages/obj_CanvasRenderingContext2D/style/index.js index e69de29bb..4a45d3eb1 100644 --- a/ace/ace_standard/src/main/js/default/pages/obj_CanvasRenderingContext2D/style/index.js +++ b/ace/ace_standard/src/main/js/default/pages/obj_CanvasRenderingContext2D/style/index.js @@ -0,0 +1,14 @@ +/** + * 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 diff --git a/ace/ace_standard/src/main/js/default/pages/obj_Image/style/index.js b/ace/ace_standard/src/main/js/default/pages/obj_Image/style/index.js index e69de29bb..4a45d3eb1 100644 --- a/ace/ace_standard/src/main/js/default/pages/obj_Image/style/index.js +++ b/ace/ace_standard/src/main/js/default/pages/obj_Image/style/index.js @@ -0,0 +1,14 @@ +/** + * 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 diff --git a/ace/ace_standard/src/main/js/default/pages/obj_ImageBitmap/style/index.js b/ace/ace_standard/src/main/js/default/pages/obj_ImageBitmap/style/index.js index e69de29bb..4a45d3eb1 100644 --- a/ace/ace_standard/src/main/js/default/pages/obj_ImageBitmap/style/index.js +++ b/ace/ace_standard/src/main/js/default/pages/obj_ImageBitmap/style/index.js @@ -0,0 +1,14 @@ +/** + * 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 diff --git a/ace/ace_standard/src/main/js/default/pages/obj_ImageData/style/index.js b/ace/ace_standard/src/main/js/default/pages/obj_ImageData/style/index.js index e69de29bb..4a45d3eb1 100644 --- a/ace/ace_standard/src/main/js/default/pages/obj_ImageData/style/index.js +++ b/ace/ace_standard/src/main/js/default/pages/obj_ImageData/style/index.js @@ -0,0 +1,14 @@ +/** + * 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 diff --git a/ace/ace_standard/src/main/js/default/pages/obj_OffscreenCanvas/style/index.js b/ace/ace_standard/src/main/js/default/pages/obj_OffscreenCanvas/style/index.js index e69de29bb..4a45d3eb1 100644 --- a/ace/ace_standard/src/main/js/default/pages/obj_OffscreenCanvas/style/index.js +++ b/ace/ace_standard/src/main/js/default/pages/obj_OffscreenCanvas/style/index.js @@ -0,0 +1,14 @@ +/** + * 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 diff --git a/ace/ace_standard/src/main/js/default/pages/obj_OffscreenCanvasRenderingContext2D/style/index.js b/ace/ace_standard/src/main/js/default/pages/obj_OffscreenCanvasRenderingContext2D/style/index.js index e69de29bb..4a45d3eb1 100644 --- a/ace/ace_standard/src/main/js/default/pages/obj_OffscreenCanvasRenderingContext2D/style/index.js +++ b/ace/ace_standard/src/main/js/default/pages/obj_OffscreenCanvasRenderingContext2D/style/index.js @@ -0,0 +1,14 @@ +/** + * 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 diff --git a/ace/ace_standard/src/main/js/default/pages/obj_Path2D/style/index.js b/ace/ace_standard/src/main/js/default/pages/obj_Path2D/style/index.js index e69de29bb..4a45d3eb1 100644 --- a/ace/ace_standard/src/main/js/default/pages/obj_Path2D/style/index.js +++ b/ace/ace_standard/src/main/js/default/pages/obj_Path2D/style/index.js @@ -0,0 +1,14 @@ +/** + * 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 diff --git a/ace/ace_standard/src/main/js/default/pages/pickerView/prop/index.js b/ace/ace_standard/src/main/js/default/pages/pickerView/prop/index.js index 72b53e8a7..ade2654a5 100644 --- a/ace/ace_standard/src/main/js/default/pages/pickerView/prop/index.js +++ b/ace/ace_standard/src/main/js/default/pages/pickerView/prop/index.js @@ -60,7 +60,6 @@ export default { onShow(){ this.getCommonPropValues(); -// this.getSpecificPropValues(); globalThis.value = { idProp : this.idProp, classProp : this.classProp, @@ -129,12 +128,5 @@ export default { this.showPropTrue = this.$element("showPropTrue").getInspector() this.showPropFalse = this.$element("showPropFalse").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() } } diff --git a/ace/ace_standard/src/main/js/default/pages/qrcode/router/index.hml b/ace/ace_standard/src/main/js/default/pages/qrcode/router/index.hml index 717cacc1b..5d0b5ce93 100644 --- a/ace/ace_standard/src/main/js/default/pages/qrcode/router/index.hml +++ b/ace/ace_standard/src/main/js/default/pages/qrcode/router/index.hml @@ -193,13 +193,13 @@ ondragend="dragEnd" ondragenter="dragEnter" ondragover="dragOver" ondragleave="dragLeave" ondrop="drop" value="value" - onaccessibility="accessibility"> + onaccessibility="onAccessibility"> qrcode特有事件1 + onaccessibility="onAccessibility">
diff --git a/ace/ace_standard/src/main/js/default/pages/qrcode/router/index.js b/ace/ace_standard/src/main/js/default/pages/qrcode/router/index.js index 4e591f67c..fe0365898 100644 --- a/ace/ace_standard/src/main/js/default/pages/qrcode/router/index.js +++ b/ace/ace_standard/src/main/js/default/pages/qrcode/router/index.js @@ -451,9 +451,10 @@ export default { }, 1500) }, - accessibility(event){ - prompt.showToast({ - message: JSON.stringify(event) - }); + onAccessibility(event) { + if (event.eventType == 1) { + console.log('abc'); + } + console.log("onAccessibility" + JSON.stringify(event)); } } diff --git a/ace/ace_standard/src/main/js/default/pages/rating/router/index.hml b/ace/ace_standard/src/main/js/default/pages/rating/router/index.hml index 63e0fdeb7..bf94b0ceb 100644 --- a/ace/ace_standard/src/main/js/default/pages/rating/router/index.hml +++ b/ace/ace_standard/src/main/js/default/pages/rating/router/index.hml @@ -192,7 +192,7 @@ rating="1" stepsize="1" onchange="change" - onaccessibility="accessibility"> + onaccessibility="onAccessibility">
diff --git a/ace/ace_standard/src/main/js/default/pages/rating/router/index.js b/ace/ace_standard/src/main/js/default/pages/rating/router/index.js index 1a66abfee..650a3211a 100644 --- a/ace/ace_standard/src/main/js/default/pages/rating/router/index.js +++ b/ace/ace_standard/src/main/js/default/pages/rating/router/index.js @@ -457,9 +457,10 @@ export default { }); }, - accessibility(event){ - prompt.showToast({ - message: JSON.stringify(event) - }); + onAccessibility(event) { + if (event.eventType == 1) { + console.log('abc'); + } + console.log("onAccessibility" + JSON.stringify(event)); } } diff --git a/ace/ace_standard/src/main/js/default/pages/richtext/prop/index.js b/ace/ace_standard/src/main/js/default/pages/richtext/prop/index.js index be25b6efa..3981aa4fc 100644 --- a/ace/ace_standard/src/main/js/default/pages/richtext/prop/index.js +++ b/ace/ace_standard/src/main/js/default/pages/richtext/prop/index.js @@ -18,7 +18,8 @@ import prompt from '@system.prompt'; export default { data:{ content: ` -
+

h1

文本测试(h1测试)

diff --git a/ace/ace_standard/src/main/js/default/pages/richtext/router/index.hml b/ace/ace_standard/src/main/js/default/pages/richtext/router/index.hml index 197b1c21a..31d49e011 100644 --- a/ace/ace_standard/src/main/js/default/pages/richtext/router/index.hml +++ b/ace/ace_standard/src/main/js/default/pages/richtext/router/index.hml @@ -122,7 +122,7 @@
+ onaccessibility="onAccessibility">
diff --git a/ace/ace_standard/src/main/js/default/pages/richtext/router/index.js b/ace/ace_standard/src/main/js/default/pages/richtext/router/index.js index 8b0f71a0c..1de128701 100644 --- a/ace/ace_standard/src/main/js/default/pages/richtext/router/index.js +++ b/ace/ace_standard/src/main/js/default/pages/richtext/router/index.js @@ -391,9 +391,10 @@ export default { }); }, - accessibility(event){ - prompt.showToast({ - message: JSON.stringify(event) - }); + onAccessibility(event) { + if (event.eventType == 1) { + console.log('abc'); + } + console.log("onAccessibility" + JSON.stringify(event)); } } diff --git a/ace/ace_standard/src/main/js/default/pages/select/router/index.hml b/ace/ace_standard/src/main/js/default/pages/select/router/index.hml index 13ecf5a4d..d08982bed 100644 --- a/ace/ace_standard/src/main/js/default/pages/select/router/index.hml +++ b/ace/ace_standard/src/main/js/default/pages/select/router/index.hml @@ -154,7 +154,7 @@
diff --git a/ace/ace_standard/src/main/js/default/pages/select/router/index.js b/ace/ace_standard/src/main/js/default/pages/select/router/index.js index 1a66abfee..650a3211a 100644 --- a/ace/ace_standard/src/main/js/default/pages/select/router/index.js +++ b/ace/ace_standard/src/main/js/default/pages/select/router/index.js @@ -457,9 +457,10 @@ export default { }); }, - accessibility(event){ - prompt.showToast({ - message: JSON.stringify(event) - }); + onAccessibility(event) { + if (event.eventType == 1) { + console.log('abc'); + } + console.log("onAccessibility" + JSON.stringify(event)); } } diff --git a/ace/ace_standard/src/main/js/default/pages/slider/router/index.hml b/ace/ace_standard/src/main/js/default/pages/slider/router/index.hml index c03b08567..d66e11954 100644 --- a/ace/ace_standard/src/main/js/default/pages/slider/router/index.hml +++ b/ace/ace_standard/src/main/js/default/pages/slider/router/index.hml @@ -203,7 +203,7 @@ + onaccessibility="onAccessibility">
diff --git a/ace/ace_standard/src/main/js/default/pages/slider/router/index.js b/ace/ace_standard/src/main/js/default/pages/slider/router/index.js index 1a66abfee..650a3211a 100644 --- a/ace/ace_standard/src/main/js/default/pages/slider/router/index.js +++ b/ace/ace_standard/src/main/js/default/pages/slider/router/index.js @@ -457,9 +457,10 @@ export default { }); }, - accessibility(event){ - prompt.showToast({ - message: JSON.stringify(event) - }); + onAccessibility(event) { + if (event.eventType == 1) { + console.log('abc'); + } + console.log("onAccessibility" + JSON.stringify(event)); } } diff --git a/ace/ace_standard/src/main/js/default/pages/svg_text/prop/index.js b/ace/ace_standard/src/main/js/default/pages/svg_text/prop/index.js index c6a4b9efa..71ed03cd5 100644 --- a/ace/ace_standard/src/main/js/default/pages/svg_text/prop/index.js +++ b/ace/ace_standard/src/main/js/default/pages/svg_text/prop/index.js @@ -115,6 +115,5 @@ export default { this.strokeWidthPropNone = this.$element("strokeWidthPropNone").getInspector() this.strokeOpacityProp = this.$element("strokeOpacityProp").getInspector() this.strokeOpacityPropNone = this.$element("strokeOpacityPropNone").getInspector() - return }, } diff --git a/ace/ace_standard/src/main/js/default/pages/textPath/prop/index.js b/ace/ace_standard/src/main/js/default/pages/textPath/prop/index.js index aba8b92d8..8817a6e55 100644 --- a/ace/ace_standard/src/main/js/default/pages/textPath/prop/index.js +++ b/ace/ace_standard/src/main/js/default/pages/textPath/prop/index.js @@ -94,6 +94,5 @@ export default { this.strokeWidthPropNone = this.$element("strokeWidthPropNone").getInspector() this.strokeOpacityProp = this.$element("strokeOpacityProp").getInspector() this.strokeOpacityPropNone = this.$element("strokeOpacityPropNone").getInspector() - return }, } diff --git a/ace/ace_standard/src/main/js/default/pages/tspan/prop/index.js b/ace/ace_standard/src/main/js/default/pages/tspan/prop/index.js index c6a4b9efa..71ed03cd5 100644 --- a/ace/ace_standard/src/main/js/default/pages/tspan/prop/index.js +++ b/ace/ace_standard/src/main/js/default/pages/tspan/prop/index.js @@ -115,6 +115,5 @@ export default { this.strokeWidthPropNone = this.$element("strokeWidthPropNone").getInspector() this.strokeOpacityProp = this.$element("strokeOpacityProp").getInspector() this.strokeOpacityPropNone = this.$element("strokeOpacityPropNone").getInspector() - return }, } diff --git a/ace/ace_standard/src/main/js/default/test/circleProps.test.js b/ace/ace_standard/src/main/js/default/test/circleProps.test.js index bd6df82d2..ce923db1b 100644 --- a/ace/ace_standard/src/main/js/default/test/circleProps.test.js +++ b/ace/ace_standard/src/main/js/default/test/circleProps.test.js @@ -430,7 +430,7 @@ expect(obj.$attrs.stroke).assertEqual('red') console.info("[circleProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke)); 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(); }); @@ -641,7 +641,7 @@ expect(obj.$attrs.stroke).assertEqual('red') console.info("[circleProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke)); 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(); }); diff --git a/ace/ace_standard/src/main/js/default/test/ellipseProps.test.js b/ace/ace_standard/src/main/js/default/test/ellipseProps.test.js index dbab42280..031a69f6c 100644 --- a/ace/ace_standard/src/main/js/default/test/ellipseProps.test.js +++ b/ace/ace_standard/src/main/js/default/test/ellipseProps.test.js @@ -448,7 +448,7 @@ expect(obj.$attrs.stroke).assertEqual('red') console.info("[ellipseProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke)); 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(); }); @@ -673,7 +673,7 @@ expect(obj.$attrs.stroke).assertEqual('red') console.info("[ellipseProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke)); 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(); }); diff --git a/ace/ace_standard/src/main/js/default/test/lineProps.test.js b/ace/ace_standard/src/main/js/default/test/lineProps.test.js index 261728362..d6c33171f 100644 --- a/ace/ace_standard/src/main/js/default/test/lineProps.test.js +++ b/ace/ace_standard/src/main/js/default/test/lineProps.test.js @@ -236,7 +236,7 @@ expect(obj.$attrs.stroke).assertEqual('red') console.info("[lineProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke)); 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(); }); @@ -270,7 +270,7 @@ expect(obj.$attrs.stroke).assertEqual('red') console.info("[lineProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke)); 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(); }); @@ -305,7 +305,7 @@ expect(obj.$attrs.stroke).assertEqual('red') console.info("[lineProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke)); 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(); }); @@ -339,7 +339,7 @@ expect(obj.$attrs.stroke).assertEqual('red') console.info("[lineProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke)); 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(); }); @@ -373,7 +373,7 @@ expect(obj.$attrs.stroke).assertEqual('red') console.info("[lineProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke)); 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(); }); @@ -509,7 +509,7 @@ expect(obj.$attrs.stroke).assertEqual('red') console.info("[lineProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke)); 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(); }); @@ -676,7 +676,8 @@ console.info("[lineProps] get inspector stroke-width value is: " + JSON.stringify(obj.$attrs.strokeWidth)); expect(obj.$attrs.stroke).assertEqual('red') 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)); done(); }); diff --git a/ace/ace_standard/src/main/js/default/test/polygonProps.test.js b/ace/ace_standard/src/main/js/default/test/polygonProps.test.js index c03555f69..96de2f4cb 100644 --- a/ace/ace_standard/src/main/js/default/test/polygonProps.test.js +++ b/ace/ace_standard/src/main/js/default/test/polygonProps.test.js @@ -382,7 +382,7 @@ describe('polygonPropsJsTest', function () { expect(obj.$attrs.stroke).assertEqual('red') console.info("[polygonProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke)); 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(); }); @@ -565,7 +565,7 @@ describe('polygonPropsJsTest', function () { expect(obj.$attrs.stroke).assertEqual('red') console.info("[polygonProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke)); 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(); }); diff --git a/ace/ace_standard/src/main/js/default/test/polylineProps.test.js b/ace/ace_standard/src/main/js/default/test/polylineProps.test.js index 21780c0e1..05c8d5153 100644 --- a/ace/ace_standard/src/main/js/default/test/polylineProps.test.js +++ b/ace/ace_standard/src/main/js/default/test/polylineProps.test.js @@ -356,7 +356,7 @@ expect(obj.$attrs.stroke).assertEqual('red') console.info("[polylineProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke)); 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(); }); @@ -382,7 +382,7 @@ expect(obj.$attrs.stroke).assertEqual('red') console.info("[polylineProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke)); 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(); }); @@ -565,7 +565,7 @@ expect(obj.$attrs.stroke).assertEqual('red') console.info("[polylineProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke)); 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(); }); diff --git a/ace/ace_standard/src/main/js/default/test/toggleProps.test.js b/ace/ace_standard/src/main/js/default/test/toggleProps.test.js index 801330d92..e577a511f 100644 --- a/ace/ace_standard/src/main/js/default/test/toggleProps.test.js +++ b/ace/ace_standard/src/main/js/default/test/toggleProps.test.js @@ -135,33 +135,6 @@ describe('togglePropsJsTest', function () { 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.name testtoggleRefProp -- GitLab