Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
1e5928c1
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看板
提交
1e5928c1
编写于
8月 21, 2022
作者:
Z
zhangxinyue
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
bug fix
Signed-off-by:
N
zhangxinyue
<
zhangxinyue38@huawei.com
>
上级
b13c1c76
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
58 addition
and
65 deletion
+58
-65
arkui/ace_ets_component/entry/src/main/ets/MainAbility/pages/global.ets
...component/entry/src/main/ets/MainAbility/pages/global.ets
+9
-12
arkui/ace_ets_component/entry/src/main/ets/MainAbility/pages/touch.ets
..._component/entry/src/main/ets/MainAbility/pages/touch.ets
+2
-2
arkui/ace_ets_component/entry/src/main/ets/test/SwiperJsunit.test.ets
...s_component/entry/src/main/ets/test/SwiperJsunit.test.ets
+1
-1
arkui/ace_ets_component_three/entry/src/main/ets/MainAbility/pages/button.ets
...ent_three/entry/src/main/ets/MainAbility/pages/button.ets
+2
-2
arkui/ace_ets_component_three/entry/src/main/ets/test/CircleJsunit.test.ets
...onent_three/entry/src/main/ets/test/CircleJsunit.test.ets
+2
-2
arkui/ace_ets_component_two/entry/src/main/ets/test/LoadingProgressJsunit.test.ets
...wo/entry/src/main/ets/test/LoadingProgressJsunit.test.ets
+1
-1
arkui/ace_ets_standard/entry/src/main/ets/test/ScrollJsunit.test.ets
...ts_standard/entry/src/main/ets/test/ScrollJsunit.test.ets
+1
-1
arkui/ace_ets_standard/entry/src/main/ets/test/TextJsunit.test.ets
..._ets_standard/entry/src/main/ets/test/TextJsunit.test.ets
+3
-3
arkui/ace_standard/src/main/js/default/pages/swiper/router/index.js
...standard/src/main/js/default/pages/swiper/router/index.js
+1
-5
arkui/ace_standard/src/main/js/default/test/pickerViewProps.test.js
...standard/src/main/js/default/test/pickerViewProps.test.js
+36
-36
未找到文件。
arkui/ace_ets_component/entry/src/main/ets/MainAbility/pages/global.ets
浏览文件 @
1e5928c1
...
...
@@ -18,7 +18,9 @@
@Component
struct GlobalExample {
private settings: RenderingContextSettings = new RenderingContextSettings (true)
private context: CanvasRenderingContext2D = new CanvasRenderingContext2D(this.settings)
private offContext: OffscreenCanvasRenderingContext2D = new OffscreenCanvasRenderingContext2D(300, 300, this.settings);
onPageShow() {
console.info("global page called")
...
...
@@ -33,7 +35,7 @@ struct GlobalExample {
Canvas(this.context)
.width('100%').height('40%').backgroundColor('#00ffff')
.onReady(() => {
this.
c
ontext.imageSmoothingEnabled = false
this.
offC
ontext.imageSmoothingEnabled = false
this.testImageBitmapSize();
this.testOffscreenCanvas();
this.testImageData();
...
...
@@ -46,27 +48,22 @@ struct GlobalExample {
let img = new ImageBitmap("/images/bg.jpg");
let width = img.width;
let height = img.height;
this.
c
ontext.imageSmoothingEnabled = false;
this.
c
ontext.drawImage(img, 30, 950, 160, 100);
this.
offC
ontext.imageSmoothingEnabled = false;
this.
offC
ontext.drawImage(img, 30, 950, 160, 100);
console.log("imagebitmap_width=" + width);
console.log("imagebitmap_height=" + height);
}
testOffscreenCanvas() {
var offscreen = new OffscreenCanvas(300, 300);
var offCanvas2 = offscreen.getContext("2d");
var img = new Image();
img.src = "/images/bg.jpg";
offCanvas2.drawImage(img, 0, 0, 100, 100);
var bitmap = offscreen.transferToImageBitmap();
this.ctx.transferFromImageBitmap(bitmap);
this.offContext.drawImage(img, 0, 0, 100, 100);
var bitmap = this.offContext.transferToImageBitmap();
this.context.transferFromImageBitmap(bitmap);
}
testImageData() {
var offscreen = new OffscreenCanvas(300, 300);
var offCanvas2 = offscreen.getContext("2d");
var imageData = offCanvas2.createImageData(100, 100);
var imageData = this.offContext.createImageData(100, 100);
var imgData = imageData.data;
console.log("imageData_width=" + imageData.width);
console.log("imageData_height=" + imageData.height);
...
...
arkui/ace_ets_component/entry/src/main/ets/MainAbility/pages/touch.ets
浏览文件 @
1e5928c1
...
...
@@ -78,8 +78,8 @@ struct TouchExample {
console.info('onTouch successful, touchFlag is : ' + this.eventType + ', ' + this.touchFlag)
console.info(this.text = 'TouchType:' + this.eventType
+ '\nDistance between touch point and touch element:\nx: '
+ event.touches[0].x + '\n' + 'y: ' + event.touches[0].y + '\ncomponent globalPos:('
+ event.target.area.globalPos
.x + ',' + event.target.area.globalPos
.y + ')\nwidth:'
+ event.touches[0].x + '\n' + 'y: ' + event.touches[0].y + '\ncomponent globalPos
ition
:('
+ event.target.area.globalPos
ition.x + ',' + event.target.area.globalPosition
.y + ')\nwidth:'
+ event.target.area.width + '\nheight:' + event.target.area.height);
console.log('fang--->A')
try {
...
...
arkui/ace_ets_component/entry/src/main/ets/test/SwiperJsunit.test.ets
浏览文件 @
1e5928c1
...
...
@@ -466,7 +466,7 @@ export default function swiperJsunit() {
let strJsonNew = getInspectorByKey('swiper');
let objNew = JSON.parse(strJsonNew);
console.info("swiperTest_1900 component objNew is: " + JSON.stringify(objNew));
expect(objNew.$attrs.duration).assertEqual('
0.000000
');
expect(objNew.$attrs.duration).assertEqual('
nan
');
console.info('swiperTest_1900 END');
done();
});
...
...
arkui/ace_ets_component_three/entry/src/main/ets/MainAbility/pages/button.ets
浏览文件 @
1e5928c1
...
...
@@ -123,8 +123,8 @@ struct ButtonExample {
.position({x: 50,y: 400})
.onClick((event: ClickEvent) => {
console.info(this.text = 'Click Point:' + '\n screenX:' + event.screenX + '\n screenY:' + event.screenY
+ '\n x :' + event.x + '\n y:' + event.y + '\ntarget:' + '\n component globalPos:('
+ event.target.area.globalPos
.x + ',' + event.target.area.globalPos
.y + ')\n width:'
+ '\n x :' + event.x + '\n y:' + event.y + '\ntarget:' + '\n component globalPos
ition
:('
+ event.target.area.globalPos
ition.x + ',' + event.target.area.globalPosition
.y + ')\n width:'
+ event.target.area.width + '\n height:' + event.target.area.height);
this.onClickValue = true;
try {
...
...
arkui/ace_ets_component_three/entry/src/main/ets/test/CircleJsunit.test.ets
浏览文件 @
1e5928c1
...
...
@@ -109,8 +109,8 @@ export default function circleJsunit() {
let strJson = getInspectorByKey('circle');
let obj = JSON.parse(strJson);
console.info("[circleTest_0300] component objNew is: " + JSON.stringify(obj));
expect(obj.$attrs.width).assertEqual('0.00
px
');
expect(obj.$attrs.height).assertEqual('0.00
px
');
expect(obj.$attrs.width).assertEqual('0.00
vp
');
expect(obj.$attrs.height).assertEqual('0.00
vp
');
console.info('circleTest_0300 END');
done();
});
...
...
arkui/ace_ets_component_two/entry/src/main/ets/test/LoadingProgressJsunit.test.ets
浏览文件 @
1e5928c1
...
...
@@ -83,7 +83,7 @@ export default function loadingProgressJsunit() {
let strJson = getInspectorByKey('LP');
let obj = JSON.parse(strJson);
console.info("testLoadingProgress_400 component obj is: " + JSON.stringify(obj));
expect(obj.$attrs.borderWidth).assertEqual("0.00
px
");
expect(obj.$attrs.borderWidth).assertEqual("0.00
vp
");
console.info('testLoadingProgress_400 END');
done();
});
...
...
arkui/ace_ets_standard/entry/src/main/ets/test/ScrollJsunit.test.ets
浏览文件 @
1e5928c1
...
...
@@ -89,7 +89,7 @@ export default function ScrollJsunit() {
console.log("cd scroll1 scrollable" + JSON.stringify(obj.$attrs.scrollable));
console.log("cd scroll1 scrollBar" + JSON.stringify(obj.$attrs.scrollBar));
expect(obj.$attrs.scrollable).assertEqual('ScrollDirection.Horizontal')
expect(obj.$attrs.scrollBar).assertEqual('BarState.
Off
')
expect(obj.$attrs.scrollBar).assertEqual('BarState.
Auto
')
console.info('cd Scorll1GetInspectorByKey END');
done();
});
...
...
arkui/ace_ets_standard/entry/src/main/ets/test/TextJsunit.test.ets
浏览文件 @
1e5928c1
...
...
@@ -93,7 +93,7 @@ export default function textJsunit() {
expect(obj.$attrs.fontWeight).assertEqual("FontWeight.Bold")
expect(obj.$attrs.fontStyle).assertEqual("FontStyle.Italic")
expect(obj.$attrs.fontFamily).assertEqual("sans-serif")
expect(obj.$attrs.textAlign).assertEqual("TextAlign.
End
")
expect(obj.$attrs.textAlign).assertEqual("TextAlign.
Center
")
expect(obj.$attrs.textOverflow).assertEqual("TextOverflow.Ellipsis")
expect(obj.$attrs.lineHeight).assertEqual("15.00fp")
expect(obj.$attrs.baselineOffset).assertEqual("0")
...
...
@@ -125,7 +125,7 @@ export default function textJsunit() {
expect(obj.$attrs.enabled).assertEqual(true)
expect(obj.$attrs.visibility).assertEqual("Visibility.Hidden")
expect(obj.$attrs.fontWeight).assertEqual("FontWeight.Normal")
expect(obj.$attrs.textAlign).assertEqual("TextAlign.
Star
t")
expect(obj.$attrs.textAlign).assertEqual("TextAlign.
Lef
t")
expect(obj.$attrs.textOverflow).assertEqual("TextOverflow.Clip")
expect(obj.$attrs.decoration).assertEqual(JSON.stringify({
type: "TextDecorationType.LineThrough", color: "#FFFF0000"
...
...
@@ -150,7 +150,7 @@ export default function textJsunit() {
expect(obj.$attrs.borderStyle).assertEqual("BorderStyle.Solid")
expect(obj.$attrs.visibility).assertEqual("Visibility.None")
expect(obj.$attrs.fontWeight).assertEqual("FontWeight.Bolder")
expect(obj.$attrs.textAlign).assertEqual("TextAlign.
Center
")
expect(obj.$attrs.textAlign).assertEqual("TextAlign.
Right
")
expect(obj.$attrs.textCase).assertEqual("TextCase.UpperCase")
expect(obj.$attrs.decoration).assertEqual(JSON.stringify({
type: "TextDecorationType.None", color: "#FFFF0000"
...
...
arkui/ace_standard/src/main/js/default/pages/swiper/router/index.js
浏览文件 @
1e5928c1
...
...
@@ -102,12 +102,8 @@ export default {
onShow
(){
// 通用属性
var
prop1
=
this
.
$element
(
'
prop1
'
);
var
name1
=
prop1
.
dataSet
.
name
var
prop2
=
this
.
$refs
.
prop2
;
var
name2
=
prop2
.
dataSet
.
name
prompt
.
showToast
({
message
:
'
prop1--
'
+
name1
+
'
\n
prop2--
'
+
name2
message
:
'
onShow
'
});
},
...
...
arkui/ace_standard/src/main/js/default/test/pickerViewProps.test.js
浏览文件 @
1e5928c1
...
...
@@ -91,7 +91,7 @@
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
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-view
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
idProp
'
)
done
();
});
...
...
@@ -109,7 +109,7 @@
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
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-view
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
classProp
'
)
expect
(
obj
.
$attrs
.
className
).
assertEqual
(
'
classProp
'
)
done
();
...
...
@@ -128,7 +128,7 @@
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
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-view
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
classPropNone
'
)
expect
(
obj
.
$attrs
.
className
).
assertEqual
(
undefined
)
console
.
info
(
"
[pickerViewProps] get className value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
className
));
...
...
@@ -148,7 +148,7 @@
// 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-view')
// expect(obj.$type).assertEqual('picker-view
-view
')
// expect(obj.$attrs.id).assertEqual('styleProp')
// expect(obj.$attrs.style).assertEqual(undefined)
// console.info("[pickerViewProps] get style value is: " + JSON.stringify(obj.$attrs.style));
...
...
@@ -174,7 +174,7 @@
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
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-view
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
refProp
'
)
expect
(
obj
.
$attrs
.
ref
).
assertEqual
(
'
refProp
'
)
done
();
...
...
@@ -193,7 +193,7 @@
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
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-view
'
)
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 @@
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
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-view
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
disabledPropTrue
'
)
expect
(
obj
.
$attrs
.
disabled
).
assertEqual
(
'
true
'
)
done
();
...
...
@@ -232,7 +232,7 @@
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
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-view
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
disabledPropFalse
'
)
expect
(
obj
.
$attrs
.
disabled
).
assertEqual
(
'
false
'
)
done
();
...
...
@@ -251,7 +251,7 @@
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
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-view
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
disabledPropNone
'
)
expect
(
obj
.
$attrs
.
disabled
).
assertEqual
(
'
false
'
)
done
();
...
...
@@ -270,7 +270,7 @@
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
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-view
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
focusablePropTrue
'
)
expect
(
obj
.
$attrs
.
focusable
).
assertEqual
(
'
true
'
)
done
();
...
...
@@ -289,7 +289,7 @@
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
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-view
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
focusablePropFalse
'
)
expect
(
obj
.
$attrs
.
focusable
).
assertEqual
(
'
false
'
)
done
();
...
...
@@ -308,7 +308,7 @@
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
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-view
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
focusablePropNone
'
)
expect
(
obj
.
$attrs
.
focusable
).
assertEqual
(
'
false
'
)
done
();
...
...
@@ -327,7 +327,7 @@
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
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-view
'
)
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 @@
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
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-view
'
)
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 @@
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
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-view
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
clickEffectPropSmall
'
)
expect
(
obj
.
$attrs
.
clickEffect
).
assertEqual
(
'
spring-small
'
)
done
();
...
...
@@ -386,7 +386,7 @@
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
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-view
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
clickEffectPropMedium
'
)
expect
(
obj
.
$attrs
.
clickEffect
).
assertEqual
(
'
spring-medium
'
)
done
();
...
...
@@ -405,7 +405,7 @@
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
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-view
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
clickEffectPropLarge
'
)
expect
(
obj
.
$attrs
.
clickEffect
).
assertEqual
(
'
spring-large
'
)
done
();
...
...
@@ -424,7 +424,7 @@
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
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-view
'
)
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 @@
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
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-view
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
dirPropRtl
'
)
expect
(
obj
.
$attrs
.
dir
).
assertEqual
(
'
rtl
'
)
done
();
...
...
@@ -463,7 +463,7 @@
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
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-view
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
dirPropLtr
'
)
expect
(
obj
.
$attrs
.
dir
).
assertEqual
(
'
ltr
'
)
done
();
...
...
@@ -482,7 +482,7 @@
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
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-view
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
dirPropAuto
'
)
expect
(
obj
.
$attrs
.
dir
).
assertEqual
(
'
auto
'
)
done
();
...
...
@@ -501,7 +501,7 @@
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
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-view
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
dirPropNone
'
)
expect
(
obj
.
$attrs
.
dir
).
assertEqual
(
'
auto
'
)
done
();
...
...
@@ -520,7 +520,7 @@
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
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-view
'
)
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 @@
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
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-view
'
)
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 @@
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
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-view
'
)
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 @@
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
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-view
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
ifPropTrue
'
)
expect
(
obj
.
$attrs
.
if
).
assertEqual
(
undefined
)
console
.
info
(
"
[pickerViewProps] get for value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
if
));
...
...
@@ -600,7 +600,7 @@
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-view')
expect(obj.$type).assertEqual('picker-view
-view
')
expect(obj.$attrs.id).assertEqual('ifPropFalse')
expect(obj.$attrs.if).assertEqual(false)
done();
...
...
@@ -619,7 +619,7 @@
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-view')
expect(obj.$type).assertEqual('picker-view
-view
')
expect(obj.$attrs.id).assertEqual('ifPropNone')
expect(obj.$attrs.if).assertEqual(false)
done();
...
...
@@ -638,7 +638,7 @@
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
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-view
'
)
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 @@
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
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-view
'
)
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 @@
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
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-view
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
showPropNone
'
)
expect
(
obj
.
$attrs
.
show
).
assertEqual
(
'
true
'
)
console
.
info
(
"
[pickerViewProps] get show value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
show
));
...
...
@@ -698,7 +698,7 @@
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
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-view
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
pickerViewText
'
)
expect
(
obj
.
$attrs
.
type
).
assertEqual
(
'
text
'
)
console
.
info
(
"
[pickerViewProps] get type value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
type
));
...
...
@@ -718,7 +718,7 @@
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
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-view
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
pickerViewTime
'
)
expect
(
obj
.
$attrs
.
type
).
assertEqual
(
'
time
'
)
console
.
info
(
"
[pickerViewProps] get type value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
type
));
...
...
@@ -738,7 +738,7 @@
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
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-view
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
pickerViewDate
'
)
expect
(
obj
.
$attrs
.
type
).
assertEqual
(
'
date
'
)
console
.
info
(
"
[pickerViewProps] get type value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
type
));
...
...
@@ -758,7 +758,7 @@
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
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-view
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
pickerViewDatetime
'
)
expect
(
obj
.
$attrs
.
type
).
assertEqual
(
'
datetime
'
)
console
.
info
(
"
[pickerViewProps] get type value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
type
));
...
...
@@ -778,7 +778,7 @@
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
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
picker
-view
'
)
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
));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录