Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
47be1ba4
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看板
提交
47be1ba4
编写于
1月 08, 2022
作者:
D
dhc-123
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update testcase
Signed-off-by:
N
dhc-123
<
duanhaochen2@huawei.com
>
上级
74c7eecf
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
70 addition
and
114 deletion
+70
-114
graphic/windowstandard/src/main/js/default/test/window.parameter.js
...ndowstandard/src/main/js/default/test/window.parameter.js
+30
-30
graphic/windowstandard/src/main/js/default/test/window.test.js
...ic/windowstandard/src/main/js/default/test/window.test.js
+40
-84
未找到文件。
graphic/windowstandard/src/main/js/default/test/window.parameter.js
浏览文件 @
47be1ba4
...
@@ -29,9 +29,9 @@ describe('window_test', function(){
...
@@ -29,9 +29,9 @@ describe('window_test', function(){
})
})
/**
/**
* @tc.number
GRAPHIC__FUNCTION_WINDOW_TESTWINDOW_JS_API_1900
* @tc.number
SUB_WINDOW_MOVETO_JSAPI_007
* @tc.name Test moveTestNegative.
* @tc.name Test moveTestNegative.
* @tc.desc Test window.moveTo API function test.
* @tc.desc Test window.moveTo API function test
7
.
*/
*/
it
(
'
moveTestNegative
'
,
0
,
function
(){
it
(
'
moveTestNegative
'
,
0
,
function
(){
console
.
log
(
'
jsunittest moveTestNegative begin
'
)
console
.
log
(
'
jsunittest moveTestNegative begin
'
)
...
@@ -47,9 +47,9 @@ describe('window_test', function(){
...
@@ -47,9 +47,9 @@ describe('window_test', function(){
})
})
/**
/**
* @tc.number
GRAPHIC__FUNCTION_WINDOW_TESTWINDOW_JS_API_2000
* @tc.number
SUB_WINDOW_RESETSIZE_JSAPI_006
* @tc.name Test resetSizeTestLoop.
* @tc.name Test resetSizeTestLoop.
* @tc.desc Test window.resetSize API function test.
* @tc.desc Test window.resetSize API function test
6
.
*/
*/
it
(
'
resetSizeLoop
'
,
0
,
function
(){
it
(
'
resetSizeLoop
'
,
0
,
function
(){
var
width
=
100
;
var
width
=
100
;
...
@@ -71,15 +71,15 @@ describe('window_test', function(){
...
@@ -71,15 +71,15 @@ describe('window_test', function(){
})
})
/**
/**
* @tc.number
GRAPHIC__FUNCTION_WINDOW_TESTWINDOW_JS_API_2100
* @tc.number
SUB_WINDOW_SETWINDOWTYPE_JSAPI_008
* @tc.name Test setWindowTypeTestZero.
* @tc.name Test setWindowTypeTestZero.
* @tc.desc Test window.setWindowType API function test.
* @tc.desc Test window.setWindowType API function test
8
.
*/
*/
it
(
'
setWindowTypeTestZero
'
,
0
,
function
(){
it
(
'
setWindowTypeTestZero
'
,
0
,
function
(){
console
.
log
(
'
jsunittest setWindowTypeTestZero begin
'
)
console
.
log
(
'
jsunittest setWindowTypeTestZero begin
'
)
window
.
getTopwindow
().
then
(
wnd
=>
{
window
.
getTopwindow
().
then
(
wnd
=>
{
console
.
log
(
'
jsunittest setWindowTypeTestZero getTopWindow wnd:
'
+
wnd
)
console
.
log
(
'
jsunittest setWindowTypeTestZero getTopWindow wnd:
'
+
wnd
)
wnd
.
setWindowType
(
0
).
then
(()
=>
{
wnd
.
setWindowType
(
window
.
WindowType
.
TYPE_APP
).
then
(()
=>
{
console
.
log
(
'
jsunittest setWindowTypeTestZero wnd.setWindowType(0) success
'
)
console
.
log
(
'
jsunittest setWindowTypeTestZero wnd.setWindowType(0) success
'
)
})
})
wnd
.
moveTo
(
200
,
200
).
then
(()
=>
{
wnd
.
moveTo
(
200
,
200
).
then
(()
=>
{
...
@@ -92,15 +92,15 @@ describe('window_test', function(){
...
@@ -92,15 +92,15 @@ describe('window_test', function(){
})
})
/**
/**
* @tc.number
GRAPHIC__FUNCTION_WINDOW_TESTWINDOW_JS_API_2200
* @tc.number
SUB_WINDOW_SETWINDOWTYPE_JSAPI_009
* @tc.name Test setWindowTypeTestThirty.
* @tc.name Test setWindowTypeTestThirty.
* @tc.desc Test window.setWindowType API function test.
* @tc.desc Test window.setWindowType API function test
9
.
*/
*/
it
(
'
setWindowTypeTestThirty
'
,
0
,
function
(){
it
(
'
setWindowTypeTestThirty
'
,
0
,
function
(){
console
.
log
(
'
jsunittest setWindowTypeTestThirty begin
'
)
console
.
log
(
'
jsunittest setWindowTypeTestThirty begin
'
)
window
.
getTopwindow
().
then
(
wnd
=>
{
window
.
getTopwindow
().
then
(
wnd
=>
{
console
.
log
(
'
jsunittest setWindowTypeTestThirty getTopwindow wnd:
'
+
wnd
)
console
.
log
(
'
jsunittest setWindowTypeTestThirty getTopwindow wnd:
'
+
wnd
)
wnd
.
setWindowType
(
30
).
then
(()
=>
{
wnd
.
setWindowType
(
window
.
WindowType
.
TYPE_SYSTEM_ALTER
).
then
(()
=>
{
console
.
log
(
'
jsunittest setWindowTypeTestThirty wnd.setWindowType(30) success
'
)
console
.
log
(
'
jsunittest setWindowTypeTestThirty wnd.setWindowType(30) success
'
)
})
})
wnd
.
moveTo
(
200
,
200
).
then
(()
=>
{
wnd
.
moveTo
(
200
,
200
).
then
(()
=>
{
...
@@ -113,15 +113,15 @@ describe('window_test', function(){
...
@@ -113,15 +113,15 @@ describe('window_test', function(){
})
})
/**
/**
* @tc.number
GRAPHIC__FUNCTION_WINDOW_TESTWINDOW_JS_API_230
0
* @tc.number
SUB_WINDOW_SETWINDOWTYPE_JSAPI_01
0
* @tc.name Test setWindowTypeTestSeventy.
* @tc.name Test setWindowTypeTestSeventy.
* @tc.desc Test window.setWindowType API function test.
* @tc.desc Test window.setWindowType API function test
10
.
*/
*/
it
(
'
setWindowTypeTestSeventy
'
,
0
,
function
(){
it
(
'
setWindowTypeTestSeventy
'
,
0
,
function
(){
console
.
log
(
'
jsunittest setWindowTypeTestSeventy begin
'
)
console
.
log
(
'
jsunittest setWindowTypeTestSeventy begin
'
)
window
.
getTopwindow
().
then
(
wnd
=>
{
window
.
getTopwindow
().
then
(
wnd
=>
{
console
.
log
(
'
jsunittest setWindowTypeTestSeventy getTopwindow wnd:
'
+
wnd
)
console
.
log
(
'
jsunittest setWindowTypeTestSeventy getTopwindow wnd:
'
+
wnd
)
wnd
.
setWindowType
(
70
).
then
(()
=>
{
wnd
.
setWindowType
(
window
.
WindowType
.
TYPE_SYSTEM_VOLUME
).
then
(()
=>
{
console
.
log
(
'
jsunittest setWindowTypeTestSeventy wnd.setWindowType(70) success
'
)
console
.
log
(
'
jsunittest setWindowTypeTestSeventy wnd.setWindowType(70) success
'
)
})
})
wnd
.
moveTo
(
200
,
200
).
then
(()
=>
{
wnd
.
moveTo
(
200
,
200
).
then
(()
=>
{
...
@@ -134,15 +134,15 @@ describe('window_test', function(){
...
@@ -134,15 +134,15 @@ describe('window_test', function(){
})
})
/**
/**
* @tc.number
GRAPHIC__FUNCTION_WINDOW_TESTWINDOW_JS_API_2400
* @tc.number
SUB_WINDOW_SETWINDOWTYPE_JSAPI_012
* @tc.name Test setWindowTypeTestNinety.
* @tc.name Test setWindowTypeTestNinety.
* @tc.desc Test window.setWindowType API function test.
* @tc.desc Test window.setWindowType API function test
12
.
*/
*/
it
(
'
setWindowTypeTestNinety
'
,
0
,
function
(){
it
(
'
setWindowTypeTestNinety
'
,
0
,
function
(){
console
.
log
(
'
jsunittest setWindowTypeTestNinety begin
'
)
console
.
log
(
'
jsunittest setWindowTypeTestNinety begin
'
)
window
.
getTopwindow
().
then
(
wnd
=>
{
window
.
getTopwindow
().
then
(
wnd
=>
{
console
.
log
(
'
jsunittest setWindowTypeTestNinety getTopwindow wnd:
'
+
wnd
)
console
.
log
(
'
jsunittest setWindowTypeTestNinety getTopwindow wnd:
'
+
wnd
)
wnd
.
setWindowType
(
90
).
then
(()
=>
{
wnd
.
setWindowType
(
window
.
WindowType
.
TYPE_SYSTEM_PANEL
).
then
(()
=>
{
console
.
log
(
'
jsunittest setWindowTypeTestNinety wnd.setWindowType(90) success
'
)
console
.
log
(
'
jsunittest setWindowTypeTestNinety wnd.setWindowType(90) success
'
)
})
})
wnd
.
moveTo
(
200
,
200
).
then
(()
=>
{
wnd
.
moveTo
(
200
,
200
).
then
(()
=>
{
...
@@ -155,15 +155,15 @@ describe('window_test', function(){
...
@@ -155,15 +155,15 @@ describe('window_test', function(){
})
})
/**
/**
* @tc.number
GRAPHIC__FUNCTION_WINDOW_TESTWINDOW_JS_API_2500
* @tc.number
SUB_WINDOW_SETWINDOWTYPE_JSAPI_011
* @tc.name Test setWindowTypeTestOrderChange.
* @tc.name Test setWindowTypeTestOrderChange.
* @tc.desc Test window.setWindowType API function test.
* @tc.desc Test window.setWindowType API function test
11
.
*/
*/
it
(
'
setWindowTypeTestOrderChange
'
,
0
,
function
(){
it
(
'
setWindowTypeTestOrderChange
'
,
0
,
function
(){
console
.
log
(
'
jsunittest setWindowTypeTestOrderChange begin
'
)
console
.
log
(
'
jsunittest setWindowTypeTestOrderChange begin
'
)
window
.
getTopwindow
().
then
(
wnd
=>
{
window
.
getTopwindow
().
then
(
wnd
=>
{
console
.
log
(
'
jsunittest setWindowTypeTestOrderChange getTopwindow wnd:
'
+
wnd
)
console
.
log
(
'
jsunittest setWindowTypeTestOrderChange getTopwindow wnd:
'
+
wnd
)
wnd
.
setWindowType
(
0
).
then
(()
=>
{
wnd
.
setWindowType
(
window
.
WindowType
.
TYPE_APP
).
then
(()
=>
{
console
.
log
(
'
jsunittest setWindowTypeTestOrderChange wnd.setWindowType(0) success
'
)
console
.
log
(
'
jsunittest setWindowTypeTestOrderChange wnd.setWindowType(0) success
'
)
})
})
wnd
.
resetSize
(
200
,
200
).
then
(()
=>
{
wnd
.
resetSize
(
200
,
200
).
then
(()
=>
{
...
@@ -176,15 +176,15 @@ describe('window_test', function(){
...
@@ -176,15 +176,15 @@ describe('window_test', function(){
})
})
/**
/**
* @tc.number
GRAPHIC__FUNCTION_WINDOW_TESTWINDOW_JS_API_2600
* @tc.number
SUB_WINDOW_SETWINDOWTYPE_JSAPI_013
* @tc.name Test setWindowTypeTest15.
* @tc.name Test setWindowTypeTest15.
* @tc.desc Test window.setWindowType API function test.
* @tc.desc Test window.setWindowType API function test
13
.
*/
*/
it
(
'
setWindowTypeTest15
'
,
0
,
function
(){
it
(
'
setWindowTypeTest15
'
,
0
,
function
(){
console
.
log
(
'
jsunittest setWindowTypeTest15 begin
'
)
console
.
log
(
'
jsunittest setWindowTypeTest15 begin
'
)
window
.
getTopwindow
().
then
(
wnd
=>
{
window
.
getTopwindow
().
then
(
wnd
=>
{
console
.
log
(
'
jsunittest setWindowTypeTest15 getTopwindow wnd:
'
+
wnd
)
console
.
log
(
'
jsunittest setWindowTypeTest15 getTopwindow wnd:
'
+
wnd
)
wnd
.
setWindowType
(
30
).
then
(()
=>
{
wnd
.
setWindowType
(
window
.
WindowType
.
TYPE_SYSTEM_ALTER
).
then
(()
=>
{
console
.
log
(
'
jsunittest setWindowTypeTest15 wnd.setWindowType(30) success
'
)
console
.
log
(
'
jsunittest setWindowTypeTest15 wnd.setWindowType(30) success
'
)
})
})
wnd
.
resetSize
(
200
,
200
).
then
(()
=>
{
wnd
.
resetSize
(
200
,
200
).
then
(()
=>
{
...
@@ -197,15 +197,15 @@ describe('window_test', function(){
...
@@ -197,15 +197,15 @@ describe('window_test', function(){
})
})
/**
/**
* @tc.number
GRAPHIC__FUNCTION_WINDOW_TESTWINDOW_JS_API_2700
* @tc.number
SUB_WINDOW_SETWINDOWTYPE_JSAPI_014
* @tc.name Test setWindowTypeTest16.
* @tc.name Test setWindowTypeTest16.
* @tc.desc Test window.setWindowType API function test.
* @tc.desc Test window.setWindowType API function test
14
.
*/
*/
it
(
'
setWindowTypeTest16
'
,
0
,
function
(){
it
(
'
setWindowTypeTest16
'
,
0
,
function
(){
console
.
log
(
'
jsunittest setWindowTypeTest16 begin
'
)
console
.
log
(
'
jsunittest setWindowTypeTest16 begin
'
)
window
.
getTopwindow
().
then
(
wnd
=>
{
window
.
getTopwindow
().
then
(
wnd
=>
{
console
.
log
(
'
jsunittest setWindowTypeTest16 getTopwindow wnd:
'
+
wnd
)
console
.
log
(
'
jsunittest setWindowTypeTest16 getTopwindow wnd:
'
+
wnd
)
wnd
.
setWindowType
(
70
).
then
(()
=>
{
wnd
.
setWindowType
(
window
.
WindowType
.
TYPE_SYSTEM_VOLUME
).
then
(()
=>
{
console
.
log
(
'
jsunittest setWindowTypeTest16 wnd.setWindowType(70) success
'
)
console
.
log
(
'
jsunittest setWindowTypeTest16 wnd.setWindowType(70) success
'
)
})
})
wnd
.
resetSize
(
200
,
200
).
then
(()
=>
{
wnd
.
resetSize
(
200
,
200
).
then
(()
=>
{
...
@@ -218,15 +218,15 @@ describe('window_test', function(){
...
@@ -218,15 +218,15 @@ describe('window_test', function(){
})
})
/**
/**
* @tc.number
GRAPHIC__FUNCTION_WINDOW_TESTWINDOW_JS_API_2800
* @tc.number
SUB_WINDOW_SETWINDOWTYPE_JSAPI_015
* @tc.name Test setWindowTypeTest17.
* @tc.name Test setWindowTypeTest17.
* @tc.desc Test window.setWindowType API function test.
* @tc.desc Test window.setWindowType API function test
15
.
*/
*/
it
(
'
setWindowTypeTest17
'
,
0
,
function
(){
it
(
'
setWindowTypeTest17
'
,
0
,
function
(){
console
.
log
(
'
jsunittest setWindowTypeTest17 begin
'
)
console
.
log
(
'
jsunittest setWindowTypeTest17 begin
'
)
window
.
getTopwindow
().
then
(
wnd
=>
{
window
.
getTopwindow
().
then
(
wnd
=>
{
console
.
log
(
'
jsunittest setWindowTypeTest17 getTopwindow wnd:
'
+
wnd
)
console
.
log
(
'
jsunittest setWindowTypeTest17 getTopwindow wnd:
'
+
wnd
)
wnd
.
setWindowType
(
90
).
then
(()
=>
{
wnd
.
setWindowType
(
window
.
WindowType
.
TYPE_SYSTEM_PANEL
).
then
(()
=>
{
console
.
log
(
'
jsunittest setWindowTypeTest17 wnd.setWindowType(90) success
'
)
console
.
log
(
'
jsunittest setWindowTypeTest17 wnd.setWindowType(90) success
'
)
})
})
wnd
.
resetSize
(
200
,
200
).
then
(()
=>
{
wnd
.
resetSize
(
200
,
200
).
then
(()
=>
{
...
@@ -239,9 +239,9 @@ describe('window_test', function(){
...
@@ -239,9 +239,9 @@ describe('window_test', function(){
})
})
/**
/**
* @tc.number
GRAPHIC__FUNCTION_WINDOW_TESTWINDOW_JS_API_2900
* @tc.number
SUB_WINDOW_MOVETO_JSAPI_006
* @tc.name Test moveTest6.
* @tc.name Test moveTest6.
* @tc.desc Test window.moveTo API function test.
* @tc.desc Test window.moveTo API function test
6
.
*/
*/
it
(
'
moveTest6
'
,
0
,
function
(){
it
(
'
moveTest6
'
,
0
,
function
(){
console
.
log
(
'
jsunittest moveTest6 begin
'
)
console
.
log
(
'
jsunittest moveTest6 begin
'
)
...
...
graphic/windowstandard/src/main/js/default/test/window.test.js
浏览文件 @
47be1ba4
...
@@ -28,9 +28,9 @@ describe('window_test', function(){
...
@@ -28,9 +28,9 @@ describe('window_test', function(){
afterAll
(
function
(){
afterAll
(
function
(){
})
})
/**
/**
* @tc.number
GRAPHIC_FUNCTION_WINDOW_TESTWINDOW_JSNAPI_0100
* @tc.number
SUB_WINDOW_GETTOPWINDOW_JSAPI_001
* @tc.name Test getTopWindowTest.
* @tc.name Test getTopWindowTest.
* @tc.desc Test window.getTopWindow API function test.
* @tc.desc
Test window.getTopWindow API function test.
*/
*/
it
(
'
getTopWindowTest
'
,
0
,
function
(){
it
(
'
getTopWindowTest
'
,
0
,
function
(){
console
.
log
(
'
jsunittest getTopWindowTest begin
'
)
console
.
log
(
'
jsunittest getTopWindowTest begin
'
)
...
@@ -40,9 +40,9 @@ describe('window_test', function(){
...
@@ -40,9 +40,9 @@ describe('window_test', function(){
})
})
})
})
/**
/**
* @tc.number
GRAPHIC_FUNCTION_WINDOW_TESTWINDOW_JSNAPI_0200
* @tc.number
SUB_WINDOW_MOVETO_JSAPI_001
* @tc.name Test movetest1.
* @tc.name Test movetest1.
* @tc.desc Test window.moveTo API function test1.
* @tc.desc
Test window.moveTo API function test1.
*/
*/
it
(
'
moveTest1
'
,
0
,
function
(){
it
(
'
moveTest1
'
,
0
,
function
(){
console
.
log
(
'
jsunittest movetest1 begin
'
)
console
.
log
(
'
jsunittest movetest1 begin
'
)
...
@@ -54,9 +54,9 @@ describe('window_test', function(){
...
@@ -54,9 +54,9 @@ describe('window_test', function(){
})
})
})
})
/**
/**
* @tc.number
GRAPHIC_FUNCTION_WINDOW_TESTWINDOW_JSNAPI_0300
* @tc.number
SUB_WINDOW_MOVETO_JSAPI_002
* @tc.name Test moveTest2.
* @tc.name Test moveTest2.
* @tc.desc Test window.moveTo API function test2.
* @tc.desc
Test window.moveTo API function test2.
*/
*/
it
(
'
moveTest2
'
,
0
,
function
(){
it
(
'
moveTest2
'
,
0
,
function
(){
console
.
log
(
'
jsunittest movetest2 begin
'
)
console
.
log
(
'
jsunittest movetest2 begin
'
)
...
@@ -71,9 +71,9 @@ describe('window_test', function(){
...
@@ -71,9 +71,9 @@ describe('window_test', function(){
})
})
})
})
/**
/**
* @tc.number
GRAPHIC_FUNCTION_WINDOW_TESTWINDOW_JSNAPI_0400
* @tc.number
SUB_WINDOW_MOVETO_JSAPI_003
* @tc.name Test moveTest3.
* @tc.name Test moveTest3.
* @tc.desc Test window.moveTo API function test3.
* @tc.desc
Test window.moveTo API function test3.
*/
*/
it
(
'
moveTest3
'
,
0
,
function
(){
it
(
'
moveTest3
'
,
0
,
function
(){
console
.
log
(
'
jsunittest movetest3 begin
'
)
console
.
log
(
'
jsunittest movetest3 begin
'
)
...
@@ -85,9 +85,9 @@ describe('window_test', function(){
...
@@ -85,9 +85,9 @@ describe('window_test', function(){
})
})
})
})
/**
/**
* @tc.number
GRAPHIC_FUNCTION_WINDOW_TESTWINDOW_JSNAPI_0500
* @tc.number
SUB_WINDOW_MOVETO_JSAPI_004
* @tc.name Test moveTest4.
* @tc.name Test moveTest4.
* @tc.desc Test window.moveTo API function test4.
* @tc.desc
Test window.moveTo API function test4.
*/
*/
it
(
'
moveTest4
'
,
0
,
function
(){
it
(
'
moveTest4
'
,
0
,
function
(){
console
.
log
(
'
jsunittest movetest4 begin
'
)
console
.
log
(
'
jsunittest movetest4 begin
'
)
...
@@ -99,9 +99,9 @@ describe('window_test', function(){
...
@@ -99,9 +99,9 @@ describe('window_test', function(){
})
})
})
})
/**
/**
* @tc.number
GRAPHIC_FUNCTION_WINDOW_TESTWINDOW_JSNAPI_0600
* @tc.number
SUB_WINDOW_MOVETO_JSAPI_005
* @tc.name Test moveTest5.
* @tc.name Test moveTest5.
* @tc.desc Test window.moveTo API function test5.
* @tc.desc
Test window.moveTo API function test5.
*/
*/
it
(
'
moveTest5
'
,
0
,
function
(){
it
(
'
moveTest5
'
,
0
,
function
(){
console
.
log
(
'
jsunittest movetest5 begin
'
)
console
.
log
(
'
jsunittest movetest5 begin
'
)
...
@@ -115,23 +115,23 @@ describe('window_test', function(){
...
@@ -115,23 +115,23 @@ describe('window_test', function(){
})
})
})
})
/**
/**
* @tc.number
GRAPHIC_FUNCTION_WINDOW_TESTWINDOW_JSNAPI_0700
* @tc.number
SUB_WINDOW_RESETSIZE_JSAPI_001
* @tc.name Test resetSizeTest1.
* @tc.name Test resetSizeTest1.
* @tc.desc Test window.resetSize API function test1.
* @tc.desc
Test window.resetSize API function test1.
*/
*/
it
(
'
resetSizeTest1
'
,
0
,
function
(){
it
(
'
resetSizeTest1
'
,
0
,
function
(){
console
.
log
(
'
jsunittest resetSizeTest1 begin
'
)
console
.
log
(
'
jsunittest resetSizeTest1 begin
'
)
window
.
getTopWindow
().
then
(
wnd
=>
{
window
.
getTopWindow
().
then
(
wnd
=>
{
console
.
log
(
'
jsunittest resetSizeTest1 getTopWindow wnd:
'
+
wnd
)
console
.
log
(
'
jsunittest resetSizeTest1 getTopWindow wnd:
'
+
wnd
)
wnd
.
resetSize
(
200
,
600
).
then
(()
=>
{
wnd
.
resetSize
(
200
,
600
).
then
(()
=>
{
console
.
log
(
'
jsunittest resetSizeTest wnd.resetSize(200, 600) success
'
)
console
.
log
(
'
jsunittest resetSizeTes
1
t wnd.resetSize(200, 600) success
'
)
})
})
})
})
})
})
/**
/**
* @tc.number
GRAPHIC_FUNCTION_WINDOW_TESTWINDOW_JSNAPI_0800
* @tc.number
SUB_WINDOW_RESETSIZE_JSAPI_002
* @tc.name Test resetSizeTest2.
* @tc.name Test resetSizeTest2.
* @tc.desc Test window.resetSize API function test2.
* @tc.desc
Test window.resetSize API function test2.
*/
*/
it
(
'
resetSizeTest2
'
,
0
,
function
(){
it
(
'
resetSizeTest2
'
,
0
,
function
(){
console
.
log
(
'
jsunittest resetSizeTest2 begin
'
)
console
.
log
(
'
jsunittest resetSizeTest2 begin
'
)
...
@@ -143,9 +143,9 @@ describe('window_test', function(){
...
@@ -143,9 +143,9 @@ describe('window_test', function(){
})
})
})
})
/**
/**
* @tc.number
GRAPHIC_FUNCTION_WINDOW_TESTWINDOW_JSNAPI_0900
* @tc.number
SUB_WINDOW_RESETSIZE_JSAPI_003
* @tc.name Test resetSizeTest3.
* @tc.name Test resetSizeTest3.
* @tc.desc Test window.resetSize API function test3.
* @tc.desc
Test window.resetSize API function test3.
*/
*/
it
(
'
resetSizeTest3
'
,
0
,
function
(){
it
(
'
resetSizeTest3
'
,
0
,
function
(){
console
.
log
(
'
jsunittest resetSizeTest3 begin
'
)
console
.
log
(
'
jsunittest resetSizeTest3 begin
'
)
...
@@ -157,9 +157,9 @@ describe('window_test', function(){
...
@@ -157,9 +157,9 @@ describe('window_test', function(){
})
})
})
})
/**
/**
* @tc.number
GRAPHIC_FUNCTION_WINDOW_TESTWINDOW_JSNAPI_1000
* @tc.number
SUB_WINDOW_RESETSIZE_JSAPI_004
* @tc.name Test resetSizeTest4.
* @tc.name Test resetSizeTest4.
* @tc.desc Test window.resetSize API function test4.
* @tc.desc
Test window.resetSize API function test4.
*/
*/
it
(
'
resetSizeTest4
'
,
0
,
function
(){
it
(
'
resetSizeTest4
'
,
0
,
function
(){
console
.
log
(
'
jsunittest resetSizeTest4 begin
'
)
console
.
log
(
'
jsunittest resetSizeTest4 begin
'
)
...
@@ -171,9 +171,9 @@ describe('window_test', function(){
...
@@ -171,9 +171,9 @@ describe('window_test', function(){
})
})
})
})
/**
/**
* @tc.number
GRAPHIC_FUNCTION_WINDOW_TESTWINDOW_JSNAPI_1100
* @tc.number
SUB_WINDOW_RESETSIZE_JSAPI_005
* @tc.name Test resetSizeTest5.
* @tc.name Test resetSizeTest5.
* @tc.desc Test window.resetSize API function test5.
* @tc.desc
Test window.resetSize API function test5.
*/
*/
it
(
'
resetSizeTest5
'
,
0
,
function
(){
it
(
'
resetSizeTest5
'
,
0
,
function
(){
console
.
log
(
'
jsunittest resetSizeTest5 begin
'
)
console
.
log
(
'
jsunittest resetSizeTest5 begin
'
)
...
@@ -187,46 +187,46 @@ describe('window_test', function(){
...
@@ -187,46 +187,46 @@ describe('window_test', function(){
})
})
})
})
/**
/**
* @tc.number
GRAPHIC_FUNCTION_WINDOW_TESTWINDOW_JSNAPI_1200
* @tc.number
SUB_WINDOW_SETWINDOWTYPE_JSAPI_001
* @tc.name Test setWindowTypeTest1.
* @tc.name Test setWindowTypeTest1.
* @tc.desc Test window.setWindowType API function test1.
* @tc.desc
Test window.setWindowType API function test1.
*/
*/
it
(
'
setWindowTypeTest1
'
,
0
,
function
(){
it
(
'
setWindowTypeTest1
'
,
0
,
function
(){
console
.
log
(
'
jsunittest setWindowTypeTest1 begin
'
)
console
.
log
(
'
jsunittest setWindowTypeTest1 begin
'
)
window
.
getTopWindow
().
then
(
wnd
=>
{
window
.
getTopWindow
().
then
(
wnd
=>
{
console
.
log
(
'
jsunittest setWindowTypeTest1 getTopWindow wnd:
'
+
wnd
)
console
.
log
(
'
jsunittest setWindowTypeTest1 getTopWindow wnd:
'
+
wnd
)
wnd
.
setWindowType
(
0
).
then
(()
=>
{
wnd
.
setWindowType
(
window
.
WindowType
.
TYPE_APP
).
then
(()
=>
{
console
.
log
(
'
jsunittest setWindowTypeTest1 wnd.setWindowType(0) success
'
)
console
.
log
(
'
jsunittest setWindowTypeTest1 wnd.setWindowType(0) success
'
)
})
})
})
})
})
})
/**
/**
* @tc.number
GRAPHIC_FUNCTION_WINDOW_TESTWINDOW_JSNAPI_1300
* @tc.number
SUB_WINDOW_SETWINDOWTYPE_JSAPI_002
* @tc.name Test setWindowTypeTest2.
* @tc.name Test setWindowTypeTest2.
* @tc.desc Test window.setWindowType API function test2.
* @tc.desc
Test window.setWindowType API function test2.
*/
*/
it
(
'
setWindowTypeTest2
'
,
0
,
function
(){
it
(
'
setWindowTypeTest2
'
,
0
,
function
(){
console
.
log
(
'
jsunittest setWindowTypeTest2 begin
'
)
console
.
log
(
'
jsunittest setWindowTypeTest2 begin
'
)
window
.
getTopWindow
().
then
(
wnd
=>
{
window
.
getTopWindow
().
then
(
wnd
=>
{
console
.
log
(
'
jsunittest setWindowTypeTest2 getTopWindow wnd:
'
+
wnd
)
console
.
log
(
'
jsunittest setWindowTypeTest2 getTopWindow wnd:
'
+
wnd
)
wnd
.
setWindowType
(
0
).
then
(()
=>
{
wnd
.
setWindowType
(
window
.
WindowType
.
TYPE_APP
).
then
(()
=>
{
console
.
log
(
'
jsunittest setWindowTypeTest2 wnd.setWindowType(0) success
'
)
console
.
log
(
'
jsunittest setWindowTypeTest2 wnd.setWindowType(0) success
'
)
})
})
wnd
.
moveTo
(
200
,
200
).
then
(()
=>
{
wnd
.
moveTo
(
200
,
200
).
then
(()
=>
{
console
.
log
(
'
jsunittest setWindowType
1
wnd.moveTo(200, 200) success
'
)
console
.
log
(
'
jsunittest setWindowType
Test2
wnd.moveTo(200, 200) success
'
)
})
})
})
})
})
})
/**
/**
* @tc.number
GRAPHIC_FUNCTION_WINDOW_TESTWINDOW_JSNAPI_1400
* @tc.number
SUB_WINDOW_SETWINDOWTYPE_JSAPI_003
* @tc.name Test setWindowTypeTest3.
* @tc.name Test setWindowTypeTest3.
* @tc.desc Test window.setWindowType API function test3.
* @tc.desc
Test window.setWindowType API function test3.
*/
*/
it
(
'
setWindowTypeTest3
'
,
0
,
function
(){
it
(
'
setWindowTypeTest3
'
,
0
,
function
(){
console
.
log
(
'
jsunittest setWindowTypeTest3 begin
'
)
console
.
log
(
'
jsunittest setWindowTypeTest3 begin
'
)
window
.
getTopWindow
().
then
(
wnd
=>
{
window
.
getTopWindow
().
then
(
wnd
=>
{
console
.
log
(
'
jsunittest setWindowTypeTest3 getTopWindow wnd:
'
+
wnd
)
console
.
log
(
'
jsunittest setWindowTypeTest3 getTopWindow wnd:
'
+
wnd
)
wnd
.
setWindowType
(
0
).
then
(()
=>
{
wnd
.
setWindowType
(
window
.
WindowType
.
TYPE_APP
).
then
(()
=>
{
console
.
log
(
'
jsunittest setWindowTypeTest3 wnd.setWindowType(0) success
'
)
console
.
log
(
'
jsunittest setWindowTypeTest3 wnd.setWindowType(0) success
'
)
})
})
wnd
.
resetSize
(
200
,
400
).
then
(()
=>
{
wnd
.
resetSize
(
200
,
400
).
then
(()
=>
{
...
@@ -234,10 +234,11 @@ describe('window_test', function(){
...
@@ -234,10 +234,11 @@ describe('window_test', function(){
})
})
})
})
})
})
/**
/**
* @tc.number
GRAPHIC_FUNCTION_WINDOW_TESTWINDOW_JSNAPI_1500
* @tc.number
SUB_WINDOW_SETWINDOWTYPE_JSAPI_004
* @tc.name Test setWindowTypeTest4
.
* @tc.name Test setWindowTypeTest4
* @tc.desc Test window.setWindowType API function test4.
* @tc.desc
Test window.setWindowType API function test4.
*/
*/
it
(
'
setWindowTypeTest4
'
,
0
,
function
(){
it
(
'
setWindowTypeTest4
'
,
0
,
function
(){
console
.
log
(
'
jsunittest setWindowTypeTest4 begin
'
)
console
.
log
(
'
jsunittest setWindowTypeTest4 begin
'
)
...
@@ -246,56 +247,11 @@ describe('window_test', function(){
...
@@ -246,56 +247,11 @@ describe('window_test', function(){
wnd
.
setWindowType
(
1
).
then
(()
=>
{
wnd
.
setWindowType
(
1
).
then
(()
=>
{
console
.
log
(
'
jsunittest setWindowTypeTest4 wnd.setWindowType(1) success
'
)
console
.
log
(
'
jsunittest setWindowTypeTest4 wnd.setWindowType(1) success
'
)
})
})
})
})
/**
* @tc.number GRAPHIC_FUNCTION_WINDOW_TESTWINDOW_JSNAPI_1600
* @tc.name Test setWindowTypeTest5.
* @tc.desc Test window.setWindowType API function test5.
*/
it
(
'
setWindowTypeTest5
'
,
0
,
function
(){
console
.
log
(
'
jsunittest setWindowTypeTest5 begin
'
)
window
.
getTopWindow
().
then
(
wnd
=>
{
console
.
log
(
'
jsunittest setWindowTypeTest5 getTopWindow wnd:
'
+
wnd
)
wnd
.
setWindowType
(
1
).
then
(()
=>
{
console
.
log
(
'
jsunittest setWindowTypeTest5 wnd.setWindowType(1) success
'
)
})
wnd
.
moveTo
(
100
,
100
).
then
(()
=>
{
wnd
.
moveTo
(
100
,
100
).
then
(()
=>
{
console
.
log
(
'
jsunittest setWindowTypeTest5 wnd.moveTo(100, 100) success
'
)
console
.
log
(
'
jsunittest setWindowTypeTest4 wnd.moveTo(100, 100) success
'
)
})
})
})
/**
* @tc.number GRAPHIC_FUNCTION_WINDOW_TESTWINDOW_JSNAPI_1700
* @tc.name Test setWindowTypeTest6.
* @tc.desc Test window.setWindowType API function test6.
*/
it
(
'
setWindowTypeTest6
'
,
0
,
function
(){
console
.
log
(
'
jsunittest setWindowTypeTest6 begin
'
)
window
.
getTopWindow
().
then
(
wnd
=>
{
console
.
log
(
'
jsunittest setWindowTypeTest6 getTopWindow wnd:
'
+
wnd
)
wnd
.
setWindowType
(
1
).
then
(()
=>
{
console
.
log
(
'
jsunittest setWindowTypeTest6 wnd.setWindowType(1) success
'
)
})
wnd
.
resetSize
(
100
,
100
).
then
(()
=>
{
console
.
log
(
'
jsunittest setWindowTypeTest6 wnd.resetSize(100, 100) success
'
)
})
})
})
/**
* @tc.number GRAPHIC_FUNCTION_WINDOW_TESTWINDOW_JSNAPI_1800
* @tc.name Test setWindowTypeTest7.
* @tc.desc Test window.setWindowType API function test7.
*/
it
(
'
setWindowTypeTest7
'
,
0
,
function
(){
console
.
log
(
'
jsunittest setWindowTypeTest7 begin
'
)
window
.
getTopWindow
().
then
(
wnd
=>
{
console
.
log
(
'
jsunittest setWindowTypeTest7 getTopWindow wnd:
'
+
wnd
)
wnd
.
setWindowType
(
10
).
then
(()
=>
{
console
.
log
(
'
jsunittest setWindowTypeTest7 wnd.setWindowType(10) success
'
)
})
})
wnd
.
resetSize
(
400
,
4
00
).
then
(()
=>
{
wnd
.
resetSize
(
100
,
1
00
).
then
(()
=>
{
console
.
log
(
'
jsunittest setWindowTypeTest
7 wnd.resetSize(400, 4
00) success
'
)
console
.
log
(
'
jsunittest setWindowTypeTest
4 wnd.resetSize(100, 1
00) success
'
)
})
})
})
})
})
})
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录