diff --git a/graphic/windowstandard/src/main/js/test/display.test.js b/graphic/windowstandard/src/main/js/test/display.test.js index 6bb7fdb08d5f5a8a16068cc245d13c0846a498e1..61c7eb6abfc987d63432b4739e4f365f08f81b1d 100644 --- a/graphic/windowstandard/src/main/js/test/display.test.js +++ b/graphic/windowstandard/src/main/js/test/display.test.js @@ -44,11 +44,11 @@ describe('display_test', function () { expect(dsp.height != null).assertTrue(); expect(dsp.rotation != null).assertTrue(); expect(dsp.densityDPI != null).assertTrue(); - expect(dsp.name).assertEqual(undefined); + expect(dsp.name != null).assertTrue(); expect(dsp.alive).assertEqual(undefined); expect(dsp.state).assertEqual(undefined); - expect(dsp.densityPixels).assertEqual(undefined); - expect(dsp.scaledDensity).assertEqual(undefined); + expect(dsp.densityPixels != null).assertTrue(); + expect(dsp.scaledDensity !=null).assertTrue(); expect(dsp.xDPI).assertEqual(undefined); expect(dsp.yDPI).assertEqual(undefined); done(); @@ -79,11 +79,11 @@ describe('display_test', function () { expect(data.height != null).assertTrue(); expect(data.rotation != null).assertTrue(); expect(data.densityDPI != null).assertTrue(); - expect(data.name).assertEqual(undefined); + expect(data.name != null).assertTrue(); expect(data.alive).assertEqual(undefined); expect(data.state).assertEqual(undefined); - expect(data.densityPixels).assertEqual(undefined); - expect(data.scaledDensity).assertEqual(undefined); + expect(data.densityPixels != null).assertTrue(); + expect(data.scaledDensity !=null).assertTrue(); expect(data.xDPI).assertEqual(undefined); expect(data.yDPI).assertEqual(undefined); done(); @@ -106,11 +106,11 @@ describe('display_test', function () { expect(dsp[0].height != null).assertTrue(); expect(dsp[0].rotation != null).assertTrue(); expect(dsp[0].densityDPI != null).assertTrue(); - expect(dsp[0].name).assertEqual(undefined); + expect(dsp[0].name != null).assertTrue(); expect(dsp[0].alive).assertEqual(undefined); expect(dsp[0].state).assertEqual(undefined); - expect(dsp[0].densityPixels).assertEqual(undefined); - expect(dsp[0].scaledDensity).assertEqual(undefined); + expect(dsp[0].densityPixels != null).assertTrue(); + expect(dsp[0].scaledDensity !=null).assertTrue(); expect(dsp[0].xDPI).assertEqual(undefined); expect(dsp[0].yDPI).assertEqual(undefined); done(); @@ -140,11 +140,11 @@ describe('display_test', function () { expect(data[0].height != null).assertTrue(); expect(data[0].rotation != null).assertTrue(); expect(data[0].densityDPI != null).assertTrue(); - expect(data[0].name).assertEqual(undefined); + expect(data[0].name != null).assertTrue(); expect(data[0].alive).assertEqual(undefined); expect(data[0].state).assertEqual(undefined); - expect(data[0].densityPixels).assertEqual(undefined); - expect(data[0].scaledDensity).assertEqual(undefined); + expect(data[0].densityPixels != null).assertTrue(); + expect(data[0].scaledDensity !=null).assertTrue(); expect(data[0].xDPI).assertEqual(undefined); expect(data[0].yDPI).assertEqual(undefined); done(); diff --git a/graphic/windowstandard/src/main/js/test/window.test.js b/graphic/windowstandard/src/main/js/test/window.test.js index 286bdf1fcd61b0b038d1d176e582ce1c2f939c69..fcd9dc3ea5fd4ef2f963469a3c29105fe1331a8e 100644 --- a/graphic/windowstandard/src/main/js/test/window.test.js +++ b/graphic/windowstandard/src/main/js/test/window.test.js @@ -1744,7 +1744,7 @@ describe('window_test', function () { done(); }, (err) => { console.log('windowTest resetSizeTest3 wnd.resetSize failed, err :' + JSON.stringify(err)); - expect(err.code).assertEqual(7); + expect(err.code).assertEqual(1003); done(); }) }, (err) => { @@ -1770,7 +1770,7 @@ describe('window_test', function () { done(); }, (err) => { console.log('windowTest resetSizeTest4 wnd.resetSize failed, err :' + JSON.stringify(err)); - expect(err.code).assertEqual(7); + expect(err.code).assertEqual(1003); done(); }) }, (err) => {