Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
65b33dbc
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看板
未验证
提交
65b33dbc
编写于
7月 18, 2023
作者:
O
openharmony_ci
提交者:
Gitee
7月 18, 2023
浏览文件
操作
浏览文件
下载
差异文件
!9378 webController用例优化及gn添加
Merge pull request !9378 from 王闻天/webControllerEdit
上级
ee41806d
526ba668
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
4 addition
and
3 deletion
+4
-3
arkui/BUILD.gn
arkui/BUILD.gn
+1
-0
arkui/ace_ets_web_dev_webController/entry/src/main/ets/MainAbility/pages/webONHttpErrorReceive.ets
.../src/main/ets/MainAbility/pages/webONHttpErrorReceive.ets
+1
-1
arkui/ace_ets_web_dev_webController/entry/src/main/ets/MainAbility/pages/webOnFirstContFour.ets
...try/src/main/ets/MainAbility/pages/webOnFirstContFour.ets
+1
-1
arkui/ace_ets_web_dev_webController/entry/src/main/ets/MainAbility/pages/webOnFirstContThree.ets
...ry/src/main/ets/MainAbility/pages/webOnFirstContThree.ets
+1
-1
未找到文件。
arkui/BUILD.gn
浏览文件 @
65b33dbc
...
@@ -41,6 +41,7 @@ group("arkui") {
...
@@ -41,6 +41,7 @@ group("arkui") {
"ace_ets_web_dev_two:ActsAceWebDevTwoTest",
"ace_ets_web_dev_two:ActsAceWebDevTwoTest",
"ace_ets_web_dev_webController:ActsAceWebDevWebControllerTest",
"ace_ets_web_dev_webController:ActsAceWebDevWebControllerTest",
"ace_ets_web_dev_webviewController:ActsAceWebDevWebViewControllerTest",
"ace_ets_web_dev_webviewController:ActsAceWebDevWebViewControllerTest",
"ace_ets_web_dev_webviewControllerError:ActsAceWebDevWebViewContErrorTest",
"ace_ets_xcomponent:ActsAceXComponentEtsTest",
"ace_ets_xcomponent:ActsAceXComponentEtsTest",
"ace_js_attribute_api:ActsAceJsApiTest",
"ace_js_attribute_api:ActsAceJsApiTest",
"ace_napi_test:ActsAceNapiEtsTest",
"ace_napi_test:ActsAceNapiEtsTest",
...
...
arkui/ace_ets_web_dev_webController/entry/src/main/ets/MainAbility/pages/webONHttpErrorReceive.ets
浏览文件 @
65b33dbc
...
@@ -68,7 +68,6 @@ struct webONHttpErrorReceive {
...
@@ -68,7 +68,6 @@ struct webONHttpErrorReceive {
} catch (error) {
} catch (error) {
console.error(`ErrorCode: ${error.code}, Message: ${error.message}`);
console.error(`ErrorCode: ${error.code}, Message: ${error.message}`);
}
}
Utils.emitEvent(this.title, 490)
break;
break;
}
}
}
}
...
@@ -125,6 +124,7 @@ struct webONHttpErrorReceive {
...
@@ -125,6 +124,7 @@ struct webONHttpErrorReceive {
console.log('The response header last result is ' + this.responseKey + this.responseValue);
console.log('The response header last result is ' + this.responseKey + this.responseValue);
Utils.emitEvent(this.responseKey, 486);
Utils.emitEvent(this.responseKey, 486);
Utils.emitEvent(this.responseValue, 488);
Utils.emitEvent(this.responseValue, 488);
Utils.emitEvent(this.title, 490)
})
})
}
}
}
}
...
...
arkui/ace_ets_web_dev_webController/entry/src/main/ets/MainAbility/pages/webOnFirstContFour.ets
浏览文件 @
65b33dbc
...
@@ -83,7 +83,7 @@ struct webOnFirstContFour {
...
@@ -83,7 +83,7 @@ struct webOnFirstContFour {
.onFirstContentfulPaint(event => {
.onFirstContentfulPaint(event => {
console.log("onFirstContentfulPaint:" + "[navigationStartTick]:" +
console.log("onFirstContentfulPaint:" + "[navigationStartTick]:" +
event.navigationStartTick + ", [firstContentfulPaintMs]:" + event.firstContentfulPaintMs + this.firstId)
event.navigationStartTick + ", [firstContentfulPaintMs]:" + event.firstContentfulPaintMs + this.firstId)
if (event.firstContentfulPaintMs > 0 && event.
firstContentfulPaintMs < 300
0) {
if (event.firstContentfulPaintMs > 0 && event.
navigationStartTick >
0) {
this.firstcontentfulpaint = true;
this.firstcontentfulpaint = true;
console.error("result of onFirstContentfulPaint is: "+ this.firstcontentfulpaint + this.firstId);
console.error("result of onFirstContentfulPaint is: "+ this.firstcontentfulpaint + this.firstId);
}
}
...
...
arkui/ace_ets_web_dev_webController/entry/src/main/ets/MainAbility/pages/webOnFirstContThree.ets
浏览文件 @
65b33dbc
...
@@ -82,7 +82,7 @@ struct webOnFirstContThree {
...
@@ -82,7 +82,7 @@ struct webOnFirstContThree {
.onFirstContentfulPaint(event => {
.onFirstContentfulPaint(event => {
console.log("onFirstContentfulPaint:" + "[navigationStartTick]:" +
console.log("onFirstContentfulPaint:" + "[navigationStartTick]:" +
event.navigationStartTick + ", [firstContentfulPaintMs]:" + event.firstContentfulPaintMs + this.firstId)
event.navigationStartTick + ", [firstContentfulPaintMs]:" + event.firstContentfulPaintMs + this.firstId)
if (event.firstContentfulPaintMs > 0 && event.
firstContentfulPaintMs < 500
0) {
if (event.firstContentfulPaintMs > 0 && event.
navigationStartTick >
0) {
this.firstcontentfulpaint = true;
this.firstcontentfulpaint = true;
console.error("result of onFirstContentfulPaint is: "+ this.firstcontentfulpaint + this.firstId);
console.error("result of onFirstContentfulPaint is: "+ this.firstcontentfulpaint + this.firstId);
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录