Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
0b26e910
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看板
未验证
提交
0b26e910
编写于
1月 18, 2022
作者:
O
openharmony_ci
提交者:
Gitee
1月 18, 2022
浏览文件
操作
浏览文件
下载
差异文件
!1602 update cases
Merge pull request !1602 from rxz/master
上级
f71d7c17
6a4f49d0
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
20 addition
and
20 deletion
+20
-20
graphic/windowstandard/src/main/js/default/test/window.parameter.js
...ndowstandard/src/main/js/default/test/window.parameter.js
+20
-20
未找到文件。
graphic/windowstandard/src/main/js/default/test/window.parameter.js
浏览文件 @
0b26e910
...
@@ -35,8 +35,8 @@ describe('window_test', function(){
...
@@ -35,8 +35,8 @@ describe('window_test', function(){
*/
*/
it
(
'
moveTestNegative
'
,
0
,
function
(){
it
(
'
moveTestNegative
'
,
0
,
function
(){
console
.
log
(
'
jsunittest moveTestNegative begin
'
)
console
.
log
(
'
jsunittest moveTestNegative begin
'
)
window
.
getTop
w
indow
().
then
(
wnd
=>
{
window
.
getTop
W
indow
().
then
(
wnd
=>
{
console
.
log
(
'
jsunittest moveTestNegative getTop
w
indow wnd:
'
+
wnd
)
console
.
log
(
'
jsunittest moveTestNegative getTop
W
indow wnd:
'
+
wnd
)
wnd
.
moveTo
(
-
200
,
-
200
).
then
(()
=>
{
wnd
.
moveTo
(
-
200
,
-
200
).
then
(()
=>
{
console
.
log
(
'
moveTo(-200,-200) success
'
)
console
.
log
(
'
moveTo(-200,-200) success
'
)
})
})
...
@@ -55,7 +55,7 @@ describe('window_test', function(){
...
@@ -55,7 +55,7 @@ describe('window_test', function(){
var
width
=
100
;
var
width
=
100
;
var
height
=
100
;
var
height
=
100
;
console
.
log
(
'
jsunittest resetSizeLoop begin
'
)
console
.
log
(
'
jsunittest resetSizeLoop begin
'
)
window
.
getTop
w
indow
().
then
(
wnd
=>
{
window
.
getTop
W
indow
().
then
(
wnd
=>
{
console
.
log
(
'
jsunittest resetSizeLoop getTopWindow wnd:
'
+
wnd
)
console
.
log
(
'
jsunittest resetSizeLoop getTopWindow wnd:
'
+
wnd
)
for
(
let
i
=
1
;
i
<=
5
;
i
++
){
for
(
let
i
=
1
;
i
<=
5
;
i
++
){
width
=
width
*
i
;
width
=
width
*
i
;
...
@@ -77,7 +77,7 @@ describe('window_test', function(){
...
@@ -77,7 +77,7 @@ describe('window_test', function(){
*/
*/
it
(
'
setWindowTypeTestZero
'
,
0
,
function
(){
it
(
'
setWindowTypeTestZero
'
,
0
,
function
(){
console
.
log
(
'
jsunittest setWindowTypeTestZero begin
'
)
console
.
log
(
'
jsunittest setWindowTypeTestZero begin
'
)
window
.
getTop
w
indow
().
then
(
wnd
=>
{
window
.
getTop
W
indow
().
then
(
wnd
=>
{
console
.
log
(
'
jsunittest setWindowTypeTestZero getTopWindow wnd:
'
+
wnd
)
console
.
log
(
'
jsunittest setWindowTypeTestZero getTopWindow wnd:
'
+
wnd
)
wnd
.
setWindowType
(
window
.
WindowType
.
TYPE_APP
).
then
(()
=>
{
wnd
.
setWindowType
(
window
.
WindowType
.
TYPE_APP
).
then
(()
=>
{
console
.
log
(
'
jsunittest setWindowTypeTestZero wnd.setWindowType(0) success
'
)
console
.
log
(
'
jsunittest setWindowTypeTestZero wnd.setWindowType(0) success
'
)
...
@@ -98,8 +98,8 @@ describe('window_test', function(){
...
@@ -98,8 +98,8 @@ describe('window_test', function(){
*/
*/
it
(
'
setWindowTypeTestThirty
'
,
0
,
function
(){
it
(
'
setWindowTypeTestThirty
'
,
0
,
function
(){
console
.
log
(
'
jsunittest setWindowTypeTestThirty begin
'
)
console
.
log
(
'
jsunittest setWindowTypeTestThirty begin
'
)
window
.
getTop
w
indow
().
then
(
wnd
=>
{
window
.
getTop
W
indow
().
then
(
wnd
=>
{
console
.
log
(
'
jsunittest setWindowTypeTestThirty getTop
w
indow wnd:
'
+
wnd
)
console
.
log
(
'
jsunittest setWindowTypeTestThirty getTop
W
indow wnd:
'
+
wnd
)
wnd
.
setWindowType
(
window
.
WindowType
.
TYPE_SYSTEM_ALTER
).
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
'
)
})
})
...
@@ -119,8 +119,8 @@ describe('window_test', function(){
...
@@ -119,8 +119,8 @@ describe('window_test', function(){
*/
*/
it
(
'
setWindowTypeTestSeventy
'
,
0
,
function
(){
it
(
'
setWindowTypeTestSeventy
'
,
0
,
function
(){
console
.
log
(
'
jsunittest setWindowTypeTestSeventy begin
'
)
console
.
log
(
'
jsunittest setWindowTypeTestSeventy begin
'
)
window
.
getTop
w
indow
().
then
(
wnd
=>
{
window
.
getTop
W
indow
().
then
(
wnd
=>
{
console
.
log
(
'
jsunittest setWindowTypeTestSeventy getTop
w
indow wnd:
'
+
wnd
)
console
.
log
(
'
jsunittest setWindowTypeTestSeventy getTop
W
indow wnd:
'
+
wnd
)
wnd
.
setWindowType
(
window
.
WindowType
.
TYPE_SYSTEM_VOLUME
).
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
'
)
})
})
...
@@ -140,8 +140,8 @@ describe('window_test', function(){
...
@@ -140,8 +140,8 @@ describe('window_test', function(){
*/
*/
it
(
'
setWindowTypeTestNinety
'
,
0
,
function
(){
it
(
'
setWindowTypeTestNinety
'
,
0
,
function
(){
console
.
log
(
'
jsunittest setWindowTypeTestNinety begin
'
)
console
.
log
(
'
jsunittest setWindowTypeTestNinety begin
'
)
window
.
getTop
w
indow
().
then
(
wnd
=>
{
window
.
getTop
W
indow
().
then
(
wnd
=>
{
console
.
log
(
'
jsunittest setWindowTypeTestNinety getTop
w
indow wnd:
'
+
wnd
)
console
.
log
(
'
jsunittest setWindowTypeTestNinety getTop
W
indow wnd:
'
+
wnd
)
wnd
.
setWindowType
(
window
.
WindowType
.
TYPE_SYSTEM_PANEL
).
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
'
)
})
})
...
@@ -161,8 +161,8 @@ describe('window_test', function(){
...
@@ -161,8 +161,8 @@ describe('window_test', function(){
*/
*/
it
(
'
setWindowTypeTestOrderChange
'
,
0
,
function
(){
it
(
'
setWindowTypeTestOrderChange
'
,
0
,
function
(){
console
.
log
(
'
jsunittest setWindowTypeTestOrderChange begin
'
)
console
.
log
(
'
jsunittest setWindowTypeTestOrderChange begin
'
)
window
.
getTop
w
indow
().
then
(
wnd
=>
{
window
.
getTop
W
indow
().
then
(
wnd
=>
{
console
.
log
(
'
jsunittest setWindowTypeTestOrderChange getTop
w
indow wnd:
'
+
wnd
)
console
.
log
(
'
jsunittest setWindowTypeTestOrderChange getTop
W
indow wnd:
'
+
wnd
)
wnd
.
setWindowType
(
window
.
WindowType
.
TYPE_APP
).
then
(()
=>
{
wnd
.
setWindowType
(
window
.
WindowType
.
TYPE_APP
).
then
(()
=>
{
console
.
log
(
'
jsunittest setWindowTypeTestOrderChange wnd.setWindowType(0) success
'
)
console
.
log
(
'
jsunittest setWindowTypeTestOrderChange wnd.setWindowType(0) success
'
)
})
})
...
@@ -182,8 +182,8 @@ describe('window_test', function(){
...
@@ -182,8 +182,8 @@ describe('window_test', function(){
*/
*/
it
(
'
setWindowTypeTest15
'
,
0
,
function
(){
it
(
'
setWindowTypeTest15
'
,
0
,
function
(){
console
.
log
(
'
jsunittest setWindowTypeTest15 begin
'
)
console
.
log
(
'
jsunittest setWindowTypeTest15 begin
'
)
window
.
getTop
w
indow
().
then
(
wnd
=>
{
window
.
getTop
W
indow
().
then
(
wnd
=>
{
console
.
log
(
'
jsunittest setWindowTypeTest15 getTop
w
indow wnd:
'
+
wnd
)
console
.
log
(
'
jsunittest setWindowTypeTest15 getTop
W
indow wnd:
'
+
wnd
)
wnd
.
setWindowType
(
window
.
WindowType
.
TYPE_SYSTEM_ALTER
).
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
'
)
})
})
...
@@ -203,8 +203,8 @@ describe('window_test', function(){
...
@@ -203,8 +203,8 @@ describe('window_test', function(){
*/
*/
it
(
'
setWindowTypeTest16
'
,
0
,
function
(){
it
(
'
setWindowTypeTest16
'
,
0
,
function
(){
console
.
log
(
'
jsunittest setWindowTypeTest16 begin
'
)
console
.
log
(
'
jsunittest setWindowTypeTest16 begin
'
)
window
.
getTop
w
indow
().
then
(
wnd
=>
{
window
.
getTop
W
indow
().
then
(
wnd
=>
{
console
.
log
(
'
jsunittest setWindowTypeTest16 getTop
w
indow wnd:
'
+
wnd
)
console
.
log
(
'
jsunittest setWindowTypeTest16 getTop
W
indow wnd:
'
+
wnd
)
wnd
.
setWindowType
(
window
.
WindowType
.
TYPE_SYSTEM_VOLUME
).
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
'
)
})
})
...
@@ -224,8 +224,8 @@ describe('window_test', function(){
...
@@ -224,8 +224,8 @@ describe('window_test', function(){
*/
*/
it
(
'
setWindowTypeTest17
'
,
0
,
function
(){
it
(
'
setWindowTypeTest17
'
,
0
,
function
(){
console
.
log
(
'
jsunittest setWindowTypeTest17 begin
'
)
console
.
log
(
'
jsunittest setWindowTypeTest17 begin
'
)
window
.
getTop
w
indow
().
then
(
wnd
=>
{
window
.
getTop
W
indow
().
then
(
wnd
=>
{
console
.
log
(
'
jsunittest setWindowTypeTest17 getTop
w
indow wnd:
'
+
wnd
)
console
.
log
(
'
jsunittest setWindowTypeTest17 getTop
W
indow wnd:
'
+
wnd
)
wnd
.
setWindowType
(
window
.
WindowType
.
TYPE_SYSTEM_PANEL
).
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
'
)
})
})
...
@@ -245,8 +245,8 @@ describe('window_test', function(){
...
@@ -245,8 +245,8 @@ describe('window_test', function(){
*/
*/
it
(
'
moveTest6
'
,
0
,
function
(){
it
(
'
moveTest6
'
,
0
,
function
(){
console
.
log
(
'
jsunittest moveTest6 begin
'
)
console
.
log
(
'
jsunittest moveTest6 begin
'
)
window
.
getTop
w
indow
().
then
(
wnd
=>
{
window
.
getTop
W
indow
().
then
(
wnd
=>
{
console
.
log
(
'
jsunittest moveTest6 getTop
w
indow wnd:
'
+
wnd
)
console
.
log
(
'
jsunittest moveTest6 getTop
W
indow wnd:
'
+
wnd
)
wnd
.
moveTo
(
-
200
,
200
).
then
(()
=>
{
wnd
.
moveTo
(
-
200
,
200
).
then
(()
=>
{
console
.
log
(
'
jsunittest moveTest6 wnd.moveTo(-200, 300) success
'
)
console
.
log
(
'
jsunittest moveTest6 wnd.moveTo(-200, 300) success
'
)
})
})
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录