Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
bc0ad430
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看板
提交
bc0ad430
编写于
2月 22, 2022
作者:
B
bayanxing
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
modify testcase
Signed-off-by:
N
bayanxing
<
bayanxing@kaihongdigi.com
>
上级
beeedaf0
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
157 addition
and
156 deletion
+157
-156
ace/ace_standard/src/main/js/default/pages/pickerView/prop/index.hml
...ndard/src/main/js/default/pages/pickerView/prop/index.hml
+39
-39
ace/ace_standard/src/main/js/default/pages/pickerView/prop/index.js
...andard/src/main/js/default/pages/pickerView/prop/index.js
+19
-19
ace/ace_standard/src/main/js/default/test/dividerProps.test.js
...ce_standard/src/main/js/default/test/dividerProps.test.js
+1
-0
ace/ace_standard/src/main/js/default/test/pickerViewProps.test.js
...standard/src/main/js/default/test/pickerViewProps.test.js
+98
-98
未找到文件。
ace/ace_standard/src/main/js/default/pages/pickerView/prop/index.hml
浏览文件 @
bc0ad430
...
...
@@ -164,44 +164,44 @@
<text class="sub-title">
picker-view特有属性 -- type
</text>
<picker-view
id="pickerViewText"
type="text"
selected="0"
range="{{rangetext}}"
indicatorprefix="前缀"
indicatorsuffix="后缀"
></picker-view
>
<picker-view
id="pickerViewTime"
type="time"
containsecond="true"
selected="11:22:30"
hours="12"
></picker-view
>
<picker-view
id="pickerViewDate"
type="date"
start="2002-2-5"
end="2030-6-5"
selected="2022-2-22"
lunar="false"
lunarswitch="true"
></picker-view
>
<picker-view
id="pickerViewDatetime"
type="datetime"
selected=""
hours="12"
lunar="false"
lunarswitch="true"
></picker-view
>
<picker-view
id="pickerViewMultiText"
type="multi-text"
columns="3"
range="{{multitext}}"
selected="{{multitextselect}}"
></picker-view
>
<!-- <picker-view-->
<!-- id="pickerViewText"-->
<!-- type="text"-->
<!-- selected="0"-->
<!-- range="{{rangetext}}"-->
<!-- indicatorprefix="前缀"-->
<!-- indicatorsuffix="后缀"-->
<!-- ></picker-view>--
>
<!-- <picker-view-->
<!-- id="pickerViewTime"-->
<!-- type="time"-->
<!-- containsecond="true"-->
<!-- selected="11:22:30"-->
<!-- hours="12"-->
<!-- ></picker-view>--
>
<!-- <picker-view-->
<!-- id="pickerViewDate"-->
<!-- type="date"-->
<!-- start="2002-2-5"-->
<!-- end="2030-6-5"-->
<!-- selected="2022-2-22"-->
<!-- lunar="false"-->
<!-- lunarswitch="true"-->
<!-- ></picker-view>--
>
<!-- <picker-view-->
<!-- id="pickerViewDatetime"-->
<!-- type="datetime"-->
<!-- selected=""-->
<!-- hours="12"-->
<!-- lunar="false"-->
<!-- lunarswitch="true"-->
<!-- ></picker-view>--
>
<!-- <picker-view-->
<!-- id="pickerViewMultiText"-->
<!-- type="multi-text"-->
<!-- columns="3"-->
<!-- range="{{multitext}}"-->
<!-- selected="{{multitextselect}}"-->
<!-- ></picker-view>--
>
</div>
</div>
ace/ace_standard/src/main/js/default/pages/pickerView/prop/index.js
浏览文件 @
bc0ad430
...
...
@@ -48,19 +48,19 @@ export default {
showPropTrue
:
null
,
showPropFalse
:
null
,
showPropNone
:
null
,
rangetext
:[
'
15
'
,
"
20
"
,
"
25
"
],
multitext
:[[
"
a
"
,
"
b
"
,
"
c
"
],
[
"
e
"
,
"
f
"
,
"
g
"
],
[
"
h
"
,
"
i
"
],
[
"
k
"
,
"
l
"
,
"
m
"
]],
multitextselect
:[
1
,
2
,
0
],
pickerViewText
:
null
,
pickerViewDate
:
null
,
pickerViewTime
:
null
,
pickerViewDatetime
:
null
,
pickerViewMultiText
:
null
//
rangetext:['15', "20", "25"],
//
multitext:[["a", "b", "c"], ["e", "f", "g"], ["h", "i"], ["k", "l", "m"]],
//
multitextselect:[1,2,0],
//
pickerViewText: null,
//
pickerViewDate: null,
//
pickerViewTime: null,
//
pickerViewDatetime: null,
//
pickerViewMultiText: null
},
onShow
(){
this
.
getCommonPropValues
();
this
.
getSpecificPropValues
();
//
this.getSpecificPropValues();
globalThis
.
value
=
{
idProp
:
this
.
idProp
,
classProp
:
this
.
classProp
,
...
...
@@ -91,11 +91,11 @@ export default {
showPropTrue
:
this
.
showPropTrue
,
showPropFalse
:
this
.
showPropFalse
,
showPropNone
:
this
.
showPropNone
,
pickerViewText
:
this
.
pickerViewText
,
pickerViewDate
:
this
.
pickerViewDate
,
pickerViewTime
:
this
.
pickerViewTime
,
pickerViewDatetime
:
this
.
pickerViewDatetime
,
pickerViewMultiText
:
this
.
pickerViewMultiText
//
pickerViewText: this.pickerViewText,
//
pickerViewDate: this.pickerViewDate,
//
pickerViewTime: this.pickerViewTime,
//
pickerViewDatetime: this.pickerViewDatetime,
//
pickerViewMultiText: this.pickerViewMultiText
}
},
...
...
@@ -131,10 +131,10 @@ export default {
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
()
//
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/test/dividerProps.test.js
浏览文件 @
bc0ad430
...
...
@@ -570,6 +570,7 @@ describe('dividerPropsJsTest', function () {
console
.
info
(
"
[dividerProps] get show value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
show
));
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testDividerVerticalTrue
...
...
ace/ace_standard/src/main/js/default/test/pickerViewProps.test.js
浏览文件 @
bc0ad430
...
...
@@ -91,7 +91,7 @@ describe('pickerViewPropsJsTest', function () {
console
.
info
(
"
[pickerViewProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[pickerViewProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
picker
V
iew
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-v
iew
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
idProp
'
)
done
();
});
...
...
@@ -109,7 +109,7 @@ describe('pickerViewPropsJsTest', function () {
console
.
info
(
"
[pickerViewProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[pickerViewProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
picker
V
iew
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-v
iew
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
classProp
'
)
expect
(
obj
.
$attrs
.
className
).
assertEqual
(
'
classProp
'
)
done
();
...
...
@@ -128,7 +128,7 @@ describe('pickerViewPropsJsTest', function () {
console
.
info
(
"
[pickerViewProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[pickerViewProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
picker
V
iew
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-v
iew
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
classPropNone
'
)
expect
(
obj
.
$attrs
.
className
).
assertEqual
(
undefined
)
console
.
info
(
"
[pickerViewProps] get className value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
className
));
...
...
@@ -174,7 +174,7 @@ describe('pickerViewPropsJsTest', function () {
console
.
info
(
"
[pickerViewProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[pickerViewProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
picker
V
iew
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-v
iew
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
refProp
'
)
expect
(
obj
.
$attrs
.
ref
).
assertEqual
(
'
refProp
'
)
done
();
...
...
@@ -193,7 +193,7 @@ describe('pickerViewPropsJsTest', function () {
console
.
info
(
"
[pickerViewProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[pickerViewProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
picker
V
iew
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-v
iew
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
refPropNone
'
)
expect
(
obj
.
$attrs
.
ref
).
assertEqual
(
undefined
)
console
.
info
(
"
[pickerViewProps] get ref value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
ref
));
...
...
@@ -213,7 +213,7 @@ describe('pickerViewPropsJsTest', function () {
console
.
info
(
"
[pickerViewProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[pickerViewProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
picker
V
iew
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-v
iew
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
disabledPropTrue
'
)
expect
(
obj
.
$attrs
.
disabled
).
assertEqual
(
'
true
'
)
done
();
...
...
@@ -232,7 +232,7 @@ describe('pickerViewPropsJsTest', function () {
console
.
info
(
"
[pickerViewProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[pickerViewProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
picker
V
iew
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-v
iew
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
disabledPropFalse
'
)
expect
(
obj
.
$attrs
.
disabled
).
assertEqual
(
'
false
'
)
done
();
...
...
@@ -251,7 +251,7 @@ describe('pickerViewPropsJsTest', function () {
console
.
info
(
"
[pickerViewProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[pickerViewProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
picker
V
iew
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-v
iew
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
disabledPropNone
'
)
expect
(
obj
.
$attrs
.
disabled
).
assertEqual
(
'
false
'
)
done
();
...
...
@@ -270,7 +270,7 @@ describe('pickerViewPropsJsTest', function () {
console
.
info
(
"
[pickerViewProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[pickerViewProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
picker
V
iew
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-v
iew
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
focusablePropTrue
'
)
expect
(
obj
.
$attrs
.
focusable
).
assertEqual
(
'
true
'
)
done
();
...
...
@@ -289,7 +289,7 @@ describe('pickerViewPropsJsTest', function () {
console
.
info
(
"
[pickerViewProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[pickerViewProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
picker
V
iew
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-v
iew
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
focusablePropFalse
'
)
expect
(
obj
.
$attrs
.
focusable
).
assertEqual
(
'
false
'
)
done
();
...
...
@@ -308,7 +308,7 @@ describe('pickerViewPropsJsTest', function () {
console
.
info
(
"
[pickerViewProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[pickerViewProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
picker
V
iew
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-v
iew
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
focusablePropNone
'
)
expect
(
obj
.
$attrs
.
focusable
).
assertEqual
(
'
false
'
)
done
();
...
...
@@ -327,7 +327,7 @@ describe('pickerViewPropsJsTest', function () {
console
.
info
(
"
[pickerViewProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[pickerViewProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
picker
V
iew
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-v
iew
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
dataProp
'
)
expect
(
obj
.
$attrs
.
datapickerView
).
assertEqual
(
undefined
);
console
.
info
(
"
[pickerViewProps] get datapickerView value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
datapickerView
));
...
...
@@ -347,7 +347,7 @@ describe('pickerViewPropsJsTest', function () {
console
.
info
(
"
[pickerViewProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[pickerViewProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
picker
V
iew
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-v
iew
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
dataPropNone
'
)
expect
(
obj
.
$attrs
.
datapickerView
).
assertEqual
(
undefined
)
console
.
info
(
"
[pickerViewProps] get datapickerView value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
datapickerView
));
...
...
@@ -367,7 +367,7 @@ describe('pickerViewPropsJsTest', function () {
console
.
info
(
"
[pickerViewProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[pickerViewProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
picker
V
iew
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-v
iew
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
clickEffectPropSmall
'
)
expect
(
obj
.
$attrs
.
clickEffect
).
assertEqual
(
'
spring-small
'
)
done
();
...
...
@@ -386,7 +386,7 @@ describe('pickerViewPropsJsTest', function () {
console
.
info
(
"
[pickerViewProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[pickerViewProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
picker
V
iew
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-v
iew
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
clickEffectPropMedium
'
)
expect
(
obj
.
$attrs
.
clickEffect
).
assertEqual
(
'
spring-medium
'
)
done
();
...
...
@@ -405,7 +405,7 @@ describe('pickerViewPropsJsTest', function () {
console
.
info
(
"
[pickerViewProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[pickerViewProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
picker
V
iew
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-v
iew
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
clickEffectPropLarge
'
)
expect
(
obj
.
$attrs
.
clickEffect
).
assertEqual
(
'
spring-large
'
)
done
();
...
...
@@ -424,7 +424,7 @@ describe('pickerViewPropsJsTest', function () {
console
.
info
(
"
[pickerViewProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[pickerViewProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
picker
V
iew
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-v
iew
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
clickEffectPropNone
'
)
expect
(
obj
.
$attrs
.
clickEffect
).
assertEqual
(
undefined
)
console
.
info
(
"
[pickerViewProps] get clickEffect value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
clickEffect
));
...
...
@@ -444,7 +444,7 @@ describe('pickerViewPropsJsTest', function () {
console
.
info
(
"
[pickerViewProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[pickerViewProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
picker
V
iew
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-v
iew
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
dirPropRtl
'
)
expect
(
obj
.
$attrs
.
dir
).
assertEqual
(
'
rtl
'
)
done
();
...
...
@@ -463,7 +463,7 @@ describe('pickerViewPropsJsTest', function () {
console
.
info
(
"
[pickerViewProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[pickerViewProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
picker
V
iew
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-v
iew
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
dirPropLtr
'
)
expect
(
obj
.
$attrs
.
dir
).
assertEqual
(
'
ltr
'
)
done
();
...
...
@@ -482,7 +482,7 @@ describe('pickerViewPropsJsTest', function () {
console
.
info
(
"
[pickerViewProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[pickerViewProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
picker
V
iew
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-v
iew
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
dirPropAuto
'
)
expect
(
obj
.
$attrs
.
dir
).
assertEqual
(
'
auto
'
)
done
();
...
...
@@ -501,7 +501,7 @@ describe('pickerViewPropsJsTest', function () {
console
.
info
(
"
[pickerViewProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[pickerViewProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
picker
V
iew
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-v
iew
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
dirPropNone
'
)
expect
(
obj
.
$attrs
.
dir
).
assertEqual
(
'
auto
'
)
done
();
...
...
@@ -520,7 +520,7 @@ describe('pickerViewPropsJsTest', function () {
console
.
info
(
"
[pickerViewProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[pickerViewProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
picker
V
iew
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-v
iew
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
forPropNull
'
)
expect
(
obj
.
$attrs
.
for
).
assertEqual
(
undefined
)
console
.
info
(
"
[pickerViewProps] get for value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
for
));
...
...
@@ -540,7 +540,7 @@ describe('pickerViewPropsJsTest', function () {
console
.
info
(
"
[pickerViewProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[pickerViewProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
picker
V
iew
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-v
iew
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
forPropOne
'
)
expect
(
obj
.
$attrs
.
for
).
assertEqual
(
undefined
)
console
.
info
(
"
[pickerViewProps] get for value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
for
));
...
...
@@ -560,7 +560,7 @@ describe('pickerViewPropsJsTest', function () {
console
.
info
(
"
[pickerViewProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[pickerViewProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
picker
V
iew
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-v
iew
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
forPropThree
'
)
expect
(
obj
.
$attrs
.
for
).
assertEqual
(
undefined
)
console
.
info
(
"
[pickerViewProps] get for value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
for
));
...
...
@@ -580,7 +580,7 @@ describe('pickerViewPropsJsTest', function () {
console
.
info
(
"
[pickerViewProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[pickerViewProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
picker
V
iew
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-v
iew
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
ifPropTrue
'
)
expect
(
obj
.
$attrs
.
if
).
assertEqual
(
undefined
)
console
.
info
(
"
[pickerViewProps] get for value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
if
));
...
...
@@ -638,7 +638,7 @@ describe('pickerViewPropsJsTest', function () {
console
.
info
(
"
[pickerViewProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[pickerViewProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
picker
V
iew
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-v
iew
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
showPropTrue
'
)
expect
(
obj
.
$attrs
.
show
).
assertEqual
(
'
true
'
)
console
.
info
(
"
[pickerViewProps] get show value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
show
));
...
...
@@ -658,7 +658,7 @@ describe('pickerViewPropsJsTest', function () {
console
.
info
(
"
[pickerViewProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[pickerViewProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
picker
V
iew
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-v
iew
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
showPropFalse
'
)
expect
(
obj
.
$attrs
.
show
).
assertEqual
(
'
false
'
)
console
.
info
(
"
[pickerViewProps] get show value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
show
));
...
...
@@ -678,7 +678,7 @@ describe('pickerViewPropsJsTest', function () {
console
.
info
(
"
[pickerViewProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[pickerViewProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
picker
V
iew
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-v
iew
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
showPropNone
'
)
expect
(
obj
.
$attrs
.
show
).
assertEqual
(
'
true
'
)
console
.
info
(
"
[pickerViewProps] get show value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
show
));
...
...
@@ -690,98 +690,98 @@ describe('pickerViewPropsJsTest', function () {
* @tc.name testPickerViewPickerViewText
* @tc.desc ACE
*/
it
(
'
testPickerViewPickerViewText
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testPickerViewPickerViewText START
'
);
console
.
info
(
"
[pickerViewProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
pickerViewText
);
console
.
info
(
"
[pickerViewProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[pickerViewProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
pickerView
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
pickerViewText
'
)
expect
(
obj
.
$attrs
.
type
).
assertEqual
(
'
text
'
)
console
.
info
(
"
[pickerViewProps] get type value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
type
));
done
();
});
//
it('testPickerViewPickerViewText', 0, async function (done) {
//
console.info('testPickerViewPickerViewText START');
//
console.info("[pickerViewProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
//
//
let obj = JSON.parse(globalThis.value.pickerViewText);
//
console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj));
//
console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
//
//
expect(obj.$type).assertEqual('pickerView')
//
expect(obj.$attrs.id).assertEqual('pickerViewText')
//
expect(obj.$attrs.type).assertEqual('text')
//
console.info("[pickerViewProps] get type value is: " + JSON.stringify(obj.$attrs.type));
//
done();
//
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testPickerViewPickerViewTime
* @tc.desc ACE
*/
it
(
'
testPickerViewPickerViewTime
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testPickerViewPickerViewTime START
'
);
console
.
info
(
"
[pickerViewProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
pickerViewTime
);
console
.
info
(
"
[pickerViewProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[pickerViewProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
pickerView
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
pickerViewTime
'
)
expect
(
obj
.
$attrs
.
type
).
assertEqual
(
'
time
'
)
console
.
info
(
"
[pickerViewProps] get type value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
type
));
done
();
});
//
it('testPickerViewPickerViewTime', 0, async function (done) {
//
console.info('testPickerViewPickerViewTime START');
//
console.info("[pickerViewProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
//
//
let obj = JSON.parse(globalThis.value.pickerViewTime);
//
console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj));
//
console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
//
//
expect(obj.$type).assertEqual('pickerView')
//
expect(obj.$attrs.id).assertEqual('pickerViewTime')
//
expect(obj.$attrs.type).assertEqual('time')
//
console.info("[pickerViewProps] get type value is: " + JSON.stringify(obj.$attrs.type));
//
done();
//
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testPickerViewPickerViewDate
* @tc.desc ACE
*/
it
(
'
testPickerViewPickerViewDate
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testPickerViewPickerViewDate START
'
);
console
.
info
(
"
[pickerViewProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
pickerViewDate
);
console
.
info
(
"
[pickerViewProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[pickerViewProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
pickerView
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
pickerViewDate
'
)
expect
(
obj
.
$attrs
.
type
).
assertEqual
(
'
date
'
)
console
.
info
(
"
[pickerViewProps] get type value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
type
));
done
();
});
//
it('testPickerViewPickerViewDate', 0, async function (done) {
//
console.info('testPickerViewPickerViewDate START');
//
console.info("[pickerViewProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
//
//
let obj = JSON.parse(globalThis.value.pickerViewDate);
//
console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj));
//
console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
//
//
expect(obj.$type).assertEqual('pickerView')
//
expect(obj.$attrs.id).assertEqual('pickerViewDate')
//
expect(obj.$attrs.type).assertEqual('date')
//
console.info("[pickerViewProps] get type value is: " + JSON.stringify(obj.$attrs.type));
//
done();
//
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testPickerViewPickerViewDatetime
* @tc.desc ACE
*/
it
(
'
testPickerViewPickerViewDatetime
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testPickerViewPickerViewDatetime START
'
);
console
.
info
(
"
[pickerViewProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
pickerViewDatetime
);
console
.
info
(
"
[pickerViewProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[pickerViewProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
pickerView
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
pickerViewDatetime
'
)
expect
(
obj
.
$attrs
.
type
).
assertEqual
(
'
datetime
'
)
console
.
info
(
"
[pickerViewProps] get type value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
type
));
done
();
});
//
it('testPickerViewPickerViewDatetime', 0, async function (done) {
//
console.info('testPickerViewPickerViewDatetime START');
//
console.info("[pickerViewProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
//
//
let obj = JSON.parse(globalThis.value.pickerViewDatetime);
//
console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj));
//
console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
//
//
expect(obj.$type).assertEqual('pickerView')
//
expect(obj.$attrs.id).assertEqual('pickerViewDatetime')
//
expect(obj.$attrs.type).assertEqual('datetime')
//
console.info("[pickerViewProps] get type value is: " + JSON.stringify(obj.$attrs.type));
//
done();
//
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testPickerViewPickerViewMultiText
* @tc.desc ACE
*/
it
(
'
testPickerViewPickerViewMultiText
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testPickerViewPickerViewMultiText START
'
);
console
.
info
(
"
[pickerViewProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
pickerViewMultiText
);
console
.
info
(
"
[pickerViewProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[pickerViewProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
pickerView
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
pickerViewMultiText
'
)
expect
(
obj
.
$attrs
.
type
).
assertEqual
(
'
multi-text
'
)
console
.
info
(
"
[pickerViewProps] get type value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
type
));
done
();
});
//
it('testPickerViewPickerViewMultiText', 0, async function (done) {
//
console.info('testPickerViewPickerViewMultiText START');
//
console.info("[pickerViewProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
//
//
let obj = JSON.parse(globalThis.value.pickerViewMultiText);
//
console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj));
//
console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
//
//
expect(obj.$type).assertEqual('pickerView')
//
expect(obj.$attrs.id).assertEqual('pickerViewMultiText')
//
expect(obj.$attrs.type).assertEqual('multi-text')
//
console.info("[pickerViewProps] get type value is: " + JSON.stringify(obj.$attrs.type));
//
done();
//
});
});
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录