diff --git a/ace/ace_standard/src/main/js/default/pages/circle/index.js b/ace/ace_standard/src/main/js/default/pages/svg/router/index.js
similarity index 77%
rename from ace/ace_standard/src/main/js/default/pages/circle/index.js
rename to ace/ace_standard/src/main/js/default/pages/svg/router/index.js
index 260427920b4544e4c535477afa5a313bc1697f85..46953ce06aa13aa963ef8b07f49e35f7f18e815e 100644
--- a/ace/ace_standard/src/main/js/default/pages/circle/index.js
+++ b/ace/ace_standard/src/main/js/default/pages/svg/router/index.js
@@ -12,15 +12,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+import prompt from '@system.prompt';
+
export default {
data: {
title: ""
- },
- onShow(){
- // 通用属性
- var prop1 = this.$element("prop1");
- var name1 = prop1.dataSet.a
- var prop2 = this.$refs.prop2;
- var name2 = prop2.dataSet.a
}
}
\ No newline at end of file
diff --git a/ace/ace_standard/src/main/js/default/test/List.test.js b/ace/ace_standard/src/main/js/default/test/List.test.js
index f1bd19969994ec61c5f54dc18dbb633d41b64b36..9034dd0bae4b006ecd54dcaad638da21906011a3 100755
--- a/ace/ace_standard/src/main/js/default/test/List.test.js
+++ b/ace/ace_standard/src/main/js/default/test/List.test.js
@@ -56,4 +56,7 @@ require('./inputProps.test.js')
require('./imageAnimatorProps.test.js')
require('./textareaProps.test.js')
require('./videoProps.test.js')
-require('./gridContainerProps.test.js')
\ No newline at end of file
+require('./gridContainerProps.test.js')
+require('./svgProps.test.js')
+require('./rectProps.test.js')
+require('./circleProps.test.js')
\ No newline at end of file
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
new file mode 100644
index 0000000000000000000000000000000000000000..83286f2c00408f135c347c323993edba6188fc26
--- /dev/null
+++ b/ace/ace_standard/src/main/js/default/test/circleProps.test.js
@@ -0,0 +1,993 @@
+/**
+ * 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('circlePropsJsTest', 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('[circlePropsJsTest] before each called')
+
+ let result;
+ let options = {
+ uri: 'pages/circle/prop/index'
+ }
+ try {
+ result = router.push(options)
+ console.info("push circleProps page success " + JSON.stringify(result));
+ } catch (err) {
+ console.error("push circleProps page error " + JSON.stringify(result));
+ }
+ await sleep(4000)
+ done()
+ });
+
+ /**
+ * run after testcase
+ */
+ afterAll(async function () {
+ console.info('[circlePropsJsTest] after each called')
+ await backToIndex()
+ await sleep(1000)
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testCircletFillProp
+ * @tc.desc ACE
+ */
+ it('testCircleFillProp', 0, async function (done) {
+ console.info('testCircleFillProp START');
+ console.info("[circleProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.fillProp);
+ console.info("[circleProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[circleProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('circle')
+ console.info("[circleProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('fillProp')
+ console.info("[circleProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.cx).assertEqual('50')
+ console.info("[circleProps] get inspector cx value is: " + JSON.stringify(obj.$attrs.cx));
+ expect(obj.$attrs.cy).assertEqual('12')
+ console.info("[circleProps] get inspector cy value is: " + JSON.stringify(obj.$attrs.cy));
+ expect(obj.$attrs.r).assertEqual('10')
+ console.info("[circleProps] get inspector r value is: " + JSON.stringify(obj.$attrs.r));
+ expect(obj.$attrs.fill).assertEqual('red')
+ console.info("[circleProps] get inspector fill value is: " + JSON.stringify(obj.$attrs.fill));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testCircleFillOpacityPropOne
+ * @tc.desc ACE
+ */
+ it('testCircleFillOpacityPropOne', 0, async function (done) {
+ console.info('testCircleFillOpacityPropOne START');
+ console.info("[circleProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.fillOpacityPropOne);
+ console.info("[circleProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[circleProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('circle')
+ console.info("[circleProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('fillOpacityPropOne')
+ console.info("[circleProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.cx).assertEqual('30')
+ console.info("[circleProps] get inspector cx value is: " + JSON.stringify(obj.$attrs.cx));
+ expect(obj.$attrs.cy).assertEqual('12')
+ console.info("[circleProps] get inspector cy value is: " + JSON.stringify(obj.$attrs.cy));
+ expect(obj.$attrs.r).assertEqual('10')
+ console.info("[circleProps] get inspector r value is: " + JSON.stringify(obj.$attrs.r));
+ expect(obj.$attrs.fill).assertEqual('red')
+ console.info("[circleProps] get inspector fill value is: " + JSON.stringify(obj.$attrs.fill));
+ expect(obj.$attrs.fillOpacity).assertEqual('0.5')
+ console.info("[circleProps] get inspector fill-opacity value is: " + JSON.stringify(obj.$attrs.fillOpacity));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testCircleFillOpacityPropTwo
+ * @tc.desc ACE
+ */
+ it('testCircleFillOpacityPropTwo', 0, async function (done) {
+ console.info('testCircleFillOpacityPropTwo START');
+ console.info("[circleProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.fillOpacityPropTwo);
+ console.info("[circleProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[circleProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('circle')
+ console.info("[circleProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('fillOpacityPropTwo')
+ console.info("[circleProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.cx).assertEqual('30')
+ console.info("[circleProps] get inspector cx value is: " + JSON.stringify(obj.$attrs.cx));
+ expect(obj.$attrs.cy).assertEqual('12')
+ console.info("[circleProps] get inspector cy value is: " + JSON.stringify(obj.$attrs.cy));
+ expect(obj.$attrs.r).assertEqual('10')
+ console.info("[circleProps] get inspector r value is: " + JSON.stringify(obj.$attrs.r));
+ expect(obj.$attrs.fill).assertEqual('red')
+ console.info("[circleProps] get inspector fill value is: " + JSON.stringify(obj.$attrs.fill));
+ expect(obj.$attrs.fillOpacity).assertEqual('1')
+ console.info("[circleProps] get inspector fill-opacity value is: " + JSON.stringify(obj.$attrs.fillOpacity));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testCircleFillOpacityPropThree
+ * @tc.desc ACE
+ */
+ it('testCircleFillOpacityPropThree', 0, async function (done) {
+ console.info('testCircleFillOpacityPropThree START');
+ console.info("[circleProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.fillOpacityPropThree);
+ console.info("[circleProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[circleProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('circle')
+ console.info("[circleProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('fillOpacityPropThree')
+ console.info("[circleProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.cx).assertEqual('30')
+ console.info("[circleProps] get inspector cx value is: " + JSON.stringify(obj.$attrs.cx));
+ expect(obj.$attrs.cy).assertEqual('12')
+ console.info("[circleProps] get inspector cy value is: " + JSON.stringify(obj.$attrs.cy));
+ expect(obj.$attrs.r).assertEqual('10')
+ console.info("[circleProps] get inspector r value is: " + JSON.stringify(obj.$attrs.r));
+ expect(obj.$attrs.fill).assertEqual('red')
+ console.info("[circleProps] get inspector fill value is: " + JSON.stringify(obj.$attrs.fill));
+ expect(obj.$attrs.fillOpacity).assertEqual('1.5')
+ console.info("[circleProps] get inspector fill-opacity value is: " + JSON.stringify(obj.$attrs.fillOpacity));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testCircleFillRulePropOne
+ * @tc.desc ACE
+ */
+ it('testCircleFillRulePropOne', 0, async function (done) {
+ console.info('testCircleFillRulePropOne START');
+ console.info("[circleProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.fillRulePropOne);
+ console.info("[circleProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[circleProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('circle')
+ console.info("[circleProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('fillRulePropOne')
+ console.info("[circleProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.cx).assertEqual('30')
+ console.info("[circleProps] get inspector cx value is: " + JSON.stringify(obj.$attrs.cx));
+ expect(obj.$attrs.cy).assertEqual('12')
+ console.info("[circleProps] get inspector cy value is: " + JSON.stringify(obj.$attrs.cy));
+ expect(obj.$attrs.r).assertEqual('10')
+ console.info("[circleProps] get inspector r value is: " + JSON.stringify(obj.$attrs.r));
+ expect(obj.$attrs.fill).assertEqual('red')
+ console.info("[circleProps] get inspector fill value is: " + JSON.stringify(obj.$attrs.fill));
+ expect(obj.$attrs.fillRule).assertEqual('evenodd')
+ console.info("[circleProps] get inspector fill-rule value is: " + JSON.stringify(obj.$attrs.fillRule));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testCircleFillRulePropTwo
+ * @tc.desc ACE
+ */
+ it('testCircleFillRulePropTwo', 0, async function (done) {
+ console.info('testCircleFillRulePropTwo START');
+ console.info("[circleProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.fillRulePropTwo);
+ console.info("[circleProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[circleProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('circle')
+ console.info("[circleProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('fillRulePropTwo')
+ console.info("[circleProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.cx).assertEqual('30')
+ console.info("[circleProps] get inspector cx value is: " + JSON.stringify(obj.$attrs.cx));
+ expect(obj.$attrs.cy).assertEqual('12')
+ console.info("[circleProps] get inspector cy value is: " + JSON.stringify(obj.$attrs.cy));
+ expect(obj.$attrs.r).assertEqual('10')
+ console.info("[circleProps] get inspector r value is: " + JSON.stringify(obj.$attrs.r));
+ expect(obj.$attrs.fill).assertEqual('red')
+ console.info("[circleProps] get inspector fill value is: " + JSON.stringify(obj.$attrs.fill));
+ expect(obj.$attrs.fillRule).assertEqual('nonzero')
+ console.info("[circleProps] get inspector fill-rule value is: " + JSON.stringify(obj.$attrs.fillRule));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testCircleOpacityPropOne
+ * @tc.desc ACE
+ */
+ it('testCircleOpacityPropOne', 0, async function (done) {
+ console.info('testCircleOpacityPropOne START');
+ console.info("[circleProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.opacityPropOne);
+ console.info("[circleProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[circleProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('circle')
+ console.info("[circleProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('opacityPropOne')
+ console.info("[circleProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.cx).assertEqual('30')
+ console.info("[circleProps] get inspector cx value is: " + JSON.stringify(obj.$attrs.cx));
+ expect(obj.$attrs.cy).assertEqual('12')
+ console.info("[circleProps] get inspector cy value is: " + JSON.stringify(obj.$attrs.cy));
+ expect(obj.$attrs.r).assertEqual('10')
+ console.info("[circleProps] get inspector r value is: " + JSON.stringify(obj.$attrs.r));
+ expect(obj.$attrs.fill).assertEqual('red')
+ console.info("[circleProps] get inspector fill value is: " + JSON.stringify(obj.$attrs.fill));
+ expect(obj.$attrs.opacity).assertEqual('0.5')
+ console.info("[lineProps] get inspector opacity value is: " + JSON.stringify(obj.$attrs.opacity));;
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testCircleOpacityPropTwo
+ * @tc.desc ACE
+ */
+ it('testCircleOpacityPropTwo', 0, async function (done) {
+ console.info('testCircleOpacityPropTwo START');
+ console.info("[circleProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.opacityPropTwo);
+ console.info("[circleProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[circleProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('circle')
+ console.info("[circleProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('opacityPropTwo')
+ console.info("[circleProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.cx).assertEqual('30')
+ console.info("[circleProps] get inspector cx value is: " + JSON.stringify(obj.$attrs.cx));
+ expect(obj.$attrs.cy).assertEqual('12')
+ console.info("[circleProps] get inspector cy value is: " + JSON.stringify(obj.$attrs.cy));
+ expect(obj.$attrs.r).assertEqual('10')
+ console.info("[circleProps] get inspector r value is: " + JSON.stringify(obj.$attrs.r));
+ expect(obj.$attrs.fill).assertEqual('red')
+ console.info("[circleProps] get inspector fill value is: " + JSON.stringify(obj.$attrs.fill));
+ expect(obj.$attrs.opacity).assertEqual('1')
+ console.info("[circleProps] get inspector opacity value is: " + JSON.stringify(obj.$attrs.opacity));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testCircleOpacityPropThree
+ * @tc.desc ACE
+ */
+ it('testCircleOpacityPropThree', 0, async function (done) {
+ console.info('testCircleOpacityPropThree START');
+ console.info("[circleProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.opacityPropThree);
+ console.info("[circleProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[circleProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('circle')
+ console.info("[circleProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('opacityPropThree')
+ console.info("[circleProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.cx).assertEqual('30')
+ console.info("[circleProps] get inspector cx value is: " + JSON.stringify(obj.$attrs.cx));
+ expect(obj.$attrs.cy).assertEqual('12')
+ console.info("[circleProps] get inspector cy value is: " + JSON.stringify(obj.$attrs.cy));
+ expect(obj.$attrs.r).assertEqual('10')
+ console.info("[circleProps] get inspector r value is: " + JSON.stringify(obj.$attrs.r));
+ expect(obj.$attrs.fill).assertEqual('red')
+ console.info("[circleProps] get inspector fill value is: " + JSON.stringify(obj.$attrs.fill));
+ expect(obj.$attrs.opacity).assertEqual('1.5')
+ console.info("[circleProps] get inspector opacity value is: " + JSON.stringify(obj.$attrs.opacity));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testCircleStrokeProp
+ * @tc.desc ACE
+ */
+ it('testCircleStrokeProp', 0, async function (done) {
+ console.info('testCircleStrokeProp START');
+ console.info("[circleProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.strokeProp);
+ console.info("[circleProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[circleProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('circle')
+ console.info("[circleProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('strokeProp')
+ console.info("[circleProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.cx).assertEqual('30')
+ console.info("[circleProps] get inspector cx value is: " + JSON.stringify(obj.$attrs.cx));
+ expect(obj.$attrs.cy).assertEqual('12')
+ console.info("[circleProps] get inspector cy value is: " + JSON.stringify(obj.$attrs.cy));
+ expect(obj.$attrs.r).assertEqual('10')
+ console.info("[circleProps] get inspector r value is: " + JSON.stringify(obj.$attrs.r));
+ expect(obj.$attrs.stroke).assertEqual('red')
+ console.info("[circleProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testCircleStrokeDashArrayProp
+ * @tc.desc ACE
+ */
+ it('testCircleStrokeDashArrayProp', 0, async function (done) {
+ console.info('testCircleStrokeDashArrayProp START');
+ console.info("[circleProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.strokeDashArrayProp);
+ console.info("[circleProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[circleProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('circle')
+ console.info("[circleProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('strokeDashArrayProp')
+ console.info("[circleProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.cx).assertEqual('30')
+ console.info("[circleProps] get inspector cx value is: " + JSON.stringify(obj.$attrs.cx));
+ expect(obj.$attrs.cy).assertEqual('12')
+ console.info("[circleProps] get inspector cy value is: " + JSON.stringify(obj.$attrs.cy));
+ expect(obj.$attrs.r).assertEqual('10')
+ console.info("[circleProps] get inspector r value is: " + JSON.stringify(obj.$attrs.r));
+ expect(obj.$attrs.stroke).assertEqual('red')
+ console.info("[circleProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
+ expect(obj.$attrs.strokeDasharray).assertEqual('2 3')
+ console.info("[circleProps] get inspector stroke-dasharray value is: " + JSON.stringify(obj.$attrs.strokeDasharray));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testCircleStrokeDashOffsetProp
+ * @tc.desc ACE
+ */
+ it('testCircleStrokeDashOffsetProp', 0, async function (done) {
+ console.info('testCircleStrokeDashOffsetProp START');
+ console.info("[circleProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.strokeDashOffsetProp);
+ console.info("[circleProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[circleProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('circle')
+ console.info("[circleProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('strokeDashOffsetProp')
+ console.info("[circleProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.cx).assertEqual('30')
+ console.info("[circleProps] get inspector cx value is: " + JSON.stringify(obj.$attrs.cx));
+ expect(obj.$attrs.cy).assertEqual('12')
+ console.info("[circleProps] get inspector cy value is: " + JSON.stringify(obj.$attrs.cy));
+ expect(obj.$attrs.r).assertEqual('10')
+ console.info("[circleProps] get inspector r value is: " + JSON.stringify(obj.$attrs.r));
+ 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 stroke-dashoffset value is: " + JSON.stringify(obj.$attrs.strokeDashoffset));
+ done();
+ });
+
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testCircleStrokeLineJoinPropOne
+ * @tc.desc ACE
+ */
+ it('testCircleStrokeLineJoinPropOne', 0, async function (done) {
+ console.info('testCircleStrokeLineJoinPropOne START');
+ console.info("[circleProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.strokeLineJoinPropOne);
+ console.info("[circleProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[circleProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('circle')
+ console.info("[circleProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('strokeLineJoinPropOne')
+ console.info("[circleProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.cx).assertEqual('30')
+ console.info("[circleProps] get inspector cx value is: " + JSON.stringify(obj.$attrs.cx));
+ expect(obj.$attrs.cy).assertEqual('12')
+ console.info("[circleProps] get inspector cy value is: " + JSON.stringify(obj.$attrs.cy));
+ expect(obj.$attrs.r).assertEqual('10')
+ console.info("[circleProps] get inspector r value is: " + JSON.stringify(obj.$attrs.r));
+ expect(obj.$attrs.stroke).assertEqual('red')
+ console.info("[circleProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
+ expect(obj.$attrs.strokeLinejoin).assertEqual('bevel')
+ console.info("[circleProps] get inspector stroke-linejoin value is: " + JSON.stringify(obj.$attrs.strokeLinejoin));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testCircleStrokeLineJoinPropTwo
+ * @tc.desc ACE
+ */
+ it('testCircleStrokeLineJoinPropTwo', 0, async function (done) {
+ console.info('testCircleStrokeLineJoinPropTwo START');
+ console.info("[circleProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.strokeLineJoinPropTwo);
+ console.info("[circleProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[circleProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('circle')
+ console.info("[circleProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('strokeLineJoinPropTwo')
+ console.info("[circleProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.cx).assertEqual('30')
+ console.info("[circleProps] get inspector cx value is: " + JSON.stringify(obj.$attrs.cx));
+ expect(obj.$attrs.cy).assertEqual('12')
+ console.info("[circleProps] get inspector cy value is: " + JSON.stringify(obj.$attrs.cy));
+ expect(obj.$attrs.r).assertEqual('10')
+ console.info("[circleProps] get inspector r value is: " + JSON.stringify(obj.$attrs.r));
+ expect(obj.$attrs.stroke).assertEqual('red')
+ console.info("[circleProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
+ expect(obj.$attrs.strokeLinejoin).assertEqual('miter')
+ console.info("[circleProps] get inspector stroke-linejoin value is: " + JSON.stringify(obj.$attrs.strokeLinejoin));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testCircleStrokeLineJoinPropThree
+ * @tc.desc ACE
+ */
+ it('testCircleStrokeLineJoinPropThree', 0, async function (done) {
+ console.info('testCircleStrokeLineJoinPropThree START');
+ console.info("[circleProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.strokeLineJoinPropThree);
+ console.info("[circleProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[circleProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('circle')
+ console.info("[circleProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('strokeLineJoinPropThree')
+ console.info("[circleProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.cx).assertEqual('30')
+ console.info("[circleProps] get inspector cx value is: " + JSON.stringify(obj.$attrs.cx));
+ expect(obj.$attrs.cy).assertEqual('12')
+ console.info("[circleProps] get inspector cy value is: " + JSON.stringify(obj.$attrs.cy));
+ expect(obj.$attrs.r).assertEqual('10')
+ console.info("[circleProps] get inspector r value is: " + JSON.stringify(obj.$attrs.r));
+ expect(obj.$attrs.stroke).assertEqual('red')
+ console.info("[circleProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
+ expect(obj.$attrs.strokeLinejoin).assertEqual('round')
+ console.info("[circleProps] get inspector stroke-linejoin value is: " + JSON.stringify(obj.$attrs.strokeLinejoin));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testCircleStrokeLineJoinPropOne
+ * @tc.desc ACE
+ */
+ it('testCircleStrokeLineCapPropOne', 0, async function (done) {
+ console.info('testCircleStrokeLineCapPropOne START');
+ console.info("[circleProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.strokeLineCapPropOne);
+ console.info("[circleProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[circleProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('circle')
+ console.info("[circleProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('strokeLineCapPropOne')
+ console.info("[circleProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.cx).assertEqual('30')
+ console.info("[circleProps] get inspector cx value is: " + JSON.stringify(obj.$attrs.cx));
+ expect(obj.$attrs.cy).assertEqual('12')
+ console.info("[circleProps] get inspector cy value is: " + JSON.stringify(obj.$attrs.cy));
+ expect(obj.$attrs.r).assertEqual('10')
+ console.info("[circleProps] get inspector r value is: " + JSON.stringify(obj.$attrs.r));
+ expect(obj.$attrs.stroke).assertEqual('red')
+ console.info("[circleProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
+ expect(obj.$attrs.strokeLineCap).assertEqual('butt')
+ console.info("[circleProps] get inspector stroke-lineCap value is: " + JSON.stringify(obj.$attrs.strokeLineCap));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testCircleStrokeLineCapPropTwo
+ * @tc.desc ACE
+ */
+ it('testCircleStrokeLineCapPropTwo', 0, async function (done) {
+ console.info('testCircleStrokeLineCapPropTwo START');
+ console.info("[circleProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.strokeLineCapPropTwo);
+ console.info("[circleProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[circleProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('circle')
+ console.info("[circleProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('strokeLineCapPropTwo')
+ console.info("[circleProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.cx).assertEqual('30')
+ console.info("[circleProps] get inspector cx value is: " + JSON.stringify(obj.$attrs.cx));
+ expect(obj.$attrs.cy).assertEqual('12')
+ console.info("[circleProps] get inspector cy value is: " + JSON.stringify(obj.$attrs.cy));
+ expect(obj.$attrs.r).assertEqual('10')
+ console.info("[circleProps] get inspector r value is: " + JSON.stringify(obj.$attrs.r));
+ expect(obj.$attrs.stroke).assertEqual('red')
+ console.info("[circleProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
+ expect(obj.$attrs.strokeLineCap).assertEqual('round')
+ console.info("[circleProps] get inspector stroke-lineCap value is: " + JSON.stringify(obj.$attrs.strokeLineCap));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testCircleStrokeLineCapPropThree
+ * @tc.desc ACE
+ */
+ it('testCircleStrokeLineCapPropThree', 0, async function (done) {
+ console.info('testCircleStrokeLineCapPropThree START');
+ console.info("[circleProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.strokeLineCapPropThree);
+ console.info("[circleProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[circleProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('circle')
+ console.info("[circleProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('strokeLineCapPropThree')
+ console.info("[circleProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.cx).assertEqual('30')
+ console.info("[circleProps] get inspector cx value is: " + JSON.stringify(obj.$attrs.cx));
+ expect(obj.$attrs.cy).assertEqual('12')
+ console.info("[circleProps] get inspector cy value is: " + JSON.stringify(obj.$attrs.cy));
+ expect(obj.$attrs.r).assertEqual('10')
+ console.info("[circleProps] get inspector r value is: " + JSON.stringify(obj.$attrs.r));
+ expect(obj.$attrs.stroke).assertEqual('red')
+ console.info("[circleProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
+ expect(obj.$attrs.strokeLineCap).assertEqual('square')
+ console.info("[circleProps] get inspector stroke-lineCap value is: " + JSON.stringify(obj.$attrs.strokeLineCap));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testCircleStrokeMiterLimitProp
+ * @tc.desc ACE
+ */
+ it('testCircleStrokeMiterLimitProp', 0, async function (done) {
+ console.info('testCircleStrokeMiterLimitProp START');
+ console.info("[circleProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.strokeMiterLimitProp);
+ console.info("[circleProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[circleProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('circle')
+ console.info("[circleProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('strokeMiterLimitProp')
+ console.info("[circleProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.cx).assertEqual('30')
+ console.info("[circleProps] get inspector cx value is: " + JSON.stringify(obj.$attrs.cx));
+ expect(obj.$attrs.cy).assertEqual('12')
+ console.info("[circleProps] get inspector cy value is: " + JSON.stringify(obj.$attrs.cy));
+ expect(obj.$attrs.r).assertEqual('10')
+ console.info("[circleProps] get inspector r value is: " + JSON.stringify(obj.$attrs.r));
+ 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 stroke-miterlimit value is: " + JSON.stringify(obj.$attrs.strokeMiterlimit));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testCircleStrokeOpacityPropOne
+ * @tc.desc ACE
+ */
+ it('testCircleStrokeOpacityPropOne', 0, async function (done) {
+ console.info('testCircleStrokeOpacityPropOne START');
+ console.info("[circleProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.strokeOpacityPropOne);
+ console.info("[circleProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[circleProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('circle')
+ console.info("[circleProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('strokeOpacityPropOne')
+ console.info("[circleProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.cx).assertEqual('30')
+ console.info("[circleProps] get inspector cx value is: " + JSON.stringify(obj.$attrs.cx));
+ expect(obj.$attrs.cy).assertEqual('12')
+ console.info("[circleProps] get inspector cy value is: " + JSON.stringify(obj.$attrs.cy));
+ expect(obj.$attrs.r).assertEqual('10')
+ console.info("[circleProps] get inspector r value is: " + JSON.stringify(obj.$attrs.r));
+ expect(obj.$attrs.stroke).assertEqual('red')
+ console.info("[circleProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
+ expect(obj.$attrs.strokeOpacity).assertEqual('0.5')
+ console.info("[circleProps] get inspector stroke-opacity value is: " + JSON.stringify(obj.$attrs.strokeOpacity));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testCircleStrokeOpacityPropTwo
+ * @tc.desc ACE
+ */
+ it('testCircleStrokeOpacityPropTwo', 0, async function (done) {
+ console.info('testCircleStrokeOpacityPropTwo START');
+ console.info("[circleProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.strokeOpacityPropTwo);
+ console.info("[circleProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[circleProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('circle')
+ console.info("[circleProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('strokeOpacityPropTwo')
+ console.info("[circleProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.cx).assertEqual('30')
+ console.info("[circleProps] get inspector cx value is: " + JSON.stringify(obj.$attrs.cx));
+ expect(obj.$attrs.cy).assertEqual('12')
+ console.info("[circleProps] get inspector cy value is: " + JSON.stringify(obj.$attrs.cy));
+ expect(obj.$attrs.r).assertEqual('10')
+ console.info("[circleProps] get inspector r value is: " + JSON.stringify(obj.$attrs.r));
+ expect(obj.$attrs.stroke).assertEqual('red')
+ console.info("[circleProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
+ expect(obj.$attrs.strokeOpacity).assertEqual('1')
+ console.info("[circleProps] get inspector stroke-opacity value is: " + JSON.stringify(obj.$attrs.strokeOpacity));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testCircleStrokeOpacityPropThree
+ * @tc.desc ACE
+ */
+ it('testCircleStrokeOpacityPropThree', 0, async function (done) {
+ console.info('testCircleStrokeOpacityPropThree START');
+ console.info("[circleProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.strokeOpacityPropThree);
+ console.info("[circleProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[circleProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('circle')
+ console.info("[circleProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('strokeOpacityPropThree')
+ console.info("[circleProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.cx).assertEqual('30')
+ console.info("[circleProps] get inspector cx value is: " + JSON.stringify(obj.$attrs.cx));
+ expect(obj.$attrs.cy).assertEqual('12')
+ console.info("[circleProps] get inspector cy value is: " + JSON.stringify(obj.$attrs.cy));
+ expect(obj.$attrs.r).assertEqual('10')
+ console.info("[circleProps] get inspector r value is: " + JSON.stringify(obj.$attrs.r));
+ expect(obj.$attrs.stroke).assertEqual('red')
+ console.info("[circleProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
+ expect(obj.$attrs.strokeOpacity).assertEqual('1.5')
+ console.info("[circleProps] get inspector stroke-opacity value is: " + JSON.stringify(obj.$attrs.strokeOpacity));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testCircleStrokeWidthProp
+ * @tc.desc ACE
+ */
+ it('testCircleStrokeWidthProp', 0, async function (done) {
+ console.info('testCircleStrokeWidthProp START');
+ console.info("[circleProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.strokeWidthProp);
+ console.info("[circleProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[circleProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('circle')
+ console.info("[circleProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('strokeWidthProp')
+ console.info("[circleProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.cx).assertEqual('30')
+ console.info("[circleProps] get inspector cx value is: " + JSON.stringify(obj.$attrs.cx));
+ expect(obj.$attrs.cy).assertEqual('12')
+ console.info("[circleProps] get inspector cy value is: " + JSON.stringify(obj.$attrs.cy));
+ expect(obj.$attrs.r).assertEqual('10')
+ console.info("[circleProps] get inspector r value is: " + JSON.stringify(obj.$attrs.r));
+ expect(obj.$attrs.stroke).assertEqual('red')
+ console.info("[circleProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
+ expect(obj.$attrs.strokeWidth).assertEqual('6')
+ console.info("[circleProps] get inspector stroke-width value is: " + JSON.stringify(obj.$attrs.strokeWidth));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testCircleTransformProp
+ * @tc.desc ACE
+ */
+ it('testCircleTransformProp', 0, async function (done) {
+ console.info('testCircleTransformProp START');
+ console.info("[circleProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.transformProp);
+ console.info("[circleProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[circleProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('circle')
+ console.info("[circleProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('transformProp')
+ console.info("[circleProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.cx).assertEqual('30')
+ console.info("[circleProps] get inspector cx value is: " + JSON.stringify(obj.$attrs.cx));
+ expect(obj.$attrs.cy).assertEqual('12')
+ console.info("[circleProps] get inspector cy value is: " + JSON.stringify(obj.$attrs.cy));
+ expect(obj.$attrs.r).assertEqual('10')
+ console.info("[circleProps] get inspector r value is: " + JSON.stringify(obj.$attrs.r));
+ expect(obj.$attrs.transform).assertEqual('translate(10,5) scale(0.5 1.3) rotate(20 40 90) skewX(10) skewY(-15)')
+ console.info("[circleProps] get inspector transform value is: " + JSON.stringify(obj.$attrs.transform));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testCircleIdProp
+ * @tc.desc ACE
+ */
+ it('testCircleIdProp', 0, async function (done) {
+ console.info('testCircleIdProp START');
+ console.info("[circleProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.idProp);
+ console.info("[circleProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[circleProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('circle')
+ console.info("[circleProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('idProp')
+ console.info("[circleProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.cx).assertEqual('50')
+ console.info("[circleProps] get inspector cx value is: " + JSON.stringify(obj.$attrs.cx));
+ expect(obj.$attrs.cy).assertEqual('25')
+ console.info("[circleProps] get inspector cy value is: " + JSON.stringify(obj.$attrs.cy));
+ expect(obj.$attrs.r).assertEqual('20')
+ console.info("[circleProps] get inspector r value is: " + JSON.stringify(obj.$attrs.r));
+ expect(obj.$attrs.fill).assertEqual('red')
+ console.info("[circleProps] get inspector cy value is: " + JSON.stringify(obj.$attrs.fill));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testCircleCxPropOne
+ * @tc.desc ACE
+ */
+ it('testCircleCxPropOne', 0, async function (done) {
+ console.info('testCircleCxPropOne START');
+ console.info("[circleProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.cxPropOne);
+ console.info("[circleProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[circleProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('circle')
+ console.info("[circleProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('cxPropOne')
+ console.info("[circleProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.cx).assertEqual('50')
+ console.info("[circleProps] get inspector cx value is: " + JSON.stringify(obj.$attrs.cx));
+ expect(obj.$attrs.cy).assertEqual('25')
+ console.info("[circleProps] get inspector cy value is: " + JSON.stringify(obj.$attrs.cy));
+ expect(obj.$attrs.r).assertEqual('20')
+ console.info("[circleProps] get inspector r value is: " + JSON.stringify(obj.$attrs.r));
+ expect(obj.$attrs.fill).assertEqual('red')
+ console.info("[circleProps] get inspector cy value is: " + JSON.stringify(obj.$attrs.fill));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testCircleCxPropTwo
+ * @tc.desc ACE
+ */
+ it('testCircleCxPropTwo', 0, async function (done) {
+ console.info('testCircleCxPropTwo START');
+ console.info("[circleProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.cxPropTwo);
+ console.info("[circleProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[circleProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('circle')
+ console.info("[circleProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('cxPropTwo')
+ console.info("[circleProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.cx).assertEqual('50%')
+ console.info("[circleProps] get inspector cx value is: " + JSON.stringify(obj.$attrs.cx));
+ expect(obj.$attrs.cy).assertEqual('25')
+ console.info("[circleProps] get inspector cy value is: " + JSON.stringify(obj.$attrs.cy));
+ expect(obj.$attrs.r).assertEqual('20')
+ console.info("[circleProps] get inspector r value is: " + JSON.stringify(obj.$attrs.r));
+ expect(obj.$attrs.fill).assertEqual('pink')
+ console.info("[circleProps] get inspector cy value is: " + JSON.stringify(obj.$attrs.fill));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testCircleCyPropOne
+ * @tc.desc ACE
+ */
+ it('testCircleCyPropOne', 0, async function (done) {
+ console.info('testCircleCyPropOne START');
+ console.info("[circleProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.cyPropOne);
+ console.info("[circleProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[circleProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('circle')
+ console.info("[circleProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('cyPropOne')
+ console.info("[circleProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.cx).assertEqual('50')
+ console.info("[circleProps] get inspector cx value is: " + JSON.stringify(obj.$attrs.cx));
+ expect(obj.$attrs.cy).assertEqual('25')
+ console.info("[circleProps] get inspector cy value is: " + JSON.stringify(obj.$attrs.cy));
+ expect(obj.$attrs.r).assertEqual('20')
+ console.info("[circleProps] get inspector r value is: " + JSON.stringify(obj.$attrs.r));
+ expect(obj.$attrs.fill).assertEqual('red')
+ console.info("[circleProps] get inspector cy value is: " + JSON.stringify(obj.$attrs.fill));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testCircleCyPropTwo
+ * @tc.desc ACE
+ */
+ it('testCircleCyPropTwo', 0, async function (done) {
+ console.info('testCircleCyPropTwo START');
+ console.info("[circleProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.cxPropTwo);
+ console.info("[circleProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[circleProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('circle')
+ console.info("[circleProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('cxPropTwo')
+ console.info("[circleProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.cx).assertEqual('100')
+ console.info("[circleProps] get inspector cx value is: " + JSON.stringify(obj.$attrs.cx));
+ expect(obj.$attrs.cy).assertEqual('25%')
+ console.info("[circleProps] get inspector cy value is: " + JSON.stringify(obj.$attrs.cy));
+ expect(obj.$attrs.r).assertEqual('20')
+ console.info("[circleProps] get inspector r value is: " + JSON.stringify(obj.$attrs.r));
+ expect(obj.$attrs.fill).assertEqual('pink')
+ console.info("[circleProps] get inspector cy value is: " + JSON.stringify(obj.$attrs.fill));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testCircleRPropOne
+ * @tc.desc ACE
+ */
+ it('testCircleRPropOne', 0, async function (done) {
+ console.info('testCircleRPropOne START');
+ console.info("[circleProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.rPropOne);
+ console.info("[circleProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[circleProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('circle')
+ console.info("[circleProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('rPropOne')
+ console.info("[circleProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.cx).assertEqual('50')
+ console.info("[circleProps] get inspector cx value is: " + JSON.stringify(obj.$attrs.cx));
+ expect(obj.$attrs.cy).assertEqual('25')
+ console.info("[circleProps] get inspector cy value is: " + JSON.stringify(obj.$attrs.cy));
+ expect(obj.$attrs.r).assertEqual('20')
+ console.info("[circleProps] get inspector r value is: " + JSON.stringify(obj.$attrs.r));
+ expect(obj.$attrs.fill).assertEqual('red')
+ console.info("[circleProps] get inspector cy value is: " + JSON.stringify(obj.$attrs.fill));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testCircleRPropTwo
+ * @tc.desc ACE
+ */
+ it('testCircleRPropTwo', 0, async function (done) {
+ console.info('testCircleRPropTwo START');
+ console.info("[circleProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.rPropTwo);
+ console.info("[circleProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[circleProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('circle')
+ console.info("[circleProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('rPropTwo')
+ console.info("[circleProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.cx).assertEqual('100')
+ console.info("[circleProps] get inspector cx value is: " + JSON.stringify(obj.$attrs.cx));
+ expect(obj.$attrs.cy).assertEqual('25')
+ console.info("[circleProps] get inspector cy value is: " + JSON.stringify(obj.$attrs.cy));
+ expect(obj.$attrs.r).assertEqual('20%')
+ console.info("[circleProps] get inspector r value is: " + JSON.stringify(obj.$attrs.r));
+ expect(obj.$attrs.fill).assertEqual('pink')
+ console.info("[circleProps] get inspector cy value is: " + JSON.stringify(obj.$attrs.fill));
+ done();
+ });
+
+ });
+
\ No newline at end of file
diff --git a/ace/ace_standard/src/main/js/default/test/commonComponentJsApi.test.js b/ace/ace_standard/src/main/js/default/test/commonComponentJsApi.test.js
index 29544db2f6c007449bfe839e36a24ad1017319b1..929a0df9a90e8e1e821e19aa2dbbf3218f81c48a 100644
--- a/ace/ace_standard/src/main/js/default/test/commonComponentJsApi.test.js
+++ b/ace/ace_standard/src/main/js/default/test/commonComponentJsApi.test.js
@@ -1318,7 +1318,7 @@ describe('aceJsTest', function () {
it('testSvgComponent', 0, async function (done) {
let result;
let options = {
- uri: 'pages/svg/index'
+ uri: 'pages/svg/router/index'
}
try {
result = router.push(options)
@@ -1329,7 +1329,7 @@ describe('aceJsTest', function () {
await sleep(5000)
let pages = router.getState();
console.info("[router.svg] getState" + JSON.stringify(pages));
- expect("pages/svg/").assertEqual(pages.path);
+ expect("pages/svg/router/").assertEqual(pages.path);
done();
});
@@ -1341,7 +1341,7 @@ describe('aceJsTest', function () {
it('testRectComponent', 0, async function (done) {
let result;
let options = {
- uri: 'pages/rect/index'
+ uri: 'pages/rect/router/index'
}
try {
result = router.push(options)
@@ -1352,7 +1352,7 @@ describe('aceJsTest', function () {
await sleep(5000)
let pages = router.getState();
console.info("[router.rect] getState" + JSON.stringify(pages));
- expect("pages/rect/").assertEqual(pages.path);
+ expect("pages/rect/router/").assertEqual(pages.path);
done();
});
@@ -1364,7 +1364,7 @@ describe('aceJsTest', function () {
it('testCircleComponent', 0, async function (done) {
let result;
let options = {
- uri: 'pages/circle/index'
+ uri: 'pages/circle/router/index'
}
try {
result = router.push(options)
@@ -1375,7 +1375,7 @@ describe('aceJsTest', function () {
await sleep(5000)
let pages = router.getState();
console.info("[router.circle] getState" + JSON.stringify(pages));
- expect("pages/circle/").assertEqual(pages.path);
+ expect("pages/circle/router/").assertEqual(pages.path);
done();
});
diff --git a/ace/ace_standard/src/main/js/default/test/rectProps.test.js b/ace/ace_standard/src/main/js/default/test/rectProps.test.js
new file mode 100644
index 0000000000000000000000000000000000000000..5f11f59aa339f7bd35d8166aa758773e56f4216c
--- /dev/null
+++ b/ace/ace_standard/src/main/js/default/test/rectProps.test.js
@@ -0,0 +1,974 @@
+/**
+ * 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('rectPropsJsTest', 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('[rectPropsJsTest] before each called')
+
+ let result;
+ let options = {
+ uri: 'pages/rect/prop/index'
+ }
+ try {
+ result = router.push(options)
+ console.info("push rectProps page success " + JSON.stringify(result));
+ } catch (err) {
+ console.error("push rectProps page error " + JSON.stringify(result));
+ }
+ await sleep(4000)
+ done()
+ })
+
+ /**
+ * run after testcase
+ */
+ afterAll(async function () {
+ console.info('[rectPropsJsTest] after each called')
+ await backToIndex()
+ await sleep(1000)
+ })
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testRectFillProp
+ * @tc.desc ACE
+ */
+ it('testRectFillProp', 0, async function (done) {
+ console.info('testRectFillProp START');
+ console.info("[rectProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.fillProp);
+ console.info("[rectProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[rectProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('rect')
+ console.info("[rectProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('fillProp')
+ console.info("[rectProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('100')
+ console.info("[rectProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20')
+ console.info("[rectProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.fill).assertEqual('red')
+ console.info("[rectProps] get inspector fill value is: " + JSON.stringify(obj.$attrs.fill));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testRectFillOpacityPropOne
+ * @tc.desc ACE
+ */
+ it('testRectFillOpacityPropOne', 0, async function (done) {
+ console.info('testRectFillOpacityPropOne START');
+ console.info("[rectProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.fillOpacityPropOne);
+ console.info("[rectProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[rectProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('rect')
+ console.info("[rectProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('fillOpacityPropOne')
+ console.info("[rectProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('50px')
+ console.info("[rectProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[rectProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.fill).assertEqual('red')
+ console.info("[rectProps] get inspector fill value is: " + JSON.stringify(obj.$attrs.fill));
+ expect(obj.$attrs.fillOpacity).assertEqual('0.5')
+ console.info("[rectProps] get inspector fill-opacity value is: " + JSON.stringify(obj.$attrs.fillOpacity));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testRectFillOpacityPropTwo
+ * @tc.desc ACE
+ */
+ it('testRectFillOpacityPropTwo', 0, async function (done) {
+ console.info('testRectFillOpacityPropTwo START');
+ console.info("[rectProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.fillOpacityPropTwo);
+ console.info("[rectProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[rectProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('rect')
+ console.info("[rectProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('fillOpacityPropTwo')
+ console.info("[rectProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('50px')
+ console.info("[rectProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[rectProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.fill).assertEqual('red')
+ console.info("[rectProps] get inspector fill value is: " + JSON.stringify(obj.$attrs.fill));
+ expect(obj.$attrs.fillOpacity).assertEqual('1')
+ console.info("[rectProps] get inspector fill-opacity value is: " + JSON.stringify(obj.$attrs.fillOpacity));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testRectFillOpacityPropThree
+ * @tc.desc ACE
+ */
+ it('testRectFillOpacityPropThree', 0, async function (done) {
+ console.info('testRectFillOpacityPropThree START');
+ console.info("[rectProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.fillOpacityPropThree);
+ console.info("[rectProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[rectProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('rect')
+ console.info("[rectProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('fillOpacityPropThree')
+ console.info("[rectProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('50px')
+ console.info("[rectProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[rectProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.fill).assertEqual('red')
+ console.info("[rectProps] get inspector fill value is: " + JSON.stringify(obj.$attrs.fill));
+ expect(obj.$attrs.fillOpacity).assertEqual('1.5')
+ console.info("[rectProps] get inspector fill-opacity value is: " + JSON.stringify(obj.$attrs.fillOpacity));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testRectFillRulePropOne
+ * @tc.desc ACE
+ */
+ it('testRectFillRulePropOne', 0, async function (done) {
+ console.info('testRectFillRulePropOne START');
+ console.info("[rectProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.fillRulePropOne);
+ console.info("[rectProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[rectProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('rect')
+ console.info("[rectProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('fillRulePropOne')
+ console.info("[rectProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('50px')
+ console.info("[rectProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[rectProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.fill).assertEqual('red')
+ console.info("[rectProps] get inspector fill value is: " + JSON.stringify(obj.$attrs.fill));
+ expect(obj.$attrs.fillRule).assertEqual('evenodd')
+ console.info("[rectProps] get inspector fill-rule value is: " + JSON.stringify(obj.$attrs.fillRule));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testRectFillRulePropTwo
+ * @tc.desc ACE
+ */
+ it('testRectFillRulePropTwo', 0, async function (done) {
+ console.info('testRectFillRulePropTwo START');
+ console.info("[rectProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.fillRulePropTwo);
+ console.info("[rectProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[rectProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('rect')
+ console.info("[rectProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('fillRulePropTwo')
+ console.info("[rectProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('50px')
+ console.info("[rectProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[rectProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.fill).assertEqual('red')
+ console.info("[rectProps] get inspector fill value is: " + JSON.stringify(obj.$attrs.fill));
+ expect(obj.$attrs.fillRule).assertEqual('nonzero')
+ console.info("[rectProps] get inspector fill-rule value is: " + JSON.stringify(obj.$attrs.fillRule));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testRectOpacityPropOne
+ * @tc.desc ACE
+ */
+ it('testRectOpacityPropOne', 0, async function (done) {
+ console.info('testRectOpacityPropOne START');
+ console.info("[rectProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.opacityPropOne);
+ console.info("[rectProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[rectProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('rect')
+ console.info("[rectProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('opacityPropOne')
+ console.info("[rectProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('50px')
+ console.info("[rectProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[rectProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.fill).assertEqual('red')
+ console.info("[rectProps] get inspector fill value is: " + JSON.stringify(obj.$attrs.fill));
+ expect(obj.$attrs.opacity).assertEqual('0.5')
+ console.info("[rectProps] get inspector opacity value is: " + JSON.stringify(obj.$attrs.opacity));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testRectOpacityPropTwo
+ * @tc.desc ACE
+ */
+ it('testRectOpacityPropTwo', 0, async function (done) {
+ console.info('testRectOpacityPropTwo START');
+ console.info("[rectProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.opacityPropTwo);
+ console.info("[rectProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[rectProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('rect')
+ console.info("[rectProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('opacityPropTwo')
+ console.info("[rectProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('50px')
+ console.info("[rectProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[rectProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.fill).assertEqual('red')
+ console.info("[rectProps] get inspector fill value is: " + JSON.stringify(obj.$attrs.fill));
+ expect(obj.$attrs.opacity).assertEqual('1')
+ console.info("[rectProps] get inspector opacity value is: " + JSON.stringify(obj.$attrs.opacity));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testRectOpacityPropThree
+ * @tc.desc ACE
+ */
+ it('testRectOpacityPropThree', 0, async function (done) {
+ console.info('testRectOpacityPropThree START');
+ console.info("[rectProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.opacityPropThree);
+ console.info("[rectProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[rectProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('rect')
+ console.info("[rectProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('opacityPropThree')
+ console.info("[rectProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('50px')
+ console.info("[rectProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[rectProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.fill).assertEqual('red')
+ console.info("[rectProps] get inspector fill value is: " + JSON.stringify(obj.$attrs.fill));
+ expect(obj.$attrs.opacity).assertEqual('1.5')
+ console.info("[rectProps] get inspector opacity value is: " + JSON.stringify(obj.$attrs.opacity));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testRectStrokeProp
+ * @tc.desc ACE
+ */
+ it('testRectStrokeProp', 0, async function (done) {
+ console.info('testRectStrokeProp START');
+ console.info("[rectProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.strokeProp);
+ console.info("[rectProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[rectProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('rect')
+ console.info("[rectProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('strokeProp')
+ console.info("[rectProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('100px')
+ console.info("[rectProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[rectProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.stroke).assertEqual('red')
+ console.info("[rectProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testRectStrokeDashArrayProp
+ * @tc.desc ACE
+ */
+ it('testRectStrokeDashArrayProp', 0, async function (done) {
+ console.info('testRectStrokeDashArrayProp START');
+ console.info("[rectProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.strokeDashArrayProp);
+ console.info("[rectProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[rectProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('rect')
+ console.info("[rectProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('strokeDashArrayProp')
+ console.info("[rectProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('100px')
+ console.info("[rectProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[rectProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.stroke).assertEqual('red')
+ console.info("[rectProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
+ expect(obj.$attrs.strokeDasharray).assertEqual('2 3')
+ console.info("[rectProps] get inspector stroke-dasharray value is: " + JSON.stringify(obj.$attrs.strokeDasharray));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testRectStrokeDashOffsetProp
+ * @tc.desc ACE
+ */
+ it('testRectStrokeDashOffsetProp', 0, async function (done) {
+ console.info('testRectStrokeDashOffsetProp START');
+ console.info("[rectProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.strokeDashOffsetProp);
+ console.info("[rectProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[rectProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('rect')
+ console.info("[rectProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('strokeDashOffsetProp')
+ console.info("[rectProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('100px')
+ console.info("[rectProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[rectProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.stroke).assertEqual('red')
+ console.info("[rectProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
+ expect(obj.$attrs.strokeDashoffset).assertEqual('23')
+ console.info("[rectProps] get inspector stroke-dashoffset value is: " + JSON.stringify(obj.$attrs.strokeDashoffset));
+ done();
+ });
+
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testRectStrokeLineJoinPropOne
+ * @tc.desc ACE
+ */
+ it('testRectStrokeLineJoinPropOne', 0, async function (done) {
+ console.info('testRectStrokeLineJoinPropOne START');
+ console.info("[rectProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.strokeLineJoinPropOne);
+ console.info("[rectProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[rectProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('rect')
+ console.info("[rectProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('strokeLineJoinPropOne')
+ console.info("[rectProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('50px')
+ console.info("[rectProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[rectProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.stroke).assertEqual('red')
+ console.info("[rectProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
+ expect(obj.$attrs.strokeLinejoin).assertEqual('bevel')
+ console.info("[rectProps] get inspector stroke-linejoin value is: " + JSON.stringify(obj.$attrs.strokeLinejoin));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testRectStrokeLineJoinPropTwo
+ * @tc.desc ACE
+ */
+ it('testRectStrokeLineJoinPropTwo', 0, async function (done) {
+ console.info('testRectStrokeLineJoinPropTwo START');
+ console.info("[rectProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.strokeLineJoinPropTwo);
+ console.info("[rectProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[rectProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('rect')
+ console.info("[rectProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('strokeLineJoinPropTwo')
+ console.info("[rectProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('50px')
+ console.info("[rectProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[rectProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.stroke).assertEqual('red')
+ console.info("[rectProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
+ expect(obj.$attrs.strokeLinejoin).assertEqual('miter')
+ console.info("[rectProps] get inspector stroke-linejoin value is: " + JSON.stringify(obj.$attrs.strokeLinejoin));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testRectStrokeLineJoinPropThree
+ * @tc.desc ACE
+ */
+ it('testRectStrokeLineJoinPropThree', 0, async function (done) {
+ console.info('testRectStrokeLineJoinPropThree START');
+ console.info("[rectProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.strokeLineJoinPropThree);
+ console.info("[rectProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[rectProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('rect')
+ console.info("[rectProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('strokeLineJoinPropThree')
+ console.info("[rectProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('50px')
+ console.info("[rectProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[rectProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.stroke).assertEqual('red')
+ console.info("[rectProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
+ expect(obj.$attrs.strokeLinejoin).assertEqual('round')
+ console.info("[rectProps] get inspector stroke-linejoin value is: " + JSON.stringify(obj.$attrs.strokeLinejoin));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testRectStrokeLineJoinPropOne
+ * @tc.desc ACE
+ */
+ it('testRectStrokeLineJoinPropOne', 0, async function (done) {
+ console.info('testRectStrokeLineJoinPropOne START');
+ console.info("[rectProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.strokeLineCapPropOne);
+ console.info("[rectProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[rectProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('rect')
+ console.info("[rectProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('strokeLineCapPropOne')
+ console.info("[rectProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('50px')
+ console.info("[rectProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[rectProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.stroke).assertEqual('red')
+ console.info("[rectProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
+ expect(obj.$attrs.strokeLineCap).assertEqual('butt')
+ console.info("[rectProps] get inspector stroke-lineCap value is: " + JSON.stringify(obj.$attrs.strokeLineCap));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testRectStrokeLineCapPropTwo
+ * @tc.desc ACE
+ */
+ it('testRectStrokeLineCapPropTwo', 0, async function (done) {
+ console.info('testRectStrokeLineCapPropTwo START');
+ console.info("[rectProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.strokeLineCapPropTwo);
+ console.info("[rectProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[rectProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('rect')
+ console.info("[rectProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('strokeLineCapPropTwo')
+ console.info("[rectProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('50px')
+ console.info("[rectProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[rectProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.stroke).assertEqual('red')
+ console.info("[rectProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
+ expect(obj.$attrs.strokeLineCap).assertEqual('round')
+ console.info("[rectProps] get inspector stroke-lineCap value is: " + JSON.stringify(obj.$attrs.strokeLineCap));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testRectStrokeLineCapPropThree
+ * @tc.desc ACE
+ */
+ it('testRectStrokeLineCapPropThree', 0, async function (done) {
+ console.info('testRectStrokeLineCapPropThree START');
+ console.info("[rectProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.strokeLineCapPropThree);
+ console.info("[rectProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[rectProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('rect')
+ console.info("[rectProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('strokeLineCapPropThree')
+ console.info("[rectProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('50px')
+ console.info("[rectProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[rectProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.stroke).assertEqual('red')
+ console.info("[rectProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
+ expect(obj.$attrs.strokeLineCap).assertEqual('square')
+ console.info("[rectProps] get inspector stroke-lineCap value is: " + JSON.stringify(obj.$attrs.strokeLineCap));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testRectStrokeMiterLimitProp
+ * @tc.desc ACE
+ */
+ it('testRectStrokeMiterLimitProp', 0, async function (done) {
+ console.info('testRectStrokeMiterLimitProp START');
+ console.info("[rectProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.strokeMiterLimitProp);
+ console.info("[rectProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[rectProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('rect')
+ console.info("[rectProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('strokeMiterLimitProp')
+ console.info("[rectProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('100px')
+ console.info("[rectProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[rectProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.stroke).assertEqual('red')
+ console.info("[rectProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
+ expect(obj.$attrs.strokeMiterlimit).assertEqual('10')
+ console.info("[rectProps] get inspector stroke-miterlimit value is: " + JSON.stringify(obj.$attrs.strokeMiterlimit));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testRectStrokeOpacityPropOne
+ * @tc.desc ACE
+ */
+ it('testRectStrokeOpacityPropOne', 0, async function (done) {
+ console.info('testRectStrokeOpacityPropOne START');
+ console.info("[rectProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.strokeOpacityPropOne);
+ console.info("[rectProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[rectProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('rect')
+ console.info("[rectProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('strokeOpacityPropOne')
+ console.info("[rectProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('50px')
+ console.info("[rectProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[rectProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.stroke).assertEqual('red')
+ console.info("[rectProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
+ expect(obj.$attrs.strokeOpacity).assertEqual('0.5')
+ console.info("[rectProps] get inspector stroke-opacity value is: " + JSON.stringify(obj.$attrs.strokeOpacity));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testRectStrokeOpacityPropTwo
+ * @tc.desc ACE
+ */
+ it('testRectStrokeOpacityPropTwo', 0, async function (done) {
+ console.info('testRectStrokeOpacityPropTwo START');
+ console.info("[rectProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.strokeOpacityPropTwo);
+ console.info("[rectProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[rectProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('rect')
+ console.info("[rectProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('strokeOpacityPropTwo')
+ console.info("[rectProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('50px')
+ console.info("[rectProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[rectProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.stroke).assertEqual('red')
+ console.info("[rectProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
+ expect(obj.$attrs.strokeOpacity).assertEqual('1')
+ console.info("[rectProps] get inspector stroke-opacity value is: " + JSON.stringify(obj.$attrs.strokeOpacity));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testRectStrokeOpacityPropThree
+ * @tc.desc ACE
+ */
+ it('testRectStrokeOpacityPropThree', 0, async function (done) {
+ console.info('testRectStrokeOpacityPropThree START');
+ console.info("[rectProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.strokeOpacityPropThree);
+ console.info("[rectProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[rectProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('rect')
+ console.info("[rectProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('strokeOpacityPropThree')
+ console.info("[rectProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('50px')
+ console.info("[rectProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[rectProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.stroke).assertEqual('red')
+ console.info("[rectProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
+ expect(obj.$attrs.strokeOpacity).assertEqual('1.5')
+ console.info("[rectProps] get inspector stroke-opacity value is: " + JSON.stringify(obj.$attrs.strokeOpacity));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testRectStrokeWidthProp
+ * @tc.desc ACE
+ */
+ it('testRectStrokeWidthProp', 0, async function (done) {
+ console.info('testRectStrokeWidthProp START');
+ console.info("[rectProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.strokeWidthProp);
+ console.info("[rectProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[rectProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('rect')
+ console.info("[rectProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('strokeWidthProp')
+ console.info("[rectProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('100px')
+ console.info("[rectProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[rectProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.stroke).assertEqual('red')
+ console.info("[rectProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
+ expect(obj.$attrs.strokeWidth).assertEqual('6')
+ console.info("[rectProps] get inspector stroke-width value is: " + JSON.stringify(obj.$attrs.strokeWidth));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testRectTransformProp
+ * @tc.desc ACE
+ */
+ it('testRectTransformProp', 0, async function (done) {
+ console.info('testRectTransformProp START');
+ console.info("[rectProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.transformProp);
+ console.info("[rectProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[rectProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('rect')
+ console.info("[rectProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('transformProp')
+ console.info("[rectProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('100px')
+ console.info("[rectProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('100px')
+ console.info("[rectProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.transform).assertEqual('translate(10,5) scale(0.5 1.3) rotate(20 40 90) skewX(10) skewY(-15)')
+ console.info("[rectProps] get inspector transform value is: " + JSON.stringify(obj.$attrs.transform));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testRectIdProp
+ * @tc.desc ACE
+ */
+ it('testRectIdProp', 0, async function (done) {
+ console.info('testRectIdProp START');
+ console.info("[rectProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.idProp);
+ console.info("[rectProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[rectProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('rect')
+ console.info("[rectProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('idProp')
+ console.info("[rectProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('90px')
+ console.info("[rectProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[rectProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.fill).assertEqual('red')
+ console.info("[rectProps] get inspector height value is: " + JSON.stringify(obj.$attrs.fill));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testRectWidthPropOne
+ * @tc.desc ACE
+ */
+ it('testRectWidthPropOne', 0, async function (done) {
+ console.info('testRectWidthPropOne START');
+ console.info("[rectProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.widthPropOne);
+ console.info("[rectProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[rectProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('rect')
+ console.info("[rectProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('widthPropOne')
+ console.info("[rectProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('90px')
+ console.info("[rectProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[rectProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testRectWidthPropTwo
+ * @tc.desc ACE
+ */
+ it('testRectWidthPropTwo', 0, async function (done) {
+ console.info('testRectWidthPropTwo START');
+ console.info("[rectProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.widthPropTwo);
+ console.info("[rectProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[rectProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('rect')
+ console.info("[rectProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('widthPropTwo')
+ console.info("[rectProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('90%')
+ console.info("[rectProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[rectProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testRectHeightPropOne
+ * @tc.desc ACE
+ */
+ it('testRectHeightPropOne', 0, async function (done) {
+ console.info('testRectHeightPropOne START');
+ console.info("[rectProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.heightPropOne);
+ console.info("[rectProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[rectProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('rect')
+ console.info("[rectProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('heightPropOne')
+ console.info("[rectProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('90%')
+ console.info("[rectProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[rectProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testRectHeightPropTwo
+ * @tc.desc ACE
+ */
+ it('testRectHeightPropTwo', 0, async function (done) {
+ console.info('testRectHeightPropTwo START');
+ console.info("[rectProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.heightPropTwo);
+ console.info("[rectProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[rectProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('rect')
+ console.info("[rectProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('heightPropTwo')
+ console.info("[rectProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('90%')
+ console.info("[rectProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('80%')
+ console.info("[rectProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testRectXProp
+ * @tc.desc ACE
+ */
+ it('testRectXProp', 0, async function (done) {
+ console.info('testRectXProp START');
+ console.info("[rectProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.xProp);
+ console.info("[rectProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[rectProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('rect')
+ console.info("[rectProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('xProp')
+ console.info("[rectProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('90%')
+ console.info("[rectProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[rectProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.x).assertEqual('20')
+ console.info("[rectProps] get inspector x value is: " + JSON.stringify(obj.$attrs.x));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testRectYProp
+ * @tc.desc ACE
+ */
+ it('testRectYProp', 0, async function (done) {
+ console.info('testRectYProp START');
+ console.info("[rectProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.yProp);
+ console.info("[rectProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[rectProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('rect')
+ console.info("[rectProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('yProp')
+ console.info("[rectProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('90%')
+ console.info("[rectProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[rectProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.y).assertEqual('20')
+ console.info("[rectProps] get inspector y value is: " + JSON.stringify(obj.$attrs.y));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testRectRxProp
+ * @tc.desc ACE
+ */
+ it('testRectRxProp', 0, async function (done) {
+ console.info('testRectRxProp START');
+ console.info("[rectProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.rxProp);
+ console.info("[rectProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[rectProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('rect')
+ console.info("[rectProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('rxProp')
+ console.info("[rectProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('90%')
+ console.info("[rectProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[rectProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.rx).assertEqual('20')
+ console.info("[rectProps] get inspector rx value is: " + JSON.stringify(obj.$attrs.rx));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testRectRyProp
+ * @tc.desc ACE
+ */
+ it('testRectRyProp', 0, async function (done) {
+ console.info('testRectRyProp START');
+ console.info("[rectProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.ryProp);
+ console.info("[rectProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[rectProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('rect')
+ console.info("[rectProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('ryProp')
+ console.info("[rectProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('90%')
+ console.info("[rectProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[rectProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.ry).assertEqual('20')
+ console.info("[rectProps] get inspector ry value is: " + JSON.stringify(obj.$attrs.ry));
+ done();
+ });
+ });
+
\ No newline at end of file
diff --git a/ace/ace_standard/src/main/js/default/test/svgProps.test.js b/ace/ace_standard/src/main/js/default/test/svgProps.test.js
new file mode 100644
index 0000000000000000000000000000000000000000..6212acbdabf20f93f9138970ece289cb8ed701fc
--- /dev/null
+++ b/ace/ace_standard/src/main/js/default/test/svgProps.test.js
@@ -0,0 +1,901 @@
+/**
+ * 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('svgPropsJsTest', 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('[svgPropsJsTest] before each called')
+
+ let result;
+ let options = {
+ uri: 'pages/svg/prop/index'
+ }
+ try {
+ result = router.push(options)
+ console.info("push svgProps page success " + JSON.stringify(result));
+ } catch (err) {
+ console.error("push svgProps page error " + JSON.stringify(result));
+ }
+ await sleep(4000)
+ done()
+ });
+
+ /**
+ * run after testcase
+ */
+ afterAll(async function () {
+ console.info('[svgPropsJsTest] after each called')
+ await backToIndex()
+ await sleep(1000)
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testSvgFillProp
+ * @tc.desc ACE
+ */
+ it('testSvgFillProp', 0, async function (done) {
+ console.info('testSvgFillProp START');
+ console.info("[svgProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.fillProp);
+ console.info("[svgProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[svgProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('svg')
+ console.info("[svgProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('fillProp')
+ console.info("[svgProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('100')
+ console.info("[svgProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20')
+ console.info("[svgProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.fill).assertEqual('red')
+ console.info("[svgProps] get inspector fill value is: " + JSON.stringify(obj.$attrs.fill));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testSvgFillOpacityPropOne
+ * @tc.desc ACE
+ */
+ it('testSvgFillOpacityPropOne', 0, async function (done) {
+ console.info('testSvgFillOpacityPropOne START');
+ console.info("[svgProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.fillOpacityPropOne);
+ console.info("[svgProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[svgProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('svg')
+ console.info("[svgProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('fillOpacityPropOne')
+ console.info("[svgProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('50px')
+ console.info("[svgProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[svgProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.fill).assertEqual('red')
+ console.info("[svgProps] get inspector fill value is: " + JSON.stringify(obj.$attrs.fill));
+ expect(obj.$attrs.fillOpacity).assertEqual('0.5')
+ console.info("[svgProps] get inspector fill-opacity value is: " + JSON.stringify(obj.$attrs.fillOpacity));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testSvgFillOpacityPropTwo
+ * @tc.desc ACE
+ */
+ it('testSvgFillOpacityPropTwo', 0, async function (done) {
+ console.info('testSvgFillOpacityPropTwo START');
+ console.info("[svgProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.fillOpacityPropTwo);
+ console.info("[svgProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[svgProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('svg')
+ console.info("[svgProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('fillOpacityPropTwo')
+ console.info("[svgProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('50px')
+ console.info("[svgProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[svgProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.fill).assertEqual('red')
+ console.info("[svgProps] get inspector fill value is: " + JSON.stringify(obj.$attrs.fill));
+ expect(obj.$attrs.fillOpacity).assertEqual('1')
+ console.info("[svgProps] get inspector fill-opacity value is: " + JSON.stringify(obj.$attrs.fillOpacity));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testSvgFillOpacityPropThree
+ * @tc.desc ACE
+ */
+ it('testSvgFillOpacityPropThree', 0, async function (done) {
+ console.info('testSvgFillOpacityPropThree START');
+ console.info("[svgProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.fillOpacityPropThree);
+ console.info("[svgProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[svgProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('svg')
+ console.info("[svgProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('fillOpacityPropThree')
+ console.info("[svgProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('50px')
+ console.info("[svgProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[svgProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.fill).assertEqual('red')
+ console.info("[svgProps] get inspector fill value is: " + JSON.stringify(obj.$attrs.fill));
+ expect(obj.$attrs.fillOpacity).assertEqual('1.5')
+ console.info("[svgProps] get inspector fill-opacity value is: " + JSON.stringify(obj.$attrs.fillOpacity));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testSvgFillRulePropOne
+ * @tc.desc ACE
+ */
+ it('testSvgFillRulePropOne', 0, async function (done) {
+ console.info('testSvgFillRulePropOne START');
+ console.info("[svgProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.fillRulePropOne);
+ console.info("[svgProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[svgProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('svg')
+ console.info("[svgProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('fillRulePropOne')
+ console.info("[svgProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('50px')
+ console.info("[svgProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[svgProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.fill).assertEqual('red')
+ console.info("[svgProps] get inspector fill value is: " + JSON.stringify(obj.$attrs.fill));
+ expect(obj.$attrs.fillRule).assertEqual('evenodd')
+ console.info("[svgProps] get inspector fill-rule value is: " + JSON.stringify(obj.$attrs.fillRule));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testSvgFillRulePropTwo
+ * @tc.desc ACE
+ */
+ it('testSvgFillRulePropTwo', 0, async function (done) {
+ console.info('testSvgFillRulePropTwo START');
+ console.info("[svgProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.fillRulePropTwo);
+ console.info("[svgProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[svgProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('svg')
+ console.info("[svgProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('fillRulePropTwo')
+ console.info("[svgProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('50px')
+ console.info("[svgProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[svgProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.fill).assertEqual('red')
+ console.info("[svgProps] get inspector fill value is: " + JSON.stringify(obj.$attrs.fill));
+ expect(obj.$attrs.fillRule).assertEqual('nonzero')
+ console.info("[svgProps] get inspector fill-rule value is: " + JSON.stringify(obj.$attrs.fillRule));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testSvgOpacityPropOne
+ * @tc.desc ACE
+ */
+ it('testSvgOpacityPropOne', 0, async function (done) {
+ console.info('testSvgOpacityPropOne START');
+ console.info("[svgProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.opacityPropOne);
+ console.info("[svgProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[svgProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('svg')
+ console.info("[svgProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('opacityPropOne')
+ console.info("[svgProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('50px')
+ console.info("[svgProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[svgProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.fill).assertEqual('red')
+ console.info("[svgProps] get inspector fill value is: " + JSON.stringify(obj.$attrs.fill));
+ expect(obj.$attrs.opacity).assertEqual('0.5')
+ console.info("[lineProps] get inspector opacity value is: " + JSON.stringify(obj.$attrs.opacity));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testSvgOpacityPropTwo
+ * @tc.desc ACE
+ */
+ it('testSvgOpacityPropTwo', 0, async function (done) {
+ console.info('testSvgOpacityPropTwo START');
+ console.info("[svgProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.opacityPropTwo);
+ console.info("[svgProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[svgProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('svg')
+ console.info("[svgProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('opacityPropTwo')
+ console.info("[svgProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('50px')
+ console.info("[svgProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[svgProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.fill).assertEqual('red')
+ console.info("[svgProps] get inspector fill value is: " + JSON.stringify(obj.$attrs.fill));
+ expect(obj.$attrs.opacity).assertEqual('1')
+ console.info("[svgProps] get inspector opacity value is: " + JSON.stringify(obj.$attrs.opacity));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testSvgOpacityPropThree
+ * @tc.desc ACE
+ */
+ it('testSvgOpacityPropThree', 0, async function (done) {
+ console.info('testSvgOpacityPropThree START');
+ console.info("[svgProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.opacityPropThree);
+ console.info("[svgProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[svgProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('svg')
+ console.info("[svgProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('opacityPropThree')
+ console.info("[svgProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('50px')
+ console.info("[svgProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[svgProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.fill).assertEqual('red')
+ console.info("[svgProps] get inspector fill value is: " + JSON.stringify(obj.$attrs.fill));
+ expect(obj.$attrs.opacity).assertEqual('1.5')
+ console.info("[svgProps] get inspector opacity value is: " + JSON.stringify(obj.$attrs.opacity));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testSvgStrokeProp
+ * @tc.desc ACE
+ */
+ it('testSvgStrokeProp', 0, async function (done) {
+ console.info('testSvgStrokeProp START');
+ console.info("[svgProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.strokeProp);
+ console.info("[svgProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[svgProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('svg')
+ console.info("[svgProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('strokeProp')
+ console.info("[svgProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('100px')
+ console.info("[svgProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[svgProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.stroke).assertEqual('red')
+ console.info("[svgProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testSvgStrokeDashArrayProp
+ * @tc.desc ACE
+ */
+ it('testSvgStrokeDashArrayProp', 0, async function (done) {
+ console.info('testSvgStrokeDashArrayProp START');
+ console.info("[svgProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.strokeDashArrayProp);
+ console.info("[svgProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[svgProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('svg')
+ console.info("[svgProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('strokeDashArrayProp')
+ console.info("[svgProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('100px')
+ console.info("[svgProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[svgProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.stroke).assertEqual('red')
+ console.info("[svgProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
+ expect(obj.$attrs.strokeDasharray).assertEqual('2 3')
+ console.info("[svgProps] get inspector stroke-dasharray value is: " + JSON.stringify(obj.$attrs.strokeDasharray));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testSvgStrokeDashOffsetProp
+ * @tc.desc ACE
+ */
+ it('testSvgStrokeDashOffsetProp', 0, async function (done) {
+ console.info('testSvgStrokeDashOffsetProp START');
+ console.info("[svgProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.strokeDashOffsetProp);
+ console.info("[svgProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[svgProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('svg')
+ console.info("[svgProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('strokeDashOffsetProp')
+ console.info("[svgProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('100px')
+ console.info("[svgProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[svgProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.stroke).assertEqual('red')
+ console.info("[svgProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
+ expect(obj.$attrs.strokeDashoffset).assertEqual('23')
+ console.info("[svgProps] get inspector stroke-dashoffset value is: " + JSON.stringify(obj.$attrs.strokeDashoffset));
+ done();
+ });
+
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testSvgStrokeLineJoinPropOne
+ * @tc.desc ACE
+ */
+ it('testSvgStrokeLineJoinPropOne', 0, async function (done) {
+ console.info('testSvgStrokeLineJoinPropOne START');
+ console.info("[svgProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.strokeLineJoinPropOne);
+ console.info("[svgProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[svgProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('svg')
+ console.info("[svgProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('strokeLineJoinPropOne')
+ console.info("[svgProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('50px')
+ console.info("[svgProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[svgProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.stroke).assertEqual('red')
+ console.info("[svgProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
+ expect(obj.$attrs.strokeLinejoin).assertEqual('bevel')
+ console.info("[svgProps] get inspector stroke-linejoin value is: " + JSON.stringify(obj.$attrs.strokeLinejoin));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testSvgStrokeLineJoinPropTwo
+ * @tc.desc ACE
+ */
+ it('testSvgStrokeLineJoinPropTwo', 0, async function (done) {
+ console.info('testSvgStrokeLineJoinPropTwo START');
+ console.info("[svgProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.strokeLineJoinPropTwo);
+ console.info("[svgProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[svgProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('svg')
+ console.info("[svgProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('strokeLineJoinPropTwo')
+ console.info("[svgProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('50px')
+ console.info("[svgProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[svgProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.stroke).assertEqual('red')
+ console.info("[svgProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
+ expect(obj.$attrs.strokeLinejoin).assertEqual('miter')
+ console.info("[svgProps] get inspector stroke-linejoin value is: " + JSON.stringify(obj.$attrs.strokeLinejoin));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testSvgStrokeLineJoinPropThree
+ * @tc.desc ACE
+ */
+ it('testSvgStrokeLineJoinPropThree', 0, async function (done) {
+ console.info('testSvgStrokeLineJoinPropThree START');
+ console.info("[svgProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.strokeLineJoinPropThree);
+ console.info("[svgProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[svgProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('svg')
+ console.info("[svgProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('strokeLineJoinPropThree')
+ console.info("[svgProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('50px')
+ console.info("[svgProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[svgProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.stroke).assertEqual('red')
+ console.info("[svgProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
+ expect(obj.$attrs.strokeLinejoin).assertEqual('round')
+ console.info("[svgProps] get inspector stroke-linejoin value is: " + JSON.stringify(obj.$attrs.strokeLinejoin));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testSvgStrokeLineJoinPropOne
+ * @tc.desc ACE
+ */
+ it('testSvgStrokeLineCapPropOne', 0, async function (done) {
+ console.info('testSvgStrokeLineCapPropOne START');
+ console.info("[svgProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.strokeLineCapPropOne);
+ console.info("[svgProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[svgProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('svg')
+ console.info("[svgProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('strokeLineCapPropOne')
+ console.info("[svgProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('50px')
+ console.info("[svgProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[svgProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.stroke).assertEqual('red')
+ console.info("[svgProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
+ expect(obj.$attrs.strokeLineCap).assertEqual('butt')
+ console.info("[svgProps] get inspector stroke-lineCap value is: " + JSON.stringify(obj.$attrs.strokeLineCap));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testSvgStrokeLineCapPropTwo
+ * @tc.desc ACE
+ */
+ it('testSvgStrokeLineCapPropTwo', 0, async function (done) {
+ console.info('testSvgStrokeLineCapPropTwo START');
+ console.info("[svgProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.strokeLineCapPropTwo);
+ console.info("[svgProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[svgProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('svg')
+ console.info("[svgProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('strokeLineCapPropTwo')
+ console.info("[svgProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('50px')
+ console.info("[svgProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[svgProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.stroke).assertEqual('red')
+ console.info("[svgProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
+ expect(obj.$attrs.strokeLineCap).assertEqual('round')
+ console.info("[svgProps] get inspector stroke-lineCap value is: " + JSON.stringify(obj.$attrs.strokeLineCap));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testSvgStrokeLineCapPropThree
+ * @tc.desc ACE
+ */
+ it('testSvgStrokeLineCapPropThree', 0, async function (done) {
+ console.info('testSvgStrokeLineCapPropThree START');
+ console.info("[svgProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.strokeLineCapPropThree);
+ console.info("[svgProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[svgProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('svg')
+ console.info("[svgProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('strokeLineCapPropThree')
+ console.info("[svgProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('50px')
+ console.info("[svgProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[svgProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.stroke).assertEqual('red')
+ console.info("[svgProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
+ expect(obj.$attrs.strokeLineCap).assertEqual('square')
+ console.info("[svgProps] get inspector stroke-lineCap value is: " + JSON.stringify(obj.$attrs.strokeLineCap));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testSvgStrokeMiterLimitProp
+ * @tc.desc ACE
+ */
+ it('testSvgStrokeMiterLimitProp', 0, async function (done) {
+ console.info('testSvgStrokeMiterLimitProp START');
+ console.info("[svgProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.strokeMiterLimitProp);
+ console.info("[svgProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[svgProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('svg')
+ console.info("[svgProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('strokeMiterLimitProp')
+ console.info("[svgProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('100px')
+ console.info("[svgProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[svgProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.stroke).assertEqual('red')
+ console.info("[svgProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
+ expect(obj.$attrs.strokeMiterlimit).assertEqual('10')
+ console.info("[svgProps] get inspector stroke-miterlimit value is: " + JSON.stringify(obj.$attrs.strokeMiterlimit));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testSvgStrokeOpacityPropOne
+ * @tc.desc ACE
+ */
+ it('testSvgStrokeOpacityPropOne', 0, async function (done) {
+ console.info('testSvgStrokeOpacityPropOne START');
+ console.info("[svgProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.strokeOpacityPropOne);
+ console.info("[svgProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[svgProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('svg')
+ console.info("[svgProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('strokeOpacityPropOne')
+ console.info("[svgProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('50px')
+ console.info("[svgProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[svgProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.stroke).assertEqual('red')
+ console.info("[svgProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
+ expect(obj.$attrs.strokeOpacity).assertEqual('0.5')
+ console.info("[svgProps] get inspector stroke-opacity value is: " + JSON.stringify(obj.$attrs.strokeOpacity));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testSvgStrokeOpacityPropTwo
+ * @tc.desc ACE
+ */
+ it('testSvgStrokeOpacityPropTwo', 0, async function (done) {
+ console.info('testSvgStrokeOpacityPropTwo START');
+ console.info("[svgProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.strokeOpacityPropTwo);
+ console.info("[svgProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[svgProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('svg')
+ console.info("[svgProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('strokeOpacityPropTwo')
+ console.info("[svgProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('50px')
+ console.info("[svgProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[svgProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.stroke).assertEqual('red')
+ console.info("[svgProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
+ expect(obj.$attrs.strokeOpacity).assertEqual('1')
+ console.info("[svgProps] get inspector stroke-opacity value is: " + JSON.stringify(obj.$attrs.strokeOpacity));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testSvgStrokeOpacityPropThree
+ * @tc.desc ACE
+ */
+ it('testSvgStrokeOpacityPropThree', 0, async function (done) {
+ console.info('testSvgStrokeOpacityPropThree START');
+ console.info("[svgProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.strokeOpacityPropThree);
+ console.info("[svgProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[svgProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('svg')
+ console.info("[svgProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('strokeOpacityPropThree')
+ console.info("[svgProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('50px')
+ console.info("[svgProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[svgProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.stroke).assertEqual('red')
+ console.info("[svgProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
+ expect(obj.$attrs.strokeOpacity).assertEqual('1.5')
+ console.info("[svgProps] get inspector stroke-opacity value is: " + JSON.stringify(obj.$attrs.strokeOpacity));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testSvgStrokeWidthProp
+ * @tc.desc ACE
+ */
+ it('testSvgStrokeWidthProp', 0, async function (done) {
+ console.info('testSvgStrokeWidthProp START');
+ console.info("[svgProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.strokeWidthProp);
+ console.info("[svgProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[svgProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('svg')
+ console.info("[svgProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('strokeWidthProp')
+ console.info("[svgProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('100px')
+ console.info("[svgProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[svgProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.stroke).assertEqual('red')
+ console.info("[svgProps] get inspector stroke value is: " + JSON.stringify(obj.$attrs.stroke));
+ expect(obj.$attrs.strokeWidth).assertEqual('6')
+ console.info("[svgProps] get inspector stroke-width value is: " + JSON.stringify(obj.$attrs.strokeWidth));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testSvgTransformProp
+ * @tc.desc ACE
+ */
+ it('testSvgTransformProp', 0, async function (done) {
+ console.info('testSvgTransformProp START');
+ console.info("[svgProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.transformProp);
+ console.info("[svgProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[svgProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('svg')
+ console.info("[svgProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('transformProp')
+ console.info("[svgProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('100px')
+ console.info("[svgProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[svgProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.transform).assertEqual('translate(10,5) scale(0.5 1.3) rotate(20 40 90) skewX(10) skewY(-15)')
+ console.info("[svgProps] get inspector transform value is: " + JSON.stringify(obj.$attrs.transform));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testSvgIdProp
+ * @tc.desc ACE
+ */
+ it('testSvgIdProp', 0, async function (done) {
+ console.info('testSvgIdProp START');
+ console.info("[svgProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.idProp);
+ console.info("[svgProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[svgProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('svg')
+ console.info("[svgProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('idProp')
+ console.info("[svgProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('100px')
+ console.info("[svgProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('40px')
+ console.info("[svgProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testSvgWidthPropOne
+ * @tc.desc ACE
+ */
+ it('testSvgWidthPropOne', 0, async function (done) {
+ console.info('testSvgWidthPropOne START');
+ console.info("[svgProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.widthPropOne);
+ console.info("[svgProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[svgProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('svg')
+ console.info("[svgProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('widthPropOne')
+ console.info("[svgProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('50px')
+ console.info("[svgProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[svgProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.fill).assertEqual('red')
+ console.info("[svgProps] get inspector fill value is: " + JSON.stringify(obj.$attrs.fill));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testSvgWidthPropTwo
+ * @tc.desc ACE
+ */
+ it('testSvgWidthPropTwo', 0, async function (done) {
+ console.info('testSvgWidthPropTwo START');
+ console.info("[svgProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.widthPropTwo);
+ console.info("[svgProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[svgProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('svg')
+ console.info("[svgProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('widthPropTwo')
+ console.info("[svgProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('50%')
+ console.info("[svgProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[svgProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.fill).assertEqual('red')
+ console.info("[svgProps] get inspector fill value is: " + JSON.stringify(obj.$attrs.fill));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testSvgHeightPropOne
+ * @tc.desc ACE
+ */
+ it('testSvgHeightPropOne', 0, async function (done) {
+ console.info('testSvgHeightPropOne START');
+ console.info("[svgProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.heightPropOne);
+ console.info("[svgProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[svgProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('svg')
+ console.info("[svgProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('heightPropOne')
+ console.info("[svgProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('50px')
+ console.info("[svgProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20px')
+ console.info("[svgProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.fill).assertEqual('red')
+ console.info("[svgProps] get inspector fill value is: " + JSON.stringify(obj.$attrs.fill));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testSvgHeightPropTwo
+ * @tc.desc ACE
+ */
+ it('testSvgHeightPropTwo', 0, async function (done) {
+ console.info('testSvgHeightPropTwo START');
+ console.info("[svgProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.heightPropTwo);
+ console.info("[svgProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[svgProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('svg')
+ console.info("[svgProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('heightPropTwo')
+ console.info("[svgProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('50px')
+ console.info("[svgProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('20%')
+ console.info("[svgProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.fill).assertEqual('red')
+ console.info("[svgProps] get inspector fill value is: " + JSON.stringify(obj.$attrs.fill));
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
+ * @tc.name testSvgViewBoxProp
+ * @tc.desc ACE
+ */
+ it('testSvgViewBoxProp', 0, async function (done) {
+ console.info('testSvgViewBoxProp START');
+ console.info("[svgProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
+
+ let obj = JSON.parse(globalThis.value.viewBoxProp);
+ console.info("[svgProps] get inspector value is: " + JSON.stringify(obj));
+ console.info("[svgProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
+
+ expect(obj.$type).assertEqual('svg')
+ console.info("[svgProps] get inspector $type value is: " + JSON.stringify(obj.$attrs.$type));
+ expect(obj.$attrs.id).assertEqual('viewBoxProp')
+ console.info("[svgProps] get inspector id value is: " + JSON.stringify(obj.$attrs.id));
+ expect(obj.$attrs.width).assertEqual('100px')
+ console.info("[svgProps] get inspector width value is: " + JSON.stringify(obj.$attrs.width));
+ expect(obj.$attrs.height).assertEqual('40px')
+ console.info("[svgProps] get inspector height value is: " + JSON.stringify(obj.$attrs.height));
+ expect(obj.$attrs.viewBox).assertEqual('0 0 20 20')
+ console.info("[svgProps] get inspector viewBox value is: " + JSON.stringify(obj.$attrs.viewBox));
+ done();
+ });
+});