Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
db1a6f5b
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看板
提交
db1a6f5b
编写于
2月 23, 2022
作者:
B
bayanxing
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add attribute testcase
Signed-off-by:
N
bayanxing
<
bayanxing@kaihongdigi.com
>
上级
265adc6d
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
20 addition
and
165 deletion
+20
-165
ace/ace_standard/src/main/js/default/pages/swiper/prop/index.js
...e_standard/src/main/js/default/pages/swiper/prop/index.js
+16
-29
ace/ace_standard/src/main/js/default/test/pieceProps.test.js
ace/ace_standard/src/main/js/default/test/pieceProps.test.js
+0
-27
ace/ace_standard/src/main/js/default/test/refreshProps.test.js
...ce_standard/src/main/js/default/test/refreshProps.test.js
+0
-27
ace/ace_standard/src/main/js/default/test/stackProps.test.js
ace/ace_standard/src/main/js/default/test/stackProps.test.js
+0
-27
ace/ace_standard/src/main/js/default/test/swiperProps.test.js
...ace_standard/src/main/js/default/test/swiperProps.test.js
+4
-29
ace/ace_standard/src/main/js/default/test/textProps.test.js
ace/ace_standard/src/main/js/default/test/textProps.test.js
+0
-26
未找到文件。
ace/ace_standard/src/main/js/default/pages/swiper/prop/index.js
浏览文件 @
db1a6f5b
...
...
@@ -74,38 +74,23 @@ export default {
onShow
(){
this
.
getCommonPropValues
();
this
.
getSpecificPropValues
();
globalThis
.
value
=
{
idProp
:
this
.
idProp
,
classProp
:
this
.
classProp
,
classPropNone
:
this
.
classPropNone
,
styleProp
:
this
.
styleProp
,
refProp
:
this
.
refProp
,
refPropNone
:
this
.
refPropNone
,
disabledPropTrue
:
this
.
disabledPropTrue
,
disabledPropFalse
:
this
.
disabledPropFalse
,
disabledPropNone
:
this
.
disabledPropNone
,
focusablePropTrue
:
this
.
focusablePropTrue
,
focusablePropFalse
:
this
.
focusablePropFalse
,
focusablePropNone
:
this
.
focusablePropNone
,
dataProp
:
this
.
dataProp
,
dataPropNone
:
this
.
dataPropNone
,
idProp
:
this
.
idProp
,
classProp
:
this
.
classProp
,
classPropNone
:
this
.
classPropNone
,
styleProp
:
this
.
styleProp
,
refProp
:
this
.
refProp
,
refPropNone
:
this
.
refPropNone
,
disabledPropTrue
:
this
.
disabledPropTrue
,
disabledPropFalse
:
this
.
disabledPropFalse
,
disabledPropNone
:
this
.
disabledPropNone
,
focusablePropTrue
:
this
.
focusablePropTrue
,
focusablePropFalse
:
this
.
focusablePropFalse
,
focusablePropNone
:
this
.
focusablePropNone
,
dataProp
:
this
.
dataProp
,
dataPropNone
:
this
.
dataPropNone
,
clickEffectPropSmall
:
this
.
clickEffectPropSmall
,
clickEffectPropMedium
:
this
.
clickEffectPropMedium
,
clickEffectPropLarge
:
this
.
clickEffectPropLarge
,
clickEffectPropNone
:
this
.
clickEffectPropNone
,
dirPropRtl
:
this
.
dirPropRtl
,
dirPropAuto
:
this
.
dirPropAuto
,
dirPropLtr
:
this
.
dirPropLtr
,
dirPropNone
:
this
.
dirPropNone
,
forPropNull
:
this
.
forPropNull
,
forPropOne
:
this
.
forPropOne
,
forPropThree
:
this
.
forPropThree
,
ifPropTrue
:
this
.
ifPropTrue
,
showPropTrue
:
this
.
showPropTrue
,
showPropFalse
:
this
.
showPropFalse
,
showPropNone
:
this
.
showPropNone
,
indexProp
:
this
.
indexProp
,
clickEffectPropNone
:
this
.
clickEffectPropNone
,
dirPropRtl
:
this
.
dirPropRtl
,
dirPropAuto
:
this
.
dirPropAuto
,
dirPropLtr
:
this
.
dirPropLtr
,
dirPropNone
:
this
.
dirPropNone
,
forPropNull
:
this
.
forPropNull
,
forPropOne
:
this
.
forPropOne
,
forPropThree
:
this
.
forPropThree
,
ifPropTrue
:
this
.
ifPropTrue
,
showPropTrue
:
this
.
showPropTrue
,
showPropFalse
:
this
.
showPropFalse
,
showPropNone
:
this
.
showPropNone
,
indexProp
:
this
.
indexProp
,
autoplayPropTrue
:
this
.
autoplayPropTrue
,
autoplayPropFalse
:
this
.
autoplayPropFalse
,
intervalProp
:
this
.
intervalProp
,
...
...
@@ -159,7 +144,9 @@ export default {
this
.
showPropTrue
=
this
.
$element
(
"
showPropTrue
"
).
getInspector
()
this
.
showPropFalse
=
this
.
$element
(
"
showPropFalse
"
).
getInspector
()
this
.
showPropNone
=
this
.
$element
(
"
showPropNone
"
).
getInspector
()
},
getSpecificPropValues
()
{
// 特有属性
this
.
indexProp
=
this
.
$element
(
"
showPropNone
"
).
getInspector
()
this
.
autoplayPropTrue
=
this
.
$element
(
"
autoplayPropTrue
"
).
getInspector
()
...
...
@@ -182,5 +169,5 @@ export default {
this
.
scrollEffectPropSpring
=
this
.
$element
(
"
scrollEffectPropSpring
"
).
getInspector
()
this
.
displayModePropStretch
=
this
.
$element
(
"
displayModePropStretch
"
).
getInspector
()
this
.
displayModePropAutoLinear
=
this
.
$element
(
"
displayModePropAutoLinear
"
).
getInspector
()
}
,
}
}
ace/ace_standard/src/main/js/default/test/pieceProps.test.js
浏览文件 @
db1a6f5b
...
...
@@ -135,33 +135,6 @@ describe('piecePropsJsTest', function () {
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testPieceStyleProp
* @tc.desc ACEs
*/
// it('testPieceStyleProp', 0, async function (done) {
// console.info('testPieceStyleProp START');
// console.info("[pieceProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
//
// let obj = JSON.parse(globalThis.value.styleProp);
// console.info("[pieceProps] get inspector value is: " + JSON.stringify(obj));
// console.info("[pieceProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
//
// expect(obj.$type).assertEqual('piece')
// expect(obj.$attrs.id).assertEqual('styleProp')
// expect(obj.$attrs.style).assertEqual(undefined)
// console.info("[pieceProps] get style value is: " + JSON.stringify(obj.$attrs.style));
//
// expect(obj.$styles.width).assertEqual(undefined);
// console.info("[pieceProps] get style width value is: " + JSON.stringify(obj.$styles.width));
// expect(obj.$styles.height).assertEqual(undefined);
// console.info("[pieceProps] get style height value is: " + JSON.stringify(obj.$styles.height));
// expect(obj.$styles.get('background-color')).assertEqual(undefined);
// console.info("[pieceProps] 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 testPieceRefProp
...
...
ace/ace_standard/src/main/js/default/test/refreshProps.test.js
浏览文件 @
db1a6f5b
...
...
@@ -134,33 +134,6 @@ describe('refreshPropsJsTest', function () {
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testRefreshStyleProp
* @tc.desc ACEs
*/
// it('testRefreshStyleProp', 0, async function (done) {
// console.info('testRefreshStyleProp START');
// console.info("[refreshProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
//
// let obj = JSON.parse(globalThis.value.styleProp);
// console.info("[refreshProps] get inspector value is: " + JSON.stringify(obj));
// console.info("[refreshProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
//
// expect(obj.$type).assertEqual('refresh')
// expect(obj.$attrs.id).assertEqual('styleProp')
// expect(obj.$attrs.style).assertEqual(undefined)
// console.info("[refreshProps] get style value is: " + JSON.stringify(obj.$attrs.style));
//
// expect(obj.$styles.width).assertEqual(undefined);
// console.info("[refreshProps] get style width value is: " + JSON.stringify(obj.$styles.width));
// expect(obj.$styles.height).assertEqual(undefined);
// console.info("[refreshProps] get style height value is: " + JSON.stringify(obj.$styles.height));
// expect(obj.$styles.get('background-color')).assertEqual(undefined);
// console.info("[refreshProps] 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 testRefreshRefProp
...
...
ace/ace_standard/src/main/js/default/test/stackProps.test.js
浏览文件 @
db1a6f5b
...
...
@@ -134,33 +134,6 @@ describe('stackPropsJsTest', function () {
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testStackStyleProp
* @tc.desc ACEs
*/
// it('testStackStyleProp', 0, async function (done) {
// console.info('testStackStyleProp START');
// console.info("[stackProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
//
// let obj = JSON.parse(globalThis.value.styleProp);
// console.info("[stackProps] get inspector value is: " + JSON.stringify(obj));
// console.info("[stackProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
//
// expect(obj.$type).assertEqual('stack')
// expect(obj.$attrs.id).assertEqual('styleProp')
// expect(obj.$attrs.style).assertEqual(undefined)
// console.info("[stackProps] get style value is: " + JSON.stringify(obj.$attrs.style));
//
// expect(obj.$styles.width).assertEqual(undefined);
// console.info("[stackProps] get style width value is: " + JSON.stringify(obj.$styles.width));
// expect(obj.$styles.height).assertEqual(undefined);
// console.info("[stackProps] get style height value is: " + JSON.stringify(obj.$styles.height));
// expect(obj.$styles.get('background-color')).assertEqual(undefined);
// console.info("[stackProps] 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 testStackRefProp
...
...
ace/ace_standard/src/main/js/default/test/swiperProps.test.js
浏览文件 @
db1a6f5b
...
...
@@ -135,33 +135,6 @@ describe('swiperPropsJsTest', function () {
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testSwiperStyleProp
* @tc.desc ACEs
*/
// it('testSwiperStyleProp', 0, async function (done) {
// console.info('testSwiperStyleProp START');
// console.info("[swiperProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
//
// let obj = JSON.parse(globalThis.value.styleProp);
// console.info("[swiperProps] get inspector value is: " + JSON.stringify(obj));
// console.info("[swiperProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
//
// expect(obj.$type).assertEqual('swiper')
// expect(obj.$attrs.id).assertEqual('styleProp')
// expect(obj.$attrs.style).assertEqual(undefined)
// console.info("[swiperProps] get style value is: " + JSON.stringify(obj.$attrs.style));
//
// expect(obj.$styles.width).assertEqual(undefined);
// console.info("[swiperProps] get style width value is: " + JSON.stringify(obj.$styles.width));
// expect(obj.$styles.height).assertEqual(undefined);
// console.info("[swiperProps] get style height value is: " + JSON.stringify(obj.$styles.height));
// expect(obj.$styles.get('background-color')).assertEqual(undefined);
// console.info("[swiperProps] 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 testSwiperRefProp
...
...
@@ -902,7 +875,8 @@ describe('swiperPropsJsTest', function () {
expect
(
obj
.
$type
).
assertEqual
(
'
swiper
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
indicatorDisabledPropTrue
'
)
//ID
expect
(
obj
.
$attrs
.
indicatordisabled
).
assertEqual
(
'
true
'
)
// prop and propValue
console
.
info
(
"
[swiperProps] get indicatordisabled value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
indicatordisabled
));
//prop
console
.
info
(
"
[swiperProps] get indicatordisabled value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
indicatordisabled
));
done
();
});
...
...
@@ -922,7 +896,8 @@ describe('swiperPropsJsTest', function () {
expect
(
obj
.
$type
).
assertEqual
(
'
swiper
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
indicatorDisabledPropFalse
'
)
//ID
expect
(
obj
.
$attrs
.
indicatordisabled
).
assertEqual
(
'
false
'
)
// prop and propValue
console
.
info
(
"
[swiperProps] get indicatordisabled value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
indicatordisabled
));
//prop
console
.
info
(
"
[swiperProps] get indicatordisabled value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
indicatordisabled
));
done
();
});
...
...
ace/ace_standard/src/main/js/default/test/textProps.test.js
浏览文件 @
db1a6f5b
...
...
@@ -136,32 +136,6 @@ describe('textPropsJsTest', function () {
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testTextStyleProp
* @tc.desc ACEs
*/
// it('testTextStyleProp', 0, async function (done) {
// console.info('testTextStyleProp START');
// console.info("[textProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
//
// let obj = JSON.parse(globalThis.value.styleProp);
// console.info("[textProps] get inspector value is: " + JSON.stringify(obj));
// console.info("[textProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
//
// expect(obj.$type).assertEqual('text')
// expect(obj.$attrs.id).assertEqual('styleProp')
// expect(obj.$attrs.style).assertEqual(undefined)
// console.info("[textProps] get style value is: " + JSON.stringify(obj.$attrs.style));
//
// expect(obj.$styles.width).assertEqual(undefined);
// console.info("[textProps] get style width value is: " + JSON.stringify(obj.$styles.width));
// expect(obj.$styles.height).assertEqual(undefined);
// console.info("[textProps] get style height value is: " + JSON.stringify(obj.$styles.height));
// expect(obj.$styles.get('background-color')).assertEqual(undefined);
// console.info("[textProps] get style background-color value is: " + JSON.stringify(obj.$styles.get('background-color')));
// done();
// });
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录