未验证 提交 4c40da97 编写于 作者: O openharmony_ci 提交者: Gitee

!5553 【窗口子系统】窗口子系统适配display接口用例

Merge pull request !5553 from hekun/OpenHarmony-3.1-Release
......@@ -40,15 +40,15 @@ describe('display_test', function () {
expect(dsp.refreshRate != null).assertTrue();
expect(dsp.width != null).assertTrue();
expect(dsp.height != null).assertTrue();
expect(dsp.rotation).assertEqual(undefined);
expect(dsp.densityDPI).assertEqual(undefined);
expect(dsp.name).assertEqual(undefined);
expect(dsp.alive).assertEqual(undefined);
expect(dsp.state).assertEqual(undefined);
expect(dsp.densityPixels).assertEqual(undefined);
expect(dsp.scaledDensity).assertEqual(undefined);
expect(dsp.xDPI).assertEqual(undefined);
expect(dsp.yDPI).assertEqual(undefined);
expect(dsp.rotation != null).assertTrue();
expect(dsp.densityDPI != null).assertTrue();
expect(dsp.name != null).assertTrue();
expect(dsp.alive != null).assertTrue();
expect(dsp.state != null).assertTrue();
expect(dsp.densityPixels != null).assertTrue();
expect(dsp.scaledDensity != null).assertTrue();
expect(dsp.xDPI != null).assertTrue();
expect(dsp.yDPI != null).assertTrue();
done();
}, (err) => {
console.log('displayTest getDefaultDisplayTest1 getDefaultDisplay failed, err :' + JSON.stringify(err));
......@@ -75,15 +75,15 @@ describe('display_test', function () {
expect(data.refreshRate != null).assertTrue();
expect(data.width != null).assertTrue();
expect(data.height != null).assertTrue();
expect(data.rotation).assertEqual(undefined);
expect(data.densityDPI).assertEqual(undefined);
expect(data.name).assertEqual(undefined);
expect(data.alive).assertEqual(undefined);
expect(data.state).assertEqual(undefined);
expect(data.densityPixels).assertEqual(undefined);
expect(data.scaledDensity).assertEqual(undefined);
expect(data.xDPI).assertEqual(undefined);
expect(data.yDPI).assertEqual(undefined);
expect(data.rotation != null).assertTrue();
expect(data.densityDPI != null).assertTrue();
expect(data.name != null).assertTrue();
expect(data.alive != null).assertTrue();
expect(data.state != null).assertTrue();
expect(data.densityPixels != null).assertTrue();
expect(data.scaledDensity != null).assertTrue();
expect(data.xDPI != null).assertTrue();
expect(data.yDPI != null).assertTrue();
done();
}
})
......@@ -102,15 +102,15 @@ describe('display_test', function () {
expect(dsp[0].refreshRate != null).assertTrue();
expect(dsp[0].width != null).assertTrue();
expect(dsp[0].height != null).assertTrue();
expect(dsp[0].rotation).assertEqual(undefined);
expect(dsp[0].densityDPI).assertEqual(undefined);
expect(dsp[0].name).assertEqual(undefined);
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].xDPI).assertEqual(undefined);
expect(dsp[0].yDPI).assertEqual(undefined);
expect(dsp[0].rotation != null).assertTrue();
expect(dsp[0].densityDPI != null).assertTrue();
expect(dsp[0].name != null).assertTrue();
expect(dsp[0].alive != null).assertTrue();
expect(dsp[0].state != null).assertTrue();
expect(dsp[0].densityPixels != null).assertTrue();
expect(dsp[0].scaledDensity != null).assertTrue();
expect(dsp[0].xDPI != null).assertTrue();
expect(dsp[0].yDPI != null).assertTrue();
done();
}, (err) => {
console.log('displayTest getAllDisplayTest1 getAllDisplay failed, err :' + JSON.stringify(err));
......@@ -136,15 +136,15 @@ describe('display_test', function () {
expect(data[0].refreshRate != null).assertTrue();
expect(data[0].width != null).assertTrue();
expect(data[0].height != null).assertTrue();
expect(data[0].rotation).assertEqual(undefined);
expect(data[0].densityDPI).assertEqual(undefined);
expect(data[0].name).assertEqual(undefined);
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].xDPI).assertEqual(undefined);
expect(data[0].yDPI).assertEqual(undefined);
expect(data[0].rotation != null).assertTrue();
expect(data[0].densityDPI != null).assertTrue();
expect(data[0].name != null).assertTrue();
expect(data[0].alive != null).assertTrue();
expect(data[0].state != null).assertTrue();
expect(data[0].densityPixels != null).assertTrue();
expect(data[0].scaledDensity != null).assertTrue();
expect(data[0].xDPI != null).assertTrue();
expect(data[0].yDPI != null).assertTrue();
done();
}
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册