Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
4c7393c7
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看板
提交
4c7393c7
编写于
3月 09, 2023
作者:
W
wmlih
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
test:fix compile mistake
Signed-off-by:
N
wmlih
<
wmlih@isoftstone.com
>
上级
2ecd66c2
变更
9
显示空白变更内容
内联
并排
Showing
9 changed file
with
15 addition
and
17 deletion
+15
-17
arkui/ace_ets_component_attrlack/entry/src/main/ets/MainAbility/pages/page1.ets
...t_attrlack/entry/src/main/ets/MainAbility/pages/page1.ets
+2
-2
arkui/ace_ets_component_attrlack/entry/src/main/ets/MainAbility/pages/page2.ets
...t_attrlack/entry/src/main/ets/MainAbility/pages/page2.ets
+2
-2
arkui/ace_ets_component_attrlack/entry/src/main/ets/MainAbility/pages/router.ets
..._attrlack/entry/src/main/ets/MainAbility/pages/router.ets
+1
-3
arkui/ace_ets_layout_test/entry/src/main/ets/MainAbility/pages/Flex/justifyContent/Center/AlignCenter_AddOffset.ets
...ages/Flex/justifyContent/Center/AlignCenter_AddOffset.ets
+1
-1
arkui/ace_ets_layout_test/entry/src/main/ets/MainAbility/pages/Flex/justifyContent/End/AlignEnd_AddOffset.ets
...lity/pages/Flex/justifyContent/End/AlignEnd_AddOffset.ets
+1
-1
arkui/ace_ets_layout_test/entry/src/main/ets/MainAbility/pages/Flex/justifyContent/SpaceEvenly/AlignSpaceEvenly_AddOffset.ets
...justifyContent/SpaceEvenly/AlignSpaceEvenly_AddOffset.ets
+1
-1
arkui/ace_ets_layout_test/entry/src/main/ets/MainAbility/pages/Flex/justifyContent/Start/AlignStart_AddOffset.ets
.../pages/Flex/justifyContent/Start/AlignStart_AddOffset.ets
+1
-1
arkui/ace_ets_layout_test/entry/src/main/ets/test/Flex/alignItems/ItemAlign_Auto/FlexExceedJsunit.test.ets
.../Flex/alignItems/ItemAlign_Auto/FlexExceedJsunit.test.ets
+3
-3
arkui/ace_ets_layout_test/entry/src/main/ets/test/Flex/alignItems/ItemAlign_Auto/FlexPaddingJsunit.test.ets
...Flex/alignItems/ItemAlign_Auto/FlexPaddingJsunit.test.ets
+3
-3
未找到文件。
arkui/ace_ets_component_attrlack/entry/src/main/ets/MainAbility/pages/page1.ets
浏览文件 @
4c7393c7
...
...
@@ -25,7 +25,7 @@ const TAG = 'ets_apiLack_add';
struct Second {
private content: string = "这是第二页"
@State text: string = router.getParams()['text']
@State data:
any
= router.getParams()['data']
@State data:
number[]
= router.getParams()['data']
@State secondData : string = ''
build() {
...
...
@@ -37,7 +37,7 @@ struct Second {
.fontSize(30)
.key("DataText")
.onClick(()=>{
this.secondData = (this.data
.array
[1]).toString()
this.secondData = (this.data[1]).toString()
try {
var backData = {
data: {
...
...
arkui/ace_ets_component_attrlack/entry/src/main/ets/MainAbility/pages/page2.ets
浏览文件 @
4c7393c7
...
...
@@ -25,7 +25,7 @@ const TAG = 'ets_apiLack_add';
struct Second {
private content: string = "这是第二页"
@State text: string = router.getParams()['text']
@State data:
any
= router.getParams()['data']
@State data:
number[]
= router.getParams()['data']
@State secondData : string = ''
build() {
...
...
@@ -37,7 +37,7 @@ struct Second {
.fontSize(30)
.key("SingleDataText")
.onClick(()=>{
this.secondData = (this.data
.array
[1]).toString()
this.secondData = (this.data[1]).toString()
try {
var backData = {
data: {
...
...
arkui/ace_ets_component_attrlack/entry/src/main/ets/MainAbility/pages/router.ets
浏览文件 @
4c7393c7
...
...
@@ -30,9 +30,7 @@ struct RouterStandard {
url: 'pages/page1',
params: {
text: '这是第一页的值',
data: {
array: [12, 45, 78]
}
data: [12, 45, 78]
}
}
try {
...
...
arkui/ace_ets_layout_test/entry/src/main/ets/MainAbility/pages/Flex/justifyContent/Center/AlignCenter_AddOffset.ets
浏览文件 @
4c7393c7
...
...
@@ -17,7 +17,7 @@ import {MessageManager,Callback} from './../../../../common/MessageManager';
@Entry
@Component
struct AlignCenter_AddOffset {
@State OneOffset:
any
= { x: 0, y: 0 }
@State OneOffset:
object
= { x: 0, y: 0 }
messageManager:MessageManager = new MessageManager()
onPageShow() {
console.info('AlignSpaceEvenly_AddOffset onPageShow');
...
...
arkui/ace_ets_layout_test/entry/src/main/ets/MainAbility/pages/Flex/justifyContent/End/AlignEnd_AddOffset.ets
浏览文件 @
4c7393c7
...
...
@@ -17,7 +17,7 @@ import {MessageManager,Callback} from './../../../../common/MessageManager';
@Entry
@Component
struct AlignEnd_AddOffset {
@State OneOffset:
any
= { x: 0, y: 0 }
@State OneOffset:
object
= { x: 0, y: 0 }
messageManager:MessageManager = new MessageManager()
onPageShow() {
console.info('AlignSpaceEvenly_AddOffset onPageShow');
...
...
arkui/ace_ets_layout_test/entry/src/main/ets/MainAbility/pages/Flex/justifyContent/SpaceEvenly/AlignSpaceEvenly_AddOffset.ets
浏览文件 @
4c7393c7
...
...
@@ -17,7 +17,7 @@ import {MessageManager,Callback} from './../../../../common/MessageManager';
@Entry
@Component
struct AlignSpaceEvenly_AddOffset {
@State OneOffset:
any
= { x: 0, y: 0 }
@State OneOffset:
object
= { x: 0, y: 0 }
messageManager:MessageManager = new MessageManager()
onPageShow() {
console.info('AlignSpaceEvenly_NoSpace onPageShow');
...
...
arkui/ace_ets_layout_test/entry/src/main/ets/MainAbility/pages/Flex/justifyContent/Start/AlignStart_AddOffset.ets
浏览文件 @
4c7393c7
...
...
@@ -17,7 +17,7 @@ import {MessageManager,Callback} from './../../../../common/MessageManager';
@Entry
@Component
struct AlignStart_AddOffset {
@State OneOffset:
any
= { x: 0, y: 0 }
@State OneOffset:
object
= { x: 0, y: 0 }
messageManager:MessageManager = new MessageManager()
onPageShow() {
console.info('AlignSpaceEvenly_AddOffset onPageShow');
...
...
arkui/ace_ets_layout_test/entry/src/main/ets/test/Flex/alignItems/ItemAlign_Auto/FlexExceedJsunit.test.ets
浏览文件 @
4c7393c7
...
...
@@ -101,9 +101,9 @@ export default function flexExceed_AutoJsunit() {
expect(textExceed01.bottom - textExceed01.top).assertEqual(vp2px(50))
expect(textExceed02.bottom - textExceed02.top).assertEqual(vp2px(100))
expect(textExceed03.bottom - textExceed03.top).assertEqual(vp2px(150))
expect(
textExceed01.right - textExceed01.left).assertEqual(vp2px(440/3
))
expect(
textExceed02.right - textExceed02.left).assertEqual(vp2px(440/3
))
expect(
textExceed03.right - textExceed03.left).assertEqual(vp2px(440/3
))
expect(
Math.round(textExceed01.right - textExceed01.left)).assertEqual(Math.round(vp2px(440/3)
))
expect(
Math.round(textExceed02.right - textExceed02.left)).assertEqual(Math.round(vp2px(440/3)
))
expect(
Math.round(textExceed03.right - textExceed03.left)).assertEqual(Math.round(vp2px(440/3)
))
expect(obj1.$attrs.constructor.direction).assertEqual('FlexDirection.Row')
expect(obj1.$attrs.constructor.alignItems).assertEqual('ItemAlign.Auto')
console.info('new SUB_ACE_FLEXALIGNITEMS_AUTO_0700 END');
...
...
arkui/ace_ets_layout_test/entry/src/main/ets/test/Flex/alignItems/ItemAlign_Auto/FlexPaddingJsunit.test.ets
浏览文件 @
4c7393c7
...
...
@@ -102,9 +102,9 @@ export default function flexPadding_AutoJsunit() {
expect(textFlexPadding01.bottom - textFlexPadding01.top).assertEqual(vp2px(50))
expect(textFlexPadding02.bottom - textFlexPadding02.top).assertEqual(vp2px(100))
expect(textFlexPadding03.bottom - textFlexPadding03.top).assertEqual(vp2px(150))
expect(
textFlexPadding01.right - textFlexPadding01.left).assertEqual(vp2px(440/3
))
expect(
textFlexPadding02.right - textFlexPadding02.left).assertEqual(vp2px(440/3
))
expect(
textFlexPadding03.right - textFlexPadding03.left).assertEqual(vp2px(440/3
))
expect(
Math.round(textFlexPadding01.right - textFlexPadding01.left)).assertEqual(Math.round(vp2px(440/3)
))
expect(
Math.round(textFlexPadding02.right - textFlexPadding02.left)).assertEqual(Math.round(vp2px(440/3)
))
expect(
Math.round(textFlexPadding03.right - textFlexPadding03.left)).assertEqual(Math.round(vp2px(440/3)
))
expect(obj1.$attrs.constructor.direction).assertEqual('FlexDirection.Row')
expect(obj1.$attrs.constructor.alignItems).assertEqual('ItemAlign.Auto')
console.info('new SUB_ACE_FLEXALIGNITEMS_AUTO_0400 END');
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录