Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
81092643
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看板
未验证
提交
81092643
编写于
8月 02, 2023
作者:
O
openharmony_ci
提交者:
Gitee
8月 02, 2023
浏览文件
操作
浏览文件
下载
差异文件
!9559 【OpenHarmony 4.0.9.5】【master】【Web子系统】【TOD】【rk3568】【必现】修改xts用例
Merge pull request !9559 from yupeng/master
上级
6559bac7
ef3387a3
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
4 addition
and
14 deletion
+4
-14
arkui/ace_ets_web_dev_webController/entry/src/main/ets/MainAbility/pages/webONHttpErrorReceive.ets
.../src/main/ets/MainAbility/pages/webONHttpErrorReceive.ets
+2
-3
arkui/ace_ets_web_dev_webController/entry/src/main/ets/MainAbility/pages/webOnFirstContFour.ets
...try/src/main/ets/MainAbility/pages/webOnFirstContFour.ets
+1
-6
arkui/ace_ets_web_dev_webController/entry/src/main/ets/MainAbility/pages/webOnSslError.ets
...er/entry/src/main/ets/MainAbility/pages/webOnSslError.ets
+0
-5
arkui/ace_ets_web_dev_webviewControllerError/entry/src/main/ets/MainAbility/pages/webViewContMessageError.ets
...rc/main/ets/MainAbility/pages/webViewContMessageError.ets
+1
-0
未找到文件。
arkui/ace_ets_web_dev_webController/entry/src/main/ets/MainAbility/pages/webONHttpErrorReceive.ets
浏览文件 @
81092643
...
@@ -100,8 +100,7 @@ struct webONHttpErrorReceive {
...
@@ -100,8 +100,7 @@ struct webONHttpErrorReceive {
Utils.emitEvent(event.response.getResponseMimeType(), 476);
Utils.emitEvent(event.response.getResponseMimeType(), 476);
console.log('getResponseCode:' + event.response.getResponseCode());
console.log('getResponseCode:' + event.response.getResponseCode());
Utils.emitEvent(event.response.getResponseCode(), 478);
Utils.emitEvent(event.response.getResponseCode(), 478);
this.title = JSON.stringify(event.response.getResponseCode()) + event.request.getRequestUrl();
console.log("this.title result is :" + JSON.stringify(event.response.getResponseCode()) + event.request.getRequestUrl());
console.log("this.title result is :" + this.title);
console.log('getReasonMessage:' + event.response.getReasonMessage());
console.log('getReasonMessage:' + event.response.getReasonMessage());
Utils.emitEvent(event.response.getReasonMessage(), 480);
Utils.emitEvent(event.response.getReasonMessage(), 480);
let result = event.request.getRequestHeader()
let result = event.request.getRequestHeader()
...
@@ -124,7 +123,7 @@ struct webONHttpErrorReceive {
...
@@ -124,7 +123,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)
Utils.emitEvent(
JSON.stringify(event.response.getResponseCode()) + event.request.getRequestUrl()
, 490)
})
})
}
}
}
}
...
...
arkui/ace_ets_web_dev_webController/entry/src/main/ets/MainAbility/pages/webOnFirstContFour.ets
浏览文件 @
81092643
...
@@ -85,13 +85,8 @@ struct webOnFirstContFour {
...
@@ -85,13 +85,8 @@ struct webOnFirstContFour {
event.navigationStartTick + ", [firstContentfulPaintMs]:" + event.firstContentfulPaintMs + this.firstId)
event.navigationStartTick + ", [firstContentfulPaintMs]:" + event.firstContentfulPaintMs + this.firstId)
if (event.firstContentfulPaintMs > 0 && event.navigationStartTick > 0) {
if (event.firstContentfulPaintMs > 0 && event.navigationStartTick > 0) {
this.firstcontentfulpaint = true;
this.firstcontentfulpaint = true;
console.error("result of onFirstContentfulPaint is: "+ this.firstcontentfulpaint + this.firstId);
}
})
.onPageEnd((event) => {
console.log('url' + event.url + this.firstcontentfulpaint + this.firstId);
if (this.firstBoo) {
Utils.emitEvent(this.firstcontentfulpaint, this.firstId)
Utils.emitEvent(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/webOnSslError.ets
浏览文件 @
81092643
...
@@ -85,11 +85,6 @@ struct webOnSslError {
...
@@ -85,11 +85,6 @@ struct webOnSslError {
Utils.emitEvent(this.sslerrorText, this.firstId)
Utils.emitEvent(this.sslerrorText, this.firstId)
return true
return true
})
})
.onErrorReceive((event) => {
console.log('getErrorInfo:' + event.error.getErrorInfo())
console.log('getErrorCode:' + event.error.getErrorCode())
console.log('url:' + event.request.getRequestUrl())
})
}
}
}
}
}
}
\ No newline at end of file
arkui/ace_ets_web_dev_webviewControllerError/entry/src/main/ets/MainAbility/pages/webViewContMessageError.ets
浏览文件 @
81092643
...
@@ -113,6 +113,7 @@ struct webViewContMessageError {
...
@@ -113,6 +113,7 @@ struct webViewContMessageError {
this.ports[1].postMessageEvent("post message from ets to html5");
this.ports[1].postMessageEvent("post message from ets to html5");
} catch (error) {
} catch (error) {
console.error(`emitPostMessageEventUnPortErr ErrorCode: ${error.code}, Message: ${error.message}`);
console.error(`emitPostMessageEventUnPortErr ErrorCode: ${error.code}, Message: ${error.message}`);
this.errorCode = error.code
this.errorMsg = error.message
this.errorMsg = error.message
}
}
this.controller.runJavaScript("test()",(res) => {
this.controller.runJavaScript("test()",(res) => {
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录