提交 ca56d710 编写于 作者: O openharmony_ci 提交者: Gitee

!433 【startup_standard】【master】Fix problematic cases

Merge pull request !433 from 南先森/startup_standard
...@@ -34,11 +34,11 @@ describe('DeviceInfoTest', function () { ...@@ -34,11 +34,11 @@ describe('DeviceInfoTest', function () {
console.info('the value of the deviceType is :' + deviceTypeInfo); console.info('the value of the deviceType is :' + deviceTypeInfo);
expect(deviceTypeInfo).assertInstanceOf('String'); expect(deviceTypeInfo).assertInstanceOf('String');
if (deviceTypeInfo !== null) { if (deviceTypeInfo !="" && deviceTypeInfo != null && deviceTypeInfo != undefined) {
ret = true; ret = true;
} }
expect(ret).assertTrue() expect(ret).assertTrue()
console.info('device_info_test_001 : PASS'); console.info('device_info_test_001 : end');
}) })
/** /**
...@@ -56,11 +56,11 @@ describe('DeviceInfoTest', function () { ...@@ -56,11 +56,11 @@ describe('DeviceInfoTest', function () {
console.info('the value of the manufactureInfo is :' + manufactureInfo); console.info('the value of the manufactureInfo is :' + manufactureInfo);
expect(manufactureInfo).assertInstanceOf('String'); expect(manufactureInfo).assertInstanceOf('String');
if (manufactureInfo !== null){ if (manufactureInfo !="" && manufactureInfo != null && manufactureInfo != undefined){
ret = true; ret = true;
} }
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('device_info_test_002 :PASS'); console.info('device_info_test_002 :end');
}) })
/** /**
* @tc.number SUB_STARTUP_JS_DEVCEINFO_0300 * @tc.number SUB_STARTUP_JS_DEVCEINFO_0300
...@@ -77,11 +77,11 @@ describe('DeviceInfoTest', function () { ...@@ -77,11 +77,11 @@ describe('DeviceInfoTest', function () {
console.info('the value of the deviceinfo brand is :' + brandInfo); console.info('the value of the deviceinfo brand is :' + brandInfo);
expect(brandInfo).assertInstanceOf('String'); expect(brandInfo).assertInstanceOf('String');
if (brandInfo !== null){ if (brandInfo !="" && brandInfo != null && brandInfo != undefined){
ret = true; ret = true;
} }
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetProductBrand01 :PASS'); console.info('testGetProductBrand01 :end');
}) })
/** /**
...@@ -99,11 +99,11 @@ describe('DeviceInfoTest', function () { ...@@ -99,11 +99,11 @@ describe('DeviceInfoTest', function () {
console.info('the value of the deviceinfo marketName is :' + marketNameInfo); console.info('the value of the deviceinfo marketName is :' + marketNameInfo);
expect(marketNameInfo).assertInstanceOf('String'); expect(marketNameInfo).assertInstanceOf('String');
if(marketNameInfo !== null){ if(marketNameInfo !="" && marketNameInfo != null && marketNameInfo != undefined){
ret = true; ret = true;
} }
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetMarketName01 :PASS'); console.info('testGetMarketName01 :end');
}) })
/** /**
...@@ -121,11 +121,11 @@ describe('DeviceInfoTest', function () { ...@@ -121,11 +121,11 @@ describe('DeviceInfoTest', function () {
console.info('the value of the deviceinfo productSeries is :' + productSeriesInfo); console.info('the value of the deviceinfo productSeries is :' + productSeriesInfo);
expect(productSeriesInfo).assertInstanceOf('String'); expect(productSeriesInfo).assertInstanceOf('String');
if(productSeriesInfo !== null){ if(productSeriesInfo !="" && productSeriesInfo != null && productSeriesInfo != undefined){
ret = true; ret = true;
} }
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetProductSeries01 :PASS'); console.info('testGetProductSeries01 :end');
}) })
/** /**
...@@ -143,11 +143,11 @@ describe('DeviceInfoTest', function () { ...@@ -143,11 +143,11 @@ describe('DeviceInfoTest', function () {
console.info('the value of the deviceinfo productModel is :' + productModelInfo); console.info('the value of the deviceinfo productModel is :' + productModelInfo);
expect(productModelInfo).assertInstanceOf('String'); expect(productModelInfo).assertInstanceOf('String');
if(productModelInfo !== null){ if(productModelInfo !="" && productModelInfo != null && productModelInfo != undefined){
ret =true; ret =true;
} }
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetProductModel01 :PASS'); console.info('testGetProductModel01 :end');
}) })
/** /**
...@@ -165,11 +165,11 @@ describe('DeviceInfoTest', function () { ...@@ -165,11 +165,11 @@ describe('DeviceInfoTest', function () {
console.info('the value of the deviceinfo softwareModel is :' + softwareModelInfo); console.info('the value of the deviceinfo softwareModel is :' + softwareModelInfo);
expect(softwareModelInfo).assertInstanceOf('String'); expect(softwareModelInfo).assertInstanceOf('String');
if(softwareModelInfo !== null){ if(softwareModelInfo !="" && softwareModelInfo != null && softwareModelInfo != undefined){
ret = true; ret = true;
} }
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetSoftwareModel01 :PASS'); console.info('testGetSoftwareModel01 :end');
}) })
/** /**
...@@ -187,11 +187,11 @@ describe('DeviceInfoTest', function () { ...@@ -187,11 +187,11 @@ describe('DeviceInfoTest', function () {
console.info('the value of the deviceinfo hardwareModel is :' + hardwareModelInfo); console.info('the value of the deviceinfo hardwareModel is :' + hardwareModelInfo);
expect(hardwareModelInfo).assertInstanceOf('String'); expect(hardwareModelInfo).assertInstanceOf('String');
if(hardwareModelInfo !== null){ if(hardwareModelInfo !="" && hardwareModelInfo != null && hardwareModelInfo != undefined){
ret = true; ret = true;
} }
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetHardWareModel01 :PASS'); console.info('testGetHardWareModel01 :end');
}) })
/** /**
...@@ -209,11 +209,11 @@ describe('DeviceInfoTest', function () { ...@@ -209,11 +209,11 @@ describe('DeviceInfoTest', function () {
console.info('the value of the deviceinfo hardwareProfile is :' + hardwareProfileInfo); console.info('the value of the deviceinfo hardwareProfile is :' + hardwareProfileInfo);
expect(hardwareProfileInfo).assertInstanceOf('String'); expect(hardwareProfileInfo).assertInstanceOf('String');
if(hardwareProfileInfo !== null){ if(hardwareProfileInfo !="" && hardwareProfileInfo != null && hardwareProfileInfo != undefined){
ret = true; ret = true;
} }
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetHardWareProfile01 :PASS'); console.info('testGetHardWareProfile01 :end');
}) })
/** /**
...@@ -231,11 +231,11 @@ describe('DeviceInfoTest', function () { ...@@ -231,11 +231,11 @@ describe('DeviceInfoTest', function () {
console.info('the value of the deviceinfo serial is :' + serialInfo); console.info('the value of the deviceinfo serial is :' + serialInfo);
expect(serialInfo).assertInstanceOf('String'); expect(serialInfo).assertInstanceOf('String');
if(serialInfo !== null){ if(serialInfo !="" && serialInfo != null && serialInfo != undefined){
ret = true; ret = true;
} }
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetSerial01 :PASS'); console.info('testGetSerial01 :end');
}) })
/** /**
...@@ -253,11 +253,11 @@ describe('DeviceInfoTest', function () { ...@@ -253,11 +253,11 @@ describe('DeviceInfoTest', function () {
console.info('the value of the deviceinfo bootloaderVersion is :' + bootloaderVersionInfo); console.info('the value of the deviceinfo bootloaderVersion is :' + bootloaderVersionInfo);
expect(bootloaderVersionInfo).assertInstanceOf('String'); expect(bootloaderVersionInfo).assertInstanceOf('String');
if(bootloaderVersionInfo !== null){ if(bootloaderVersionInfo !="" && bootloaderVersionInfo != null && bootloaderVersionInfo != undefined){
ret = true; ret = true;
} }
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetBootLoaderVersion01 :PASS') console.info('testGetBootLoaderVersion01 :end')
}) })
/** /**
...@@ -275,11 +275,11 @@ describe('DeviceInfoTest', function () { ...@@ -275,11 +275,11 @@ describe('DeviceInfoTest', function () {
console.info('the value of the deviceinfo abiList is :' + abiListInfo); console.info('the value of the deviceinfo abiList is :' + abiListInfo);
expect(abiListInfo).assertInstanceOf('String'); expect(abiListInfo).assertInstanceOf('String');
if(abiListInfo !== null){ if(abiListInfo !="" && abiListInfo != null && abiListInfo != undefined){
ret = true; ret = true;
} }
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetabiList01 :PASS'); console.info('testGetabiList01 :end');
}) })
/** /**
...@@ -297,11 +297,11 @@ describe('DeviceInfoTest', function () { ...@@ -297,11 +297,11 @@ describe('DeviceInfoTest', function () {
console.info('the value of the deviceinfo securityPatchTag is :' + securityPatchTagInfo); console.info('the value of the deviceinfo securityPatchTag is :' + securityPatchTagInfo);
expect(securityPatchTagInfo).assertInstanceOf('String'); expect(securityPatchTagInfo).assertInstanceOf('String');
if(securityPatchTagInfo !== null){ if(securityPatchTagInfo !="" && securityPatchTagInfo != null && securityPatchTagInfo != undefined){
ret = true; ret = true;
} }
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetSecurityPatchTag01 :PASS'); console.info('testGetSecurityPatchTag01 :end');
}) })
/** /**
...@@ -319,11 +319,11 @@ describe('DeviceInfoTest', function () { ...@@ -319,11 +319,11 @@ describe('DeviceInfoTest', function () {
console.info('the value of the deviceinfo displayVersion is :' + displayVersionInfo); console.info('the value of the deviceinfo displayVersion is :' + displayVersionInfo);
expect(displayVersionInfo).assertInstanceOf('String'); expect(displayVersionInfo).assertInstanceOf('String');
if(displayVersionInfo !== null){ if(displayVersionInfo !="" && displayVersionInfo != null && displayVersionInfo != undefined){
ret = true; ret = true;
} }
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetDisplayVersion01 :PASS'); console.info('testGetDisplayVersion01 :end');
}) })
/** /**
...@@ -341,11 +341,11 @@ describe('DeviceInfoTest', function () { ...@@ -341,11 +341,11 @@ describe('DeviceInfoTest', function () {
console.info('the value of the deviceinfo incrementalVersion is :' + incrementalVersionInfo); console.info('the value of the deviceinfo incrementalVersion is :' + incrementalVersionInfo);
expect(incrementalVersionInfo).assertInstanceOf('String'); expect(incrementalVersionInfo).assertInstanceOf('String');
if(incrementalVersionInfo !== null){ if(incrementalVersionInfo !="" && incrementalVersionInfo != null && incrementalVersionInfo != undefined){
ret = true; ret = true;
} }
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetIncrementalVersion01 :PASS'); console.info('testGetIncrementalVersion01 :end');
}) })
/** /**
...@@ -363,11 +363,11 @@ describe('DeviceInfoTest', function () { ...@@ -363,11 +363,11 @@ describe('DeviceInfoTest', function () {
console.info('the value of the deviceinfo osReleaseType is :' + osReleaseTypeInfo); console.info('the value of the deviceinfo osReleaseType is :' + osReleaseTypeInfo);
expect(osReleaseTypeInfo).assertInstanceOf('String'); expect(osReleaseTypeInfo).assertInstanceOf('String');
if(osReleaseTypeInfo !== null){ if(osReleaseTypeInfo !="" && osReleaseTypeInfo != null && osReleaseTypeInfo != undefined){
ret = true; ret = true;
} }
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetOSReleaserType01 :PASS'); console.info('testGetOSReleaserType01 :end');
}) })
/** /**
...@@ -385,11 +385,11 @@ describe('DeviceInfoTest', function () { ...@@ -385,11 +385,11 @@ describe('DeviceInfoTest', function () {
console.info('the value of the deviceinfo osFullName is :' + osFullNameInfo); console.info('the value of the deviceinfo osFullName is :' + osFullNameInfo);
expect(osFullNameInfo).assertInstanceOf('String'); expect(osFullNameInfo).assertInstanceOf('String');
if(osFullNameInfo !== null){ if(osFullNameInfo !="" && osFullNameInfo != null && osFullNameInfo != undefined){
ret = true; ret = true;
} }
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetOSFullName01 :PASS'); console.info('testGetOSFullName01 :end');
}) })
/** /**
...@@ -407,11 +407,11 @@ describe('DeviceInfoTest', function () { ...@@ -407,11 +407,11 @@ describe('DeviceInfoTest', function () {
console.info('the value of the deviceinfo majorVersion is :' + majorVersionInfo); console.info('the value of the deviceinfo majorVersion is :' + majorVersionInfo);
expect(majorVersionInfo).assertInstanceOf('Number'); expect(majorVersionInfo).assertInstanceOf('Number');
if(majorVersionInfo !== null){ if(majorVersionInfo !="" && majorVersionInfo != null && majorVersionInfo != undefined){
ret = true; ret = true;
} }
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetMajorVersion01 :PASS'); console.info('testGetMajorVersion01 :end');
}) })
/** /**
...@@ -429,11 +429,11 @@ describe('DeviceInfoTest', function () { ...@@ -429,11 +429,11 @@ describe('DeviceInfoTest', function () {
console.info('the value of the deviceinfo seniorVersion is :' + seniorVersionInfo); console.info('the value of the deviceinfo seniorVersion is :' + seniorVersionInfo);
expect(seniorVersionInfo).assertInstanceOf('Number'); expect(seniorVersionInfo).assertInstanceOf('Number');
if(seniorVersionInfo !== null){ if(seniorVersionInfo !="" && seniorVersionInfo != null && seniorVersionInfo != undefined){
ret = true; ret = true;
} }
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetSeniorVersion01 :PASS'); console.info('testGetSeniorVersion01 :end');
}) })
/** /**
...@@ -451,11 +451,11 @@ describe('DeviceInfoTest', function () { ...@@ -451,11 +451,11 @@ describe('DeviceInfoTest', function () {
console.info('the value of the deviceinfo featureVersion is :' + featureVersionInfo); console.info('the value of the deviceinfo featureVersion is :' + featureVersionInfo);
expect(featureVersionInfo).assertInstanceOf('Number'); expect(featureVersionInfo).assertInstanceOf('Number');
if(featureVersionInfo !== null){ if(featureVersionInfo !="" && featureVersionInfo != null && featureVersionInfo != undefined){
ret = true; ret = true;
} }
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetFeatureVersion01 :PASS'); console.info('testGetFeatureVersion01 :end');
}) })
/** /**
...@@ -473,11 +473,11 @@ describe('DeviceInfoTest', function () { ...@@ -473,11 +473,11 @@ describe('DeviceInfoTest', function () {
console.info('the value of the deviceinfo buildVersion is :' + buildVersionInfo); console.info('the value of the deviceinfo buildVersion is :' + buildVersionInfo);
expect(buildVersionInfo).assertInstanceOf('Number'); expect(buildVersionInfo).assertInstanceOf('Number');
if(buildVersionInfo !== null){ if(buildVersionInfo !="" && buildVersionInfo != null && buildVersionInfo != undefined){
ret = true; ret = true;
} }
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetBuildVersion01 :PASS'); console.info('testGetBuildVersion01 :end');
}) })
/** /**
...@@ -495,11 +495,11 @@ describe('DeviceInfoTest', function () { ...@@ -495,11 +495,11 @@ describe('DeviceInfoTest', function () {
console.info('the value of the deviceinfo sdkApiVersion is :' + sdkApiVersionInfo); console.info('the value of the deviceinfo sdkApiVersion is :' + sdkApiVersionInfo);
expect(sdkApiVersionInfo).assertInstanceOf('Number'); expect(sdkApiVersionInfo).assertInstanceOf('Number');
if(sdkApiVersionInfo !== null){ if(sdkApiVersionInfo !="" && sdkApiVersionInfo != null && sdkApiVersionInfo != undefined){
ret = true; ret = true;
} }
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetSdkApiVersion01 :PASS'); console.info('testGetSdkApiVersion01 :end');
}) })
/** /**
...@@ -517,11 +517,11 @@ describe('DeviceInfoTest', function () { ...@@ -517,11 +517,11 @@ describe('DeviceInfoTest', function () {
console.info('the value of the deviceinfo firstApiVersion is :' + firstApiVersionInfo); console.info('the value of the deviceinfo firstApiVersion is :' + firstApiVersionInfo);
expect(firstApiVersionInfo).assertInstanceOf('Number'); expect(firstApiVersionInfo).assertInstanceOf('Number');
if(firstApiVersionInfo !== null){ if(firstApiVersionInfo !="" && firstApiVersionInfo != null && firstApiVersionInfo != undefined){
ret = true; ret = true;
} }
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetFirstApiVersion01 :PASS'); console.info('testGetFirstApiVersion01 :end');
}) })
/** /**
...@@ -539,11 +539,11 @@ describe('DeviceInfoTest', function () { ...@@ -539,11 +539,11 @@ describe('DeviceInfoTest', function () {
console.info('the value of the deviceinfo versionId is :' + versionIdInfo); console.info('the value of the deviceinfo versionId is :' + versionIdInfo);
expect(versionIdInfo).assertInstanceOf('String'); expect(versionIdInfo).assertInstanceOf('String');
if(versionIdInfo !== null){ if(versionIdInfo !="" && versionIdInfo != null && versionIdInfo != undefined){
ret = true; ret = true;
} }
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetVersionId01 :PASS'); console.info('testGetVersionId01 :end');
}) })
/** /**
...@@ -561,11 +561,11 @@ describe('DeviceInfoTest', function () { ...@@ -561,11 +561,11 @@ describe('DeviceInfoTest', function () {
console.info('the value of the deviceinfo buildType is :' + buildTypeInfo); console.info('the value of the deviceinfo buildType is :' + buildTypeInfo);
expect(buildTypeInfo).assertInstanceOf('String'); expect(buildTypeInfo).assertInstanceOf('String');
if(buildTypeInfo !== null){ if(buildTypeInfo !="" && buildTypeInfo != null && buildTypeInfo != undefined){
ret = true; ret = true;
} }
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetBuildType01 :PASS'); console.info('testGetBuildType01 :end');
}) })
/** /**
...@@ -583,11 +583,11 @@ describe('DeviceInfoTest', function () { ...@@ -583,11 +583,11 @@ describe('DeviceInfoTest', function () {
console.info('the value of the deviceinfo buildUser is :' + buildUserInfo); console.info('the value of the deviceinfo buildUser is :' + buildUserInfo);
expect(buildUserInfo).assertInstanceOf('String'); expect(buildUserInfo).assertInstanceOf('String');
if(buildUserInfo !== null){ if(buildUserInfo !="" && buildUserInfo != null && buildUserInfo != undefined){
ret = true; ret = true;
} }
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetBuildUser01 :PASS'); console.info('testGetBuildUser01 :end');
}) })
/** /**
...@@ -605,11 +605,11 @@ describe('DeviceInfoTest', function () { ...@@ -605,11 +605,11 @@ describe('DeviceInfoTest', function () {
console.info('the value of the deviceinfo buildHost is :' + buildHostInfo); console.info('the value of the deviceinfo buildHost is :' + buildHostInfo);
expect(buildHostInfo).assertInstanceOf('String'); expect(buildHostInfo).assertInstanceOf('String');
if(buildHostInfo !== null){ if(buildHostInfo !="" && buildHostInfo != null && buildHostInfo != undefined){
ret = true; ret = true;
} }
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetBuildHost01 :PASS'); console.info('testGetBuildHost01 :end');
}) })
/** /**
...@@ -627,11 +627,11 @@ describe('DeviceInfoTest', function () { ...@@ -627,11 +627,11 @@ describe('DeviceInfoTest', function () {
console.info('the value of the deviceinfo buildTime is :' + buildTimeInfo); console.info('the value of the deviceinfo buildTime is :' + buildTimeInfo);
expect(buildTimeInfo).assertInstanceOf('String'); expect(buildTimeInfo).assertInstanceOf('String');
if(buildTimeInfo !== null){ if(buildTimeInfo !="" && buildTimeInfo != null && buildTimeInfo != undefined){
ret = true; ret = true;
} }
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetBuildTime01 :PASS'); console.info('testGetBuildTime01 :end');
}) })
/** /**
...@@ -649,11 +649,11 @@ describe('DeviceInfoTest', function () { ...@@ -649,11 +649,11 @@ describe('DeviceInfoTest', function () {
console.info('the value of the deviceinfo buildRootHash is :' + buildRootHashInfo); console.info('the value of the deviceinfo buildRootHash is :' + buildRootHashInfo);
expect(buildRootHashInfo).assertInstanceOf('String'); expect(buildRootHashInfo).assertInstanceOf('String');
if(buildRootHashInfo !== null){ if(buildRootHashInfo !="" && buildRootHashInfo != null && buildRootHashInfo != undefined){
ret = true; ret = true;
} }
expect(ret).assertTrue(); expect(ret).assertTrue();
console.info('testGetBuildRootHash01 :PASS'); console.info('testGetBuildRootHash01 :end');
}) })
/** /**
...@@ -670,9 +670,10 @@ describe('DeviceInfoTest', function () { ...@@ -670,9 +670,10 @@ describe('DeviceInfoTest', function () {
console.info('the value of the deviceinfo deviceType is:' + deviceTypeInfo); console.info('the value of the deviceinfo deviceType is:' + deviceTypeInfo);
let len = deviceTypeInfo.length let len = deviceTypeInfo.length
console.info('the value of the device type characters:' + len); console.info('the value of the device type characters:' + len);
expect(len).assertLess(32) expect(len).assertLess(33)
console.info('device_info_test_030 :PASS') console.info('device_info_test_030 :end')
}) })
/** /**
...@@ -690,8 +691,8 @@ describe('DeviceInfoTest', function () { ...@@ -690,8 +691,8 @@ describe('DeviceInfoTest', function () {
let len = manufactureInfo.length let len = manufactureInfo.length
console.info('the value of the manufacture characters is :' + len); console.info('the value of the manufacture characters is :' + len);
expect(len).assertLess(32) expect(len).assertLess(33)
console.info('device_info_test_031 :PASS') console.info('device_info_test_031 :end')
}) })
/** /**
...@@ -709,8 +710,8 @@ describe('DeviceInfoTest', function () { ...@@ -709,8 +710,8 @@ describe('DeviceInfoTest', function () {
let len = brandInfo.length let len = brandInfo.length
console.info('the value of the external product family name characters is :' + len); console.info('the value of the external product family name characters is :' + len);
expect(len).assertLess(32) expect(len).assertLess(33)
console.info('device_info_test_032 :PASS') console.info('device_info_test_032 :end')
}) })
/** /**
...@@ -729,7 +730,7 @@ describe('DeviceInfoTest', function () { ...@@ -729,7 +730,7 @@ describe('DeviceInfoTest', function () {
let len = marketNameInfo.length let len = marketNameInfo.length
console.info('the value of the product series characters is :' + len); console.info('the value of the product series characters is :' + len);
expect(len).assertLess(32) 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 () { ...@@ -747,8 +748,8 @@ describe('DeviceInfoTest', function () {
let len = productSeriesInfo.length let len = productSeriesInfo.length
console.info('the value of the product series characters is :' + len); console.info('the value of the product series characters is :' + len);
expect(len).assertLess(32) expect(len).assertLess(33)
console.info('device_info_test_034 :PASS') console.info('device_info_test_034 :end')
}) })
/** /**
...@@ -766,8 +767,8 @@ describe('DeviceInfoTest', function () { ...@@ -766,8 +767,8 @@ describe('DeviceInfoTest', function () {
let len = productModelInfo.length let len = productModelInfo.length
console.info('the value of the certified model characters is :' + len); console.info('the value of the certified model characters is :' + len);
expect(len).assertLess(32) expect(len).assertLess(33)
console.info('device_info_test_035 :PASS') console.info('device_info_test_035 :end')
}) })
/** /**
...@@ -785,8 +786,8 @@ describe('DeviceInfoTest', function () { ...@@ -785,8 +786,8 @@ describe('DeviceInfoTest', function () {
let len = softwareModelInfo.length let len = softwareModelInfo.length
console.info('the value of the internal software sub-model characters is :' + len); console.info('the value of the internal software sub-model characters is :' + len);
expect(len).assertLess(32) expect(len).assertLess(33)
console.info('device_info_test_036 :PASS') console.info('device_info_test_036 :end')
}) })
/** /**
...@@ -804,14 +805,14 @@ describe('DeviceInfoTest', function () { ...@@ -804,14 +805,14 @@ describe('DeviceInfoTest', function () {
let len = hardwareModelInfo.length; let len = hardwareModelInfo.length;
console.info('the value of the hardware version characters is :' + len); console.info('the value of the hardware version characters is :' + len);
expect(len).assertLess(32) expect(len).assertLess(33)
console.info('device_info_test_037 :PASS'); console.info('device_info_test_037 :end');
}) })
/** /**
* @tc.number SUB_STARTUP_JS_DEVCEINFO_0420 * @tc.number SUB_STARTUP_JS_DEVCEINFO_0420
* @tc.name testGetHardwareProfile02 * @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.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
...@@ -823,14 +824,14 @@ describe('DeviceInfoTest', function () { ...@@ -823,14 +824,14 @@ describe('DeviceInfoTest', function () {
let len = hardwareProfileInfo.length; let len = hardwareProfileInfo.length;
console.info('the value of the hardware version characters is :' + len); console.info('the value of the hardware version characters is :' + len);
expect(len).assertLess(1000); expect(len).assertLess(1001);
console.info('device_info_test_038 :PASS'); console.info('device_info_test_038 :end');
}) })
/** /**
* @tc.number SUB_STARTUP_JS_DEVCEINFO_0430 * @tc.number SUB_STARTUP_JS_DEVCEINFO_0430
* @tc.name testGetSerial02 * @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.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
...@@ -842,14 +843,14 @@ describe('DeviceInfoTest', function () { ...@@ -842,14 +843,14 @@ describe('DeviceInfoTest', function () {
let len = serialInfo.length; let len = serialInfo.length;
console.info('the value of the device serial number characters is :' + len); console.info('the value of the device serial number characters is :' + len);
expect(len).assertLess(64); expect(len).assertLess(65);
console.info('device_info_test_039 :PASS'); console.info('device_info_test_039 :end');
}) })
/** /**
* @tc.number SUB_STARTUP_JS_DEVCEINFO_0440 * @tc.number SUB_STARTUP_JS_DEVCEINFO_0440
* @tc.name testGetDisplayVersion02 * @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.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
...@@ -861,8 +862,8 @@ describe('DeviceInfoTest', function () { ...@@ -861,8 +862,8 @@ describe('DeviceInfoTest', function () {
let len = displayVersionInfo.length; let len = displayVersionInfo.length;
console.info('the value of the device serial number characters is :' + len); console.info('the value of the device serial number characters is :' + len);
expect(len).assertLess(64); expect(len).assertLess(65);
console.info('device_info_test_040 :PASS'); console.info('device_info_test_040 :end');
}) })
/** /**
...@@ -881,13 +882,13 @@ describe('DeviceInfoTest', function () { ...@@ -881,13 +882,13 @@ describe('DeviceInfoTest', function () {
let len = osFullNameInfo.length; let len = osFullNameInfo.length;
console.info('the value of the operating system full name characters is :' + len); console.info('the value of the operating system full name characters is :' + len);
expect(len).assertLess(32); 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.number SUB_STARTUP_JS_DEVCEINFO_0460
* @tc.name testGetVersionId02 * @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.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
...@@ -899,8 +900,8 @@ describe('DeviceInfoTest', function () { ...@@ -899,8 +900,8 @@ describe('DeviceInfoTest', function () {
let len = versionIdInfo.length; let len = versionIdInfo.length;
console.info('the value of the operating system full name characters is :' + len) console.info('the value of the operating system full name characters is :' + len)
expect(len).assertLess(127); expect(len).assertLess(128);
console.info('device_info_test_042 :PASS') console.info('device_info_test_042 :end')
}) })
/** /**
...@@ -917,8 +918,8 @@ describe('DeviceInfoTest', function () { ...@@ -917,8 +918,8 @@ describe('DeviceInfoTest', function () {
console.info('the value of the deviceinfo buildUser is :' + buildUserInfo); 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); console.info('the value of the different build user of the same baseline code characters is :' + buildUserInfo.length);
expect(buildUserInfo.length).assertLess(32) expect(buildUserInfo.length).assertLess(33)
console.info('device_info_test_043 :PASS') console.info('device_info_test_043 :end')
}) })
/** /**
...@@ -936,8 +937,8 @@ describe('DeviceInfoTest', function () { ...@@ -936,8 +937,8 @@ describe('DeviceInfoTest', function () {
let len = buildHostInfo.length let len = buildHostInfo.length
console.info('the value of the different build host of the same baseline code characters is :' + len) console.info('the value of the different build host of the same baseline code characters is :' + len)
expect(len).assertLess(32) expect(len).assertLess(33)
console.info('device_info_test_044 :PASS') console.info('device_info_test_044 :end')
}) })
/** /**
...@@ -956,7 +957,7 @@ describe('DeviceInfoTest', function () { ...@@ -956,7 +957,7 @@ describe('DeviceInfoTest', function () {
let len = deviceTypeInfo.length; let len = deviceTypeInfo.length;
console.info('the value of the device type characters:' + len); console.info('the value of the device type characters:' + len);
expect(len).assertLarger(0); 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 () { ...@@ -975,7 +976,7 @@ describe('DeviceInfoTest', function () {
let len = manufactureInfo.length let len = manufactureInfo.length
console.info('the value of the manufacture characters is :' + len) console.info('the value of the manufacture characters is :' + len)
expect(len).assertLarger(0) 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 () { ...@@ -994,7 +995,7 @@ describe('DeviceInfoTest', function () {
let len = brandInfo.length; let len = brandInfo.length;
console.info('the value of the external product family name characters is :' + len); console.info('the value of the external product family name characters is :' + len);
expect(len).assertLarger(0); 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 () { ...@@ -1013,7 +1014,7 @@ describe('DeviceInfoTest', function () {
let len = marketNameInfo.length; let len = marketNameInfo.length;
console.info('the value of the product series characters is :' + len) console.info('the value of the product series characters is :' + len)
expect(len).assertLarger(0); 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 () { ...@@ -1032,7 +1033,7 @@ describe('DeviceInfoTest', function () {
let len = productSeriesInfo.length; let len = productSeriesInfo.length;
console.info('the value of the product series characters is :' + len); console.info('the value of the product series characters is :' + len);
expect(len).assertLarger(0); 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 () { ...@@ -1051,7 +1052,7 @@ describe('DeviceInfoTest', function () {
let len = productModelInfo.length let len = productModelInfo.length
console.info('the value of the certified model characters is :' + len) console.info('the value of the certified model characters is :' + len)
expect(len).assertLarger(0) 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 () { ...@@ -1070,7 +1071,7 @@ describe('DeviceInfoTest', function () {
let len = softwareModelInfo.length let len = softwareModelInfo.length
console.info('the value of the internal software sub-model characters is :' + len) console.info('the value of the internal software sub-model characters is :' + len)
expect(len).assertLarger(0) 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 () { ...@@ -1089,7 +1090,7 @@ describe('DeviceInfoTest', function () {
let len = hardwareModelInfo.length; let len = hardwareModelInfo.length;
console.info('the value of the hardware version characters is :' + len); console.info('the value of the hardware version characters is :' + len);
expect(len).assertLarger(0); 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 () { ...@@ -1108,7 +1109,7 @@ describe('DeviceInfoTest', function () {
let len = hardwareProfileInfo.length; let len = hardwareProfileInfo.length;
console.info('the value of the hardware version characters is :' + len); console.info('the value of the hardware version characters is :' + len);
expect(len).assertLarger(0); 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 () { ...@@ -1127,7 +1128,7 @@ describe('DeviceInfoTest', function () {
let len = serialInfo.length; let len = serialInfo.length;
console.info('the value of the device serial number characters is :' + len); console.info('the value of the device serial number characters is :' + len);
expect(len).assertLarger(0); 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 () { ...@@ -1146,7 +1147,7 @@ describe('DeviceInfoTest', function () {
let len = displayVersionInfo.length; let len = displayVersionInfo.length;
console.info('the value of the device serial number characters is :' + len); console.info('the value of the device serial number characters is :' + len);
expect(len).assertLarger(0); 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 () { ...@@ -1165,7 +1166,7 @@ describe('DeviceInfoTest', function () {
let len = incrementalVersionInfo.length let len = incrementalVersionInfo.length
console.info('the value of the device serial number characters is :' + len) console.info('the value of the device serial number characters is :' + len)
expect(len).assertLess(32) 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 () { ...@@ -1184,7 +1185,7 @@ describe('DeviceInfoTest', function () {
let len = incrementalVersionInfo.length let len = incrementalVersionInfo.length
console.info('the value of the device serial number characters is :' + len) console.info('the value of the device serial number characters is :' + len)
expect(len).assertLarger(0) 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 () { ...@@ -1203,7 +1204,7 @@ describe('DeviceInfoTest', function () {
let len = versionIdInfo.length let len = versionIdInfo.length
console.info('the value of the operating system full name characters is :' + len) console.info('the value of the operating system full name characters is :' + len)
expect(len).assertLarger(0) 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 () { ...@@ -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); console.info('the value of the different build user of the same baseline code characters is :' + buildUserInfo.length);
expect(buildUserInfo.length).assertLarger(0) 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 () { ...@@ -1240,7 +1241,7 @@ describe('DeviceInfoTest', function () {
let len = buildHostInfo.length let len = buildHostInfo.length
console.info('the value of the different build host of the same baseline code characters is :' + len); console.info('the value of the different build host of the same baseline code characters is :' + len);
expect(len).assertLarger(0); expect(len).assertLarger(0);
console.info('device_info_test_060 :PASS'); console.info('device_info_test_060 :end');
}) })
}) })
...@@ -15,6 +15,6 @@ ...@@ -15,6 +15,6 @@
require('./DeviceInfoJsUnit.test.js') require('./DeviceInfoJsUnit.test.js')
require('./ParametersJsUnit.test.js') require('./ParametersJsUnit.test.js')
require('./UpdaterJsUnit.test.js')
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册