Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
ca56d710
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看板
提交
ca56d710
编写于
8月 16, 2021
作者:
O
openharmony_ci
提交者:
Gitee
8月 16, 2021
浏览文件
操作
浏览文件
下载
差异文件
!433 【startup_standard】【master】Fix problematic cases
Merge pull request !433 from 南先森/startup_standard
上级
f6e050c2
9a7f7c8c
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
108 addition
and
107 deletion
+108
-107
startup/startup_standard/entry/src/main/js/test/DeviceInfoJsUnit.test.js
..._standard/entry/src/main/js/test/DeviceInfoJsUnit.test.js
+107
-106
startup/startup_standard/entry/src/main/js/test/List.test.js
startup/startup_standard/entry/src/main/js/test/List.test.js
+1
-1
startup/startup_standard/entry/src/main/js/test/ParametersJsUnit.test.js
..._standard/entry/src/main/js/test/ParametersJsUnit.test.js
+0
-0
startup/startup_standard/hap/entry-debug-standard-signed.hap
startup/startup_standard/hap/entry-debug-standard-signed.hap
+0
-0
未找到文件。
startup/startup_standard/entry/src/main/js/test/DeviceInfoJsUnit.test.js
100644 → 100755
浏览文件 @
ca56d710
...
...
@@ -34,11 +34,11 @@ describe('DeviceInfoTest', function () {
console
.
info
(
'
the value of the deviceType is :
'
+
deviceTypeInfo
);
expect
(
deviceTypeInfo
).
assertInstanceOf
(
'
String
'
);
if
(
deviceTypeInfo
!=
=
null
)
{
if
(
deviceTypeInfo
!=
""
&&
deviceTypeInfo
!=
null
&&
deviceTypeInfo
!=
undefined
)
{
ret
=
true
;
}
expect
(
ret
).
assertTrue
()
console
.
info
(
'
device_info_test_001 :
PASS
'
);
console
.
info
(
'
device_info_test_001 :
end
'
);
})
/**
...
...
@@ -56,11 +56,11 @@ describe('DeviceInfoTest', function () {
console
.
info
(
'
the value of the manufactureInfo is :
'
+
manufactureInfo
);
expect
(
manufactureInfo
).
assertInstanceOf
(
'
String
'
);
if
(
manufactureInfo
!=
=
null
){
if
(
manufactureInfo
!=
""
&&
manufactureInfo
!=
null
&&
manufactureInfo
!=
undefined
){
ret
=
true
;
}
expect
(
ret
).
assertTrue
();
console
.
info
(
'
device_info_test_002 :
PASS
'
);
console
.
info
(
'
device_info_test_002 :
end
'
);
})
/**
* @tc.number SUB_STARTUP_JS_DEVCEINFO_0300
...
...
@@ -77,11 +77,11 @@ describe('DeviceInfoTest', function () {
console
.
info
(
'
the value of the deviceinfo brand is :
'
+
brandInfo
);
expect
(
brandInfo
).
assertInstanceOf
(
'
String
'
);
if
(
brandInfo
!=
=
null
){
if
(
brandInfo
!=
""
&&
brandInfo
!=
null
&&
brandInfo
!=
undefined
){
ret
=
true
;
}
expect
(
ret
).
assertTrue
();
console
.
info
(
'
testGetProductBrand01 :
PASS
'
);
console
.
info
(
'
testGetProductBrand01 :
end
'
);
})
/**
...
...
@@ -99,11 +99,11 @@ describe('DeviceInfoTest', function () {
console
.
info
(
'
the value of the deviceinfo marketName is :
'
+
marketNameInfo
);
expect
(
marketNameInfo
).
assertInstanceOf
(
'
String
'
);
if
(
marketNameInfo
!=
=
null
){
if
(
marketNameInfo
!=
""
&&
marketNameInfo
!=
null
&&
marketNameInfo
!=
undefined
){
ret
=
true
;
}
expect
(
ret
).
assertTrue
();
console
.
info
(
'
testGetMarketName01 :
PASS
'
);
console
.
info
(
'
testGetMarketName01 :
end
'
);
})
/**
...
...
@@ -121,11 +121,11 @@ describe('DeviceInfoTest', function () {
console
.
info
(
'
the value of the deviceinfo productSeries is :
'
+
productSeriesInfo
);
expect
(
productSeriesInfo
).
assertInstanceOf
(
'
String
'
);
if
(
productSeriesInfo
!=
=
null
){
if
(
productSeriesInfo
!=
""
&&
productSeriesInfo
!=
null
&&
productSeriesInfo
!=
undefined
){
ret
=
true
;
}
expect
(
ret
).
assertTrue
();
console
.
info
(
'
testGetProductSeries01 :
PASS
'
);
console
.
info
(
'
testGetProductSeries01 :
end
'
);
})
/**
...
...
@@ -143,11 +143,11 @@ describe('DeviceInfoTest', function () {
console
.
info
(
'
the value of the deviceinfo productModel is :
'
+
productModelInfo
);
expect
(
productModelInfo
).
assertInstanceOf
(
'
String
'
);
if
(
productModelInfo
!=
=
null
){
if
(
productModelInfo
!=
""
&&
productModelInfo
!=
null
&&
productModelInfo
!=
undefined
){
ret
=
true
;
}
expect
(
ret
).
assertTrue
();
console
.
info
(
'
testGetProductModel01 :
PASS
'
);
console
.
info
(
'
testGetProductModel01 :
end
'
);
})
/**
...
...
@@ -165,11 +165,11 @@ describe('DeviceInfoTest', function () {
console
.
info
(
'
the value of the deviceinfo softwareModel is :
'
+
softwareModelInfo
);
expect
(
softwareModelInfo
).
assertInstanceOf
(
'
String
'
);
if
(
softwareModelInfo
!=
=
null
){
if
(
softwareModelInfo
!=
""
&&
softwareModelInfo
!=
null
&&
softwareModelInfo
!=
undefined
){
ret
=
true
;
}
expect
(
ret
).
assertTrue
();
console
.
info
(
'
testGetSoftwareModel01 :
PASS
'
);
console
.
info
(
'
testGetSoftwareModel01 :
end
'
);
})
/**
...
...
@@ -187,11 +187,11 @@ describe('DeviceInfoTest', function () {
console
.
info
(
'
the value of the deviceinfo hardwareModel is :
'
+
hardwareModelInfo
);
expect
(
hardwareModelInfo
).
assertInstanceOf
(
'
String
'
);
if
(
hardwareModelInfo
!=
=
null
){
if
(
hardwareModelInfo
!=
""
&&
hardwareModelInfo
!=
null
&&
hardwareModelInfo
!=
undefined
){
ret
=
true
;
}
expect
(
ret
).
assertTrue
();
console
.
info
(
'
testGetHardWareModel01 :
PASS
'
);
console
.
info
(
'
testGetHardWareModel01 :
end
'
);
})
/**
...
...
@@ -209,11 +209,11 @@ describe('DeviceInfoTest', function () {
console
.
info
(
'
the value of the deviceinfo hardwareProfile is :
'
+
hardwareProfileInfo
);
expect
(
hardwareProfileInfo
).
assertInstanceOf
(
'
String
'
);
if
(
hardwareProfileInfo
!=
=
null
){
if
(
hardwareProfileInfo
!=
""
&&
hardwareProfileInfo
!=
null
&&
hardwareProfileInfo
!=
undefined
){
ret
=
true
;
}
expect
(
ret
).
assertTrue
();
console
.
info
(
'
testGetHardWareProfile01 :
PASS
'
);
console
.
info
(
'
testGetHardWareProfile01 :
end
'
);
})
/**
...
...
@@ -231,11 +231,11 @@ describe('DeviceInfoTest', function () {
console
.
info
(
'
the value of the deviceinfo serial is :
'
+
serialInfo
);
expect
(
serialInfo
).
assertInstanceOf
(
'
String
'
);
if
(
serialInfo
!=
=
null
){
if
(
serialInfo
!=
""
&&
serialInfo
!=
null
&&
serialInfo
!=
undefined
){
ret
=
true
;
}
expect
(
ret
).
assertTrue
();
console
.
info
(
'
testGetSerial01 :
PASS
'
);
console
.
info
(
'
testGetSerial01 :
end
'
);
})
/**
...
...
@@ -253,11 +253,11 @@ describe('DeviceInfoTest', function () {
console
.
info
(
'
the value of the deviceinfo bootloaderVersion is :
'
+
bootloaderVersionInfo
);
expect
(
bootloaderVersionInfo
).
assertInstanceOf
(
'
String
'
);
if
(
bootloaderVersionInfo
!=
=
null
){
if
(
bootloaderVersionInfo
!=
""
&&
bootloaderVersionInfo
!=
null
&&
bootloaderVersionInfo
!=
undefined
){
ret
=
true
;
}
expect
(
ret
).
assertTrue
();
console
.
info
(
'
testGetBootLoaderVersion01 :
PASS
'
)
console
.
info
(
'
testGetBootLoaderVersion01 :
end
'
)
})
/**
...
...
@@ -275,11 +275,11 @@ describe('DeviceInfoTest', function () {
console
.
info
(
'
the value of the deviceinfo abiList is :
'
+
abiListInfo
);
expect
(
abiListInfo
).
assertInstanceOf
(
'
String
'
);
if
(
abiListInfo
!=
=
null
){
if
(
abiListInfo
!=
""
&&
abiListInfo
!=
null
&&
abiListInfo
!=
undefined
){
ret
=
true
;
}
expect
(
ret
).
assertTrue
();
console
.
info
(
'
testGetabiList01 :
PASS
'
);
console
.
info
(
'
testGetabiList01 :
end
'
);
})
/**
...
...
@@ -297,11 +297,11 @@ describe('DeviceInfoTest', function () {
console
.
info
(
'
the value of the deviceinfo securityPatchTag is :
'
+
securityPatchTagInfo
);
expect
(
securityPatchTagInfo
).
assertInstanceOf
(
'
String
'
);
if
(
securityPatchTagInfo
!=
=
null
){
if
(
securityPatchTagInfo
!=
""
&&
securityPatchTagInfo
!=
null
&&
securityPatchTagInfo
!=
undefined
){
ret
=
true
;
}
expect
(
ret
).
assertTrue
();
console
.
info
(
'
testGetSecurityPatchTag01 :
PASS
'
);
console
.
info
(
'
testGetSecurityPatchTag01 :
end
'
);
})
/**
...
...
@@ -319,11 +319,11 @@ describe('DeviceInfoTest', function () {
console
.
info
(
'
the value of the deviceinfo displayVersion is :
'
+
displayVersionInfo
);
expect
(
displayVersionInfo
).
assertInstanceOf
(
'
String
'
);
if
(
displayVersionInfo
!=
=
null
){
if
(
displayVersionInfo
!=
""
&&
displayVersionInfo
!=
null
&&
displayVersionInfo
!=
undefined
){
ret
=
true
;
}
expect
(
ret
).
assertTrue
();
console
.
info
(
'
testGetDisplayVersion01 :
PASS
'
);
console
.
info
(
'
testGetDisplayVersion01 :
end
'
);
})
/**
...
...
@@ -341,11 +341,11 @@ describe('DeviceInfoTest', function () {
console
.
info
(
'
the value of the deviceinfo incrementalVersion is :
'
+
incrementalVersionInfo
);
expect
(
incrementalVersionInfo
).
assertInstanceOf
(
'
String
'
);
if
(
incrementalVersionInfo
!=
=
null
){
if
(
incrementalVersionInfo
!=
""
&&
incrementalVersionInfo
!=
null
&&
incrementalVersionInfo
!=
undefined
){
ret
=
true
;
}
expect
(
ret
).
assertTrue
();
console
.
info
(
'
testGetIncrementalVersion01 :
PASS
'
);
console
.
info
(
'
testGetIncrementalVersion01 :
end
'
);
})
/**
...
...
@@ -363,11 +363,11 @@ describe('DeviceInfoTest', function () {
console
.
info
(
'
the value of the deviceinfo osReleaseType is :
'
+
osReleaseTypeInfo
);
expect
(
osReleaseTypeInfo
).
assertInstanceOf
(
'
String
'
);
if
(
osReleaseTypeInfo
!=
=
null
){
if
(
osReleaseTypeInfo
!=
""
&&
osReleaseTypeInfo
!=
null
&&
osReleaseTypeInfo
!=
undefined
){
ret
=
true
;
}
expect
(
ret
).
assertTrue
();
console
.
info
(
'
testGetOSReleaserType01 :
PASS
'
);
console
.
info
(
'
testGetOSReleaserType01 :
end
'
);
})
/**
...
...
@@ -385,11 +385,11 @@ describe('DeviceInfoTest', function () {
console
.
info
(
'
the value of the deviceinfo osFullName is :
'
+
osFullNameInfo
);
expect
(
osFullNameInfo
).
assertInstanceOf
(
'
String
'
);
if
(
osFullNameInfo
!=
=
null
){
if
(
osFullNameInfo
!=
""
&&
osFullNameInfo
!=
null
&&
osFullNameInfo
!=
undefined
){
ret
=
true
;
}
expect
(
ret
).
assertTrue
();
console
.
info
(
'
testGetOSFullName01 :
PASS
'
);
console
.
info
(
'
testGetOSFullName01 :
end
'
);
})
/**
...
...
@@ -407,11 +407,11 @@ describe('DeviceInfoTest', function () {
console
.
info
(
'
the value of the deviceinfo majorVersion is :
'
+
majorVersionInfo
);
expect
(
majorVersionInfo
).
assertInstanceOf
(
'
Number
'
);
if
(
majorVersionInfo
!=
=
null
){
if
(
majorVersionInfo
!=
""
&&
majorVersionInfo
!=
null
&&
majorVersionInfo
!=
undefined
){
ret
=
true
;
}
expect
(
ret
).
assertTrue
();
console
.
info
(
'
testGetMajorVersion01 :
PASS
'
);
console
.
info
(
'
testGetMajorVersion01 :
end
'
);
})
/**
...
...
@@ -429,11 +429,11 @@ describe('DeviceInfoTest', function () {
console
.
info
(
'
the value of the deviceinfo seniorVersion is :
'
+
seniorVersionInfo
);
expect
(
seniorVersionInfo
).
assertInstanceOf
(
'
Number
'
);
if
(
seniorVersionInfo
!=
=
null
){
if
(
seniorVersionInfo
!=
""
&&
seniorVersionInfo
!=
null
&&
seniorVersionInfo
!=
undefined
){
ret
=
true
;
}
expect
(
ret
).
assertTrue
();
console
.
info
(
'
testGetSeniorVersion01 :
PASS
'
);
console
.
info
(
'
testGetSeniorVersion01 :
end
'
);
})
/**
...
...
@@ -451,11 +451,11 @@ describe('DeviceInfoTest', function () {
console
.
info
(
'
the value of the deviceinfo featureVersion is :
'
+
featureVersionInfo
);
expect
(
featureVersionInfo
).
assertInstanceOf
(
'
Number
'
);
if
(
featureVersionInfo
!=
=
null
){
if
(
featureVersionInfo
!=
""
&&
featureVersionInfo
!=
null
&&
featureVersionInfo
!=
undefined
){
ret
=
true
;
}
expect
(
ret
).
assertTrue
();
console
.
info
(
'
testGetFeatureVersion01 :
PASS
'
);
console
.
info
(
'
testGetFeatureVersion01 :
end
'
);
})
/**
...
...
@@ -473,11 +473,11 @@ describe('DeviceInfoTest', function () {
console
.
info
(
'
the value of the deviceinfo buildVersion is :
'
+
buildVersionInfo
);
expect
(
buildVersionInfo
).
assertInstanceOf
(
'
Number
'
);
if
(
buildVersionInfo
!=
=
null
){
if
(
buildVersionInfo
!=
""
&&
buildVersionInfo
!=
null
&&
buildVersionInfo
!=
undefined
){
ret
=
true
;
}
expect
(
ret
).
assertTrue
();
console
.
info
(
'
testGetBuildVersion01 :
PASS
'
);
console
.
info
(
'
testGetBuildVersion01 :
end
'
);
})
/**
...
...
@@ -495,11 +495,11 @@ describe('DeviceInfoTest', function () {
console
.
info
(
'
the value of the deviceinfo sdkApiVersion is :
'
+
sdkApiVersionInfo
);
expect
(
sdkApiVersionInfo
).
assertInstanceOf
(
'
Number
'
);
if
(
sdkApiVersionInfo
!=
=
null
){
if
(
sdkApiVersionInfo
!=
""
&&
sdkApiVersionInfo
!=
null
&&
sdkApiVersionInfo
!=
undefined
){
ret
=
true
;
}
expect
(
ret
).
assertTrue
();
console
.
info
(
'
testGetSdkApiVersion01 :
PASS
'
);
console
.
info
(
'
testGetSdkApiVersion01 :
end
'
);
})
/**
...
...
@@ -517,11 +517,11 @@ describe('DeviceInfoTest', function () {
console
.
info
(
'
the value of the deviceinfo firstApiVersion is :
'
+
firstApiVersionInfo
);
expect
(
firstApiVersionInfo
).
assertInstanceOf
(
'
Number
'
);
if
(
firstApiVersionInfo
!=
=
null
){
if
(
firstApiVersionInfo
!=
""
&&
firstApiVersionInfo
!=
null
&&
firstApiVersionInfo
!=
undefined
){
ret
=
true
;
}
expect
(
ret
).
assertTrue
();
console
.
info
(
'
testGetFirstApiVersion01 :
PASS
'
);
console
.
info
(
'
testGetFirstApiVersion01 :
end
'
);
})
/**
...
...
@@ -539,11 +539,11 @@ describe('DeviceInfoTest', function () {
console
.
info
(
'
the value of the deviceinfo versionId is :
'
+
versionIdInfo
);
expect
(
versionIdInfo
).
assertInstanceOf
(
'
String
'
);
if
(
versionIdInfo
!=
=
null
){
if
(
versionIdInfo
!=
""
&&
versionIdInfo
!=
null
&&
versionIdInfo
!=
undefined
){
ret
=
true
;
}
expect
(
ret
).
assertTrue
();
console
.
info
(
'
testGetVersionId01 :
PASS
'
);
console
.
info
(
'
testGetVersionId01 :
end
'
);
})
/**
...
...
@@ -561,11 +561,11 @@ describe('DeviceInfoTest', function () {
console
.
info
(
'
the value of the deviceinfo buildType is :
'
+
buildTypeInfo
);
expect
(
buildTypeInfo
).
assertInstanceOf
(
'
String
'
);
if
(
buildTypeInfo
!=
=
null
){
if
(
buildTypeInfo
!=
""
&&
buildTypeInfo
!=
null
&&
buildTypeInfo
!=
undefined
){
ret
=
true
;
}
expect
(
ret
).
assertTrue
();
console
.
info
(
'
testGetBuildType01 :
PASS
'
);
console
.
info
(
'
testGetBuildType01 :
end
'
);
})
/**
...
...
@@ -583,11 +583,11 @@ describe('DeviceInfoTest', function () {
console
.
info
(
'
the value of the deviceinfo buildUser is :
'
+
buildUserInfo
);
expect
(
buildUserInfo
).
assertInstanceOf
(
'
String
'
);
if
(
buildUserInfo
!=
=
null
){
if
(
buildUserInfo
!=
""
&&
buildUserInfo
!=
null
&&
buildUserInfo
!=
undefined
){
ret
=
true
;
}
expect
(
ret
).
assertTrue
();
console
.
info
(
'
testGetBuildUser01 :
PASS
'
);
console
.
info
(
'
testGetBuildUser01 :
end
'
);
})
/**
...
...
@@ -605,11 +605,11 @@ describe('DeviceInfoTest', function () {
console
.
info
(
'
the value of the deviceinfo buildHost is :
'
+
buildHostInfo
);
expect
(
buildHostInfo
).
assertInstanceOf
(
'
String
'
);
if
(
buildHostInfo
!=
=
null
){
if
(
buildHostInfo
!=
""
&&
buildHostInfo
!=
null
&&
buildHostInfo
!=
undefined
){
ret
=
true
;
}
expect
(
ret
).
assertTrue
();
console
.
info
(
'
testGetBuildHost01 :
PASS
'
);
console
.
info
(
'
testGetBuildHost01 :
end
'
);
})
/**
...
...
@@ -627,11 +627,11 @@ describe('DeviceInfoTest', function () {
console
.
info
(
'
the value of the deviceinfo buildTime is :
'
+
buildTimeInfo
);
expect
(
buildTimeInfo
).
assertInstanceOf
(
'
String
'
);
if
(
buildTimeInfo
!=
=
null
){
if
(
buildTimeInfo
!=
""
&&
buildTimeInfo
!=
null
&&
buildTimeInfo
!=
undefined
){
ret
=
true
;
}
expect
(
ret
).
assertTrue
();
console
.
info
(
'
testGetBuildTime01 :
PASS
'
);
console
.
info
(
'
testGetBuildTime01 :
end
'
);
})
/**
...
...
@@ -649,11 +649,11 @@ describe('DeviceInfoTest', function () {
console
.
info
(
'
the value of the deviceinfo buildRootHash is :
'
+
buildRootHashInfo
);
expect
(
buildRootHashInfo
).
assertInstanceOf
(
'
String
'
);
if
(
buildRootHashInfo
!=
=
null
){
if
(
buildRootHashInfo
!=
""
&&
buildRootHashInfo
!=
null
&&
buildRootHashInfo
!=
undefined
){
ret
=
true
;
}
expect
(
ret
).
assertTrue
();
console
.
info
(
'
testGetBuildRootHash01 :
PASS
'
);
console
.
info
(
'
testGetBuildRootHash01 :
end
'
);
})
/**
...
...
@@ -670,9 +670,10 @@ describe('DeviceInfoTest', function () {
console
.
info
(
'
the value of the deviceinfo deviceType is:
'
+
deviceTypeInfo
);
let
len
=
deviceTypeInfo
.
length
console
.
info
(
'
the value of the device type characters:
'
+
len
);
expect
(
len
).
assertLess
(
3
2
)
console
.
info
(
'
device_info_test_030 :
PASS
'
)
expect
(
len
).
assertLess
(
3
3
)
console
.
info
(
'
device_info_test_030 :
end
'
)
})
/**
...
...
@@ -690,8 +691,8 @@ describe('DeviceInfoTest', function () {
let
len
=
manufactureInfo
.
length
console
.
info
(
'
the value of the manufacture characters is :
'
+
len
);
expect
(
len
).
assertLess
(
3
2
)
console
.
info
(
'
device_info_test_031 :
PASS
'
)
expect
(
len
).
assertLess
(
3
3
)
console
.
info
(
'
device_info_test_031 :
end
'
)
})
/**
...
...
@@ -709,8 +710,8 @@ describe('DeviceInfoTest', function () {
let
len
=
brandInfo
.
length
console
.
info
(
'
the value of the external product family name characters is :
'
+
len
);
expect
(
len
).
assertLess
(
3
2
)
console
.
info
(
'
device_info_test_032 :
PASS
'
)
expect
(
len
).
assertLess
(
3
3
)
console
.
info
(
'
device_info_test_032 :
end
'
)
})
/**
...
...
@@ -729,7 +730,7 @@ describe('DeviceInfoTest', function () {
let
len
=
marketNameInfo
.
length
console
.
info
(
'
the value of the product series characters is :
'
+
len
);
expect
(
len
).
assertLess
(
32
)
console
.
info
(
'
device_info_test_033 :
PASS
'
)
console
.
info
(
'
device_info_test_033 :
end
'
)
})
/**
...
...
@@ -747,8 +748,8 @@ describe('DeviceInfoTest', function () {
let
len
=
productSeriesInfo
.
length
console
.
info
(
'
the value of the product series characters is :
'
+
len
);
expect
(
len
).
assertLess
(
3
2
)
console
.
info
(
'
device_info_test_034 :
PASS
'
)
expect
(
len
).
assertLess
(
3
3
)
console
.
info
(
'
device_info_test_034 :
end
'
)
})
/**
...
...
@@ -766,8 +767,8 @@ describe('DeviceInfoTest', function () {
let
len
=
productModelInfo
.
length
console
.
info
(
'
the value of the certified model characters is :
'
+
len
);
expect
(
len
).
assertLess
(
3
2
)
console
.
info
(
'
device_info_test_035 :
PASS
'
)
expect
(
len
).
assertLess
(
3
3
)
console
.
info
(
'
device_info_test_035 :
end
'
)
})
/**
...
...
@@ -785,8 +786,8 @@ describe('DeviceInfoTest', function () {
let
len
=
softwareModelInfo
.
length
console
.
info
(
'
the value of the internal software sub-model characters is :
'
+
len
);
expect
(
len
).
assertLess
(
3
2
)
console
.
info
(
'
device_info_test_036 :
PASS
'
)
expect
(
len
).
assertLess
(
3
3
)
console
.
info
(
'
device_info_test_036 :
end
'
)
})
/**
...
...
@@ -804,14 +805,14 @@ describe('DeviceInfoTest', function () {
let
len
=
hardwareModelInfo
.
length
;
console
.
info
(
'
the value of the hardware version characters is :
'
+
len
);
expect
(
len
).
assertLess
(
3
2
)
console
.
info
(
'
device_info_test_037 :
PASS
'
);
expect
(
len
).
assertLess
(
3
3
)
console
.
info
(
'
device_info_test_037 :
end
'
);
})
/**
* @tc.number SUB_STARTUP_JS_DEVCEINFO_0420
* @tc.name testGetHardwareProfile02
* @tc.desc Get a string representing the hardware version which has a maximum of
32
characters.
* @tc.desc Get a string representing the hardware version which has a maximum of
1000
characters.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
...
...
@@ -823,14 +824,14 @@ describe('DeviceInfoTest', function () {
let
len
=
hardwareProfileInfo
.
length
;
console
.
info
(
'
the value of the hardware version characters is :
'
+
len
);
expect
(
len
).
assertLess
(
100
0
);
console
.
info
(
'
device_info_test_038 :
PASS
'
);
expect
(
len
).
assertLess
(
100
1
);
console
.
info
(
'
device_info_test_038 :
end
'
);
})
/**
* @tc.number SUB_STARTUP_JS_DEVCEINFO_0430
* @tc.name testGetSerial02
* @tc.desc Get a string representing the device serial number which has a maximum of
32
characters.
* @tc.desc Get a string representing the device serial number which has a maximum of
64
characters.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
...
...
@@ -842,14 +843,14 @@ describe('DeviceInfoTest', function () {
let
len
=
serialInfo
.
length
;
console
.
info
(
'
the value of the device serial number characters is :
'
+
len
);
expect
(
len
).
assertLess
(
6
4
);
console
.
info
(
'
device_info_test_039 :
PASS
'
);
expect
(
len
).
assertLess
(
6
5
);
console
.
info
(
'
device_info_test_039 :
end
'
);
})
/**
* @tc.number SUB_STARTUP_JS_DEVCEINFO_0440
* @tc.name testGetDisplayVersion02
* @tc.desc Get a string representing the version number visible to users which has a maximum of
32
characters.
* @tc.desc Get a string representing the version number visible to users which has a maximum of
64
characters.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
...
...
@@ -861,8 +862,8 @@ describe('DeviceInfoTest', function () {
let
len
=
displayVersionInfo
.
length
;
console
.
info
(
'
the value of the device serial number characters is :
'
+
len
);
expect
(
len
).
assertLess
(
6
4
);
console
.
info
(
'
device_info_test_040 :
PASS
'
);
expect
(
len
).
assertLess
(
6
5
);
console
.
info
(
'
device_info_test_040 :
end
'
);
})
/**
...
...
@@ -881,13 +882,13 @@ describe('DeviceInfoTest', function () {
let
len
=
osFullNameInfo
.
length
;
console
.
info
(
'
the value of the operating system full name characters is :
'
+
len
);
expect
(
len
).
assertLess
(
32
);
console
.
info
(
'
device_info_test_041 :
PASS
'
);
console
.
info
(
'
device_info_test_041 :
end
'
);
})
/**
* @tc.number SUB_STARTUP_JS_DEVCEINFO_0460
* @tc.name testGetVersionId02
* @tc.desc Get a string representing the operating system full name which has a maximum of
32
characters.
* @tc.desc Get a string representing the operating system full name which has a maximum of
127
characters.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
...
...
@@ -899,8 +900,8 @@ describe('DeviceInfoTest', function () {
let
len
=
versionIdInfo
.
length
;
console
.
info
(
'
the value of the operating system full name characters is :
'
+
len
)
expect
(
len
).
assertLess
(
12
7
);
console
.
info
(
'
device_info_test_042 :
PASS
'
)
expect
(
len
).
assertLess
(
12
8
);
console
.
info
(
'
device_info_test_042 :
end
'
)
})
/**
...
...
@@ -917,8 +918,8 @@ describe('DeviceInfoTest', function () {
console
.
info
(
'
the value of the deviceinfo buildUser is :
'
+
buildUserInfo
);
console
.
info
(
'
the value of the different build user of the same baseline code characters is :
'
+
buildUserInfo
.
length
);
expect
(
buildUserInfo
.
length
).
assertLess
(
3
2
)
console
.
info
(
'
device_info_test_043 :
PASS
'
)
expect
(
buildUserInfo
.
length
).
assertLess
(
3
3
)
console
.
info
(
'
device_info_test_043 :
end
'
)
})
/**
...
...
@@ -936,8 +937,8 @@ describe('DeviceInfoTest', function () {
let
len
=
buildHostInfo
.
length
console
.
info
(
'
the value of the different build host of the same baseline code characters is :
'
+
len
)
expect
(
len
).
assertLess
(
3
2
)
console
.
info
(
'
device_info_test_044 :
PASS
'
)
expect
(
len
).
assertLess
(
3
3
)
console
.
info
(
'
device_info_test_044 :
end
'
)
})
/**
...
...
@@ -956,7 +957,7 @@ describe('DeviceInfoTest', function () {
let
len
=
deviceTypeInfo
.
length
;
console
.
info
(
'
the value of the device type characters:
'
+
len
);
expect
(
len
).
assertLarger
(
0
);
console
.
info
(
'
device_info_test_045 :
PASS
'
);
console
.
info
(
'
device_info_test_045 :
end
'
);
})
/**
...
...
@@ -975,7 +976,7 @@ describe('DeviceInfoTest', function () {
let
len
=
manufactureInfo
.
length
console
.
info
(
'
the value of the manufacture characters is :
'
+
len
)
expect
(
len
).
assertLarger
(
0
)
console
.
info
(
'
device_info_test_046 :
PASS
'
)
console
.
info
(
'
device_info_test_046 :
end
'
)
})
/**
...
...
@@ -994,7 +995,7 @@ describe('DeviceInfoTest', function () {
let
len
=
brandInfo
.
length
;
console
.
info
(
'
the value of the external product family name characters is :
'
+
len
);
expect
(
len
).
assertLarger
(
0
);
console
.
info
(
'
device_info_test_047 :
PASS
'
);
console
.
info
(
'
device_info_test_047 :
end
'
);
})
/**
...
...
@@ -1013,7 +1014,7 @@ describe('DeviceInfoTest', function () {
let
len
=
marketNameInfo
.
length
;
console
.
info
(
'
the value of the product series characters is :
'
+
len
)
expect
(
len
).
assertLarger
(
0
);
console
.
info
(
'
device_info_test_048 :
PASS
'
);
console
.
info
(
'
device_info_test_048 :
end
'
);
})
/**
...
...
@@ -1032,7 +1033,7 @@ describe('DeviceInfoTest', function () {
let
len
=
productSeriesInfo
.
length
;
console
.
info
(
'
the value of the product series characters is :
'
+
len
);
expect
(
len
).
assertLarger
(
0
);
console
.
info
(
'
device_info_test_049 :
PASS
'
);
console
.
info
(
'
device_info_test_049 :
end
'
);
})
/**
...
...
@@ -1051,7 +1052,7 @@ describe('DeviceInfoTest', function () {
let
len
=
productModelInfo
.
length
console
.
info
(
'
the value of the certified model characters is :
'
+
len
)
expect
(
len
).
assertLarger
(
0
)
console
.
info
(
'
device_info_test_050 :
PASS
'
)
console
.
info
(
'
device_info_test_050 :
end
'
)
})
/**
...
...
@@ -1070,7 +1071,7 @@ describe('DeviceInfoTest', function () {
let
len
=
softwareModelInfo
.
length
console
.
info
(
'
the value of the internal software sub-model characters is :
'
+
len
)
expect
(
len
).
assertLarger
(
0
)
console
.
info
(
'
device_info_test_036 :
PASS
'
)
console
.
info
(
'
device_info_test_036 :
end
'
)
})
/**
...
...
@@ -1089,7 +1090,7 @@ describe('DeviceInfoTest', function () {
let
len
=
hardwareModelInfo
.
length
;
console
.
info
(
'
the value of the hardware version characters is :
'
+
len
);
expect
(
len
).
assertLarger
(
0
);
console
.
info
(
'
device_info_test_052 :
PASS
'
);
console
.
info
(
'
device_info_test_052 :
end
'
);
})
/**
...
...
@@ -1108,7 +1109,7 @@ describe('DeviceInfoTest', function () {
let
len
=
hardwareProfileInfo
.
length
;
console
.
info
(
'
the value of the hardware version characters is :
'
+
len
);
expect
(
len
).
assertLarger
(
0
);
console
.
info
(
'
device_info_test_053 :
PASS
'
);
console
.
info
(
'
device_info_test_053 :
end
'
);
})
/**
...
...
@@ -1127,7 +1128,7 @@ describe('DeviceInfoTest', function () {
let
len
=
serialInfo
.
length
;
console
.
info
(
'
the value of the device serial number characters is :
'
+
len
);
expect
(
len
).
assertLarger
(
0
);
console
.
info
(
'
device_info_test_054 :
PASS
'
);
console
.
info
(
'
device_info_test_054 :
end
'
);
})
/**
...
...
@@ -1146,7 +1147,7 @@ describe('DeviceInfoTest', function () {
let
len
=
displayVersionInfo
.
length
;
console
.
info
(
'
the value of the device serial number characters is :
'
+
len
);
expect
(
len
).
assertLarger
(
0
);
console
.
info
(
'
device_info_test_055 :
PASS
'
);
console
.
info
(
'
device_info_test_055 :
end
'
);
})
/**
...
...
@@ -1165,7 +1166,7 @@ describe('DeviceInfoTest', function () {
let
len
=
incrementalVersionInfo
.
length
console
.
info
(
'
the value of the device serial number characters is :
'
+
len
)
expect
(
len
).
assertLess
(
32
)
console
.
info
(
'
device_info_test_056 :
PASS
'
)
console
.
info
(
'
device_info_test_056 :
end
'
)
})
/**
...
...
@@ -1184,7 +1185,7 @@ describe('DeviceInfoTest', function () {
let
len
=
incrementalVersionInfo
.
length
console
.
info
(
'
the value of the device serial number characters is :
'
+
len
)
expect
(
len
).
assertLarger
(
0
)
console
.
info
(
'
device_info_test_057 :
PASS
'
)
console
.
info
(
'
device_info_test_057 :
end
'
)
})
/**
...
...
@@ -1203,7 +1204,7 @@ describe('DeviceInfoTest', function () {
let
len
=
versionIdInfo
.
length
console
.
info
(
'
the value of the operating system full name characters is :
'
+
len
)
expect
(
len
).
assertLarger
(
0
)
console
.
info
(
'
device_info_test_058 :
PASS
'
)
console
.
info
(
'
device_info_test_058 :
end
'
)
})
/**
...
...
@@ -1221,7 +1222,7 @@ describe('DeviceInfoTest', function () {
console
.
info
(
'
the value of the different build user of the same baseline code characters is :
'
+
buildUserInfo
.
length
);
expect
(
buildUserInfo
.
length
).
assertLarger
(
0
)
console
.
info
(
'
device_info_test_059 :
PASS
'
)
console
.
info
(
'
device_info_test_059 :
end
'
)
})
/**
...
...
@@ -1240,7 +1241,7 @@ describe('DeviceInfoTest', function () {
let
len
=
buildHostInfo
.
length
console
.
info
(
'
the value of the different build host of the same baseline code characters is :
'
+
len
);
expect
(
len
).
assertLarger
(
0
);
console
.
info
(
'
device_info_test_060 :
PASS
'
);
console
.
info
(
'
device_info_test_060 :
end
'
);
})
})
startup/startup_standard/entry/src/main/js/test/List.test.js
浏览文件 @
ca56d710
...
...
@@ -15,6 +15,6 @@
require
(
'
./DeviceInfoJsUnit.test.js
'
)
require
(
'
./ParametersJsUnit.test.js
'
)
require
(
'
./UpdaterJsUnit.test.js
'
)
startup/startup_standard/entry/src/main/js/test/ParametersJsUnit.test.js
100644 → 100755
浏览文件 @
ca56d710
文件模式从 100644 更改为 100755
startup/startup_standard/hap/entry-debug-
rich
-signed.hap
→
startup/startup_standard/hap/entry-debug-
standard
-signed.hap
浏览文件 @
ca56d710
无法预览此类型文件
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录