未验证 提交 3d53953a 编写于 作者: O openharmony_ci 提交者: Gitee

!9127 【startup】【master】startup模块补充ISV厂商基于OHOS发行的操作信息名称、版本、apiversion和发布类型等属性参数XTS用例

Merge pull request !9127 from smartltt/master_0629
......@@ -1753,16 +1753,16 @@ export default function DeviceInfoTest() {
it('device_info_test_0669', 0, function () {
console.info('device_info_test_0669 start');
let osReleaseTypeInfo = deviceinfo.osReleaseType;
console.info('the value of the deviceinfo distributionOSReleaseType is :' + osReleaseTypeInfo);
let distributionOSReleaseTypeInfo = deviceinfo.distributionOSReleaseType;
console.info('the value of the deviceinfo distributiondistributionOSReleaseType is :' + distributionOSReleaseTypeInfo);
expect(osReleaseTypeInfo).assertInstanceOf('String');
if (osReleaseTypeInfo != "" && osReleaseTypeInfo != null && osReleaseTypeInfo != undefined) {
expect(distributionOSReleaseTypeInfo).assertInstanceOf('String');
if (distributionOSReleaseTypeInfo != "" && distributionOSReleaseTypeInfo != null && distributionOSReleaseTypeInfo != undefined) {
let str = /[\w-\.\(\)]/g;
let arr = osReleaseTypeInfo.match(str);
let arr = distributionOSReleaseTypeInfo.match(str);
let bufferstr = arr.join('');
console.info('the value of the bufferstr is :' + bufferstr);
expect(osReleaseTypeInfo).assertEqual(bufferstr);
expect(distributionOSReleaseTypeInfo).assertEqual(bufferstr);
} else {
console.info('the return value is null or incorrect.');
expect().assertFail();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册