Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
708dba04
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看板
未验证
提交
708dba04
编写于
9月 07, 2022
作者:
O
openharmony_ci
提交者:
Gitee
9月 07, 2022
浏览文件
操作
浏览文件
下载
差异文件
!5398 【窗口子系统】修改用例重复执行问题
Merge pull request !5398 from hekun/OpenHarmony-3.1-Release
上级
d50d9bd8
45ccfc8a
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
74 addition
and
5 deletion
+74
-5
graphic/windowstandard/src/main/config.json
graphic/windowstandard/src/main/config.json
+2
-1
graphic/windowstandard/src/main/js/default/pages/two/two.css
graphic/windowstandard/src/main/js/default/pages/two/two.css
+24
-0
graphic/windowstandard/src/main/js/default/pages/two/two.hml
graphic/windowstandard/src/main/js/default/pages/two/two.hml
+21
-0
graphic/windowstandard/src/main/js/default/pages/two/two.js
graphic/windowstandard/src/main/js/default/pages/two/two.js
+23
-0
graphic/windowstandard/src/main/js/default/test/window.test.js
...ic/windowstandard/src/main/js/default/test/window.test.js
+4
-4
未找到文件。
graphic/windowstandard/src/main/config.json
浏览文件 @
708dba04
...
@@ -54,7 +54,8 @@
...
@@ -54,7 +54,8 @@
"js"
:
[
"js"
:
[
{
{
"pages"
:
[
"pages"
:
[
"pages/index/index"
"pages/index/index"
,
"pages/two/two"
],
],
"name"
:
"default"
,
"name"
:
"default"
,
"window"
:
{
"window"
:
{
...
...
graphic/windowstandard/src/main/js/default/pages/two/two.css
0 → 100644
浏览文件 @
708dba04
/*
* Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.container
{
flex-direction
:
column
;
justify-content
:
center
;
align-items
:
center
;
}
.title
{
font-size
:
100px
;
}
graphic/windowstandard/src/main/js/default/pages/two/two.hml
0 → 100644
浏览文件 @
708dba04
/*
* Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
<div class="container">
<text class="title">
{{ $t('strings.hello') }} {{ title }}
</text>
</div>
graphic/windowstandard/src/main/js/default/pages/two/two.js
0 → 100644
浏览文件 @
708dba04
/*
* Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export
default
{
data
:
{
title
:
""
},
onInit
()
{
this
.
title
=
this
.
$t
(
'
strings.world
'
);
}
}
graphic/windowstandard/src/main/js/default/test/window.test.js
浏览文件 @
708dba04
...
@@ -2915,7 +2915,7 @@ describe('window_test', function () {
...
@@ -2915,7 +2915,7 @@ describe('window_test', function () {
if
(
!!
data
)
{
if
(
!!
data
)
{
tempWnd
=
data
tempWnd
=
data
expect
(
!!
tempWnd
).
assertTrue
();
expect
(
!!
tempWnd
).
assertTrue
();
tempWnd
.
loadContent
(
'
pages/
index
'
,
(
err
,
data
)
=>
{
tempWnd
.
loadContent
(
'
pages/
two
'
,
(
err
,
data
)
=>
{
console
.
log
(
msgStr
+
'
tempWnd.loadContent err
'
+
JSON
.
stringify
(
err
));
console
.
log
(
msgStr
+
'
tempWnd.loadContent err
'
+
JSON
.
stringify
(
err
));
console
.
log
(
msgStr
+
'
tempWnd.loadContent data
'
+
JSON
.
stringify
(
data
));
console
.
log
(
msgStr
+
'
tempWnd.loadContent data
'
+
JSON
.
stringify
(
data
));
console
.
log
(
msgStr
+
'
tempWnd.loadContent !!data
'
+
!!
data
);
console
.
log
(
msgStr
+
'
tempWnd.loadContent !!data
'
+
!!
data
);
...
@@ -2985,11 +2985,11 @@ describe('window_test', function () {
...
@@ -2985,11 +2985,11 @@ describe('window_test', function () {
console
.
log
(
msgStr
+
'
window.create
'
+
baseWndType
+
'
, wnd:
'
+
tempWnd
);
console
.
log
(
msgStr
+
'
window.create
'
+
baseWndType
+
'
, wnd:
'
+
tempWnd
);
expect
(
!!
tempWnd
).
assertTrue
();
expect
(
!!
tempWnd
).
assertTrue
();
console
.
log
(
msgStr
+
'
tempWnd.loadContent start
'
);
console
.
log
(
msgStr
+
'
tempWnd.loadContent start
'
);
let
load
=
await
tempWnd
.
loadContent
(
'
pages/
index/index
'
).
catch
((
err
)
=>
{
let
load
=
await
tempWnd
.
loadContent
(
'
pages/
two/two
'
).
catch
((
err
)
=>
{
unexpectedError
(
err
,
caseName
,
'
tempWnd.loadContent
'
,
done
);
unexpectedError
(
err
,
caseName
,
'
tempWnd.loadContent
'
,
done
);
console
.
log
(
msgStr
+
'
tempWnd.loadContent(pages/
index/index
) err=
'
+
JSON
.
stringify
(
err
));
console
.
log
(
msgStr
+
'
tempWnd.loadContent(pages/
two/two
) err=
'
+
JSON
.
stringify
(
err
));
});
});
console
.
log
(
msgStr
+
'
tempWnd.loadContent(pages/
index/index
) load=
'
+
JSON
.
stringify
(
load
));
console
.
log
(
msgStr
+
'
tempWnd.loadContent(pages/
two/two
) load=
'
+
JSON
.
stringify
(
load
));
expect
(
!
load
).
assertTrue
();
expect
(
!
load
).
assertTrue
();
done
();
done
();
})
})
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录