Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
2af2e614
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看板
提交
2af2e614
编写于
6月 25, 2022
作者:
C
chengxingzhen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
XTSHO问题整改
Signed-off-by:
N
chengxingzhen
<
chengxingzhen@huawei.com
>
上级
dd9808e9
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
13 addition
and
183 deletion
+13
-183
aafwk/aafwk_standard/abilitymanager/actsamscallbackfifthscene/entry/src/main/js/test/MangerAbilityJsunit.test.js
...hscene/entry/src/main/js/test/MangerAbilityJsunit.test.js
+0
-22
aafwk/aafwk_standard/actsabilitymanageretstest/entry/src/main/ets/MainAbility/test/ContextJsunit.test.ets
...ntry/src/main/ets/MainAbility/test/ContextJsunit.test.ets
+1
-1
aafwk/aafwk_standard/actsabilitymanageretstest/entry/src/main/ets/MainAbility/test/addContextAndAbilityJsunit.test.ets
.../ets/MainAbility/test/addContextAndAbilityJsunit.test.ets
+3
-4
aafwk/aafwk_standard/actsabilitymanageretstest/entry/src/main/ets/MainAbility/test/getAbilityInfoJsunit.test.ets
...c/main/ets/MainAbility/test/getAbilityInfoJsunit.test.ets
+1
-1
aafwk/aafwk_standard/actsabilitymanageretstest/entry/src/main/ets/MainAbility/test/getAppVersionInfoJsunit.test.ets
...ain/ets/MainAbility/test/getAppVersionInfoJsunit.test.ets
+2
-2
aafwk/aafwk_standard/actsabilitymanageretstest/entry/src/main/ets/MainAbility/test/getApplicationContextJsunit.test.ets
...ets/MainAbility/test/getApplicationContextJsunit.test.ets
+1
-1
aafwk/aafwk_standard/actsabilitymanageretstest/entry/src/main/ets/MainAbility/test/getHapModuleInfoJsunit.test.ets
...main/ets/MainAbility/test/getHapModuleInfoJsunit.test.ets
+1
-1
aafwk/aafwk_standard/amsgetabilityprocessinfo/actsgetabilityprocessinfotest/entry/src/main/js/test/ActsProcessManageJsTest.test.js
...st/entry/src/main/js/test/ActsProcessManageJsTest.test.js
+4
-21
aafwk/aafwk_standard/fa/faconfigurationconstant/entry/src/main/js/test/JsConfiguration.test.js
...onconstant/entry/src/main/js/test/JsConfiguration.test.js
+0
-130
未找到文件。
aafwk/aafwk_standard/abilitymanager/actsamscallbackfifthscene/entry/src/main/js/test/MangerAbilityJsunit.test.js
浏览文件 @
2af2e614
...
@@ -16,28 +16,6 @@ import featureAbility from '@ohos.ability.featureAbility'
...
@@ -16,28 +16,6 @@ import featureAbility from '@ohos.ability.featureAbility'
import
appManager
from
"
@ohos.application.appManager
"
import
appManager
from
"
@ohos.application.appManager
"
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
let
abilityNameList
=
[
"
com.ohos.launcher.MainAbility
"
,
"
com.ohos.callui.ServiceAbility
"
,
"
com.example.SimulateFeatureAbilityFir
"
,
"
com.example.VerifyIoThirdAbility
"
,
"
com.example.SimulateFeatureAbilitySed
"
,
"
com.example.actsamscallbackfifthscene.MainAbility
"
]
let
bundleNameList
=
[
"
com.ohos.launcher
"
,
"
com.ohos.systemui
"
,
"
com.ohos.callui
"
,
"
com.ohos.contacts
"
,
"
com.ohos.mms
"
,
"
com.ohos.telephonydataability
"
,
"
com.ohos.contactsdataability
"
,
"
com.ix.simulate.feature
"
,
"
com.ix.verify.io
"
,
"
com.example.actsamscallbackfifthscene
"
]
describe
(
'
ActsAmsCallBackFifthScene
'
,
function
()
{
describe
(
'
ActsAmsCallBackFifthScene
'
,
function
()
{
console
.
info
(
'
----ActsAmsCallBackFifthScene----
'
);
console
.
info
(
'
----ActsAmsCallBackFifthScene----
'
);
beforeAll
(
async
function
(
done
)
{
beforeAll
(
async
function
(
done
)
{
...
...
aafwk/aafwk_standard/actsabilitymanageretstest/entry/src/main/ets/MainAbility/test/ContextJsunit.test.ets
浏览文件 @
2af2e614
...
@@ -18,7 +18,7 @@ import {describe, beforeEach, afterEach, it, expect} from "deccjsunit/index";
...
@@ -18,7 +18,7 @@ import {describe, beforeEach, afterEach, it, expect} from "deccjsunit/index";
import Utils from './Utils';
import Utils from './Utils';
export default function ContextJsunit() {
export default function ContextJsunit() {
describe('
appInfo
Test', function () {
describe('
faContext
Test', function () {
beforeEach(async function (done) {
beforeEach(async function (done) {
console.info("context before each called");
console.info("context before each called");
done()
done()
...
...
aafwk/aafwk_standard/actsabilitymanageretstest/entry/src/main/ets/MainAbility/test/addContextAndAbilityJsunit.test.ets
浏览文件 @
2af2e614
...
@@ -15,7 +15,6 @@
...
@@ -15,7 +15,6 @@
import {describe, it, expect} from "deccjsunit/index";
import {describe, it, expect} from "deccjsunit/index";
import Utils from './Utils';
import Utils from './Utils';
import ability_featureAbility from '@ohos.ability.featureAbility';
import ability_featureAbility from '@ohos.ability.featureAbility';
import ability_particleAbility from '@ohos.ability.particleAbility';
import abilityManager from "@ohos.application.appManager"
import abilityManager from "@ohos.application.appManager"
const TAG_TEST_0100 = ' context_isUpdatingConfigurations_test_0100 ';
const TAG_TEST_0100 = ' context_isUpdatingConfigurations_test_0100 ';
...
@@ -32,7 +31,7 @@ const TAG_TEST_0011 = ' context_featureAbility_test_0300 ';
...
@@ -32,7 +31,7 @@ const TAG_TEST_0011 = ' context_featureAbility_test_0300 ';
const TAG_TEST_0012 = ' context_featureAbility_test_0400 ';
const TAG_TEST_0012 = ' context_featureAbility_test_0400 ';
export default function addContextAndAbilityJsunit() {
export default function addContextAndAbilityJsunit() {
describe('a
ppInfo
Test', function () {
describe('a
ddContext
Test', function () {
/*
/*
* @tc.number: context_isUpdatingConfigurations_test_0100
* @tc.number: context_isUpdatingConfigurations_test_0100
* @tc.name: isUpdatingConfigurations : Obtains whether the configuration of the current ability is changing.
* @tc.name: isUpdatingConfigurations : Obtains whether the configuration of the current ability is changing.
...
@@ -163,7 +162,7 @@ export default function addContextAndAbilityJsunit() {
...
@@ -163,7 +162,7 @@ export default function addContextAndAbilityJsunit() {
})
})
await Utils.sleep(2000)
await Utils.sleep(2000)
expect(typeof (detailed)).assertEqual("number");
expect(typeof (detailed)).assertEqual("number");
expect(detailed).assert
Equal(512
);
expect(detailed).assert
Larger(0
);
done();
done();
console.log('------------------ ' + TAG_TEST_0500 + ' end -------------------');
console.log('------------------ ' + TAG_TEST_0500 + ' end -------------------');
});
});
...
@@ -183,7 +182,7 @@ export default function addContextAndAbilityJsunit() {
...
@@ -183,7 +182,7 @@ export default function addContextAndAbilityJsunit() {
console.info(TAG_TEST_0600 + ' callBack error is: ' + JSON.stringify(error));
console.info(TAG_TEST_0600 + ' callBack error is: ' + JSON.stringify(error));
console.info(TAG_TEST_0600 + ' callBack data is:' + JSON.stringify(data));
console.info(TAG_TEST_0600 + ' callBack data is:' + JSON.stringify(data));
expect(typeof (data)).assertEqual("number");
expect(typeof (data)).assertEqual("number");
expect(data).assert
Equal(512
);
expect(data).assert
Larger(0
);
console.log('------------------ ' + TAG_TEST_0600 + ' end -------------------');
console.log('------------------ ' + TAG_TEST_0600 + ' end -------------------');
done();
done();
})
})
...
...
aafwk/aafwk_standard/actsabilitymanageretstest/entry/src/main/ets/MainAbility/test/getAbilityInfoJsunit.test.ets
浏览文件 @
2af2e614
...
@@ -17,7 +17,7 @@ import Utils from './Utils';
...
@@ -17,7 +17,7 @@ import Utils from './Utils';
import
ability_featureAbility
from
'@ohos.ability.featureAbility'
;
import
ability_featureAbility
from
'@ohos.ability.featureAbility'
;
export
default
function
getHapModuleInfoJsunit
()
{
export
default
function
getHapModuleInfoJsunit
()
{
describe
(
'
app
InfoTest'
,
function
()
{
describe
(
'
getAbility
InfoTest'
,
function
()
{
/**
/**
* @tc.number: context_getAbilityInfo_test_0100
* @tc.number: context_getAbilityInfo_test_0100
...
...
aafwk/aafwk_standard/actsabilitymanageretstest/entry/src/main/ets/MainAbility/test/getAppVersionInfoJsunit.test.ets
浏览文件 @
2af2e614
...
@@ -17,7 +17,7 @@ import Utils from './Utils';
...
@@ -17,7 +17,7 @@ import Utils from './Utils';
import ability_featureAbility from '@ohos.ability.featureAbility';
import ability_featureAbility from '@ohos.ability.featureAbility';
export default function getHapModuleInfoJsunit() {
export default function getHapModuleInfoJsunit() {
describe('
app
InfoTest', function () {
describe('
getAppVersion
InfoTest', function () {
/**
/**
* @tc.number: context_getAppVersionInfo_test_0100
* @tc.number: context_getAppVersionInfo_test_0100
* @tc.name: getAppVersionInfo:Gets the version information for the application.
* @tc.name: getAppVersionInfo:Gets the version information for the application.
...
@@ -83,7 +83,7 @@ export default function getHapModuleInfoJsunit() {
...
@@ -83,7 +83,7 @@ export default function getHapModuleInfoJsunit() {
expect(typeof (data.appName)).assertEqual("string");
expect(typeof (data.appName)).assertEqual("string");
expect(typeof (data.versionCode)).assertEqual("number");
expect(typeof (data.versionCode)).assertEqual("number");
expect(typeof (data.versionName)).assertEqual("string");
expect(typeof (data.versionName)).assertEqual("string");
expect(data.appName).assertEqual("");
expect(data.appName).assertEqual("
com.ohos.acecollaboration
");
expect(data.versionCode).assertEqual(1000000);
expect(data.versionCode).assertEqual(1000000);
expect(data.versionName).assertEqual("1.0.0");
expect(data.versionName).assertEqual("1.0.0");
console.log(msg + "---checkAppVersionInfo End--- ");
console.log(msg + "---checkAppVersionInfo End--- ");
...
...
aafwk/aafwk_standard/actsabilitymanageretstest/entry/src/main/ets/MainAbility/test/getApplicationContextJsunit.test.ets
浏览文件 @
2af2e614
...
@@ -17,7 +17,7 @@ import Utils from './Utils';
...
@@ -17,7 +17,7 @@ import Utils from './Utils';
import ability_featureAbility from '@ohos.ability.featureAbility';
import ability_featureAbility from '@ohos.ability.featureAbility';
export default function getHapModuleInfoJsunit() {
export default function getHapModuleInfoJsunit() {
describe('
appInfo
Test', function () {
describe('
getApplicationContext
Test', function () {
/**
/**
* @tc.number: context_getApplicationContext_test_0100
* @tc.number: context_getApplicationContext_test_0100
* @tc.name: getApplicationContext:Gets the application context information.
* @tc.name: getApplicationContext:Gets the application context information.
...
...
aafwk/aafwk_standard/actsabilitymanageretstest/entry/src/main/ets/MainAbility/test/getHapModuleInfoJsunit.test.ets
浏览文件 @
2af2e614
...
@@ -17,7 +17,7 @@ import Utils from './Utils';
...
@@ -17,7 +17,7 @@ import Utils from './Utils';
import ability_featureAbility from '@ohos.ability.featureAbility';
import ability_featureAbility from '@ohos.ability.featureAbility';
export default function getHapModuleInfoJsunit() {
export default function getHapModuleInfoJsunit() {
describe('
app
InfoTest', function () {
describe('
getHapModule
InfoTest', function () {
/**
/**
* @tc.number: context_getHapModuleInfo_test_0100
* @tc.number: context_getHapModuleInfo_test_0100
* @tc.name: getHapModuleInfo:Obtains the HapModuleInfo object of the application.
* @tc.name: getHapModuleInfo:Obtains the HapModuleInfo object of the application.
...
...
aafwk/aafwk_standard/amsgetabilityprocessinfo/actsgetabilityprocessinfotest/entry/src/main/js/test/ActsProcessManageJsTest.test.js
浏览文件 @
2af2e614
...
@@ -18,34 +18,17 @@ import appManager from '@ohos.application.appManager'
...
@@ -18,34 +18,17 @@ import appManager from '@ohos.application.appManager'
describe
(
'
ActsAbilityRunningInfosTest
'
,
function
()
{
describe
(
'
ActsAbilityRunningInfosTest
'
,
function
()
{
function
checkRunningAbility
(
name
,
dataInfo
)
{
for
(
let
i
=
0
,
len
=
dataInfo
.
length
;
i
<
len
;
i
++
)
{
if
(
dataInfo
[
i
].
ability
.
abilityName
==
name
)
{
expect
(
dataInfo
[
i
].
ability
.
deviceId
).
assertEqual
(
""
);
expect
(
dataInfo
[
i
].
ability
.
uri
).
assertEqual
(
undefined
);
expect
(
dataInfo
[
i
].
ability
.
ability
).
assertEqual
(
undefined
);
expect
(
dataInfo
[
i
].
uid
).
assertLarger
(
10000
);
expect
(
dataInfo
[
i
].
pid
).
assertLarger
(
500
);
expect
(
dataInfo
[
i
].
startTime
).
assertLarger
(
3000
);
expect
(
dataInfo
[
i
].
abilityState
).
assertLarger
(
0
);
return
true
;
}
}
return
false
;
}
function
checkRunningProcess
(
name
,
dataInfo
)
{
function
checkRunningProcess
(
name
,
dataInfo
)
{
for
(
let
i
=
0
,
len
=
dataInfo
.
length
;
i
<
len
;
i
++
)
{
for
(
let
i
=
0
,
len
=
dataInfo
.
length
;
i
<
len
;
i
++
)
{
if
(
dataInfo
[
i
].
processName
==
name
)
{
if
(
dataInfo
[
i
].
processName
==
name
)
{
expect
(
dataInfo
[
i
].
uid
).
assertLarger
(
200
0
);
expect
(
dataInfo
[
i
].
uid
).
assertLarger
(
0
);
expect
(
dataInfo
[
i
].
pid
).
assertLarger
(
50
0
);
expect
(
dataInfo
[
i
].
pid
).
assertLarger
(
0
);
return
true
;
return
true
;
}
}
}
}
return
false
;
return
false
;
}
}
/*
/*
* @tc.number: ACTS_getProcessRunningInfos_0100
* @tc.number: ACTS_getProcessRunningInfos_0100
* @tc.name: Application running ability information query
* @tc.name: Application running ability information query
...
@@ -70,7 +53,7 @@ describe('ActsAbilityRunningInfosTest', function () {
...
@@ -70,7 +53,7 @@ describe('ActsAbilityRunningInfosTest', function () {
console
.
log
(
'
ACTS_getProcessRunningInfos_0200====<begin
'
);
console
.
log
(
'
ACTS_getProcessRunningInfos_0200====<begin
'
);
appManager
.
getProcessRunningInfos
((
err
,
data
)
=>
{
appManager
.
getProcessRunningInfos
((
err
,
data
)
=>
{
console
.
info
(
'
====> ACTS_getProcessRunningInfos_0200 ====>
'
+
JSON
.
stringify
(
data
))
console
.
info
(
'
====> ACTS_getProcessRunningInfos_0200 ====>
'
+
JSON
.
stringify
(
data
))
expect
(
checkRunningProcess
(
'
com.
ohos.launcher
'
,
data
)).
assertTrue
();
expect
(
checkRunningProcess
(
'
com.
example.abilityrunninginfostest
'
,
data
)).
assertTrue
();
done
();
done
();
})
})
})
})
...
...
aafwk/aafwk_standard/fa/faconfigurationconstant/entry/src/main/js/test/JsConfiguration.test.js
浏览文件 @
2af2e614
...
@@ -56,134 +56,4 @@ describe('ConfigurationTest', function () {
...
@@ -56,134 +56,4 @@ describe('ConfigurationTest', function () {
done
();
done
();
console
.
log
(
"
------------end SUB_AA_OpenHarmony_ConfigurationConstant_colorMode_0300-------------
"
);
console
.
log
(
"
------------end SUB_AA_OpenHarmony_ConfigurationConstant_colorMode_0300-------------
"
);
});
});
/*
* @tc.number SUB_AA_OpenHarmony_ConfigurationConstant_Direction_0100
* @tc.name Direction is "ConfigurationConstant.Direction.DIRECTION_VERTICAL"
* @tc.desc Function test
* @tc.level 0
*/
it
(
'
SUB_AA_OpenHarmony_ConfigurationConstant_Direction_0100
'
,
0
,
async
function
(
done
)
{
console
.
log
(
"
------------start SUB_AA_OpenHarmony_ConfigurationConstant_Direction_0100-------------
"
);
expect
(
ConfigurationConstant
.
Direction
.
DIRECTION_VERTICAL
).
assertEqual
(
0
);
done
();
console
.
log
(
"
------------end SUB_AA_OpenHarmony_ConfigurationConstant_Direction_0100-------------
"
);
});
/*
* @tc.number SUB_AA_OpenHarmony_ConfigurationConstant_Direction_0200
* @tc.name Direction is "ConfigurationConstant.Direction.DIRECTION_HORIZONTAL"
* @tc.desc Function test
* @tc.level 0
*/
it
(
'
SUB_AA_OpenHarmony_ConfigurationConstant_Direction_0200
'
,
0
,
async
function
(
done
)
{
console
.
log
(
"
------------start SUB_AA_OpenHarmony_ConfigurationConstant_Direction_0200-------------
"
);
expect
(
ConfigurationConstant
.
Direction
.
DIRECTION_HORIZONTAL
).
assertEqual
(
1
);
done
();
console
.
log
(
"
------------end SUB_AA_OpenHarmony_ConfigurationConstant_Direction_0200-------------
"
);
});
/*
* @tc.number SUB_AA_OpenHarmony_ConfigurationConstant_Direction_0300
* @tc.name Direction is "ConfigurationConstant.Direction.DIRECTION_NOT_SET"
* @tc.desc Function test
* @tc.level 0
*/
it
(
'
SUB_AA_OpenHarmony_ConfigurationConstant_Direction_0300
'
,
0
,
async
function
(
done
)
{
console
.
log
(
"
------------start SUB_AA_OpenHarmony_ConfigurationConstant_Direction_0300-------------
"
);
expect
(
ConfigurationConstant
.
Direction
.
DIRECTION_NOT_SET
).
assertEqual
(
-
1
);
done
();
console
.
log
(
"
------------end SUB_AA_OpenHarmony_ConfigurationConstant_Direction_0300-------------
"
);
});
/*
* @tc.number SUB_AA_OpenHarmony_ConfigurationConstant_ScreenDensity_0100
* @tc.name ScreenDensity is "ConfigurationConstant.ScreenDensity.SCREEN_DENSITY_SDPI"
* @tc.desc Function test
* @tc.level 0
*/
it
(
'
SUB_AA_OpenHarmony_ConfigurationConstant_ScreenDensity_0100
'
,
0
,
async
function
(
done
)
{
console
.
log
(
"
------------start SUB_AA_OpenHarmony_ConfigurationConstant_ScreenDensity_0100-------------
"
);
expect
(
ConfigurationConstant
.
ScreenDensity
.
SCREEN_DENSITY_SDPI
).
assertEqual
(
120
);
done
();
console
.
log
(
"
------------end SUB_AA_OpenHarmony_ConfigurationConstant_ScreenDensity_0100-------------
"
);
});
/*
* @tc.number SUB_AA_OpenHarmony_ConfigurationConstant_ScreenDensity_0200
* @tc.name ScreenDensity is "ConfigurationConstant.ScreenDensity.SCREEN_DENSITY_MDPI"
* @tc.desc Function test
* @tc.level 0
*/
it
(
'
SUB_AA_OpenHarmony_ConfigurationConstant_ScreenDensity_0200
'
,
0
,
async
function
(
done
)
{
console
.
log
(
"
------------start SUB_AA_OpenHarmony_ConfigurationConstant_ScreenDensity_0200-------------
"
);
expect
(
ConfigurationConstant
.
ScreenDensity
.
SCREEN_DENSITY_MDPI
).
assertEqual
(
160
);
done
();
console
.
log
(
"
------------end SUB_AA_OpenHarmony_ConfigurationConstant_ScreenDensity_0200-------------
"
);
});
/*
* @tc.number SUB_AA_OpenHarmony_ConfigurationConstant_ScreenDensity_0300
* @tc.name ScreenDensity is "ConfigurationConstant.ScreenDensity.SCREEN_DENSITY_LDPI"
* @tc.desc Function test
* @tc.level 0
*/
it
(
'
SUB_AA_OpenHarmony_ConfigurationConstant_ScreenDensity_0300
'
,
0
,
async
function
(
done
)
{
console
.
log
(
"
------------start SUB_AA_OpenHarmony_ConfigurationConstant_ScreenDensity_0300-------------
"
);
expect
(
ConfigurationConstant
.
ScreenDensity
.
SCREEN_DENSITY_LDPI
).
assertEqual
(
240
);
done
();
console
.
log
(
"
------------end SUB_AA_OpenHarmony_ConfigurationConstant_ScreenDensity_0300-------------
"
);
});
/*
* @tc.number SUB_AA_OpenHarmony_ConfigurationConstant_ScreenDensity_0400
* @tc.name ScreenDensity is "ConfigurationConstant.ScreenDensity.SCREEN_DENSITY_XLDPI"
* @tc.desc Function test
* @tc.level 0
*/
it
(
'
SUB_AA_OpenHarmony_ConfigurationConstant_ScreenDensity_0400
'
,
0
,
async
function
(
done
)
{
console
.
log
(
"
------------start SUB_AA_OpenHarmony_ConfigurationConstant_ScreenDensity_0400-------------
"
);
expect
(
ConfigurationConstant
.
ScreenDensity
.
SCREEN_DENSITY_XLDPI
).
assertEqual
(
320
);
done
();
console
.
log
(
"
------------end SUB_AA_OpenHarmony_ConfigurationConstant_ScreenDensity_0400-------------
"
);
});
/*
* @tc.number SUB_AA_OpenHarmony_ConfigurationConstant_ScreenDensity_0500
* @tc.name ScreenDensity is "ConfigurationConstant.ScreenDensity.SCREEN_DENSITY_XXLDPI"
* @tc.desc Function test
* @tc.level 0
*/
it
(
'
SUB_AA_OpenHarmony_ConfigurationConstant_ScreenDensity_0500
'
,
0
,
async
function
(
done
)
{
console
.
log
(
"
------------start SUB_AA_OpenHarmony_ConfigurationConstant_ScreenDensity_0500-------------
"
);
expect
(
ConfigurationConstant
.
ScreenDensity
.
SCREEN_DENSITY_XXLDPI
).
assertEqual
(
480
);
done
();
console
.
log
(
"
------------end SUB_AA_OpenHarmony_ConfigurationConstant_ScreenDensity_0500-------------
"
);
});
/*
* @tc.number SUB_AA_OpenHarmony_ConfigurationConstant_ScreenDensity_0600
* @tc.name ScreenDensity is "ConfigurationConstant.ScreenDensity.SCREEN_DENSITY_XXXLDPI"
* @tc.desc Function test
* @tc.level 0
*/
it
(
'
SUB_AA_OpenHarmony_ConfigurationConstant_ScreenDensity_0600
'
,
0
,
async
function
(
done
)
{
console
.
log
(
"
------------start SUB_AA_OpenHarmony_ConfigurationConstant_ScreenDensity_0600-------------
"
);
expect
(
ConfigurationConstant
.
ScreenDensity
.
SCREEN_DENSITY_XXXLDPI
).
assertEqual
(
640
);
done
();
console
.
log
(
"
------------end SUB_AA_OpenHarmony_ConfigurationConstant_ScreenDensity_0600-------------
"
);
});
/*
* @tc.number SUB_AA_OpenHarmony_ConfigurationConstant_ScreenDensity_0700
* @tc.name ScreenDensity is "ConfigurationConstant.ScreenDensity.SCREEN_DENSITY_NOT_SET"
* @tc.desc Function test
* @tc.level 0
*/
it
(
'
SUB_AA_OpenHarmony_ConfigurationConstant_ScreenDensity_0700
'
,
0
,
async
function
(
done
)
{
console
.
log
(
"
------------start SUB_AA_OpenHarmony_ConfigurationConstant_ScreenDensity_0700-------------
"
);
expect
(
ConfigurationConstant
.
ScreenDensity
.
SCREEN_DENSITY_NOT_SET
).
assertEqual
(
0
);
done
();
console
.
log
(
"
------------end SUB_AA_OpenHarmony_ConfigurationConstant_ScreenDensity_0700-------------
"
);
});
})
})
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录