Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
51cfb83c
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看板
未验证
提交
51cfb83c
编写于
1月 07, 2022
作者:
O
openharmony_ci
提交者:
Gitee
1月 07, 2022
浏览文件
操作
浏览文件
下载
差异文件
!1518 Window_XTS脚本
Merge pull request !1518 from rxz/master
上级
057a9fdb
74c7eecf
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
212 addition
and
3 deletion
+212
-3
graphic/windowstandard/src/main/js/default/test/window.parameter.js
...ndowstandard/src/main/js/default/test/window.parameter.js
+212
-3
未找到文件。
graphic/windowstandard/src/main/js/default/test/window.parameter.js
浏览文件 @
51cfb83c
...
@@ -30,9 +30,8 @@ describe('window_test', function(){
...
@@ -30,9 +30,8 @@ describe('window_test', function(){
/**
/**
* @tc.number GRAPHIC__FUNCTION_WINDOW_TESTWINDOW_JS_API_1900
* @tc.number GRAPHIC__FUNCTION_WINDOW_TESTWINDOW_JS_API_1900
* @tc.name Test moveTestNegative
* @tc.name Test moveTestNegative.
* @tc.desc Test moveTo API function test
* @tc.desc Test window.moveTo API function test.
* @tc.autor hekun wx874319
*/
*/
it
(
'
moveTestNegative
'
,
0
,
function
(){
it
(
'
moveTestNegative
'
,
0
,
function
(){
console
.
log
(
'
jsunittest moveTestNegative begin
'
)
console
.
log
(
'
jsunittest moveTestNegative begin
'
)
...
@@ -46,4 +45,214 @@ describe('window_test', function(){
...
@@ -46,4 +45,214 @@ describe('window_test', function(){
})
})
})
})
})
})
/**
* @tc.number GRAPHIC__FUNCTION_WINDOW_TESTWINDOW_JS_API_2000
* @tc.name Test resetSizeTestLoop.
* @tc.desc Test window.resetSize API function test.
*/
it
(
'
resetSizeLoop
'
,
0
,
function
(){
var
width
=
100
;
var
height
=
100
;
console
.
log
(
'
jsunittest resetSizeLoop begin
'
)
window
.
getTopwindow
().
then
(
wnd
=>
{
console
.
log
(
'
jsunittest resetSizeLoop getTopWindow wnd:
'
+
wnd
)
for
(
let
i
=
1
;
i
<=
5
;
i
++
){
width
=
width
*
i
;
height
=
height
*
i
;
wnd
.
resetSize
(
width
,
height
).
then
(()
=>
{
console
.
log
(
'
jsunittest resetSizeTestLoop success
'
)
})
}
wnd
.
resetSize
(
0
,
0
).
then
(()
=>
{
console
.
log
(
'
jsunittest resetSizeTsetLoop wnd.resetSize(0,0) success
'
)
})
})
})
/**
* @tc.number GRAPHIC__FUNCTION_WINDOW_TESTWINDOW_JS_API_2100
* @tc.name Test setWindowTypeTestZero.
* @tc.desc Test window.setWindowType API function test.
*/
it
(
'
setWindowTypeTestZero
'
,
0
,
function
(){
console
.
log
(
'
jsunittest setWindowTypeTestZero begin
'
)
window
.
getTopwindow
().
then
(
wnd
=>
{
console
.
log
(
'
jsunittest setWindowTypeTestZero getTopWindow wnd:
'
+
wnd
)
wnd
.
setWindowType
(
0
).
then
(()
=>
{
console
.
log
(
'
jsunittest setWindowTypeTestZero wnd.setWindowType(0) success
'
)
})
wnd
.
moveTo
(
200
,
200
).
then
(()
=>
{
console
.
log
(
'
jsunittest setWindowTypeTestZero wnd.moveTo(200,200) success
'
)
})
wnd
.
resetSize
(
200
,
200
).
then
(()
=>
{
console
.
log
(
'
jsunittest setWindowTypeTestZero wnd.resetSize(200,200) success
'
)
})
})
})
/**
* @tc.number GRAPHIC__FUNCTION_WINDOW_TESTWINDOW_JS_API_2200
* @tc.name Test setWindowTypeTestThirty.
* @tc.desc Test window.setWindowType API function test.
*/
it
(
'
setWindowTypeTestThirty
'
,
0
,
function
(){
console
.
log
(
'
jsunittest setWindowTypeTestThirty begin
'
)
window
.
getTopwindow
().
then
(
wnd
=>
{
console
.
log
(
'
jsunittest setWindowTypeTestThirty getTopwindow wnd:
'
+
wnd
)
wnd
.
setWindowType
(
30
).
then
(()
=>
{
console
.
log
(
'
jsunittest setWindowTypeTestThirty wnd.setWindowType(30) success
'
)
})
wnd
.
moveTo
(
200
,
200
).
then
(()
=>
{
console
.
log
(
'
jsunittest setWindowTypeTestThirty wnd.moveTo(200, 200) success
'
)
})
wnd
.
resetSize
(
200
,
200
).
then
(()
=>
{
console
.
log
(
'
jsunittest setWindowTypeTestThirty wnd.resetSize(200, 200) success
'
)
})
})
})
/**
* @tc.number GRAPHIC__FUNCTION_WINDOW_TESTWINDOW_JS_API_2300
* @tc.name Test setWindowTypeTestSeventy.
* @tc.desc Test window.setWindowType API function test.
*/
it
(
'
setWindowTypeTestSeventy
'
,
0
,
function
(){
console
.
log
(
'
jsunittest setWindowTypeTestSeventy begin
'
)
window
.
getTopwindow
().
then
(
wnd
=>
{
console
.
log
(
'
jsunittest setWindowTypeTestSeventy getTopwindow wnd:
'
+
wnd
)
wnd
.
setWindowType
(
70
).
then
(()
=>
{
console
.
log
(
'
jsunittest setWindowTypeTestSeventy wnd.setWindowType(70) success
'
)
})
wnd
.
moveTo
(
200
,
200
).
then
(()
=>
{
console
.
log
(
'
jsunittest setWindowTypeTestSeventy wnd.moveTo(200, 200) success
'
)
})
wnd
.
resetSize
(
200
,
200
).
then
(()
=>
{
console
.
log
(
'
jsunittest setWindowTypeTestSeventy wnd.resetSize(200, 200) success
'
)
})
})
})
/**
* @tc.number GRAPHIC__FUNCTION_WINDOW_TESTWINDOW_JS_API_2400
* @tc.name Test setWindowTypeTestNinety.
* @tc.desc Test window.setWindowType API function test.
*/
it
(
'
setWindowTypeTestNinety
'
,
0
,
function
(){
console
.
log
(
'
jsunittest setWindowTypeTestNinety begin
'
)
window
.
getTopwindow
().
then
(
wnd
=>
{
console
.
log
(
'
jsunittest setWindowTypeTestNinety getTopwindow wnd:
'
+
wnd
)
wnd
.
setWindowType
(
90
).
then
(()
=>
{
console
.
log
(
'
jsunittest setWindowTypeTestNinety wnd.setWindowType(90) success
'
)
})
wnd
.
moveTo
(
200
,
200
).
then
(()
=>
{
console
.
log
(
'
jsunittest setWindowTypeTestNinety wnd.moveTo(200, 200) success
'
)
})
wnd
.
resetSize
(
200
,
200
).
then
(()
=>
{
console
.
log
(
'
jsunittest setWindowTypeTestNinety wnd.resetSize(200, 200) success
'
)
})
})
})
/**
* @tc.number GRAPHIC__FUNCTION_WINDOW_TESTWINDOW_JS_API_2500
* @tc.name Test setWindowTypeTestOrderChange.
* @tc.desc Test window.setWindowType API function test.
*/
it
(
'
setWindowTypeTestOrderChange
'
,
0
,
function
(){
console
.
log
(
'
jsunittest setWindowTypeTestOrderChange begin
'
)
window
.
getTopwindow
().
then
(
wnd
=>
{
console
.
log
(
'
jsunittest setWindowTypeTestOrderChange getTopwindow wnd:
'
+
wnd
)
wnd
.
setWindowType
(
0
).
then
(()
=>
{
console
.
log
(
'
jsunittest setWindowTypeTestOrderChange wnd.setWindowType(0) success
'
)
})
wnd
.
resetSize
(
200
,
200
).
then
(()
=>
{
console
.
log
(
'
jsunittest setWindowTypeTestOrderChange wnd.resetSize(200, 200) success
'
)
})
wnd
.
moveTo
(
200
,
200
).
then
(()
=>
{
console
.
log
(
'
jsunittest setWindowTypeTestOrderChange wnd.moveTo(200, 200) success
'
)
})
})
})
/**
* @tc.number GRAPHIC__FUNCTION_WINDOW_TESTWINDOW_JS_API_2600
* @tc.name Test setWindowTypeTest15.
* @tc.desc Test window.setWindowType API function test.
*/
it
(
'
setWindowTypeTest15
'
,
0
,
function
(){
console
.
log
(
'
jsunittest setWindowTypeTest15 begin
'
)
window
.
getTopwindow
().
then
(
wnd
=>
{
console
.
log
(
'
jsunittest setWindowTypeTest15 getTopwindow wnd:
'
+
wnd
)
wnd
.
setWindowType
(
30
).
then
(()
=>
{
console
.
log
(
'
jsunittest setWindowTypeTest15 wnd.setWindowType(30) success
'
)
})
wnd
.
resetSize
(
200
,
200
).
then
(()
=>
{
console
.
log
(
'
jsunittest setWindowTypeTest15 wnd.resetSize(200, 200) success
'
)
})
wnd
.
moveTo
(
200
,
200
).
then
(()
=>
{
console
.
log
(
'
jsunittest setWindowTypeTest15 wnd.moveTo(200, 200) success
'
)
})
})
})
/**
* @tc.number GRAPHIC__FUNCTION_WINDOW_TESTWINDOW_JS_API_2700
* @tc.name Test setWindowTypeTest16.
* @tc.desc Test window.setWindowType API function test.
*/
it
(
'
setWindowTypeTest16
'
,
0
,
function
(){
console
.
log
(
'
jsunittest setWindowTypeTest16 begin
'
)
window
.
getTopwindow
().
then
(
wnd
=>
{
console
.
log
(
'
jsunittest setWindowTypeTest16 getTopwindow wnd:
'
+
wnd
)
wnd
.
setWindowType
(
70
).
then
(()
=>
{
console
.
log
(
'
jsunittest setWindowTypeTest16 wnd.setWindowType(70) success
'
)
})
wnd
.
resetSize
(
200
,
200
).
then
(()
=>
{
console
.
log
(
'
jsunittest setWindowTypeTest16 wnd.resetSize(200, 200) success
'
)
})
wnd
.
moveTo
(
200
,
200
).
then
(()
=>
{
console
.
log
(
'
jsunittest setWindowTypeTest16 wnd.moveTo(200, 200) success
'
)
})
})
})
/**
* @tc.number GRAPHIC__FUNCTION_WINDOW_TESTWINDOW_JS_API_2800
* @tc.name Test setWindowTypeTest17.
* @tc.desc Test window.setWindowType API function test.
*/
it
(
'
setWindowTypeTest17
'
,
0
,
function
(){
console
.
log
(
'
jsunittest setWindowTypeTest17 begin
'
)
window
.
getTopwindow
().
then
(
wnd
=>
{
console
.
log
(
'
jsunittest setWindowTypeTest17 getTopwindow wnd:
'
+
wnd
)
wnd
.
setWindowType
(
90
).
then
(()
=>
{
console
.
log
(
'
jsunittest setWindowTypeTest17 wnd.setWindowType(90) success
'
)
})
wnd
.
resetSize
(
200
,
200
).
then
(()
=>
{
console
.
log
(
'
jsunittest setWindowTypeTest17 wnd.resetSize(200, 200) success
'
)
})
wnd
.
moveTo
(
200
,
200
).
then
(()
=>
{
console
.
log
(
'
jsunittest setWindowTypeTest17 wnd.moveTo(200, 200) success
'
)
})
})
})
/**
* @tc.number GRAPHIC__FUNCTION_WINDOW_TESTWINDOW_JS_API_2900
* @tc.name Test moveTest6.
* @tc.desc Test window.moveTo API function test.
*/
it
(
'
moveTest6
'
,
0
,
function
(){
console
.
log
(
'
jsunittest moveTest6 begin
'
)
window
.
getTopwindow
().
then
(
wnd
=>
{
console
.
log
(
'
jsunittest moveTest6 getTopwindow wnd:
'
+
wnd
)
wnd
.
moveTo
(
-
200
,
200
).
then
(()
=>
{
console
.
log
(
'
jsunittest moveTest6 wnd.moveTo(-200, 300) success
'
)
})
wnd
.
moveTo
(
200
,
-
300
).
then
(()
=>
{
console
.
log
(
'
jsunittest moveTest6 wnd.moveTo(200, -300) success
'
)
})
})
})
})
})
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录