Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
08f7b80c
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看板
提交
08f7b80c
编写于
9月 06, 2022
作者:
H
hk_js
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix the error case
Signed-off-by:
N
hk_js
<
hekun18@huawei.com
>
上级
8e413a0f
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
20 addition
and
20 deletion
+20
-20
graphic/windowstandard/src/main/js/test/display.test.js
graphic/windowstandard/src/main/js/test/display.test.js
+20
-20
未找到文件。
graphic/windowstandard/src/main/js/test/display.test.js
浏览文件 @
08f7b80c
...
...
@@ -45,12 +45,12 @@ describe('display_test', function () {
expect
(
dsp
.
rotation
!=
null
).
assertTrue
();
expect
(
dsp
.
densityDPI
!=
null
).
assertTrue
();
expect
(
dsp
.
name
!=
null
).
assertTrue
();
expect
(
dsp
.
alive
).
assert
Equal
(
undefined
);
expect
(
dsp
.
state
).
assertEqual
(
undefined
);
expect
(
dsp
.
alive
).
assert
True
(
);
expect
(
dsp
.
state
!=
null
).
assertTrue
(
);
expect
(
dsp
.
densityPixels
!=
null
).
assertTrue
();
expect
(
dsp
.
scaledDensity
!=
null
).
assertTrue
();
expect
(
dsp
.
xDPI
).
assertEqual
(
undefined
);
expect
(
dsp
.
yDPI
).
assertEqual
(
undefined
);
expect
(
dsp
.
xDPI
!=
null
).
assertTrue
(
);
expect
(
dsp
.
yDPI
!=
null
).
assertTrue
(
);
done
();
},
(
err
)
=>
{
console
.
log
(
'
displayTest getDefaultDisplayTest1 getDefaultDisplay failed, err :
'
+
JSON
.
stringify
(
err
));
...
...
@@ -80,12 +80,12 @@ describe('display_test', function () {
expect
(
data
.
rotation
!=
null
).
assertTrue
();
expect
(
data
.
densityDPI
!=
null
).
assertTrue
();
expect
(
data
.
name
!=
null
).
assertTrue
();
expect
(
data
.
alive
).
assert
Equal
(
undefined
);
expect
(
data
.
state
).
assertEqual
(
undefined
);
expect
(
data
.
alive
).
assert
True
(
);
expect
(
data
.
state
!=
null
).
assertTrue
(
);
expect
(
data
.
densityPixels
!=
null
).
assertTrue
();
expect
(
data
.
scaledDensity
!=
null
).
assertTrue
();
expect
(
data
.
xDPI
).
assertEqual
(
undefined
);
expect
(
data
.
yDPI
).
assertEqual
(
undefined
);
expect
(
data
.
xDPI
!=
null
).
assertTrue
(
);
expect
(
data
.
yDPI
!=
null
).
assertTrue
(
);
done
();
}
})
...
...
@@ -107,12 +107,12 @@ describe('display_test', function () {
expect
(
dsp
[
0
].
rotation
!=
null
).
assertTrue
();
expect
(
dsp
[
0
].
densityDPI
!=
null
).
assertTrue
();
expect
(
dsp
[
0
].
name
!=
null
).
assertTrue
();
expect
(
dsp
[
0
].
alive
).
assert
Equal
(
undefined
);
expect
(
dsp
[
0
].
state
).
assertEqual
(
undefined
);
expect
(
dsp
[
0
].
alive
).
assert
True
(
);
expect
(
dsp
[
0
].
state
!=
null
).
assertTrue
(
);
expect
(
dsp
[
0
].
densityPixels
!=
null
).
assertTrue
();
expect
(
dsp
[
0
].
scaledDensity
!=
null
).
assertTrue
();
expect
(
dsp
[
0
].
xDPI
).
assertEqual
(
undefined
);
expect
(
dsp
[
0
].
yDPI
).
assertEqual
(
undefined
);
expect
(
dsp
[
0
].
xDPI
!=
null
).
assertTrue
(
);
expect
(
dsp
[
0
].
yDPI
!=
null
).
assertTrue
(
);
done
();
},
(
err
)
=>
{
console
.
log
(
'
displayTest getAllDisplayTest1 getAllDisplay failed, err :
'
+
JSON
.
stringify
(
err
));
...
...
@@ -141,12 +141,12 @@ describe('display_test', function () {
expect
(
data
[
0
].
rotation
!=
null
).
assertTrue
();
expect
(
data
[
0
].
densityDPI
!=
null
).
assertTrue
();
expect
(
data
[
0
].
name
!=
null
).
assertTrue
();
expect
(
data
[
0
].
alive
).
assert
Equal
(
undefined
);
expect
(
data
[
0
].
state
).
assertEqual
(
undefined
);
expect
(
data
[
0
].
alive
).
assert
True
(
);
expect
(
data
[
0
].
state
!=
null
).
assertTrue
(
);
expect
(
data
[
0
].
densityPixels
!=
null
).
assertTrue
();
expect
(
data
[
0
].
scaledDensity
!=
null
).
assertTrue
();
expect
(
data
[
0
].
xDPI
).
assertEqual
(
undefined
);
expect
(
data
[
0
].
yDPI
).
assertEqual
(
undefined
);
expect
(
data
[
0
].
xDPI
!=
null
).
assertTrue
(
);
expect
(
data
[
0
].
yDPI
!=
null
).
assertTrue
(
);
done
();
}
})
...
...
@@ -169,12 +169,12 @@ describe('display_test', function () {
expect
(
dsp
.
rotation
!=
null
).
assertTrue
();
expect
(
dsp
.
densityDPI
!=
null
).
assertTrue
();
expect
(
dsp
.
name
!=
null
).
assertTrue
();
expect
(
dsp
.
alive
).
assert
Equal
(
undefined
);
expect
(
dsp
.
state
).
assertEqual
(
undefined
);
expect
(
dsp
.
alive
).
assert
True
(
);
expect
(
dsp
.
state
!=
null
).
assertTrue
(
);
expect
(
dsp
.
densityPixels
!=
null
).
assertTrue
();
expect
(
dsp
.
scaledDensity
!=
null
).
assertTrue
();
expect
(
dsp
.
xDPI
).
assertEqual
(
undefined
);
expect
(
dsp
.
yDPI
).
assertEqual
(
undefined
);
expect
(
dsp
.
xDPI
!=
null
).
assertTrue
(
);
expect
(
dsp
.
yDPI
!=
null
).
assertTrue
(
);
done
();
}
catch
(
err
)
{
console
.
error
(
'
getDefaultDisplaySyncTest1 error
'
+
JSON
.
stringify
(
err
));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录