Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
2db0c20d
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看板
提交
2db0c20d
编写于
3月 21, 2022
作者:
H
hekun18@huawei.com
1
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
change the licence version and fix the standard
Signed-off-by:
N
hekun18@huawei.com
<
hekun18@huawei.com
>
上级
ac616186
变更
10
显示空白变更内容
内联
并排
Showing
10 changed file
with
98 addition
and
63 deletion
+98
-63
graphic/BUILD.gn
graphic/BUILD.gn
+1
-1
graphic/windowstandard/BUILD.gn
graphic/windowstandard/BUILD.gn
+1
-1
graphic/windowstandard/src/main/js/default/app.js
graphic/windowstandard/src/main/js/default/app.js
+1
-1
graphic/windowstandard/src/main/js/default/pages/index/index.css
.../windowstandard/src/main/js/default/pages/index/index.css
+15
-0
graphic/windowstandard/src/main/js/default/pages/index/index.hml
.../windowstandard/src/main/js/default/pages/index/index.hml
+16
-0
graphic/windowstandard/src/main/js/default/pages/index/index.js
...c/windowstandard/src/main/js/default/pages/index/index.js
+1
-1
graphic/windowstandard/src/main/js/default/test/List.test.js
graphic/windowstandard/src/main/js/default/test/List.test.js
+1
-1
graphic/windowstandard/src/main/js/default/test/display.test.js
...c/windowstandard/src/main/js/default/test/display.test.js
+7
-7
graphic/windowstandard/src/main/js/default/test/screenshot.test.js
...indowstandard/src/main/js/default/test/screenshot.test.js
+11
-10
graphic/windowstandard/src/main/js/default/test/window.test.js
...ic/windowstandard/src/main/js/default/test/window.test.js
+44
-41
未找到文件。
graphic/BUILD.gn
浏览文件 @
2db0c20d
# Copyright (C) 202
1
Huawei Device Co., Ltd.
# Copyright (C) 202
2
Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
...
...
graphic/windowstandard/BUILD.gn
浏览文件 @
2db0c20d
# Copyright (C) 202
1
Huawei Device Co., Ltd.
# Copyright (C) 202
2
Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
...
...
graphic/windowstandard/src/main/js/default/app.js
浏览文件 @
2db0c20d
/*
* Copyright (C) 202
1
Huawei Device Co., Ltd.
* Copyright (C) 202
2
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
graphic/windowstandard/src/main/js/default/pages/index/index.css
浏览文件 @
2db0c20d
/*
* Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.container
{
flex-direction
:
column
;
justify-content
:
center
;
...
...
graphic/windowstandard/src/main/js/default/pages/index/index.hml
浏览文件 @
2db0c20d
/*
* Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
<div class="container">
<text class="title">
{{ $t('strings.hello') }} {{ title }}
...
...
graphic/windowstandard/src/main/js/default/pages/index/index.js
浏览文件 @
2db0c20d
/*
* Copyright (C) 202
1
Huawei Device Co., Ltd.
* Copyright (C) 202
2
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
graphic/windowstandard/src/main/js/default/test/List.test.js
浏览文件 @
2db0c20d
/*
* Copyright (C) 202
1
Huawei Device Co., Ltd.
* Copyright (C) 202
2
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
graphic/windowstandard/src/main/js/default/test/display.test.js
浏览文件 @
2db0c20d
/*
* Copyright (C) 202
1
Huawei Device Co., Ltd.
* Copyright (C) 202
2
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
@@ -34,9 +34,9 @@ describe('display_test', function () {
* @tc.desc To test the function of obtaining the default screen
*/
it
(
'
getDefaultDisplay_Test_001
'
,
0
,
async
function
(
done
)
{
console
.
log
(
'
displayTest getDefaultDisplayTest1 begin
'
)
console
.
log
(
'
displayTest getDefaultDisplayTest1 begin
'
)
;
display
.
getDefaultDisplay
().
then
(
dsp
=>
{
console
.
log
(
'
displayTest getDefaultDisplayTest1 getDefaultDisplay id :
'
+
JSON
.
stringify
(
dsp
))
console
.
log
(
'
displayTest getDefaultDisplayTest1 getDefaultDisplay id :
'
+
JSON
.
stringify
(
dsp
))
;
expect
(
dsp
.
id
!=
null
).
assertTrue
();
expect
(
dsp
.
refreshRate
!=
null
).
assertTrue
();
expect
(
dsp
.
width
!=
null
).
assertTrue
();
...
...
@@ -78,9 +78,9 @@ describe('display_test', function () {
* @tc.desc To verify the function of obtaining all screens.
*/
it
(
'
getAllDisplay_Test_001
'
,
0
,
async
function
(
done
)
{
console
.
log
(
'
displayTest getAllDisplayTest1 begin
'
)
console
.
log
(
'
displayTest getAllDisplayTest1 begin
'
)
;
display
.
getAllDisplay
().
then
(
dsp
=>
{
console
.
log
(
'
displayTest getAllDisplayTest1 getAllDisplay id :
'
+
JSON
.
stringify
(
dsp
))
console
.
log
(
'
displayTest getAllDisplayTest1 getAllDisplay id :
'
+
JSON
.
stringify
(
dsp
))
;
expect
(
dsp
[
0
].
id
!=
null
).
assertTrue
();
expect
(
dsp
[
0
].
refreshRate
!=
null
).
assertTrue
();
expect
(
dsp
[
0
].
width
!=
null
).
assertTrue
();
...
...
@@ -102,11 +102,11 @@ describe('display_test', function () {
console
.
log
(
'
displayTest getAllDisplayTest2 begin
'
);
display
.
getAllDisplay
((
err
,
data
)
=>
{
if
(
err
.
code
!=
0
)
{
console
.
log
(
'
displayTest getAllDisplayTest2 getAllDisplay callback fail
'
);
console
.
log
(
'
displayTest getAllDisplayTest2 getAllDisplay callback fail
'
+
JSON
.
stringify
(
err
)
);
expect
().
assertFail
();
done
();
}
else
{
console
.
log
(
'
displayTest getAllDisplayTest2 get
Default
Display id :
'
+
JSON
.
stringify
(
data
));
console
.
log
(
'
displayTest getAllDisplayTest2 get
All
Display id :
'
+
JSON
.
stringify
(
data
));
expect
(
data
[
0
].
refreshRate
!=
null
).
assertTrue
();
expect
(
data
[
0
].
width
!=
null
).
assertTrue
();
expect
(
data
[
0
].
height
!=
null
).
assertTrue
();
...
...
graphic/windowstandard/src/main/js/default/test/screenshot.test.js
浏览文件 @
2db0c20d
/*
*
*
Copyright (C) 2022 Huawei Device Co., Ltd.
*
*
Licensed under the Apache License, Version 2.0 (the "License");
*
*
you may not use this file except in compliance with the License.
* Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
*
*
http://www.apache.org/licenses/LICENSE-2.0
*
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
*
*
distributed under the License is distributed on an "AS IS" BASIS,
*
*
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
*
See the License for the specific language governing permissions and
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* */
*/
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
import
display
from
'
@ohos.display
'
import
screenshot
from
'
@ohos.screenshot
'
...
...
graphic/windowstandard/src/main/js/default/test/window.test.js
浏览文件 @
2db0c20d
/*
* Copyright (C) 202
1
Huawei Device Co., Ltd.
* Copyright (C) 202
2
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
@@ -17,6 +17,7 @@ import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from '
import
window
from
'
@ohos.window
'
import
screen
from
'
@ohos.screen
'
const
TRUE_WINDOW
=
true
;
const
avoidAreaType
=
3
;
describe
(
'
window_test
'
,
function
()
{
var
wnd
;
...
...
@@ -57,8 +58,7 @@ describe('window_test', function () {
'
ABOVE_APP_SYSTEM_WINDOW_END
'
:
2116
,
'
SYSTEM_WINDOW_END
'
:
2116
}
var
windowCount
=
2022
;
var
topWindow
=
null
;
var
topWindow
;
const
DELAY_TIME
=
3000
;
var
listenerStatus
;
...
...
@@ -111,7 +111,6 @@ describe('window_test', function () {
}
})
afterEach
(
function
()
{
windowCount
++
;
})
afterAll
(
function
()
{
})
...
...
@@ -172,6 +171,10 @@ describe('window_test', function () {
done
();
}
})
},
(
err
)
=>
{
console
.
log
(
'
windowTest getPropertiesTest2 window.getTopWindow failed, err :
'
+
JSON
.
stringify
(
err
));
expect
().
assertFail
();
done
();
})
})
...
...
@@ -243,7 +246,7 @@ describe('window_test', function () {
window
.
getTopWindow
().
then
(
wnd
=>
{
console
.
log
(
'
windowTest getAvoidAreaTest3 window.getTopWindow wnd:
'
+
wnd
);
expect
(
wnd
!=
null
).
assertTrue
();
wnd
.
getAvoidArea
(
3
).
then
((
data
)
=>
{
wnd
.
getAvoidArea
(
avoidAreaType
).
then
((
data
)
=>
{
console
.
log
(
'
windowTest getAvoidAreaTest3 wnd.getAvoidArea success, data :
'
+
JSON
.
stringify
(
data
));
expect
(
data
.
rightRect
!=
null
).
assertTrue
();
expect
(
data
.
topRect
!=
null
).
assertTrue
();
...
...
@@ -329,7 +332,7 @@ describe('window_test', function () {
window
.
getTopWindow
().
then
(
wnd
=>
{
console
.
log
(
'
windowTest getAvoidAreaTest6 window.getTopWindow wnd:
'
+
wnd
);
expect
(
wnd
!=
null
).
assertTrue
();
wnd
.
getAvoidArea
(
3
,
(
err
,
data
)
=>
{
wnd
.
getAvoidArea
(
avoidAreaType
,
(
err
,
data
)
=>
{
if
(
err
.
code
!=
0
)
{
console
.
log
(
'
windowTest getAvoidAreaTest6 wnd.getAvoidArea callback fail
'
+
JSON
.
stringify
(
err
));
expect
().
assertFail
();
...
...
@@ -496,7 +499,7 @@ describe('window_test', function () {
})
/**
* @tc.number SUB_WMS_SETLAYOUTFULLSCREEN_JSAPI_00
1
* @tc.number SUB_WMS_SETLAYOUTFULLSCREEN_JSAPI_00
2
* @tc.name Test setLayoutFullScreen_Test_002
* @tc.desc Set window and layout to full screen.
*/
...
...
@@ -925,10 +928,10 @@ describe('window_test', function () {
/**
* @tc.number SUB_WMS_ONOFF_JSAPI_001
* @tc.name Test
O
nOff_Test_001.
* @tc.name Test
o
nOff_Test_001.
* @tc.desc To verify the function of enabling and disabling intercepting when the window size changes.
*/
it
(
'
O
nOff_Test_001
'
,
0
,
async
function
(
done
)
{
it
(
'
o
nOff_Test_001
'
,
0
,
async
function
(
done
)
{
console
.
log
(
'
windowTest OnOffTest1 begin
'
);
window
.
getTopWindow
((
err
,
data
)
=>
{
if
(
err
.
code
!=
0
)
{
...
...
@@ -969,10 +972,10 @@ describe('window_test', function () {
/**
* @tc.number SUB_WMS_ONOFF_JSAPI_002
* @tc.name Test
O
nOff_Test_002
* @tc.name Test
o
nOff_Test_002
* @tc.desc To verify the function of enabling and disabling lawful interception in the system and window
*/
it
(
'
O
nOff_Test_002
'
,
0
,
async
function
(
done
)
{
it
(
'
o
nOff_Test_002
'
,
0
,
async
function
(
done
)
{
console
.
log
(
'
windowTest OnOffTest2 begin
'
)
window
.
getTopWindow
((
err
,
data
)
=>
{
if
(
err
.
code
!=
0
)
{
...
...
@@ -1013,10 +1016,10 @@ describe('window_test', function () {
/**
* @tc.number SUB_WMS_ISSHOWING_JSAPI_001
* @tc.name Test
I
sShowing_Test_001.
* @tc.name Test
i
sShowing_Test_001.
* @tc.desc To verify the function of obtaining the display status when a window is hidden and then displayed.
*/
it
(
'
I
sShowing_Test_001
'
,
0
,
async
function
(
done
)
{
it
(
'
i
sShowing_Test_001
'
,
0
,
async
function
(
done
)
{
console
.
log
(
'
windowTest IsShowingTest1 begin
'
);
window
.
create
(
'
isShow1
'
,
window
.
WindowType
.
TYPE_APP
).
then
(
wnd
=>
{
expect
(
wnd
!=
null
).
assertTrue
();
...
...
@@ -1054,10 +1057,10 @@ describe('window_test', function () {
/**
* @tc.number SUB_WMS_ISSHOWING_JSAPI_002
* @tc.name Test
I
sShowing_Test_002.
* @tc.name Test
i
sShowing_Test_002.
* @tc.desc To verify the function of obtaining the display status when a window is hidden and then displayed.
*/
it
(
'
I
sShowing_Test_002
'
,
0
,
async
function
(
done
)
{
it
(
'
i
sShowing_Test_002
'
,
0
,
async
function
(
done
)
{
console
.
log
(
'
windowTest IsShowingTest2 begin
'
);
window
.
create
(
'
isShow2
'
,
window
.
WindowType
.
TYPE_APP
,
(
err
,
data
)
=>
{
if
(
err
.
code
)
{
...
...
@@ -1086,7 +1089,6 @@ describe('window_test', function () {
done
();
}
else
{
expect
(
res2
).
assertTrue
();
done
();
data
.
destroy
((
err
)
=>
{
if
(
err
.
code
)
{
console
.
log
(
'
windowTest IsShowingTest2 data.show fail err
'
+
JSON
.
stringify
(
err
));
...
...
@@ -1109,10 +1111,10 @@ describe('window_test', function () {
/**
* @tc.number SUB_WMS_SETCOLORSPACE_JSAPI_001
* @tc.name Test
S
etColorSpace_Test_001
* @tc.name Test
s
etColorSpace_Test_001
* @tc.desc To verify the setting of the wide color gamut color space
*/
it
(
'
S
etColorSpace_Test_001
'
,
0
,
async
function
(
done
)
{
it
(
'
s
etColorSpace_Test_001
'
,
0
,
async
function
(
done
)
{
console
.
log
(
'
windowTest SetColorSpaceTest1 begin
'
);
window
.
getTopWindow
().
then
(
wnd
=>
{
console
.
log
(
'
windowTest SetColorSpaceTest1 wnd:
'
+
wnd
);
...
...
@@ -1149,10 +1151,10 @@ describe('window_test', function () {
/**
* @tc.number SUB_WMS_SETCOLORSPACE_JSAPI_002
* @tc.name Test
S
etColorSpace_Test_002
* @tc.name Test
s
etColorSpace_Test_002
* @tc.desc To verify that the color space of invaild values is set successfully
*/
it
(
'
S
etColorSpace_Test_002
'
,
0
,
async
function
(
done
)
{
it
(
'
s
etColorSpace_Test_002
'
,
0
,
async
function
(
done
)
{
console
.
log
(
'
windowTest SetColorSpaceTest2 begin
'
);
window
.
getTopWindow
().
then
(
wnd
=>
{
console
.
log
(
'
windowTest SetColorSpaceTest2 wnd:
'
+
wnd
);
...
...
@@ -1175,10 +1177,10 @@ describe('window_test', function () {
/**
* @tc.number SUB_WMS_SETCOLORSPACE_JSAPI_003
* @tc.name Test
S
etColorSpace_Test_003
* @tc.name Test
s
etColorSpace_Test_003
* @tc.desc To verify the setting of the wide color gamut color space
*/
it
(
'
S
etColorSpace_Test_003
'
,
0
,
async
function
(
done
)
{
it
(
'
s
etColorSpace_Test_003
'
,
0
,
async
function
(
done
)
{
console
.
log
(
'
windowTest SetColorSpaceTest3 begin
'
);
window
.
getTopWindow
().
then
(
wnd
=>
{
console
.
log
(
'
windowTest SetColorSpaceTest3 wnd:
'
+
wnd
);
...
...
@@ -1219,10 +1221,10 @@ describe('window_test', function () {
/**
* @tc.number SUB_WMS_SETCOLORSPACE_JSAPI_004
* @tc.name Test
S
etColorSpace_Test_004
* @tc.name Test
s
etColorSpace_Test_004
* @tc.desc To verify that the color space of invalid values is set successfully
*/
it
(
'
S
etColorSpace_Test_004
'
,
0
,
async
function
(
done
)
{
it
(
'
s
etColorSpace_Test_004
'
,
0
,
async
function
(
done
)
{
console
.
log
(
'
windowTest SetColorSpaceTest4 begin
'
);
window
.
getTopWindow
().
then
(
wnd
=>
{
console
.
log
(
'
windowTest SetColorSpaceTest4 wnd:
'
+
wnd
);
...
...
@@ -1247,10 +1249,10 @@ describe('window_test', function () {
/**
* @tc.number SUB_WMS_CREATE_JSAPI_001
* @tc.name Test
C
reate_Test_001.
* @tc.name Test
c
reate_Test_001.
* @tc.desc To verify the function of creating an application subwindow.
*/
it
(
'
C
reate_Test_001
'
,
0
,
async
function
(
done
)
{
it
(
'
c
reate_Test_001
'
,
0
,
async
function
(
done
)
{
console
.
log
(
'
windowTest CreateTest1 begin
'
);
window
.
create
(
'
subWindow
'
,
window
.
WindowType
.
TYPE_APP
).
then
(
wnd
=>
{
console
.
log
(
'
windowTest CreateTest1 create success wnd
'
+
wnd
);
...
...
@@ -1265,10 +1267,10 @@ describe('window_test', function () {
/**
* @tc.number SUB_WMS_CREATE_JSAPI_001
* @tc.name Test
C
reate_Test_002
* @tc.name Test
c
reate_Test_002
* @tc.desc To verify the function of creating an application subwindow
*/
it
(
'
C
reate_Test_002
'
,
0
,
async
function
(
done
)
{
it
(
'
c
reate_Test_002
'
,
0
,
async
function
(
done
)
{
console
.
log
(
'
windowTest CreateTest2 begin
'
);
window
.
create
(
'
subWindow1
'
,
window
.
WindowType
.
TYPE_APP
,
(
err
,
data
)
=>
{
if
(
err
.
code
!=
0
)
{
...
...
@@ -1285,10 +1287,10 @@ describe('window_test', function () {
/**
* @tc.number SUB_WMS_DESTROY_JSAPI_001
* @tc.name Test
D
estroy_Test_001
* @tc.name Test
d
estroy_Test_001
* @tc.desc Verify that a window is destroyed after being created
*/
it
(
'
D
estroy_Test_001
'
,
0
,
async
function
(
done
)
{
it
(
'
d
estroy_Test_001
'
,
0
,
async
function
(
done
)
{
console
.
log
(
'
windowTest DestroyTest1 begin
'
);
window
.
create
(
'
subWindow2
'
,
window
.
WindowType
.
TYPE_APP
).
then
(
wnd
=>
{
console
.
log
(
'
windowTest DestroyTest1 create success wnd
'
+
wnd
);
...
...
@@ -1318,10 +1320,10 @@ describe('window_test', function () {
/**
* @tc.number SUB_WMS_DESTROY_JSAPI_002
* @tc.name Test
D
estroy_Test_002
* @tc.name Test
d
estroy_Test_002
* @tc.desc Verify that a window is destroyed after being created
*/
it
(
'
D
estroy_Test_002
'
,
0
,
async
function
(
done
)
{
it
(
'
d
estroy_Test_002
'
,
0
,
async
function
(
done
)
{
console
.
log
(
'
windowTest DestroyTest2 begin
'
);
window
.
create
(
'
subWindow2
'
,
window
.
WindowType
.
TYPE_APP
,
(
err
,
data
)
=>
{
if
(
err
.
code
!=
0
)
{
...
...
@@ -1356,10 +1358,10 @@ describe('window_test', function () {
/**
* @tc.number SUB_WMS_SETSYSTEMBARENABLE_JSAPI_001
* @tc.name Test
S
etSystemBarEnable_Test_001
* @tc.name Test
s
etSystemBarEnable_Test_001
* @tc.desc To verify the function of setting a scenario that is visible to the system bar
*/
it
(
'
S
etSystemBarEnable_Test_001
'
,
0
,
async
function
(
done
)
{
it
(
'
s
etSystemBarEnable_Test_001
'
,
0
,
async
function
(
done
)
{
console
.
log
(
'
windowTest SetSystemBarEnableTest1 begin
'
);
var
names
=
[
"
status
"
,
"
navigation
"
];
window
.
getTopWindow
().
then
(
wnd
=>
{
...
...
@@ -1389,10 +1391,10 @@ describe('window_test', function () {
/**
* @tc.number SUB_WMS_SETSYSTEMBARENABLE_JSAPI_002
* @tc.name Test
S
etSystemBarEnable_Test_002
* @tc.name Test
s
etSystemBarEnable_Test_002
* @tc.desc To verify the function of setting a scenario that is visible to the system bar
*/
it
(
'
S
etSystemBarEnable_Test_002
'
,
0
,
async
function
(
done
)
{
it
(
'
s
etSystemBarEnable_Test_002
'
,
0
,
async
function
(
done
)
{
console
.
log
(
'
windowTest SetSystemBarEnableTest2 begin
'
);
var
names
=
[
"
status
"
,
"
navigation
"
];
window
.
getTopWindow
((
err
,
data
)
=>
{
...
...
@@ -1419,10 +1421,10 @@ describe('window_test', function () {
/**
* @tc.number SUB_WMS_SETSYSTEMBARPROPERTIES_JSAPI_001
* @tc.name Test
S
etSystemBarProperties_Test_001
* @tc.name Test
s
etSystemBarProperties_Test_001
* @tc.desc To verify the function of setting system bar attributes
*/
it
(
'
S
etSystemBarProperties_Test_001
'
,
0
,
async
function
(
done
)
{
it
(
'
s
etSystemBarProperties_Test_001
'
,
0
,
async
function
(
done
)
{
console
.
log
(
'
windowTest SetSystemBarPropertiesTest1 begin
'
);
var
SystemBarProperties
=
{
statusBarColor
:
'
#ff00ff
'
,
...
...
@@ -1453,10 +1455,10 @@ describe('window_test', function () {
/**
* @tc.number SUB_WMS_SETSYSTEMBARPROPERTIES_JSAPI_002
* @tc.name Test
S
etSystemBarProperties_Test_002
* @tc.name Test
s
etSystemBarProperties_Test_002
* @tc.desc To verify the function of setting system bar attributes
*/
it
(
'
S
etSystemBarProperties_Test_002
'
,
0
,
async
function
(
done
)
{
it
(
'
s
etSystemBarProperties_Test_002
'
,
0
,
async
function
(
done
)
{
console
.
log
(
'
windowTest SetSystemBarPropertiesTest2 begin
'
);
var
SystemBarProperties
=
{
statusBarColor
:
'
#ff00ff
'
,
...
...
@@ -1928,7 +1930,8 @@ describe('window_test', function () {
done
();
})
},
(
err
)
=>
{
console
.
log
(
'
screenshotTest getActiveModeTest1 failed: err:
'
+
JSON
.
stringify
(
err
))
console
.
log
(
'
screenshotTest setScreenActiveModeTest1 failed: err:
'
+
JSON
.
stringify
(
err
));
done
();
})
})
...
...
鸿蒙社区
@harmonycommunity
mentioned in commit
a986aed0
·
3月 23, 2022
mentioned in commit
a986aed0
mentioned in commit a986aed01bf02ca1c0df173b442b9987fd756936
开关提交列表
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录