Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
e6ffb0cf
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
e6ffb0cf
编写于
3月 08, 2022
作者:
D
dongwei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add test cases
Signed-off-by:
N
dongwei
<
dongwei@kaihongdigi.com
>
上级
2039b062
变更
34
隐藏空白更改
内联
并排
Showing
34 changed file
with
168 addition
and
89 deletion
+168
-89
ace/ace_standard/src/main/js/default/pages/animate/prop/index.js
..._standard/src/main/js/default/pages/animate/prop/index.js
+0
-1
ace/ace_standard/src/main/js/default/pages/animateMotion/prop/index.js
...ard/src/main/js/default/pages/animateMotion/prop/index.js
+0
-1
ace/ace_standard/src/main/js/default/pages/animateTransform/prop/index.js
.../src/main/js/default/pages/animateTransform/prop/index.js
+0
-1
ace/ace_standard/src/main/js/default/pages/input/router/index.hml
...standard/src/main/js/default/pages/input/router/index.hml
+1
-1
ace/ace_standard/src/main/js/default/pages/input/router/index.js
..._standard/src/main/js/default/pages/input/router/index.js
+5
-4
ace/ace_standard/src/main/js/default/pages/obj_CanvasGradient/style/index.js
...c/main/js/default/pages/obj_CanvasGradient/style/index.js
+14
-0
ace/ace_standard/src/main/js/default/pages/obj_CanvasRenderingContext2D/style/index.js
...default/pages/obj_CanvasRenderingContext2D/style/index.js
+14
-0
ace/ace_standard/src/main/js/default/pages/obj_Image/style/index.js
...andard/src/main/js/default/pages/obj_Image/style/index.js
+14
-0
ace/ace_standard/src/main/js/default/pages/obj_ImageBitmap/style/index.js
.../src/main/js/default/pages/obj_ImageBitmap/style/index.js
+14
-0
ace/ace_standard/src/main/js/default/pages/obj_ImageData/style/index.js
...rd/src/main/js/default/pages/obj_ImageData/style/index.js
+14
-0
ace/ace_standard/src/main/js/default/pages/obj_OffscreenCanvas/style/index.js
.../main/js/default/pages/obj_OffscreenCanvas/style/index.js
+14
-0
ace/ace_standard/src/main/js/default/pages/obj_OffscreenCanvasRenderingContext2D/style/index.js
...ages/obj_OffscreenCanvasRenderingContext2D/style/index.js
+14
-0
ace/ace_standard/src/main/js/default/pages/obj_Path2D/style/index.js
...ndard/src/main/js/default/pages/obj_Path2D/style/index.js
+14
-0
ace/ace_standard/src/main/js/default/pages/pickerView/prop/index.js
...andard/src/main/js/default/pages/pickerView/prop/index.js
+0
-8
ace/ace_standard/src/main/js/default/pages/qrcode/router/index.hml
...tandard/src/main/js/default/pages/qrcode/router/index.hml
+2
-2
ace/ace_standard/src/main/js/default/pages/qrcode/router/index.js
...standard/src/main/js/default/pages/qrcode/router/index.js
+5
-4
ace/ace_standard/src/main/js/default/pages/rating/router/index.hml
...tandard/src/main/js/default/pages/rating/router/index.hml
+1
-1
ace/ace_standard/src/main/js/default/pages/rating/router/index.js
...standard/src/main/js/default/pages/rating/router/index.js
+5
-4
ace/ace_standard/src/main/js/default/pages/richtext/prop/index.js
...standard/src/main/js/default/pages/richtext/prop/index.js
+2
-1
ace/ace_standard/src/main/js/default/pages/richtext/router/index.hml
...ndard/src/main/js/default/pages/richtext/router/index.hml
+1
-1
ace/ace_standard/src/main/js/default/pages/richtext/router/index.js
...andard/src/main/js/default/pages/richtext/router/index.js
+5
-4
ace/ace_standard/src/main/js/default/pages/select/router/index.hml
...tandard/src/main/js/default/pages/select/router/index.hml
+1
-1
ace/ace_standard/src/main/js/default/pages/select/router/index.js
...standard/src/main/js/default/pages/select/router/index.js
+5
-4
ace/ace_standard/src/main/js/default/pages/slider/router/index.hml
...tandard/src/main/js/default/pages/slider/router/index.hml
+1
-1
ace/ace_standard/src/main/js/default/pages/slider/router/index.js
...standard/src/main/js/default/pages/slider/router/index.js
+5
-4
ace/ace_standard/src/main/js/default/pages/svg_text/prop/index.js
...standard/src/main/js/default/pages/svg_text/prop/index.js
+0
-1
ace/ace_standard/src/main/js/default/pages/textPath/prop/index.js
...standard/src/main/js/default/pages/textPath/prop/index.js
+0
-1
ace/ace_standard/src/main/js/default/pages/tspan/prop/index.js
...ce_standard/src/main/js/default/pages/tspan/prop/index.js
+0
-1
ace/ace_standard/src/main/js/default/test/circleProps.test.js
...ace_standard/src/main/js/default/test/circleProps.test.js
+2
-2
ace/ace_standard/src/main/js/default/test/ellipseProps.test.js
...ce_standard/src/main/js/default/test/ellipseProps.test.js
+2
-2
ace/ace_standard/src/main/js/default/test/lineProps.test.js
ace/ace_standard/src/main/js/default/test/lineProps.test.js
+8
-7
ace/ace_standard/src/main/js/default/test/polygonProps.test.js
...ce_standard/src/main/js/default/test/polygonProps.test.js
+2
-2
ace/ace_standard/src/main/js/default/test/polylineProps.test.js
...e_standard/src/main/js/default/test/polylineProps.test.js
+3
-3
ace/ace_standard/src/main/js/default/test/toggleProps.test.js
...ace_standard/src/main/js/default/test/toggleProps.test.js
+0
-27
未找到文件。
ace/ace_standard/src/main/js/default/pages/animate/prop/index.js
浏览文件 @
e6ffb0cf
...
...
@@ -115,6 +115,5 @@ export default {
this
.
toPropNone
=
this
.
$element
(
"
toPropNone
"
).
getInspector
()
this
.
valuesProp
=
this
.
$element
(
"
valuesProp
"
).
getInspector
()
this
.
valuesPropNone
=
this
.
$element
(
"
valuesPropNone
"
).
getInspector
()
return
},
}
ace/ace_standard/src/main/js/default/pages/animateMotion/prop/index.js
浏览文件 @
e6ffb0cf
...
...
@@ -131,6 +131,5 @@ export default {
this
.
rotatePropRotate
=
this
.
$element
(
"
rotatePropRotate
"
).
getInspector
()
this
.
rotatePropAutoReverse
=
this
.
$element
(
"
rotatePropAutoReverse
"
).
getInspector
()
this
.
rotatePropNumber
=
this
.
$element
(
"
rotatePropNumber
"
).
getInspector
()
return
},
}
ace/ace_standard/src/main/js/default/pages/animateTransform/prop/index.js
浏览文件 @
e6ffb0cf
...
...
@@ -130,6 +130,5 @@ export default {
this
.
typePropRotate
=
this
.
$element
(
"
typePropRotate
"
).
getInspector
()
this
.
typePropSkewX
=
this
.
$element
(
"
typePropSkewX
"
).
getInspector
()
this
.
typePropSkewY
=
this
.
$element
(
"
typePropSkewY
"
).
getInspector
()
return
},
}
ace/ace_standard/src/main/js/default/pages/input/router/index.hml
浏览文件 @
e6ffb0cf
...
...
@@ -224,7 +224,7 @@
<input class ="event5"
type="checkbox"
onchange="checkChange"
onaccessibility="
a
ccessibility">
onaccessibility="
onA
ccessibility">
</input>
</div>
<div style="background-color: #000000; width: 100%; height: 2px;">
...
...
ace/ace_standard/src/main/js/default/pages/input/router/index.js
浏览文件 @
e6ffb0cf
...
...
@@ -514,9 +514,10 @@ export default {
});
},
accessibility
(
event
){
prompt
.
showToast
({
message
:
JSON
.
stringify
(
event
)
});
onAccessibility
(
event
)
{
if
(
event
.
eventType
==
1
)
{
console
.
log
(
'
abc
'
);
}
console
.
log
(
"
onAccessibility
"
+
JSON
.
stringify
(
event
));
}
}
ace/ace_standard/src/main/js/default/pages/obj_CanvasGradient/style/index.js
浏览文件 @
e6ffb0cf
/**
* Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
\ No newline at end of file
ace/ace_standard/src/main/js/default/pages/obj_CanvasRenderingContext2D/style/index.js
浏览文件 @
e6ffb0cf
/**
* Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
\ No newline at end of file
ace/ace_standard/src/main/js/default/pages/obj_Image/style/index.js
浏览文件 @
e6ffb0cf
/**
* Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
\ No newline at end of file
ace/ace_standard/src/main/js/default/pages/obj_ImageBitmap/style/index.js
浏览文件 @
e6ffb0cf
/**
* Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
\ No newline at end of file
ace/ace_standard/src/main/js/default/pages/obj_ImageData/style/index.js
浏览文件 @
e6ffb0cf
/**
* Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
\ No newline at end of file
ace/ace_standard/src/main/js/default/pages/obj_OffscreenCanvas/style/index.js
浏览文件 @
e6ffb0cf
/**
* Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
\ No newline at end of file
ace/ace_standard/src/main/js/default/pages/obj_OffscreenCanvasRenderingContext2D/style/index.js
浏览文件 @
e6ffb0cf
/**
* Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
\ No newline at end of file
ace/ace_standard/src/main/js/default/pages/obj_Path2D/style/index.js
浏览文件 @
e6ffb0cf
/**
* Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
\ No newline at end of file
ace/ace_standard/src/main/js/default/pages/pickerView/prop/index.js
浏览文件 @
e6ffb0cf
...
...
@@ -60,7 +60,6 @@ export default {
onShow
(){
this
.
getCommonPropValues
();
// this.getSpecificPropValues();
globalThis
.
value
=
{
idProp
:
this
.
idProp
,
classProp
:
this
.
classProp
,
...
...
@@ -129,12 +128,5 @@ export default {
this
.
showPropTrue
=
this
.
$element
(
"
showPropTrue
"
).
getInspector
()
this
.
showPropFalse
=
this
.
$element
(
"
showPropFalse
"
).
getInspector
()
this
.
showPropNone
=
this
.
$element
(
"
showPropNone
"
).
getInspector
()
},
getSpecificPropValues
()
{
// this.pickerViewViewText = this.$element("pickerViewViewText").getInspector()
// this.pickerViewViewDate = this.$element("pickerViewViewDate").getInspector()
// this.pickerViewViewTime = this.$element("pickerViewViewTime").getInspector()
// this.pickerViewViewDatetime = this.$element("pickerViewViewDatetime").getInspector()
// this.pickerViewViewMultiText = this.$element("pickerViewViewMultiText").getInspector()
}
}
ace/ace_standard/src/main/js/default/pages/qrcode/router/index.hml
浏览文件 @
e6ffb0cf
...
...
@@ -193,13 +193,13 @@
ondragend="dragEnd" ondragenter="dragEnter"
ondragover="dragOver" ondragleave="dragLeave"
ondrop="drop" value="value"
onaccessibility="
a
ccessibility">
onaccessibility="
onA
ccessibility">
</qrcode>
<text class="sub-title">
qrcode特有事件1
</text>
<qrcode class ="event3" value="value"
onaccessibility="
a
ccessibility">
onaccessibility="
onA
ccessibility">
</qrcode>
</div>
<div style="background-color: #000000; width: 100%; height: 2px;">
...
...
ace/ace_standard/src/main/js/default/pages/qrcode/router/index.js
浏览文件 @
e6ffb0cf
...
...
@@ -451,9 +451,10 @@ export default {
},
1500
)
},
accessibility
(
event
){
prompt
.
showToast
({
message
:
JSON
.
stringify
(
event
)
});
onAccessibility
(
event
)
{
if
(
event
.
eventType
==
1
)
{
console
.
log
(
'
abc
'
);
}
console
.
log
(
"
onAccessibility
"
+
JSON
.
stringify
(
event
));
}
}
ace/ace_standard/src/main/js/default/pages/rating/router/index.hml
浏览文件 @
e6ffb0cf
...
...
@@ -192,7 +192,7 @@
rating="1"
stepsize="1"
onchange="change"
onaccessibility="
a
ccessibility">
onaccessibility="
onA
ccessibility">
</rating>
</div>
<div style="background-color: #000000; width: 100%; height: 2px;">
...
...
ace/ace_standard/src/main/js/default/pages/rating/router/index.js
浏览文件 @
e6ffb0cf
...
...
@@ -457,9 +457,10 @@ export default {
});
},
accessibility
(
event
){
prompt
.
showToast
({
message
:
JSON
.
stringify
(
event
)
});
onAccessibility
(
event
)
{
if
(
event
.
eventType
==
1
)
{
console
.
log
(
'
abc
'
);
}
console
.
log
(
"
onAccessibility
"
+
JSON
.
stringify
(
event
));
}
}
ace/ace_standard/src/main/js/default/pages/richtext/prop/index.js
浏览文件 @
e6ffb0cf
...
...
@@ -18,7 +18,8 @@ import prompt from '@system.prompt';
export
default
{
data
:{
content
:
`
<div class="flex-direction: column; background-color: #ffffff; padding: 30px; margin-bottom: 30px;" style="background-color: #FFFFFF">
<div class="flex-direction: column; background-color: #ffffff;
padding: 30px; margin-bottom: 30px;" style="background-color: #FFFFFF">
<style>h1{color: yellow;}</style>
<p class="item-title">h1</p>
<h1>文本测试(h1测试)</h1>
...
...
ace/ace_standard/src/main/js/default/pages/richtext/router/index.hml
浏览文件 @
e6ffb0cf
...
...
@@ -122,7 +122,7 @@
<div class="yellowDiv">
<richtext class ="event5"
oncomplete="complete"
onaccessibility="
a
ccessibility">
onaccessibility="
onA
ccessibility">
</richtext>
</div>
</div>
...
...
ace/ace_standard/src/main/js/default/pages/richtext/router/index.js
浏览文件 @
e6ffb0cf
...
...
@@ -391,9 +391,10 @@ export default {
});
},
accessibility
(
event
){
prompt
.
showToast
({
message
:
JSON
.
stringify
(
event
)
});
onAccessibility
(
event
)
{
if
(
event
.
eventType
==
1
)
{
console
.
log
(
'
abc
'
);
}
console
.
log
(
"
onAccessibility
"
+
JSON
.
stringify
(
event
));
}
}
ace/ace_standard/src/main/js/default/pages/select/router/index.hml
浏览文件 @
e6ffb0cf
...
...
@@ -154,7 +154,7 @@
</text>
<select class ="event4"
onchange="change"
onaccessibility="
a
ccessibility">
onaccessibility="
onA
ccessibility">
</select>
</div>
<div style="background-color: #000000; width: 100%; height: 2px;">
...
...
ace/ace_standard/src/main/js/default/pages/select/router/index.js
浏览文件 @
e6ffb0cf
...
...
@@ -457,9 +457,10 @@ export default {
});
},
accessibility
(
event
){
prompt
.
showToast
({
message
:
JSON
.
stringify
(
event
)
});
onAccessibility
(
event
)
{
if
(
event
.
eventType
==
1
)
{
console
.
log
(
'
abc
'
);
}
console
.
log
(
"
onAccessibility
"
+
JSON
.
stringify
(
event
));
}
}
ace/ace_standard/src/main/js/default/pages/slider/router/index.hml
浏览文件 @
e6ffb0cf
...
...
@@ -203,7 +203,7 @@
</text>
<slider class ="event4"
onchange="change"
onaccessibility="
a
ccessibility">
onaccessibility="
onA
ccessibility">
</slider>
</div>
<div style="background-color: #000000; width: 100%; height: 2px;">
...
...
ace/ace_standard/src/main/js/default/pages/slider/router/index.js
浏览文件 @
e6ffb0cf
...
...
@@ -457,9 +457,10 @@ export default {
});
},
accessibility
(
event
){
prompt
.
showToast
({
message
:
JSON
.
stringify
(
event
)
});
onAccessibility
(
event
)
{
if
(
event
.
eventType
==
1
)
{
console
.
log
(
'
abc
'
);
}
console
.
log
(
"
onAccessibility
"
+
JSON
.
stringify
(
event
));
}
}
ace/ace_standard/src/main/js/default/pages/svg_text/prop/index.js
浏览文件 @
e6ffb0cf
...
...
@@ -115,6 +115,5 @@ export default {
this
.
strokeWidthPropNone
=
this
.
$element
(
"
strokeWidthPropNone
"
).
getInspector
()
this
.
strokeOpacityProp
=
this
.
$element
(
"
strokeOpacityProp
"
).
getInspector
()
this
.
strokeOpacityPropNone
=
this
.
$element
(
"
strokeOpacityPropNone
"
).
getInspector
()
return
},
}
ace/ace_standard/src/main/js/default/pages/textPath/prop/index.js
浏览文件 @
e6ffb0cf
...
...
@@ -94,6 +94,5 @@ export default {
this
.
strokeWidthPropNone
=
this
.
$element
(
"
strokeWidthPropNone
"
).
getInspector
()
this
.
strokeOpacityProp
=
this
.
$element
(
"
strokeOpacityProp
"
).
getInspector
()
this
.
strokeOpacityPropNone
=
this
.
$element
(
"
strokeOpacityPropNone
"
).
getInspector
()
return
},
}
ace/ace_standard/src/main/js/default/pages/tspan/prop/index.js
浏览文件 @
e6ffb0cf
...
...
@@ -115,6 +115,5 @@ export default {
this
.
strokeWidthPropNone
=
this
.
$element
(
"
strokeWidthPropNone
"
).
getInspector
()
this
.
strokeOpacityProp
=
this
.
$element
(
"
strokeOpacityProp
"
).
getInspector
()
this
.
strokeOpacityPropNone
=
this
.
$element
(
"
strokeOpacityPropNone
"
).
getInspector
()
return
},
}
ace/ace_standard/src/main/js/default/test/circleProps.test.js
浏览文件 @
e6ffb0cf
...
...
@@ -430,7 +430,7 @@
expect
(
obj
.
$attrs
.
stroke
).
assertEqual
(
'
red
'
)
console
.
info
(
"
[circleProps] get inspector stroke value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
stroke
));
expect
(
obj
.
$attrs
.
strokeDashoffset
).
assertEqual
(
'
23
'
)
console
.
info
(
"
[circleProps] get
inspector dashoffset value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
strokeDashoffset
));
console
.
info
(
"
[circleProps] get
dashoffset value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
strokeDashoffset
));
done
();
});
...
...
@@ -641,7 +641,7 @@
expect
(
obj
.
$attrs
.
stroke
).
assertEqual
(
'
red
'
)
console
.
info
(
"
[circleProps] get inspector stroke value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
stroke
));
expect
(
obj
.
$attrs
.
strokeMiterlimit
).
assertEqual
(
'
10
'
)
console
.
info
(
"
[circleProps] get
inspector
miterlimit value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
strokeMiterlimit
));
console
.
info
(
"
[circleProps] get miterlimit value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
strokeMiterlimit
));
done
();
});
...
...
ace/ace_standard/src/main/js/default/test/ellipseProps.test.js
浏览文件 @
e6ffb0cf
...
...
@@ -448,7 +448,7 @@
expect
(
obj
.
$attrs
.
stroke
).
assertEqual
(
'
red
'
)
console
.
info
(
"
[ellipseProps] get inspector stroke value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
stroke
));
expect
(
obj
.
$attrs
.
strokeDashoffset
).
assertEqual
(
'
23
'
)
console
.
info
(
"
[ellipseProps] get
inspector
dashoffset value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
strokeDashoffset
));
console
.
info
(
"
[ellipseProps] get dashoffset value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
strokeDashoffset
));
done
();
});
...
...
@@ -673,7 +673,7 @@
expect
(
obj
.
$attrs
.
stroke
).
assertEqual
(
'
red
'
)
console
.
info
(
"
[ellipseProps] get inspector stroke value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
stroke
));
expect
(
obj
.
$attrs
.
strokeMiterlimit
).
assertEqual
(
'
10
'
)
console
.
info
(
"
[ellipseProps] get
inspector
miterlimit value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
strokeMiterlimit
));
console
.
info
(
"
[ellipseProps] get miterlimit value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
strokeMiterlimit
));
done
();
});
...
...
ace/ace_standard/src/main/js/default/test/lineProps.test.js
浏览文件 @
e6ffb0cf
...
...
@@ -236,7 +236,7 @@
expect
(
obj
.
$attrs
.
stroke
).
assertEqual
(
'
red
'
)
console
.
info
(
"
[lineProps] get inspector stroke value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
stroke
));
expect
(
obj
.
$attrs
.
strokeDasharray
).
assertEqual
(
'
2 3
'
)
console
.
info
(
"
[lineProps] get
inspector
stroke-dasharray value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
strokeDasharray
));
console
.
info
(
"
[lineProps] get stroke-dasharray value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
strokeDasharray
));
done
();
});
...
...
@@ -270,7 +270,7 @@
expect
(
obj
.
$attrs
.
stroke
).
assertEqual
(
'
red
'
)
console
.
info
(
"
[lineProps] get inspector stroke value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
stroke
));
expect
(
obj
.
$attrs
.
strokeDashoffset
).
assertEqual
(
'
23
'
)
console
.
info
(
"
[lineProps] get
inspector
stroke-dashoffset value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
strokeDashoffset
));
console
.
info
(
"
[lineProps] get stroke-dashoffset value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
strokeDashoffset
));
done
();
});
...
...
@@ -305,7 +305,7 @@
expect
(
obj
.
$attrs
.
stroke
).
assertEqual
(
'
red
'
)
console
.
info
(
"
[lineProps] get inspector stroke value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
stroke
));
expect
(
obj
.
$attrs
.
strokeLinejoin
).
assertEqual
(
'
bevel
'
)
console
.
info
(
"
[lineProps] get
inspector
stroke-linejoin value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
strokeLinejoin
));
console
.
info
(
"
[lineProps] get stroke-linejoin value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
strokeLinejoin
));
done
();
});
...
...
@@ -339,7 +339,7 @@
expect
(
obj
.
$attrs
.
stroke
).
assertEqual
(
'
red
'
)
console
.
info
(
"
[lineProps] get inspector stroke value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
stroke
));
expect
(
obj
.
$attrs
.
strokeLinejoin
).
assertEqual
(
'
miter
'
)
console
.
info
(
"
[lineProps] get
inspector
stroke-linejoin value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
strokeLinejoin
));
console
.
info
(
"
[lineProps] get stroke-linejoin value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
strokeLinejoin
));
done
();
});
...
...
@@ -373,7 +373,7 @@
expect
(
obj
.
$attrs
.
stroke
).
assertEqual
(
'
red
'
)
console
.
info
(
"
[lineProps] get inspector stroke value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
stroke
));
expect
(
obj
.
$attrs
.
strokeLinejoin
).
assertEqual
(
'
round
'
)
console
.
info
(
"
[lineProps] get
inspector
stroke-linejoin value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
strokeLinejoin
));
console
.
info
(
"
[lineProps] get stroke-linejoin value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
strokeLinejoin
));
done
();
});
...
...
@@ -509,7 +509,7 @@
expect
(
obj
.
$attrs
.
stroke
).
assertEqual
(
'
red
'
)
console
.
info
(
"
[lineProps] get inspector stroke value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
stroke
));
expect
(
obj
.
$attrs
.
strokeMiterlimit
).
assertEqual
(
'
10
'
)
console
.
info
(
"
[lineProps] get
inspector
stroke-miterlimit value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
strokeMiterlimit
));
console
.
info
(
"
[lineProps] get stroke-miterlimit value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
strokeMiterlimit
));
done
();
});
...
...
@@ -676,7 +676,8 @@
console
.
info
(
"
[lineProps] get inspector stroke-width value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
strokeWidth
));
expect
(
obj
.
$attrs
.
stroke
).
assertEqual
(
'
red
'
)
console
.
info
(
"
[lineProps] get inspector stroke value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
stroke
));
expect
(
obj
.
$attrs
.
transform
).
assertEqual
(
'
translate(10,5) scale(0.5 1.3) rotate(20 40 90) skewX(10) skewY(-15)
'
)
expect
(
obj
.
$attrs
.
transform
).
assertEqual
(
'
translate(10,5) scale(0.5 1.3) rotate(20 40 90)
'
+
'
skewX(10) skewY(-15)
'
)
console
.
info
(
"
[lineProps] get inspector transform value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
transform
));
done
();
});
...
...
ace/ace_standard/src/main/js/default/test/polygonProps.test.js
浏览文件 @
e6ffb0cf
...
...
@@ -382,7 +382,7 @@ describe('polygonPropsJsTest', function () {
expect
(
obj
.
$attrs
.
stroke
).
assertEqual
(
'
red
'
)
console
.
info
(
"
[polygonProps] get inspector stroke value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
stroke
));
expect
(
obj
.
$attrs
.
strokeDashoffset
).
assertEqual
(
'
23
'
)
console
.
info
(
"
[polygonProps] get
inspector
dashoffset value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
strokeDashoffset
));
console
.
info
(
"
[polygonProps] get dashoffset value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
strokeDashoffset
));
done
();
});
...
...
@@ -565,7 +565,7 @@ describe('polygonPropsJsTest', function () {
expect
(
obj
.
$attrs
.
stroke
).
assertEqual
(
'
red
'
)
console
.
info
(
"
[polygonProps] get inspector stroke value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
stroke
));
expect
(
obj
.
$attrs
.
strokeMiterlimit
).
assertEqual
(
'
10
'
)
console
.
info
(
"
[polygonProps] get
inspector miterlimit value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
strokeMiterlimit
));
console
.
info
(
"
[polygonProps] get
miterlimit value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
strokeMiterlimit
));
done
();
});
...
...
ace/ace_standard/src/main/js/default/test/polylineProps.test.js
浏览文件 @
e6ffb0cf
...
...
@@ -356,7 +356,7 @@
expect
(
obj
.
$attrs
.
stroke
).
assertEqual
(
'
red
'
)
console
.
info
(
"
[polylineProps] get inspector stroke value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
stroke
));
expect
(
obj
.
$attrs
.
strokeDasharray
).
assertEqual
(
'
2 3
'
)
console
.
info
(
"
[polylineProps] get ins
pector
dasharray value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
strokeDasharray
));
console
.
info
(
"
[polylineProps] get ins dasharray value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
strokeDasharray
));
done
();
});
...
...
@@ -382,7 +382,7 @@
expect
(
obj
.
$attrs
.
stroke
).
assertEqual
(
'
red
'
)
console
.
info
(
"
[polylineProps] get inspector stroke value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
stroke
));
expect
(
obj
.
$attrs
.
strokeDashoffset
).
assertEqual
(
'
23
'
)
console
.
info
(
"
[polylineProps] get ins
pector
dashoffset value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
strokeDashoffset
));
console
.
info
(
"
[polylineProps] get ins dashoffset value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
strokeDashoffset
));
done
();
});
...
...
@@ -565,7 +565,7 @@
expect
(
obj
.
$attrs
.
stroke
).
assertEqual
(
'
red
'
)
console
.
info
(
"
[polylineProps] get inspector stroke value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
stroke
));
expect
(
obj
.
$attrs
.
strokeMiterlimit
).
assertEqual
(
'
10
'
)
console
.
info
(
"
[polylineProps] get ins
pector
miterlimit value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
strokeMiterlimit
));
console
.
info
(
"
[polylineProps] get ins miterlimit value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
strokeMiterlimit
));
done
();
});
...
...
ace/ace_standard/src/main/js/default/test/toggleProps.test.js
浏览文件 @
e6ffb0cf
...
...
@@ -135,33 +135,6 @@ describe('togglePropsJsTest', function () {
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testtoggleStyleProp
* @tc.desc ACEs
*/
// it('testtoggleStyleProp', 0, async function (done) {
// console.info('testtoggleStyleProp START');
// console.info("[toggleProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
//
// let obj = JSON.parse(globalThis.value.styleProp);
// console.info("[toggleProps] get inspector value is: " + JSON.stringify(obj));
// console.info("[toggleProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
//
// expect(obj.$type).assertEqual('toggle')
// expect(obj.$attrs.id).assertEqual('styleProp')
// expect(obj.$attrs.style).assertEqual(undefined)
// console.info("[toggleProps] get style value is: " + JSON.stringify(obj.$attrs.style));
//
// expect(obj.$styles.width).assertEqual(undefined);
// console.info("[toggleProps] get style width value is: " + JSON.stringify(obj.$styles.width));
// expect(obj.$styles.height).assertEqual(undefined);
// console.info("[toggleProps] get style height value is: " + JSON.stringify(obj.$styles.height));
// expect(obj.$styles.get('background-color')).assertEqual(undefined);
// console.info("[toggleProps] get style background-color value is: " + JSON.stringify(obj.$styles.get('background-color')));
// done();
// });
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testtoggleRefProp
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录