Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
82340ef7
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看板
提交
82340ef7
编写于
2月 21, 2022
作者:
B
bayanxing
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
change testcase position
Signed-off-by:
N
bayanxing
<
bayanxing@kaihongdigi.com
>
上级
d053fdd7
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
22 addition
and
23 deletion
+22
-23
ace/ace_standard/src/main/js/default/test/commonComponentJsApi.test.js
...ard/src/main/js/default/test/commonComponentJsApi.test.js
+22
-23
未找到文件。
ace/ace_standard/src/main/js/default/test/commonComponentJsApi.test.js
浏览文件 @
82340ef7
...
...
@@ -1222,70 +1222,69 @@ describe('aceJsTest', function () {
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name test
ImageBitmap
Component
* @tc.name test
OffCanvasRC2D
Component
* @tc.desc ACE
*/
it
(
'
test
ImageBitmap
Component
'
,
0
,
async
function
(
done
)
{
it
(
'
test
OffCanvasRC2D
Component
'
,
0
,
async
function
(
done
)
{
let
result
;
let
options
=
{
uri
:
'
pages/obj_
ImageBitmap
/index
'
uri
:
'
pages/obj_
OffscreenCanvasRenderingContext2D
/index
'
}
try
{
result
=
router
.
push
(
options
)
console
.
info
(
"
push obj_
ImageBitmap
page success
"
+
JSON
.
stringify
(
result
));
console
.
info
(
"
push obj_
OffscreenCanvasRenderingContext2D
page success
"
+
JSON
.
stringify
(
result
));
}
catch
(
err
)
{
console
.
error
(
"
push obj_
ImageBitmap
page error
"
+
JSON
.
stringify
(
result
));
console
.
error
(
"
push obj_
OffscreenCanvasRenderingContext2D
page error
"
+
JSON
.
stringify
(
result
));
}
await
sleep
(
5000
)
let
pages
=
router
.
getState
();
console
.
info
(
"
[router.obj_
ImageBitmap
] getState
"
+
JSON
.
stringify
(
pages
));
expect
(
"
pages/obj_
ImageBitmap
/
"
).
assertEqual
(
pages
.
path
);
console
.
info
(
"
[router.obj_
OffscreenCanvasRenderingContext2D
] getState
"
+
JSON
.
stringify
(
pages
));
expect
(
"
pages/obj_
OffscreenCanvasRenderingContext2D
/
"
).
assertEqual
(
pages
.
path
);
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name test
OffScreenCanvas
Component
* @tc.name test
ImageBitmap
Component
* @tc.desc ACE
*/
it
(
'
test
OffScreenCanvas
Component
'
,
0
,
async
function
(
done
)
{
it
(
'
test
ImageBitmap
Component
'
,
0
,
async
function
(
done
)
{
let
result
;
let
options
=
{
uri
:
'
pages/obj_
OffscreenCanvas
/index
'
uri
:
'
pages/obj_
ImageBitmap
/index
'
}
try
{
result
=
router
.
push
(
options
)
console
.
info
(
"
push obj_
OffscreenCanvas
page success
"
+
JSON
.
stringify
(
result
));
console
.
info
(
"
push obj_
ImageBitmap
page success
"
+
JSON
.
stringify
(
result
));
}
catch
(
err
)
{
console
.
error
(
"
push obj_
OffscreenCanvas
page error
"
+
JSON
.
stringify
(
result
));
console
.
error
(
"
push obj_
ImageBitmap
page error
"
+
JSON
.
stringify
(
result
));
}
await
sleep
(
5000
)
let
pages
=
router
.
getState
();
console
.
info
(
"
[router.obj_
OffscreenCanvas
] getState
"
+
JSON
.
stringify
(
pages
));
expect
(
"
pages/obj_
OffscreenCanvas
/
"
).
assertEqual
(
pages
.
path
);
console
.
info
(
"
[router.obj_
ImageBitmap
] getState
"
+
JSON
.
stringify
(
pages
));
expect
(
"
pages/obj_
ImageBitmap
/
"
).
assertEqual
(
pages
.
path
);
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testOff
CanvasRC2D
Component
* @tc.name testOff
ScreenCanvas
Component
* @tc.desc ACE
*/
it
(
'
testOff
CanvasRC2D
Component
'
,
0
,
async
function
(
done
)
{
it
(
'
testOff
ScreenCanvas
Component
'
,
0
,
async
function
(
done
)
{
let
result
;
let
options
=
{
uri
:
'
pages/obj_OffscreenCanvas
RenderingContext2D
/index
'
uri
:
'
pages/obj_OffscreenCanvas/index
'
}
try
{
result
=
router
.
push
(
options
)
console
.
info
(
"
push obj_OffscreenCanvas
RenderingContext2D
page success
"
+
JSON
.
stringify
(
result
));
console
.
info
(
"
push obj_OffscreenCanvas page success
"
+
JSON
.
stringify
(
result
));
}
catch
(
err
)
{
console
.
error
(
"
push obj_OffscreenCanvas
RenderingContext2D
page error
"
+
JSON
.
stringify
(
result
));
console
.
error
(
"
push obj_OffscreenCanvas page error
"
+
JSON
.
stringify
(
result
));
}
await
sleep
(
5000
)
let
pages
=
router
.
getState
();
console
.
info
(
"
[router.obj_OffscreenCanvas
RenderingContext2D
] getState
"
+
JSON
.
stringify
(
pages
));
expect
(
"
pages/obj_OffscreenCanvas
RenderingContext2D
/
"
).
assertEqual
(
pages
.
path
);
console
.
info
(
"
[router.obj_OffscreenCanvas] getState
"
+
JSON
.
stringify
(
pages
));
expect
(
"
pages/obj_OffscreenCanvas/
"
).
assertEqual
(
pages
.
path
);
done
();
});
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录