提交 df7212e0 编写于 作者: L leiyuqian

[startup_standard][master]modify systemdeviceapi testDeviceProduct01

Signed-off-by: Nleiyuqian <leiyuqian1@huawei.com>
Change-Id: I3cfe906ef500ab1913cc0bf900431e872d1e3733
上级 aa83f0cd
......@@ -37,7 +37,7 @@ describe('SystemDeviceTest', function () {
console.info('beforeAll: Prerequisites at the test suite level, \
which are executed before the test suite is executed.');
device.getInfo({
success: function(data){
success: function (data) {
console.log('getInfo success:' + JSON.stringify(data));
brandInfo = data.brand;
manufactureInfo = data.manufacturer;
......@@ -53,7 +53,7 @@ describe('SystemDeviceTest', function () {
screenShapeInfo = data.screenShape;
},
fail: function(data, code){
fail: function (data, code) {
console.log('getInfo failed.Error code:' + code + ';Error information: ' + JSON.stringify(data));
brandInfo = data.brand;
manufactureInfo = data.manufacturer;
......@@ -68,7 +68,7 @@ describe('SystemDeviceTest', function () {
screenDensityInfo = data.screenDensity;
screenShapeInfo = data.screenShape;
},
complete: function(){
complete: function () {
console.log('getInfo complete');
}
});
......@@ -177,12 +177,6 @@ describe('SystemDeviceTest', function () {
ret = true;
}
expect(ret).assertTrue();
let str = /^[A-Za-z]+[ ][\d](.[\d])[ ][A-Za-z]+$/g;
let arr = deviceProductInfo.match(str);
let bufferstr = arr.join('');
console.info('the value of the bufferstr is :' + bufferstr);
expect(deviceProductInfo).assertEqual(bufferstr);
console.info('testDeviceProduct01 :end');
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册