Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
274a8323
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看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
274a8323
编写于
6月 11, 2022
作者:
O
openharmony_ci
提交者:
Gitee
6月 11, 2022
浏览文件
操作
浏览文件
下载
差异文件
!3525 适配ace fail用例
Merge pull request !3525 from zj/master
上级
3c7ed5a2
4c5c0ce9
变更
22
隐藏空白更改
内联
并排
Showing
22 changed file
with
79 addition
and
157 deletion
+79
-157
arkui/ace_ets_component/entry/src/main/config.json
arkui/ace_ets_component/entry/src/main/config.json
+1
-1
arkui/ace_ets_component/entry/src/main/ets/MainAbility/pages/ellipse.ets
...omponent/entry/src/main/ets/MainAbility/pages/ellipse.ets
+2
-2
arkui/ace_ets_component/entry/src/main/ets/test/EllipseJsunit.test.ets
..._component/entry/src/main/ets/test/EllipseJsunit.test.ets
+4
-4
arkui/ace_ets_component/entry/src/main/ets/test/TouchAbleJsunit.test.ets
...omponent/entry/src/main/ets/test/TouchAbleJsunit.test.ets
+1
-1
arkui/ace_ets_component_five/entry/src/main/config.json
arkui/ace_ets_component_five/entry/src/main/config.json
+1
-1
arkui/ace_ets_component_four/entry/src/main/config.json
arkui/ace_ets_component_four/entry/src/main/config.json
+1
-1
arkui/ace_ets_component_four/entry/src/main/ets/MainAbility/pages/path.ets
...ponent_four/entry/src/main/ets/MainAbility/pages/path.ets
+2
-2
arkui/ace_ets_component_four/entry/src/main/ets/test/PathJsunit.test.ets
...omponent_four/entry/src/main/ets/test/PathJsunit.test.ets
+2
-2
arkui/ace_ets_component_three/entry/src/main/config.json
arkui/ace_ets_component_three/entry/src/main/config.json
+1
-1
arkui/ace_ets_component_three/entry/src/main/ets/test/ButtonJsunit.test.ets
...onent_three/entry/src/main/ets/test/ButtonJsunit.test.ets
+2
-0
arkui/ace_ets_component_three/entry/src/main/ets/test/CommonJsunit.test.ets
...onent_three/entry/src/main/ets/test/CommonJsunit.test.ets
+52
-51
arkui/ace_ets_component_three/entry/src/main/ets/test/SpanJsunit.test.ets
...mponent_three/entry/src/main/ets/test/SpanJsunit.test.ets
+1
-1
arkui/ace_ets_component_two/entry/src/main/config.json
arkui/ace_ets_component_two/entry/src/main/config.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/test/LoadingProgressJsunit.test.ets
...wo/entry/src/main/ets/test/LoadingProgressJsunit.test.ets
+1
-1
arkui/ace_ets_standard/entry/src/main/config.json
arkui/ace_ets_standard/entry/src/main/config.json
+1
-1
arkui/ace_ets_standard/entry/src/main/ets/MainAbility/pages/Text.ets
...ts_standard/entry/src/main/ets/MainAbility/pages/Text.ets
+0
-2
arkui/ace_ets_standard/entry/src/main/ets/test/TextJsunit.test.ets
..._ets_standard/entry/src/main/ets/test/TextJsunit.test.ets
+1
-81
arkui/ace_ets_test/entry/src/main/config.json
arkui/ace_ets_test/entry/src/main/config.json
+1
-1
arkui/ace_ets_third_test/entry/src/main/config.json
arkui/ace_ets_third_test/entry/src/main/config.json
+1
-1
arkui/ace_standard/src/main/config.json
arkui/ace_standard/src/main/config.json
+1
-1
arkui/ace_standard_video/src/main/config.json
arkui/ace_standard_video/src/main/config.json
+1
-1
未找到文件。
arkui/ace_ets_component/entry/src/main/config.json
浏览文件 @
274a8323
...
...
@@ -9,7 +9,7 @@
"apiVersion"
:
{
"compatible"
:
7
,
"releaseType"
:
"Release"
,
"target"
:
7
"target"
:
8
}
},
"deviceConfig"
:
{},
...
...
arkui/ace_ets_component/entry/src/main/ets/MainAbility/pages/ellipse.ets
浏览文件 @
274a8323
...
...
@@ -19,8 +19,8 @@ import events_emitter from '@ohos.emitter';
@Entry
@Component
struct EllipseExample {
@State width: string = "200px";
@State height: string = "200px";
@State width: string = "200
.00
px";
@State height: string = "200
.00
px";
onPageShow() {
console.info('[ellipse] page show called');
...
...
arkui/ace_ets_component/entry/src/main/ets/test/EllipseJsunit.test.ets
浏览文件 @
274a8323
...
...
@@ -115,7 +115,7 @@ export default function ellipseJsunit() {
try {
var eventData = {
data: {
"width": '1111111111111'
"width": '1111111111111
.00px
'
}
}
var innerEvent = {
...
...
@@ -141,7 +141,7 @@ export default function ellipseJsunit() {
try {
var eventData = {
data: {
"height": '12111111111111'
"height": '12111111111111
.00px
'
}
}
var innerEvent = {
...
...
@@ -167,7 +167,7 @@ export default function ellipseJsunit() {
try {
var eventData = {
data: {
"height": '-40'
"height": '-40
.00px
'
}
}
var innerEvent = {
...
...
@@ -193,7 +193,7 @@ export default function ellipseJsunit() {
try {
var eventData = {
data: {
"width": '-10'
"width": '-10
.00px
'
}
}
var innerEvent = {
...
...
arkui/ace_ets_component/entry/src/main/ets/test/TouchAbleJsunit.test.ets
浏览文件 @
274a8323
...
...
@@ -51,7 +51,7 @@ export default function touchAbleJsunit() {
let strJson = getInspectorByKey('ellipse');
let obj = JSON.parse(strJson);
console.info("[testTouchAble001] component obj is: " + JSON.stringify(obj));
expect(obj.$attrs.focusable).assertEqual(
tru
e);
expect(obj.$attrs.focusable).assertEqual(
fals
e);
done();
});
...
...
arkui/ace_ets_component_five/entry/src/main/config.json
浏览文件 @
274a8323
...
...
@@ -9,7 +9,7 @@
"apiVersion"
:
{
"compatible"
:
7
,
"releaseType"
:
"Release"
,
"target"
:
7
"target"
:
8
}
},
"deviceConfig"
:
{},
...
...
arkui/ace_ets_component_four/entry/src/main/config.json
浏览文件 @
274a8323
...
...
@@ -9,7 +9,7 @@
"apiVersion"
:
{
"compatible"
:
7
,
"releaseType"
:
"Release"
,
"target"
:
7
"target"
:
8
}
},
"deviceConfig"
:
{},
...
...
arkui/ace_ets_component_four/entry/src/main/ets/MainAbility/pages/path.ets
浏览文件 @
274a8323
...
...
@@ -20,8 +20,8 @@ import events_emitter from '@ohos.emitter'
@Component
struct PathExample {
@State commandsOne: string = 'M0 0 L900 0'
@State widthOne:
number = 300
@State heightOne:
number = 10
@State widthOne:
string = '300.00px'
@State heightOne:
string = '10.00px'
onPageShow() {
...
...
arkui/ace_ets_component_four/entry/src/main/ets/test/PathJsunit.test.ets
浏览文件 @
274a8323
...
...
@@ -63,9 +63,9 @@ export default function enableJsunit() {
try {
var eventData = {
data: {
"height":
200
,
"height":
'200.00px'
,
"commands": "M0 110 L900 0",
"width":
200
,
"width":
'200.00px'
,
}
}
var innerEvent = {
...
...
arkui/ace_ets_component_three/entry/src/main/config.json
浏览文件 @
274a8323
...
...
@@ -9,7 +9,7 @@
"apiVersion"
:
{
"compatible"
:
7
,
"releaseType"
:
"Release"
,
"target"
:
7
"target"
:
8
}
},
"deviceConfig"
:
{},
...
...
arkui/ace_ets_component_three/entry/src/main/ets/test/ButtonJsunit.test.ets
浏览文件 @
274a8323
...
...
@@ -299,6 +299,8 @@ export default function buttonJsunit() {
console.info("[testButton12] get event state result is: " + JSON.stringify(eventData));
expect(eventData.data.ACTION).assertEqual(true)
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(135)
expect(event.screenY).assertEqual(368.80340576171875)
expect(event.x).assertEqual(100)
...
...
arkui/ace_ets_component_three/entry/src/main/ets/test/CommonJsunit.test.ets
浏览文件 @
274a8323
...
...
@@ -14,25 +14,59 @@
* limitations under the License.
*/
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "hypium/index"
import display from '@ohos.display';
import Utils from './Utils';
export default function commonJsunit() {
describe('commonTest', function () {
var dpiValue;
beforeAll(async function (done) {
console.info("commonJsunit beforeEach start");
await display.getDefaultDisplay().then(dsp => {
console.info('getDefaultDisplay id : ' + JSON.stringify(dsp));
dpiValue = dsp.densityDPI;
console.info('getDefaultDisplay dpiValue is : ' + JSON.stringify(dpiValue));
Utils.sleep(2000);
}, (err) => {
console.info('getDefaultDisplay failed, err :' + JSON.stringify(err));
})
done()
});
it('commonTest_0100', 0, async function (done) {
console.info('commonTest_0100 START');
display.getDefaultDisplay().then(dsp => {
console.info('getDefaultDisplay id : ' + JSON.stringify(dsp));
dpiValue = dsp.densityDPI;
setTimeout(() => {
console.info('commonTest_0100 START' + dpiValue);
}, 2000)
}, (err) => {
console.info('getDefaultDisplay failed, err :' + JSON.stringify(err));
})
console.info('commonTest_0100 START' + dpiValue);
var a = 90;
var ret = a * (dpiValue/160);
var b = vp2px(a);
console.info('commonTest_0100 vp2px result:' + b);
expect(b == 90).assertTrue();
console.info('commonTest_0100 vp2px result:' + ret);
expect(b == ret).assertTrue();
console.info('commonTest_0100 END');
done();
});
it('commonTest_0200', 0, async function (done) {
console.info('commonTest_0200 START');
console.info('commonTest_0200 START'
+ dpiValue
);
var a = -90;
var ret = a * (dpiValue/160);
var b = vp2px(a);
console.info('commonTest_0200 vp2px result:' + b);
expect(b == -90).assertTrue();
console.info('commonTest_0200 vp2px result:' + ret);
expect(b == ret).assertTrue();
console.info('commonTest_0200 END');
done();
});
...
...
@@ -50,9 +84,10 @@ export default function commonJsunit() {
it('commonTest_0400', 0, async function (done) {
console.info('commonTest_0400 START');
var a = 80;
var ret = a / (dpiValue/160);
var b = px2vp(a);
console.info('commonTest_0400 px2vp result:' + b);
expect(b ==
80
).assertTrue();
expect(b ==
ret
).assertTrue();
console.info('commonTest_0400 END');
done();
});
...
...
@@ -60,9 +95,10 @@ export default function commonJsunit() {
it('commonTest_0500', 0, async function (done) {
console.info('commonTest_0500 START');
var a = -800000000;
var ret = a / (dpiValue/160);
var b = px2vp(a);
console.info('commonTest_0500 px2vp result:' + b);
expect(b ==
-800000000
).assertTrue();
expect(b ==
ret
).assertTrue();
console.info('commonTest_0500 END');
done();
});
...
...
@@ -80,19 +116,21 @@ export default function commonJsunit() {
it('commonTest_0700', 0, async function (done) {
console.info('commonTest_0700 START');
var a = 70;
var ret = a * (dpiValue/160);
var b = fp2px(a);
console.info('commonTest_0700 fp2px result:' + b);
expect(b ==
70
).assertTrue();
expect(b ==
ret
).assertTrue();
console.info('commonTest_0700 END');
done();
});
it('commonTest_0800', 0, async function (done) {
console.info('commonTest_0800 START');
var a = -7000000000000;
var a = -70;
var ret = a * (dpiValue/160);
var b = fp2px(a);
console.info('commonTest_0800 fp2px result:' + b);
expect(b ==
-2147483648
).assertTrue();
expect(b ==
ret
).assertTrue();
console.info('commonTest_0800 END');
done();
});
...
...
@@ -110,19 +148,21 @@ export default function commonJsunit() {
it('commonTest_1000', 0, async function (done) {
console.info('commonTest_1000 START');
var a = 60;
var ret = a / (dpiValue/160);
var b = px2fp(a);
console.info('commonTest_1000 px2fp result:' + b);
expect(b ==
60
).assertTrue();
expect(b ==
ret
).assertTrue();
console.info('commonTest_1000 END');
done();
});
it('commonTest_1100', 0, async function (done) {
console.info('commonTest_1100 START');
var a = -6000000000;
var a = -60;
var ret = a / (dpiValue/160);
var b = px2fp(a);
console.info('commonTest_1100 px2fp result:' + b);
expect(b ==
-6000000000
).assertTrue();
expect(b ==
ret
).assertTrue();
console.info('commonTest_1100 END');
done();
});
...
...
@@ -137,25 +177,6 @@ export default function commonJsunit() {
done();
});
it('commonTest_1300', 0, async function (done) {
console.info('commonTest_1300 START');
var a = 50;
var b = lpx2px(a);
console.info('commonTest_1300 lpx2px result:' + b);
expect(b == 50).assertTrue();
console.info('commonTest_1300 END');
done();
});
it('commonTest_1400', 0, async function (done) {
console.info('commonTest_1400 START');
var a = -500000000;
var b = lpx2px(a);
console.info('commonTest_1400 lpx2px result:' + b);
expect(b == -500000000).assertTrue();
console.info('commonTest_1400 END');
done();
});
it('commonTest_1500', 0, async function (done) {
console.info('commonTest_1500 START');
...
...
@@ -167,26 +188,6 @@ export default function commonJsunit() {
done();
});
it('commonTest_1600', 0, async function (done) {
console.info('commonTest_1600 START');
var a = 40;
var b = px2lpx(a);
console.info('commonTest_1600 px2lpx result:' + b);
expect(b == 40).assertTrue();
console.info('commonTest_1600 END');
done();
});
it('commonTest_1700', 0, async function (done) {
console.info('commonTest_1700 START');
var a = -400000;
var b = px2lpx(a);
console.info('commonTest_1700 px2lpx result:' + b);
expect(b == -400000).assertTrue();
console.info('commonTest_1700 END');
done();
});
it('commonTest_1800', 0, async function (done) {
console.info('commonTest_1800 START');
var a = '40';
...
...
arkui/ace_ets_component_three/entry/src/main/ets/test/SpanJsunit.test.ets
浏览文件 @
274a8323
...
...
@@ -231,7 +231,7 @@ export default function spanJsunit() {
console.info("[testSpan009] component strJson:" + strJson);
let obj = JSON.parse(strJson);
console.info("[testSpan009] fontColor:" + obj);
expect(obj.$attrs.fontColor).assertEqual('#FF
FFFFFF
');
expect(obj.$attrs.fontColor).assertEqual('#FF
000000
');
done();
});
})
...
...
arkui/ace_ets_component_two/entry/src/main/config.json
浏览文件 @
274a8323
...
...
@@ -9,7 +9,7 @@
"apiVersion"
:
{
"compatible"
:
7
,
"releaseType"
:
"Release"
,
"target"
:
7
"target"
:
8
}
},
"deviceConfig"
:
{},
...
...
arkui/ace_ets_component_two/entry/src/main/ets/MainAbility/pages/loadingProgress.ets
浏览文件 @
274a8323
...
...
@@ -44,6 +44,7 @@ struct LoadingProgressExample {
Text('Orbital LoadingProgress ')
.fontSize(19)
.fontColor(0xCCCCCC)
.height(50)
.width('90%')
.key('LP')
LoadingProgress()
...
...
arkui/ace_ets_component_two/entry/src/main/ets/test/LoadingProgressJsunit.test.ets
浏览文件 @
274a8323
...
...
@@ -72,7 +72,7 @@ export default function loadingProgressJsunit() {
let strJson = getInspectorByKey('LP');
let obj = JSON.parse(strJson);
console.info("testLoadingProgress_300 component obj is: " + JSON.stringify(obj));
expect(obj.$attrs.height).assertEqual("
22.000000
");
expect(obj.$attrs.height).assertEqual("
50.00px
");
console.info('testLoadingProgress_300 END');
done();
});
...
...
arkui/ace_ets_standard/entry/src/main/config.json
浏览文件 @
274a8323
...
...
@@ -9,7 +9,7 @@
"apiVersion"
:
{
"compatible"
:
7
,
"releaseType"
:
"Release"
,
"target"
:
7
"target"
:
8
}
},
"deviceConfig"
:
{},
...
...
arkui/ace_ets_standard/entry/src/main/ets/MainAbility/pages/Text.ets
浏览文件 @
274a8323
...
...
@@ -127,8 +127,6 @@ struct text_textcase {
.zIndex(this.zIndex)
.fontColor(this.fontColor)
.fontSize(this.fontSize)
.minFontSize(this.minFontSize)
.letterSpacing(this.letterSpacing)
.maxFontSize(this.maxFontSize)
.fontWeight(this.fontWeight)
.fontStyle(this.fontStyle)
...
...
arkui/ace_ets_standard/entry/src/main/ets/test/TextJsunit.test.ets
浏览文件 @
274a8323
...
...
@@ -65,55 +65,6 @@ export default function textJsunit() {
let strJson = getInspectorByKey('Text');
let obj = JSON.parse(strJson);
console.info("cd text component obj is: " + JSON.stringify(obj));
console.log("cd text type" + JSON.stringify(obj.$type));
console.log("cd text height" + JSON.stringify(obj.$attrs.height));
console.log("cd text width" + JSON.stringify(obj.$attrs.width));
console.log("cd text padding" + JSON.stringify(obj.$attrs.padding));
console.log("cd text constraintSize" + JSON.stringify(obj.$attrs.constraintSize));
console.log("cd text opacity" + JSON.stringify(obj.$attrs.opacity));
console.log("cd text align" + JSON.stringify(obj.$attrs.align));
console.log("cd text markAnchor type1" + typeof ({
"x": "50.00vp", "y": "50.00vp"
}));
console.log("cd text markAnchor1" + JSON.stringify({
"x": "50.00vp", "y": "50.00vp"
}));
console.log("cd text markAnchor type" + typeof (obj.$attrs.markAnchor));
console.log("cd text markAnchor" + JSON.stringify(obj.$attrs.markAnchor));
console.log("cd text offset" + JSON.stringify(obj.$attrs.offset));
console.log("cd text position" + JSON.stringify(obj.$attrs.position));
console.log("cd text flexGrow" + JSON.stringify(obj.$attrs.flexGrow));
console.log("cd text flexShrink" + JSON.stringify(obj.$attrs.flexShrink));
console.log("cd text alignSelf" + JSON.stringify(obj.$attrs.alignSelf));
console.log("cd text borderStyle" + JSON.stringify(obj.$attrs.borderStyle));
console.log("cd text borderRadius" + JSON.stringify(obj.$attrs.borderRadius));
console.log("cd text borderWidth" + JSON.stringify(obj.$attrs.borderWidth));
console.log("cd text borderColor" + JSON.stringify(obj.$attrs.borderColor));
console.log("cd text backgroundColor" + JSON.stringify(obj.$attrs.backgroundColor));
console.log("cd text enabled" + JSON.stringify(obj.$attrs.enabled));
console.log("cd text zIndex" + JSON.stringify(obj.$attrs.zIndex));
console.log("cd text fontColor" + JSON.stringify(obj.$attrs.fontColor));
console.log("cd text visibility" + JSON.stringify(obj.$attrs.visibility));
console.log("cd text fontSize" + JSON.stringify(obj.$attrs.fontSize));
console.log("cd text minFontSize" + JSON.stringify(obj.$attrs.minFontSize));
console.log("cd text letterSpacing" + JSON.stringify(obj.$attrs.letterSpacing));
console.log("cd text maxFontSize" + JSON.stringify(obj.$attrs.maxFontSize));
console.log("cd text fontWeight" + JSON.stringify(obj.$attrs.fontWeight));
console.log("cd text fontStyle" + JSON.stringify(obj.$attrs.fontStyle));
console.log("cd text fontFamily" + JSON.stringify(obj.$attrs.fontFamily));
console.log("cd text textAlign" + JSON.stringify(obj.$attrs.textAlign));
console.log("cd text textOverflow" + JSON.stringify(obj.$attrs.textOverflow));
console.log("cd text lineHeight" + JSON.stringify(obj.$attrs.lineHeight));
console.log("cd text baselineOffset" + JSON.stringify(obj.$attrs.baselineOffset));
console.log("cd text maxLines" + JSON.stringify(obj.$attrs.maxLines));
console.log("cd text textCase" + JSON.stringify(obj.$attrs.textCase));
console.log("cd text decoration" + JSON.stringify(obj.$attrs.decoration));
console.log("cd text decoration1" + JSON.stringify(JSON.stringify({
type: "TextDecorationType.Underline", color: "#FFFF0000"
})));
console.log("cd text direction" + JSON.stringify(obj.$attrs.direction));
console.log("cd text aspectRatio" + JSON.stringify(obj.$attrs.aspectRatio));
console.log("cd text fontColor" + JSON.stringify(obj.$attrs.fontColor));
expect(obj.$type).assertEqual('Text')
expect(obj.$attrs.width).assertEqual('200.00vp')
expect(obj.$attrs.padding).assertEqual('5.00vp')
...
...
@@ -138,7 +89,7 @@ export default function textJsunit() {
expect(obj.$attrs.zIndex).assertEqual(1)
expect(obj.$attrs.fontColor).assertEqual("#FF000000")
expect(obj.$attrs.visibility).assertEqual("Visibility.Visible")
expect(obj.$attrs.fontSize).assertEqual("15.00
px
")
expect(obj.$attrs.fontSize).assertEqual("15.00
fp
")
expect(obj.$attrs.fontWeight).assertEqual("FontWeight.Bold")
expect(obj.$attrs.fontStyle).assertEqual("FontStyle.Italic")
expect(obj.$attrs.fontFamily).assertEqual("sans-serif")
...
...
@@ -167,23 +118,6 @@ export default function textJsunit() {
let strJson = getInspectorByKey('Text1');
let obj = JSON.parse(strJson);
console.info("cd text1 component obj is: " + JSON.stringify(obj));
console.log("cd text1 align" + JSON.stringify(obj.$attrs.align));
console.log("cd text1 alignSelf" + JSON.stringify(obj.$attrs.alignSelf));
console.log("cd text1 borderStyle" + JSON.stringify(obj.$attrs.borderStyle));
console.log("cd text1 enabled" + JSON.stringify(obj.$attrs.enabled));
console.log("cd text1 visibility" + JSON.stringify(obj.$attrs.visibility));
console.log("cd text1 fontWeight" + JSON.stringify(obj.$attrs.fontWeight));
console.log("cd text1 textAlign" + JSON.stringify(obj.$attrs.textAlign));
console.log("cd text1 textOverflow" + JSON.stringify(obj.$attrs.textOverflow));
console.log("cd text1 direction" + JSON.stringify(obj.$attrs.direction));
console.log("cd text1 textCase" + JSON.stringify(obj.$attrs.textCase));
console.log("cd text1 decoration" + JSON.stringify(obj.$attrs.decoration));
console.log("cd text1 decoration1" + JSON.stringify(JSON.stringify({
type: "TextDecorationType.LineThrough", color: "#FFFF0000"
})));
console.log("cd text1 fontColor" + JSON.stringify(obj.$attrs.fontColor));
console.log("cd text padding" + JSON.stringify(obj.$attrs.padding));
console.log("cd text margin" + JSON.stringify(obj.$attrs.margin))
expect(obj.$attrs.direction).assertEqual("Direction.Ltr")
expect(obj.$attrs.align).assertEqual("Alignment.Start")
expect(obj.$attrs.alignSelf).assertEqual("ItemAlign.Start")
...
...
@@ -210,20 +144,6 @@ export default function textJsunit() {
let strJson = getInspectorByKey('Text2');
let obj = JSON.parse(strJson);
console.info("cd text2 component obj is: " + JSON.stringify(obj));
console.log("cd text2 align" + JSON.stringify(obj.$attrs.align));
console.log("cd text2 alignSelf" + JSON.stringify(obj.$attrs.alignSelf));
console.log("cd text2 borderStyle" + JSON.stringify(obj.$attrs.borderStyle));
console.log("cd text2 visibility" + JSON.stringify(obj.$attrs.visibility));
console.log("cd text2 fontWeight" + JSON.stringify(obj.$attrs.fontWeight));
console.log("cd text2 textAlign" + JSON.stringify(obj.$attrs.textAlign));
console.log("cd text2 textOverflow" + JSON.stringify(obj.$attrs.textOverflow));
console.log("cd text2 direction" + JSON.stringify(obj.$attrs.direction));
console.log("cd text2 textCase" + JSON.stringify(obj.$attrs.textCase));
console.log("cd text2 decoration" + JSON.stringify(obj.$attrs.decoration));
console.log("cd text2 decoration1" + JSON.stringify(JSON.stringify({
type: "TextDecorationType.Noneh", color: "#FFFF0000"
})));
console.log("cd text2 fontColor" + JSON.stringify(obj.$attrs.fontColor));
expect(obj.$attrs.direction).assertEqual("Direction.Rtl")
expect(obj.$attrs.align).assertEqual("Alignment.TopEnd")
expect(obj.$attrs.alignSelf).assertEqual("ItemAlign.Center")
...
...
arkui/ace_ets_test/entry/src/main/config.json
浏览文件 @
274a8323
...
...
@@ -9,7 +9,7 @@
"apiVersion"
:
{
"compatible"
:
7
,
"releaseType"
:
"Release"
,
"target"
:
7
"target"
:
8
}
},
"deviceConfig"
:
{},
...
...
arkui/ace_ets_third_test/entry/src/main/config.json
浏览文件 @
274a8323
...
...
@@ -9,7 +9,7 @@
"apiVersion"
:
{
"compatible"
:
7
,
"releaseType"
:
"Release"
,
"target"
:
7
"target"
:
8
}
},
"deviceConfig"
:
{},
...
...
arkui/ace_standard/src/main/config.json
浏览文件 @
274a8323
...
...
@@ -8,7 +8,7 @@
},
"apiVersion"
:
{
"compatible"
:
4
,
"target"
:
5
"target"
:
8
}
},
"deviceConfig"
:
{},
...
...
arkui/ace_standard_video/src/main/config.json
浏览文件 @
274a8323
...
...
@@ -8,7 +8,7 @@
},
"apiVersion"
:
{
"compatible"
:
4
,
"target"
:
5
"target"
:
8
}
},
"deviceConfig"
:
{},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录