Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
3112cba1
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看板
提交
3112cba1
编写于
12月 07, 2022
作者:
H
hekun
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix the signature issue
Signed-off-by:
N
hekun
<
hekun18@huawei.com
>
上级
173798e1
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
3 addition
and
59 deletion
+3
-59
graphic/graphicColorSpace/signature/openharmony_sx.p7b
graphic/graphicColorSpace/signature/openharmony_sx.p7b
+0
-0
graphic/windowstandard/signature/openharmony_sx.p7b
graphic/windowstandard/signature/openharmony_sx.p7b
+0
-0
graphic/windowstandard/src/main/config.json
graphic/windowstandard/src/main/config.json
+2
-8
graphic/windowstandard/src/main/js/test/window.test.js
graphic/windowstandard/src/main/js/test/window.test.js
+1
-51
未找到文件。
graphic/graphicColorSpace/signature/openharmony_sx.p7b
浏览文件 @
3112cba1
无法预览此类型文件
graphic/windowstandard/signature/openharmony_sx.p7b
浏览文件 @
3112cba1
无法预览此类型文件
graphic/windowstandard/src/main/config.json
浏览文件 @
3112cba1
...
...
@@ -16,8 +16,8 @@
"package"
:
"com.test.window"
,
"name"
:
".entry"
,
"deviceType"
:
[
"tablet"
,
"default"
,
"tablet"
,
"default"
,
"phone"
],
"distro"
:
{
...
...
@@ -63,12 +63,6 @@
"launchType"
:
"standard"
}
],
"reqPermissions"
:
[
{
"name"
:
"ohos.permission.CAPTURE_SCREEN"
,
"reason"
:
"query download status"
}
],
"js"
:
[
{
"pages"
:
[
...
...
graphic/windowstandard/src/main/js/test/window.test.js
浏览文件 @
3112cba1
...
...
@@ -15,7 +15,6 @@
import
app
from
'
@system.app
'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
@ohos/hypium
'
import
window
from
'
@ohos.window
'
import
screen
from
'
@ohos.screen
'
import
display
from
'
@ohos.display
'
const
TRUE_WINDOW
=
true
;
const
avoidAreaType
=
3
;
...
...
@@ -1922,56 +1921,7 @@ describe('window_test', function () {
done
();
})
})
/**
* @tc.number SUB_WMS_SETSCREENACTIVEMODE_JSAPI_001
* @tc.name Test setScreenActiveMode_Test_001.
* @tc.desc To set the function of setting screen parameters
*/
it
(
'
setScreenActiveMode_Test_001
'
,
0
,
async
function
(
done
)
{
console
.
log
(
'
screenshotTest setScreenActiveModeTest1 begin
'
);
screen
.
getAllScreens
().
then
(
src
=>
{
console
.
log
(
'
screenshotTest setScreenActiveModeTest1 getAllScreen src
'
+
src
);
expect
(
src
[
0
]
!=
null
).
assertTrue
();
let
screenIndex
=
src
[
0
];
screenIndex
.
setScreenActiveMode
(
0
).
then
(()
=>
{
console
.
log
(
'
screenshotTest setScreenActiveModeTest1 setScreenActiveMode 0 success
'
);
expect
(
TRUE_WINDOW
).
assertTrue
()
done
();
},(
err
)
=>
{
console
.
log
(
'
screenshotTest setScreenActiveModeTest1 setScreenActiveMode 0 failed: err
'
+
JSON
.
stringify
(
err
));
expect
().
assertFail
();
done
();
})
},
(
err
)
=>
{
console
.
log
(
'
screenshotTest setScreenActiveModeTest1 failed: err:
'
+
JSON
.
stringify
(
err
));
done
();
})
})
/**
* @tc.number SUB_WMS_SETSCREENACTIVEMODE_JSAPI_002
* @tc.name Test setScreenActiveMode_Test_002.
* @tc.desc To set the function of screen parameters to abnormal values.
*/
it
(
'
setScreenActiveMode_Test_002
'
,
0
,
async
function
(
done
)
{
console
.
log
(
'
screenshotTest setScreenActiveModeTest2 begin
'
);
screen
.
getAllScreens
().
then
(
src
=>
{
console
.
log
(
'
screenshotTest setScreenActiveModeTest2 getAllScreen src
'
+
src
);
expect
(
src
[
0
]
!=
null
).
assertTrue
();
let
screenIndex
=
src
[
0
];
screenIndex
.
setScreenActiveMode
(
-
5
).
then
(
res
=>
{
console
.
log
(
'
screenshotTest setScreenActiveModeTest2 setScreenActiveMode -5 res:
'
+
res
);
expect
().
assertFail
();
done
();
},(
err
)
=>
{
console
.
log
(
'
screenshotTest setScreenActiveModeTest2 setScreenActiveMode -5 failed: err
'
+
JSON
.
stringify
(
err
));
expect
(
err
.
code
).
assertEqual
(
1400003
);
done
();
})
})
})
/**
* @tc.number SUB_WMS_ENUM_WINDOWSTAGEEVENTTYPE_JSAPI_001
* @tc.name Test enumWindowStageEventType_Test_001.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录