Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
3bd15455
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看板
未验证
提交
3bd15455
编写于
6月 01, 2023
作者:
O
openharmony_ci
提交者:
Gitee
6月 01, 2023
浏览文件
操作
浏览文件
下载
差异文件
!8864 优化用例
Merge pull request !8864 from 姚翠/OpenHarmony-3.2-Release
上级
bf8cfcac
27ed0b51
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
3 addition
and
28 deletion
+3
-28
graphic/windowStage/entry/src/main/ets/MainAbility/pages/second/pageTwo.ets
...e/entry/src/main/ets/MainAbility/pages/second/pageTwo.ets
+1
-1
graphic/windowStage/entry/src/main/ets/test/parameterVerificationIsOptional.test.ets
...rc/main/ets/test/parameterVerificationIsOptional.test.ets
+2
-27
未找到文件。
graphic/windowStage/entry/src/main/ets/MainAbility/pages/second/pageTwo.ets
浏览文件 @
3bd15455
...
...
@@ -19,7 +19,7 @@ struct PageTwo {
build() {
Row(){
Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.
Center
}) {
Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.
Start
}) {
Text(`${this.content}`)
.fontSize(50)
.fontWeight(FontWeight.Bold)
...
...
graphic/windowStage/entry/src/main/ets/test/parameterVerificationIsOptional.test.ets
浏览文件 @
3bd15455
...
...
@@ -142,9 +142,6 @@ export default function windowPromiseTest(context, windowStage, abilityStorage)
unexpectedError
(
err
,
caseName
,
'tempWnd.show'
,
done
);
});
console
.
log
(
msgStr
+
'tempWnd.show success'
);
await
tempWnd
.
setWindowMode
(
102
)
.
catch
((
err
)
=>
{
unexpectedError
(
err
,
caseName
,
'tempWnd.setWindowMode 102'
,
done
);
});
await
tempWnd
.
resize
(
200
,
600
)
.
catch
(
async
(
err
)
=>
{
console
.
error
(
msgStr
+
'Failed to change the window size. Cause: '
+
JSON
.
stringify
(
err
));
expect
()
.
assertFail
();
...
...
@@ -205,9 +202,6 @@ export default function windowPromiseTest(context, windowStage, abilityStorage)
unexpectedError
(
err
,
caseName
,
'tempWnd.show'
,
done
);
});
console
.
log
(
msgStr
+
'tempWnd.show success'
);
await
tempWnd
.
setWindowMode
(
102
)
.
catch
((
err
)
=>
{
unexpectedError
(
err
,
caseName
,
'tempWnd.setWindowMode 102'
,
done
);
});
await
tempWnd
.
resize
(
200
,
600
)
.
catch
(
async
(
err
)
=>
{
console
.
error
(
msgStr
+
'Failed to change the window size. Cause: '
+
JSON
.
stringify
(
err
));
expect
()
.
assertFail
();
...
...
@@ -352,10 +346,6 @@ export default function windowPromiseTest(context, windowStage, abilityStorage)
name
:
windowId
,
windowType
:
ohosWindow
.
WindowType
.
TYPE_DESKTOP
,
ctx
:
context
};
let
tempWnd
=
null
;
// tempWnd = await ohosWindow.createWindow(windowConfig).catch((err) => {
// unexpectedError(err, caseName, 'ohosWindow.createWindow', done);
// });
// expect(!!tempWnd).assertTrue();
tempWnd
=
await
windowStage
.
createSubWindow
(
'window_off_keyboardHeightChange_Test_001'
)
.
catch
((
err
)
=>
{
unexpectedError
(
err
,
caseName
,
'windowStage.createSubWindow'
,
done
);
});
...
...
@@ -363,13 +353,7 @@ export default function windowPromiseTest(context, windowStage, abilityStorage)
await
tempWnd
.
loadContent
(
'MainAbility/pages/second/pageTwo'
)
.
catch
((
err
)
=>
{
unexpectedError
(
err
,
caseName
,
'tempWnd.loadContent'
,
done
);
});
// await tempWnd.resize(800, 800).catch((err) => {
// unexpectedError(err, caseName, 'tempWnd.resetSize', done);
// });
// await tempWnd.moveWindowTo(100, 100).catch((err) => {
// unexpectedError(err, caseName, 'tempWnd.moveWindowTo ', done);
// });
await
tempWnd
.
setWindowMode
(
ohosWindow
.
WindowMode
.
FULLSCREEN
)
.
catch
((
err
)
=>
{
await
tempWnd
.
setWindowLayoutFullScreen
(
true
)
.
catch
((
err
)
=>
{
unexpectedError
(
err
,
caseName
,
'tempWnd.setWindowMode'
,
done
);
});
await
tempWnd
.
showWindow
()
.
catch
((
err
)
=>
{
...
...
@@ -432,9 +416,6 @@ export default function windowPromiseTest(context, windowStage, abilityStorage)
name
:
windowId
,
windowType
:
ohosWindow
.
WindowType
.
TYPE_DESKTOP
,
ctx
:
context
};
let
tempWnd
=
null
;
// tempWnd = await ohosWindow.createWindow(windowConfig).catch((err) => {
// unexpectedError(err, caseName, 'ohosWindow.createWindow', done);
// });
tempWnd
=
await
windowStage
.
createSubWindow
(
'window_off_keyboardHeightChange_Test_002'
)
.
catch
((
err
)
=>
{
unexpectedError
(
err
,
caseName
,
'windowStage.createSubWindow'
,
done
);
});
...
...
@@ -442,13 +423,7 @@ export default function windowPromiseTest(context, windowStage, abilityStorage)
await
tempWnd
.
loadContent
(
'MainAbility/pages/second/pageTwo'
)
.
catch
((
err
)
=>
{
unexpectedError
(
err
,
caseName
,
'tempWnd.loadContent'
,
done
);
});
// await tempWnd.resize(800, 800).catch((err) => {
// unexpectedError(err, caseName, 'tempWnd.resetSize', done);
// });
// await tempWnd.moveWindowTo(100, 100).catch((err) => {
// unexpectedError(err, caseName, 'tempWnd.moveWindowTo ', done);
// });
await
tempWnd
.
setWindowMode
(
ohosWindow
.
WindowMode
.
FULLSCREEN
)
.
catch
((
err
)
=>
{
await
tempWnd
.
setWindowLayoutFullScreen
(
true
)
.
catch
((
err
)
=>
{
unexpectedError
(
err
,
caseName
,
'tempWnd.setWindowMode'
,
done
);
});
await
tempWnd
.
showWindow
()
.
catch
((
err
)
=>
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录