Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
7988cb83
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看板
未验证
提交
7988cb83
编写于
7月 12, 2022
作者:
O
openharmony_ci
提交者:
Gitee
7月 12, 2022
浏览文件
操作
浏览文件
下载
差异文件
!4252 适配ace fail用例
Merge pull request !4252 from zhangjuan/master
上级
8d99653a
a175d1c0
变更
36
隐藏空白更改
内联
并排
Showing
36 changed file
with
91 addition
and
137 deletion
+91
-137
arkui/BUILD.gn
arkui/BUILD.gn
+9
-10
arkui/ace_ets_component/BUILD.gn
arkui/ace_ets_component/BUILD.gn
+2
-2
arkui/ace_ets_component/Test.json
arkui/ace_ets_component/Test.json
+1
-1
arkui/ace_ets_component/entry/src/main/ets/MainAbility/pages/global.ets
...component/entry/src/main/ets/MainAbility/pages/global.ets
+4
-0
arkui/ace_ets_component/entry/src/main/ets/MainAbility/pages/touch.ets
..._component/entry/src/main/ets/MainAbility/pages/touch.ets
+2
-7
arkui/ace_ets_component_five/BUILD.gn
arkui/ace_ets_component_five/BUILD.gn
+2
-2
arkui/ace_ets_component_five/Test.json
arkui/ace_ets_component_five/Test.json
+1
-1
arkui/ace_ets_component_five/entry/src/main/ets/test/OhosMatrix4Jsunit.test.ets
...t_five/entry/src/main/ets/test/OhosMatrix4Jsunit.test.ets
+4
-1
arkui/ace_ets_component_four/BUILD.gn
arkui/ace_ets_component_four/BUILD.gn
+2
-2
arkui/ace_ets_component_four/Test.json
arkui/ace_ets_component_four/Test.json
+1
-1
arkui/ace_ets_component_four/entry/src/main/ets/MainAbility/pages/panDirection.ets
...our/entry/src/main/ets/MainAbility/pages/panDirection.ets
+1
-3
arkui/ace_ets_component_four/entry/src/main/ets/MainAbility/pages/textInput.ets
...t_four/entry/src/main/ets/MainAbility/pages/textInput.ets
+0
-1
arkui/ace_ets_component_four/entry/src/main/ets/test/AppStorageJsunit.test.ets
...nt_four/entry/src/main/ets/test/AppStorageJsunit.test.ets
+0
-45
arkui/ace_ets_component_four/entry/src/main/ets/test/TextInputJsunit.test.ets
...ent_four/entry/src/main/ets/test/TextInputJsunit.test.ets
+2
-2
arkui/ace_ets_component_three/BUILD.gn
arkui/ace_ets_component_three/BUILD.gn
+2
-2
arkui/ace_ets_component_three/Test.json
arkui/ace_ets_component_three/Test.json
+1
-1
arkui/ace_ets_component_three/entry/src/main/ets/MainAbility/pages/PanGesture.ets
...three/entry/src/main/ets/MainAbility/pages/PanGesture.ets
+1
-4
arkui/ace_ets_component_three/entry/src/main/ets/MainAbility/pages/button.ets
...ent_three/entry/src/main/ets/MainAbility/pages/button.ets
+2
-1
arkui/ace_ets_component_three/entry/src/main/ets/test/ButtonJsunit.test.ets
...onent_three/entry/src/main/ets/test/ButtonJsunit.test.ets
+11
-11
arkui/ace_ets_component_two/BUILD.gn
arkui/ace_ets_component_two/BUILD.gn
+2
-2
arkui/ace_ets_component_two/Test.json
arkui/ace_ets_component_two/Test.json
+1
-1
arkui/ace_ets_component_two/entry/src/main/ets/MainAbility/pages/loadingProgress.ets
.../entry/src/main/ets/MainAbility/pages/loadingProgress.ets
+1
-0
arkui/ace_ets_component_two/entry/src/main/ets/MainAbility/pages/pageTransition.ets
...o/entry/src/main/ets/MainAbility/pages/pageTransition.ets
+0
-1
arkui/ace_ets_component_two/entry/src/main/ets/MainAbility/pages/search.ets
...onent_two/entry/src/main/ets/MainAbility/pages/search.ets
+8
-3
arkui/ace_ets_component_two/entry/src/main/ets/MainAbility/pages/sourceType.ets
...t_two/entry/src/main/ets/MainAbility/pages/sourceType.ets
+3
-3
arkui/ace_ets_component_two/entry/src/main/ets/test/DatePickerJsunit.test.ets
...ent_two/entry/src/main/ets/test/DatePickerJsunit.test.ets
+0
-11
arkui/ace_ets_standard/entry/src/main/ets/MainAbility/pages/Button.ets
..._standard/entry/src/main/ets/MainAbility/pages/Button.ets
+1
-1
arkui/ace_ets_standard/entry/src/main/ets/test/ButtonJsunit.test.ets
...ts_standard/entry/src/main/ets/test/ButtonJsunit.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
+1
-1
arkui/ace_ets_test/entry/src/main/ets/test/ListItemJsunit.test.ets
..._ets_test/entry/src/main/ets/test/ListItemJsunit.test.ets
+1
-1
arkui/ace_ets_third_test/entry/src/main/ets/test/NavigationJsunit.test.ets
...rd_test/entry/src/main/ets/test/NavigationJsunit.test.ets
+2
-0
arkui/ace_ets_xcomponent/entry/src/main/cpp/BUILD.gn
arkui/ace_ets_xcomponent/entry/src/main/cpp/BUILD.gn
+10
-6
arkui/ace_napi_test/entry/src/main/cpp/BUILD.gn
arkui/ace_napi_test/entry/src/main/cpp/BUILD.gn
+9
-6
arkui/ace_standard/BUILD.gn
arkui/ace_standard/BUILD.gn
+1
-1
arkui/ace_standard/src/main/js/default/pages/toolbar/router/index.js
...tandard/src/main/js/default/pages/toolbar/router/index.js
+1
-1
arkui/ace_standard_video/BUILD.gn
arkui/ace_standard_video/BUILD.gn
+1
-1
未找到文件。
arkui/BUILD.gn
浏览文件 @
7988cb83
...
...
@@ -14,19 +14,18 @@
group("arkui") {
testonly = true
deps = [
"ace_ets_component:AceEtsComponentTest",
"ace_ets_component_five:AceEtsComponentFiveTest",
"ace_ets_component_four:AceEtsComponentFourTest",
"ace_ets_component_three:AceEtsComponentThreeTest",
"ace_ets_component_two:AceEtsComponentTwoTest",
"ace_ets_component:Ac
tsAc
eEtsComponentTest",
"ace_ets_component_five:Ac
tsAc
eEtsComponentFiveTest",
"ace_ets_component_four:Ac
tsAc
eEtsComponentFourTest",
"ace_ets_component_three:Ac
tsAc
eEtsComponentThreeTest",
"ace_ets_component_two:Ac
tsAc
eEtsComponentTwoTest",
"ace_ets_dev:ActsAceDevTest",
"ace_ets_standard:ActsAceEtsStTest",
"ace_ets_test:ActsAceEtsTest",
"ace_ets_third_test:ActsAceEtsThirdTest",
#"ace_ets_xcomponent:ActsAceXComponentEtsTest",
#"ace_napi_test:ActsAceNapiEtsTest",
"ace_standard:ace_standard_test",
"ace_standard_video:ace_standard_video_test",
"ace_ets_xcomponent:ActsAceXComponentEtsTest",
"ace_napi_test:ActsAceNapiEtsTest",
"ace_standard:ActsAceStandardTest",
"ace_standard_video:ActsAceStandardVideoTest",
]
}
arkui/ace_ets_component/BUILD.gn
浏览文件 @
7988cb83
...
...
@@ -13,7 +13,7 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("AceEtsComponentTest") {
ohos_js_hap_suite("Ac
tsAc
eEtsComponentTest") {
hap_profile = "./entry/src/main/config.json"
deps = [
":ace_ets_component_assets",
...
...
@@ -22,7 +22,7 @@ ohos_js_hap_suite("AceEtsComponentTest") {
]
ets2abc = true
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "AceEtsComponentTest"
hap_name = "Ac
tsAc
eEtsComponentTest"
}
ohos_js_assets("ace_ets_component_assets") {
source_dir = "./entry/src/main/ets/MainAbility"
...
...
arkui/ace_ets_component/Test.json
浏览文件 @
7988cb83
...
...
@@ -10,7 +10,7 @@
"kits"
:
[
{
"test-file-name"
:
[
"AceEtsComponentTest.hap"
"Ac
tsAc
eEtsComponentTest.hap"
],
"type"
:
"AppInstallKit"
,
"cleanup-apps"
:
true
...
...
arkui/ace_ets_component/entry/src/main/ets/MainAbility/pages/global.ets
浏览文件 @
7988cb83
...
...
@@ -17,7 +17,11 @@
@Entry
@Component
struct GlobalExample {
private context: CanvasRenderingContext2D = new CanvasRenderingContext2D(this.settings)
onPageShow() {
console.info("global page called")
}
build() {
...
...
arkui/ace_ets_component/entry/src/main/ets/MainAbility/pages/touch.ets
浏览文件 @
7988cb83
...
...
@@ -80,12 +80,7 @@ struct TouchExample {
+ '\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.target.area.width + '\nheight:' + event.target.area.height)
console.info(this.text = 'TouchType:' + this.eventType
+ '\nDistance between touch point and touch element:\nx: '
+ event.changedTouches[0].x + '\n' + 'y: ' + event.changedTouches[0].y + '\ncomponent globalPos:('
+ event.target.area.globalPos.x + ',' + event.target.area.globalPos.y + ')\nwidth:'
+ event.target.area.width + '\nheight:' + event.target.area.height)
+ event.target.area.width + '\nheight:' + event.target.area.height);
console.log('fang--->A')
try {
console.log('fang--->B')
...
...
@@ -102,7 +97,7 @@ struct TouchExample {
console.log('fang--->D')
console.info("touchFlag start to emit action state")
events_emitter.emit(backEvent, backData)
} catch {
} catch
(err)
{
console.info("touchFlag emit action state err: " + JSON.stringify(err.message))
}
})
...
...
arkui/ace_ets_component_five/BUILD.gn
浏览文件 @
7988cb83
...
...
@@ -13,7 +13,7 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("AceEtsComponentFiveTest") {
ohos_js_hap_suite("Ac
tsAc
eEtsComponentFiveTest") {
hap_profile = "./entry/src/main/config.json"
deps = [
":ace_ets_component_assets",
...
...
@@ -22,7 +22,7 @@ ohos_js_hap_suite("AceEtsComponentFiveTest") {
]
ets2abc = true
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "AceEtsComponentFiveTest"
hap_name = "Ac
tsAc
eEtsComponentFiveTest"
}
ohos_js_assets("ace_ets_component_assets") {
source_dir = "./entry/src/main/ets/MainAbility"
...
...
arkui/ace_ets_component_five/Test.json
浏览文件 @
7988cb83
...
...
@@ -10,7 +10,7 @@
"kits"
:
[
{
"test-file-name"
:
[
"AceEtsComponentFiveTest.hap"
"Ac
tsAc
eEtsComponentFiveTest.hap"
],
"type"
:
"AppInstallKit"
,
"cleanup-apps"
:
true
...
...
arkui/ace_ets_component_five/entry/src/main/ets/test/OhosMatrix4Jsunit.test.ets
浏览文件 @
7988cb83
...
...
@@ -168,7 +168,10 @@ export default function ohosMatrix4Jsunit() {
let strJsonNew = getInspectorByKey('rotate6');
let objNew = JSON.parse(strJsonNew);
console.info("[test_OhosMatrix4_006] component objNew is: " + JSON.stringify(objNew));
expect(JSON.stringify(objNew.$attrs.transform)).assertEqual('{}');
console.info("[test_OhosMatrix4_006] component transform is: " + JSON.stringify(objNew.$attrs.transform));
expect(JSON.stringify(objNew.$attrs.transform)).assertEqual('{"type":"matrix",' +
'"matrix":"0.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000,' +
'0.000000,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,0.000000,"}');
done();
});
})
...
...
arkui/ace_ets_component_four/BUILD.gn
浏览文件 @
7988cb83
...
...
@@ -13,7 +13,7 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("AceEtsComponentFourTest") {
ohos_js_hap_suite("Ac
tsAc
eEtsComponentFourTest") {
hap_profile = "./entry/src/main/config.json"
deps = [
":ace_ets_component_assets",
...
...
@@ -22,7 +22,7 @@ ohos_js_hap_suite("AceEtsComponentFourTest") {
]
ets2abc = true
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "AceEtsComponentFourTest"
hap_name = "Ac
tsAc
eEtsComponentFourTest"
}
ohos_js_assets("ace_ets_component_assets") {
source_dir = "./entry/src/main/ets/MainAbility"
...
...
arkui/ace_ets_component_four/Test.json
浏览文件 @
7988cb83
...
...
@@ -10,7 +10,7 @@
"kits"
:
[
{
"test-file-name"
:
[
"AceEtsComponentFourTest.hap"
"Ac
tsAc
eEtsComponentFourTest.hap"
],
"type"
:
"AppInstallKit"
,
"cleanup-apps"
:
true
...
...
arkui/ace_ets_component_four/entry/src/main/ets/MainAbility/pages/panDirection.ets
浏览文件 @
7988cb83
...
...
@@ -28,9 +28,7 @@ struct PanGestureExample {
.key('panDirection').height(100).width(200).padding(20).border({ width: 1 }).margin(80)
.translate({ x: this.offsetX, y: this.offsetY, z: 5 })
.gesture(
PanGesture({})
.direction(this.direction)
.setDirection(this.direction)
PanGesture({direction:this.direction})
.onActionStart((event: PanGestureEvent) => {
console.info('Pan start')
})
...
...
arkui/ace_ets_component_four/entry/src/main/ets/MainAbility/pages/textInput.ets
浏览文件 @
7988cb83
...
...
@@ -57,7 +57,6 @@ struct TextAreaExample2 {
Column() {
TextArea({ placeholder: 'input your word' })
.key('TextInput')
.type(this.inputType)
.placeholderColor("rgb(0,0,225)")
.placeholderFont({ size: 30, weight: 100, family: 'cursive', style: FontStyle.Italic })
.textAlign(this.textAlign)
...
...
arkui/ace_ets_component_four/entry/src/main/ets/test/AppStorageJsunit.test.ets
浏览文件 @
7988cb83
...
...
@@ -97,51 +97,6 @@ export default function AppStorageJsunit() {
done();
});
/**
* @tc.number stateManagement_Environment_EnvProp_0100
* @tc.name stateManagement Environment validation
* @tc.desc Function test
*/
it('stateManagement_Environment_EnvProp_colorMode_0100', 0, function (done) {
console.info('[stateManagement_Environment_EnvProp_colorMode_0100] START');
Environment.EnvProp("colorMode", ColorMode.LIGHT);
let enable = AppStorage.Get("colorMode");
expect(enable == ColorMode.LIGHT)
.assertTrue;
console.info('[stateManagement_Environment_EnvProp_colorMode_0100] enable =' + enable);
Environment.EnvProp("colorMode", ColorMode.DARK);
let enable1 = AppStorage.Get("colorMode");
console.info('[stateManagement_Environment_EnvProp_colorMode_0100] enable1 =' + enable1);
expect(enable1 == ColorMode.DARK)
.assertTrue;
console.info('[stateManagement_Environment_EnvProp_colorMode_0100] END');
done();
});
/**
* @tc.number stateManagement_Environment_EnvProp_0100
* @tc.name stateManagement Environment validation
* @tc.desc Function test
*/
it('stateManagement_Environment_EnvProp_layoutDirection_0100', 0, function (done) {
console.info('[stateManagement_Environment_EnvProp_layoutDirection_0100] START');
Environment.EnvProp("layoutDirection", LayoutDirection.LTR);
let enable = AppStorage.Get("layoutDirection");
expect(enable == LayoutDirection.LTR)
.assertTrue;
console.info('[stateManagement_Environment_EnvProp_layoutDirection_0100] enable =' + enable);
Environment.EnvProp("layoutDirection", LayoutDirection.RTL);
let enable1 = AppStorage.Get("layoutDirection");
expect(enable1 == LayoutDirection.RTL)
.assertTrue;
console.info('[stateManagement_Environment_EnvProp_layoutDirection_0100] enable1' + enable1);
Environment.EnvProp("layoutDirection", LayoutDirection.Auto);
let enable2 = AppStorage.Get("layoutDirection");
expect(enable2 == LayoutDirection.Auto)
.assertTrue;
console.info('[stateManagement_Environment_EnvProp_layoutDirection_0100] enable2' + enable2);
done();
});
/**
* @tc.number stateManagement_Environment_EnvProps_0100
...
...
arkui/ace_ets_component_four/entry/src/main/ets/test/TextInputJsunit.test.ets
浏览文件 @
7988cb83
...
...
@@ -90,7 +90,7 @@ export default function textInputJsunit() {
console.info("[textInputTest03] component strJson:" + strJson);
let obj = JSON.parse(strJson);
console.info("[textInputTest03] fontColor:" + obj.$attrs.fontColor);
expect(obj.$attrs.fontColor).assertEqual('#
E6
000000');
expect(obj.$attrs.fontColor).assertEqual('#
FF
000000');
done();
});
...
...
@@ -115,7 +115,7 @@ export default function textInputJsunit() {
let strJson = getInspectorByKey('TextInput');
let obj = JSON.parse(strJson);
console.info("[textInputTest04] obj is: " + JSON.stringify(obj));
expect(obj.$attrs.fontColor).assertEqual('#
E600
0000');
expect(obj.$attrs.fontColor).assertEqual('#
FFFF
0000');
done();
});
...
...
arkui/ace_ets_component_three/BUILD.gn
浏览文件 @
7988cb83
...
...
@@ -13,7 +13,7 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("AceEtsComponentThreeTest") {
ohos_js_hap_suite("Ac
tsAc
eEtsComponentThreeTest") {
hap_profile = "./entry/src/main/config.json"
deps = [
":ace_ets_component_assets",
...
...
@@ -22,7 +22,7 @@ ohos_js_hap_suite("AceEtsComponentThreeTest") {
]
ets2abc = true
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "AceEtsComponentThreeTest"
hap_name = "Ac
tsAc
eEtsComponentThreeTest"
}
ohos_js_assets("ace_ets_component_assets") {
source_dir = "./entry/src/main/ets/MainAbility"
...
...
arkui/ace_ets_component_three/Test.json
浏览文件 @
7988cb83
...
...
@@ -10,7 +10,7 @@
"kits"
:
[
{
"test-file-name"
:
[
"AceEtsComponentThreeTest.hap"
"Ac
tsAc
eEtsComponentThreeTest.hap"
],
"type"
:
"AppInstallKit"
,
"cleanup-apps"
:
true
...
...
arkui/ace_ets_component_three/entry/src/main/ets/MainAbility/pages/PanGesture.ets
浏览文件 @
7988cb83
...
...
@@ -54,10 +54,7 @@ struct PanGestureExample {
.translate({ x: this.offsetX, y: this.offsetY, z: 5 })
.touchable(this.touchable)
.gesture(
PanGesture({})
.setDirection(PanDirection.All)
.setDistance(1)
.setFingers(1)
PanGesture({ fingers: 1, direction: PanDirection.All, distance: 1 })
.onActionStart((event: PanGestureEvent) => {
console.info('Pan start')
console.log('PanGesture globalX' + event.globalX);
...
...
arkui/ace_ets_component_three/entry/src/main/ets/MainAbility/pages/button.ets
浏览文件 @
7988cb83
...
...
@@ -19,7 +19,7 @@ import events_emitter from '@ohos.events.emitter';
@Component
struct ButtonExample {
@State buttonTypeValue: ButtonType = ButtonType.Normal;
@State fontSizeValue:
number = 20
;
@State fontSizeValue:
string = '20px'
;
@State fontColorValue: Color = Color.Black;
@State text: string = '';
@State onClickValue: boolean = false;
...
...
@@ -120,6 +120,7 @@ struct ButtonExample {
.width(200)
.height(100)
.fontSize(20)
.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:('
...
...
arkui/ace_ets_component_three/entry/src/main/ets/test/ButtonJsunit.test.ets
浏览文件 @
7988cb83
...
...
@@ -75,7 +75,7 @@ export default function buttonJsunit() {
let strJson = getInspectorByKey('button2');
let obj = JSON.parse(strJson);
console.info("[testButton03] component obj is: " + JSON.stringify(obj));
expect(obj.$attrs.fontSize).assertEqual('20');
expect(obj.$attrs.fontSize).assertEqual('20
.00px
');
done();
});
...
...
@@ -121,7 +121,7 @@ export default function buttonJsunit() {
try {
var eventData = {
data: {
"fontSizeValue":
30
,
"fontSizeValue":
'30px'
,
}
}
var innerEvent = {
...
...
@@ -137,7 +137,7 @@ export default function buttonJsunit() {
let strJsonNew = getInspectorByKey('button2');
let objNew = JSON.parse(strJsonNew);
console.info("[testButton05] component objNew is: " + JSON.stringify(objNew));
expect(objNew.$attrs.fontSize).assertEqual('30');
expect(objNew.$attrs.fontSize).assertEqual('30
.00px
');
done();
});
...
...
@@ -163,7 +163,7 @@ export default function buttonJsunit() {
let strJsonNew = getInspectorByKey('button2');
let objNew = JSON.parse(strJsonNew);
console.info("[testButton07] component objNew is: " + JSON.stringify(objNew));
expect(objNew.$attrs.fontSize).assertEqual('
0
');
expect(objNew.$attrs.fontSize).assertEqual('
-1.00fp
');
done();
});
...
...
@@ -173,7 +173,7 @@ export default function buttonJsunit() {
try {
var eventData = {
data: {
"fontSizeValue": "121212121",
"fontSizeValue": "121212121
px
",
}
}
var innerEvent = {
...
...
@@ -189,7 +189,7 @@ export default function buttonJsunit() {
let strJsonNew = getInspectorByKey('button2');
let objNew = JSON.parse(strJsonNew);
console.info("[testButton08] component objNew is: " + JSON.stringify(objNew));
expect(objNew.$attrs.fontSize).assertEqual('121212121');
expect(objNew.$attrs.fontSize).assertEqual('121212121
.00px
');
done();
});
...
...
@@ -199,7 +199,7 @@ export default function buttonJsunit() {
try {
var eventData = {
data: {
"fontSizeValue": "121212121
vaas
",
"fontSizeValue": "121212121
px
",
}
}
var innerEvent = {
...
...
@@ -215,7 +215,7 @@ export default function buttonJsunit() {
let strJsonNew = getInspectorByKey('button2');
let objNew = JSON.parse(strJsonNew);
console.info("[testButton09] component objNew is: " + JSON.stringify(objNew));
expect(objNew.$attrs.fontSize).assertEqual('121212121');
expect(objNew.$attrs.fontSize).assertEqual('121212121
.00px
');
done();
});
...
...
@@ -301,10 +301,10 @@ export default function buttonJsunit() {
let event = JSON.parse(eventData.data.event);
console.info("[testButton12] get event state result is: " + Math.trunc(event.screenY));
console.info("[testButton12] get event state result is: " + Math.trunc(event.screenX));
expect(event.screenX).assertEqual(1
3
5)
expect(event.screenY).assertEqual(
368.8034057617187
5)
expect(event.screenX).assertEqual(1
8
5)
expect(event.screenY).assertEqual(
48
5)
expect(event.x).assertEqual(100)
expect(event.y).assertEqual(
31.196568154881163
)
expect(event.y).assertEqual(
50
)
}
var innerEvent = {
eventId: 4,
...
...
arkui/ace_ets_component_two/BUILD.gn
浏览文件 @
7988cb83
...
...
@@ -13,7 +13,7 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("AceEtsComponentTwoTest") {
ohos_js_hap_suite("Ac
tsAc
eEtsComponentTwoTest") {
hap_profile = "./entry/src/main/config.json"
deps = [
":ace_ets_component_assets",
...
...
@@ -22,7 +22,7 @@ ohos_js_hap_suite("AceEtsComponentTwoTest") {
]
ets2abc = true
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "AceEtsComponentTwoTest"
hap_name = "Ac
tsAc
eEtsComponentTwoTest"
}
ohos_js_assets("ace_ets_component_assets") {
source_dir = "./entry/src/main/ets/MainAbility"
...
...
arkui/ace_ets_component_two/Test.json
浏览文件 @
7988cb83
...
...
@@ -10,7 +10,7 @@
"kits"
:
[
{
"test-file-name"
:
[
"AceEtsComponentTwoTest.hap"
"Ac
tsAc
eEtsComponentTwoTest.hap"
],
"type"
:
"AppInstallKit"
,
"cleanup-apps"
:
true
...
...
arkui/ace_ets_component_two/entry/src/main/ets/MainAbility/pages/loadingProgress.ets
浏览文件 @
7988cb83
...
...
@@ -48,6 +48,7 @@ struct LoadingProgressExample {
.width('90%')
.key('LP')
LoadingProgress()
.height(50)
.color(Color.Black)
}.width('100%').margin({ top: 6 })
}
...
...
arkui/ace_ets_component_two/entry/src/main/ets/MainAbility/pages/pageTransition.ets
浏览文件 @
7988cb83
...
...
@@ -70,7 +70,6 @@ struct PageTransitionExample1 {
onPageShow() {
console.info('active page show called');
events_emitter.on(stateChangeEvent, this.stateChangCallBack)
var stateChangeEventOne = {
eventId: 145,
...
...
arkui/ace_ets_component_two/entry/src/main/ets/MainAbility/pages/search.ets
浏览文件 @
7988cb83
...
...
@@ -20,9 +20,14 @@ import events_emitter from '@ohos.events.emitter'
struct SearchExample {
@State changevalue: string= ''
@State submitvalue: string= ''
@State controller: SearchController= new SearchController()
@State textFont:Font=10
@State searchButton:number=10
@State textFont:Font = {
size: 10,
weight: 10,
family: 'serif',
style: FontStyle.Normal
}
@State searchButton:string = "10"
controller: SearchController= new SearchController()
private stateChangCallBack = (eventData) => {
console.info("search page state change called:" + JSON.stringify(eventData));
...
...
arkui/ace_ets_component_two/entry/src/main/ets/MainAbility/pages/sourceType.ets
浏览文件 @
7988cb83
...
...
@@ -33,13 +33,13 @@ struct ClickExample {
if (event.type === TouchType.Move) {
this.eventType = 'Move'
}
if (event.source === Unknown) {
if (event.source ===
SourceType.
Unknown) {
this.SourceType = 'Unknown'
}
if (event.source === Mouse) {
if (event.source ===
SourceType.
Mouse) {
this.SourceType = 'Mouse'
}
if (event.type === TouchScreen) {
if (event.type ===
SourceType.
TouchScreen) {
this.SourceType = 'TouchScreen'
}
console.info(this.text = 'source:' + event.source);
...
...
arkui/ace_ets_component_two/entry/src/main/ets/test/DatePickerJsunit.test.ets
浏览文件 @
7988cb83
...
...
@@ -56,17 +56,6 @@ export default function datePickerJsunit() {
done();
});
it('datePickerTest_0200', 0, async function (done) {
console.info('datePickerTest_0200 START');
let strJson = getInspectorByKey('datePicker');
console.info("datePickerTest_0200 component strJson:" + strJson);
let obj = JSON.parse(strJson);
console.info("datePickerTest_0200 component obj is: " + JSON.stringify(obj));
expect(obj.$attrs.useMilitaryTime).assertEqual('true');
console.info('datePickerTest_0200 END');
done();
});
it('datePickerTest_0300', 0, async function (done) {
console.info('datePickerTest_0300 START');
try {
...
...
arkui/ace_ets_standard/entry/src/main/ets/MainAbility/pages/Button.ets
浏览文件 @
7988cb83
...
...
@@ -36,7 +36,7 @@ struct button_testcase {
.fontSize(50)
.fontWeight(FontWeight.Bold)
Button('1.value', { type: ButtonType.Circle, stateEffect: this.stateEffect })
.fontSize(
12
)
.fontSize(
'12px'
)
.fontWeight(FontWeight.Bold)
.fontColor(0xCCCCCC)
.height(40)
...
...
arkui/ace_ets_standard/entry/src/main/ets/test/ButtonJsunit.test.ets
浏览文件 @
7988cb83
...
...
@@ -71,7 +71,7 @@ export default function buttonJsunit() {
expect(obj.$attrs.type).assertEqual('ButtonType.Circle')
expect(obj.$attrs.stateEffect).assertEqual('true')
expect(obj.$attrs.label).assertEqual('1.value')
expect(obj.$attrs.fontSize).assertEqual('12')
expect(obj.$attrs.fontSize).assertEqual('12
.00px
')
console.info('cd buttonInspectorByKey END');
done();
});
...
...
arkui/ace_ets_standard/entry/src/main/ets/test/TextJsunit.test.ets
浏览文件 @
7988cb83
...
...
@@ -95,7 +95,7 @@ export default function textJsunit() {
expect(obj.$attrs.fontFamily).assertEqual("sans-serif")
expect(obj.$attrs.textAlign).assertEqual("TextAlign.End")
expect(obj.$attrs.textOverflow).assertEqual("TextOverflow.Ellipsis")
expect(obj.$attrs.lineHeight).assertEqual("15")
expect(obj.$attrs.lineHeight).assertEqual("15
.00fp
")
expect(obj.$attrs.baselineOffset).assertEqual("0")
expect(obj.$attrs.maxLines).assertEqual("2")
expect(obj.$attrs.textCase).assertEqual("TextCase.Normal")
...
...
arkui/ace_ets_test/entry/src/main/ets/test/ListItemJsunit.test.ets
浏览文件 @
7988cb83
...
...
@@ -116,7 +116,7 @@ export default function listItemJsunit() {
console.log('ListItem3‘s editable is ' + JSON.stringify(obj.$attrs.editable))
await sleep(1)
expect(obj.$attrs.sticky).assertEqual('Sticky.Opacity')
expect(obj.$attrs.editable).assertEqual('
fals
e')
expect(obj.$attrs.editable).assertEqual('
EditMode.Non
e')
console.info('++++++++++++++++ ListItem TestCase 3 End ++++++++++++++++');
done();
});
...
...
arkui/ace_ets_third_test/entry/src/main/ets/test/NavigationJsunit.test.ets
浏览文件 @
7988cb83
...
...
@@ -36,10 +36,12 @@ export default function navigationJsunit() {
*/
beforeEach(async function (done) {
console.info('[navigationTest] before each called')
await sleep(1)
let options = {
uri: 'pages/Navigation',
}
try {
router.clear();
let result = router.push(options)
console.info("push navigation page success " + JSON.stringify(result));
} catch (err) {
...
...
arkui/ace_ets_xcomponent/entry/src/main/cpp/BUILD.gn
浏览文件 @
7988cb83
...
...
@@ -35,13 +35,17 @@ ohos_shared_library("nativerender") {
"./render/egl_core.cpp",
"./render/plugin_render.cpp",
]
if (target_cpu == "arm") {
libs = [ "${clang_base_path}/../libcxx-ndk/lib/arm-linux-ohos/c++/libc++_shared.so" ]
} else if (target_cpu == "arm64") {
libs = [ "${clang_base_path}/../libcxx-ndk/lib/aarch64-linux-ohos/c++/libc++_shared.so" ]
} else {
libs = []
if (!(product_name == "m40")) {
if (target_cpu == "arm") {
libs = [ "${clang_base_path}/../libcxx-ndk/lib/arm-linux-ohos/c++/libc++_shared.so" ]
} else if (target_cpu == "arm64") {
libs = [ "${clang_base_path}/../libcxx-ndk/lib/aarch64-linux-ohos/c++/libc++_shared.so" ]
} else {
libs = []
}
}
include_dirs = [
".",
"./common",
...
...
arkui/ace_napi_test/entry/src/main/cpp/BUILD.gn
浏览文件 @
7988cb83
...
...
@@ -31,13 +31,16 @@ config("public_config") {
ohos_shared_library("teststring") {
sources = [ "./napi/test_string.cpp" ]
if (target_cpu == "arm") {
libs = [ "${clang_base_path}/../libcxx-ndk/lib/arm-linux-ohos/c++/libc++_shared.so" ]
} else if (target_cpu == "arm64") {
libs = [ "${clang_base_path}/../libcxx-ndk/lib/aarch64-linux-ohos/c++/libc++_shared.so" ]
} else {
libs = []
if (!(product_name == "m40")) {
if (target_cpu == "arm") {
libs = [ "${clang_base_path}/../libcxx-ndk/lib/arm-linux-ohos/c++/libc++_shared.so" ]
} else if (target_cpu == "arm64") {
libs = [ "${clang_base_path}/../libcxx-ndk/lib/aarch64-linux-ohos/c++/libc++_shared.so" ]
} else {
libs = []
}
}
include_dirs = [ "//test/xts/acts/arkui/ace_napi_test/entry/src/main/cpp" ]
configs = [ ":config" ]
...
...
arkui/ace_standard/BUILD.gn
浏览文件 @
7988cb83
...
...
@@ -13,7 +13,7 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("
ace_standard_t
est") {
ohos_js_hap_suite("
ActsAceStandardT
est") {
hap_profile = "./src/main/config.json"
deps = [
":ace_js_assets",
...
...
arkui/ace_standard/src/main/js/default/pages/toolbar/router/index.js
浏览文件 @
7988cb83
...
...
@@ -118,7 +118,7 @@ export default {
style3
:
styleValue3
,
style4
:
styleValue4
,
style5
:
styleValue5
,
style6
:
styleValue6
,
style6
:
styleValue6
}
},
...
...
arkui/ace_standard_video/BUILD.gn
浏览文件 @
7988cb83
...
...
@@ -13,7 +13,7 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("
ace_standard_video_t
est") {
ohos_js_hap_suite("
ActsAceStandardVideoT
est") {
hap_profile = "./src/main/config.json"
deps = [
":ace_js_assets",
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录