提交 526ba668 编写于 作者: W wangwentian

webController用例问题修改及gn添加

Signed-off-by: Nwangwentian <wtwanga@isoftstone.com>
上级 f43217dc
......@@ -41,6 +41,7 @@ group("arkui") {
"ace_ets_web_dev_two:ActsAceWebDevTwoTest",
"ace_ets_web_dev_webController:ActsAceWebDevWebControllerTest",
"ace_ets_web_dev_webviewController:ActsAceWebDevWebViewControllerTest",
"ace_ets_web_dev_webviewControllerError:ActsAceWebDevWebViewContErrorTest",
"ace_ets_xcomponent:ActsAceXComponentEtsTest",
"ace_js_attribute_api:ActsAceJsApiTest",
"ace_napi_test:ActsAceNapiEtsTest",
......
......@@ -68,7 +68,6 @@ struct webONHttpErrorReceive {
} catch (error) {
console.error(`ErrorCode: ${error.code}, Message: ${error.message}`);
}
Utils.emitEvent(this.title, 490)
break;
}
}
......@@ -125,6 +124,7 @@ struct webONHttpErrorReceive {
console.log('The response header last result is ' + this.responseKey + this.responseValue);
Utils.emitEvent(this.responseKey, 486);
Utils.emitEvent(this.responseValue, 488);
Utils.emitEvent(this.title, 490)
})
}
}
......
......@@ -83,7 +83,7 @@ struct webOnFirstContFour {
.onFirstContentfulPaint(event => {
console.log("onFirstContentfulPaint:" + "[navigationStartTick]:" +
event.navigationStartTick + ", [firstContentfulPaintMs]:" + event.firstContentfulPaintMs + this.firstId)
if (event.firstContentfulPaintMs > 0 && event.firstContentfulPaintMs < 3000) {
if (event.firstContentfulPaintMs > 0 && event.navigationStartTick > 0) {
this.firstcontentfulpaint = true;
console.error("result of onFirstContentfulPaint is: "+ this.firstcontentfulpaint + this.firstId);
}
......
......@@ -82,7 +82,7 @@ struct webOnFirstContThree {
.onFirstContentfulPaint(event => {
console.log("onFirstContentfulPaint:" + "[navigationStartTick]:" +
event.navigationStartTick + ", [firstContentfulPaintMs]:" + event.firstContentfulPaintMs + this.firstId)
if (event.firstContentfulPaintMs > 0 && event.firstContentfulPaintMs < 5000) {
if (event.firstContentfulPaintMs > 0 && event.navigationStartTick > 0) {
this.firstcontentfulpaint = true;
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.
先完成此消息的编辑!
想要评论请 注册