Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
0f60fb6a
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
接近 2 年 前同步成功
通知
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看板
提交
0f60fb6a
编写于
10月 25, 2022
作者:
Y
yaocui_moring
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update
Signed-off-by:
N
yaocui_moring
<
yaocui2@h-partners.com
>
上级
5fb4394b
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
22 addition
and
22 deletion
+22
-22
graphic/windowStage/entry/src/main/ets/test/displayAndWindowRefactorInterface.test.ets
.../main/ets/test/displayAndWindowRefactorInterface.test.ets
+22
-22
未找到文件。
graphic/windowStage/entry/src/main/ets/test/displayAndWindowRefactorInterface.test.ets
浏览文件 @
0f60fb6a
...
...
@@ -196,7 +196,7 @@ export default function displayAndWindowRefactorInterfaceTest(context, windowSta
let tempType = Number(ohosWindow.WindowType[systemWindowTypeDicArr[i]])
let windId = 'createWindowTest1' + i;
console.log(msgStr + 'ohosWindow.createWindow: ' + tempType + ' start');
let windowConfig = {name: windId, windowType: tempType, ctx: context};
let windowConfig = {name: windId, windowType: tempType, ctx: context
, displayId: -1, parentId: -1
};
try{
let tempWnd = await ohosWindow.createWindow(windowConfig).catch((err) => {
console.log(msgStr + 'ohosWindow.createWindow ' + tempType + 'catched, err: ' + JSON.stringify(err));
...
...
@@ -213,15 +213,15 @@ export default function displayAndWindowRefactorInterfaceTest(context, windowSta
})
/**
* @tc.number SUB_WINDOW_CREATEWINDOW_JSAPI_00
4
* @tc.name Test createWindowTest
4
* @tc.number SUB_WINDOW_CREATEWINDOW_JSAPI_00
2
* @tc.name Test createWindowTest
2
* @tc.desc Verify the scenario of creating a window with duplicate IDs
*/
it('createWindowTest
4
', 0, async function (done) {
let caseName = 'createWindowTest
4
';
it('createWindowTest
2
', 0, async function (done) {
let caseName = 'createWindowTest
2
';
let msgStr = 'jsunittest ' + caseName + ' ';
console.log(msgStr + 'begin');
let windowId = 'createWindowSameidsTest
4
'
let windowId = 'createWindowSameidsTest
2
'
let windowConfig = {name: windowId, windowType: 1, ctx: context};
try{
let ohosData = await ohosWindow.createWindow(windowConfig).catch((err) => {
...
...
@@ -245,12 +245,12 @@ export default function displayAndWindowRefactorInterfaceTest(context, windowSta
})
/**
* @tc.number SUB_WINDOW_CREATEWINDOW_JSAPI_00
5
* @tc.name Test createWindowTest
5
* @tc.number SUB_WINDOW_CREATEWINDOW_JSAPI_00
4
* @tc.name Test createWindowTest
4
* @tc.desc Verify the scenario of creating the application type window
*/
it('createWindowTest
5
', 0, done => {
let caseName = 'createWindowTest
5
';
it('createWindowTest
4
', 0, done => {
let caseName = 'createWindowTest
4
';
let msgStr = 'jsunittest ' + caseName + ' ';
console.log(msgStr + 'begin context==' + JSON.stringify(context));
let loopCount = appWindowTypeArr.length;
...
...
@@ -258,7 +258,7 @@ export default function displayAndWindowRefactorInterfaceTest(context, windowSta
for (let i = 0; i < loopCount; i++) {
sleep(500)
let tempType = ohosWindow.WindowType.TYPE_APP;
let windId = 'createWindowTest
5
' + i;
let windId = 'createWindowTest
4
' + i;
console.log(msgStr + 'ohosWindow.createWindow ' + tempType + ' start');
let windowConfig = {name: windId, windowType: tempType, ctx: context};
try{
...
...
@@ -279,18 +279,18 @@ export default function displayAndWindowRefactorInterfaceTest(context, windowSta
done();
})
/**
* @tc.number SUB_WINDOW_CREATEWINDOW_JSAPI_00
6
* @tc.name Test createWindowTest
6
* @tc.number SUB_WINDOW_CREATEWINDOW_JSAPI_00
5
* @tc.name Test createWindowTest
5
* @tc.desc Verify the scenario of creating the system type window
*/
it('createWindowTest
6
', 0, done => {
let caseName = 'createWindowTest
6
';
it('createWindowTest
5
', 0, done => {
let caseName = 'createWindowTest
5
';
let msgStr = 'jsunittest ' + caseName + ' ';
console.log(msgStr + 'begin');
let loopCount = systemWindowTypeArr.length;
console.log('jsunittest loopCount: ' + loopCount);
let tempType = ohosWindow.WindowType.TYPE_SYSTEM_ALERT;
let windId = 'createWindowTest
6
';
let windId = 'createWindowTest
5
';
console.log(msgStr + 'ohosWindow.createWindow ' + tempType + ' start');
let windowConfig = {name: windId, windowType: tempType, ctx: context};
try{
...
...
@@ -316,15 +316,15 @@ export default function displayAndWindowRefactorInterfaceTest(context, windowSta
};
})
/**
* @tc.number SUB_WINDOW_CREATEWINDOW_JSAPI_00
8
* @tc.name Test createWindowTest
8
* @tc.number SUB_WINDOW_CREATEWINDOW_JSAPI_00
6
* @tc.name Test createWindowTest
6
* @tc.desc Verify the scenario of creating a window with duplicate IDs
*/
it('createWindowTest
8
', 0, done => {
let caseName = 'createWindowTest
8
';
it('createWindowTest
6
', 0, done => {
let caseName = 'createWindowTest
6
';
let msgStr = 'jsunittest ' + caseName + ' ';
console.log(msgStr + 'begin');
let windowId = 'createWindowSameidTest
8
'
let windowId = 'createWindowSameidTest
6
'
let winsowConfig = {name: windowId, windowType:1, ctx: context};
try{
ohosWindow.createWindow(winsowConfig, (err, data) => {
...
...
@@ -516,7 +516,7 @@ export default function displayAndWindowRefactorInterfaceTest(context, windowSta
};
})
/**
* @tc.number SUB_WINDOW_
FIND
WINDOW_JSAPI_001
* @tc.number SUB_WINDOW_
GETLAST
WINDOW_JSAPI_001
* @tc.name Test getLastWindowTest1
* @tc.desc Get the final show window
*/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录