提交 3c922f1b 编写于 作者: L lixiang

modify webViewSetHttpDns.ets of SecureDnsMode values

Signed-off-by: Nlixiang <lixiang380@huawei.com>
上级 b502a9cd
...@@ -62,7 +62,7 @@ struct webViewSetHttpDns { ...@@ -62,7 +62,7 @@ struct webViewSetHttpDns {
switch (this.str) { switch (this.str) {
case "emitSetHttpDnsSecureOnlyExample": { case "emitSetHttpDnsSecureOnlyExample": {
try { try {
web_webview.WebviewController.setHttpDns(web_webview.SecureDnsMode.SecureOnly, "https://example1.test") web_webview.WebviewController.setHttpDns(web_webview.SecureDnsMode.SECURE_ONLY, "https://example1.test")
await Utils.sleep(1000); await Utils.sleep(1000);
this.controller.loadUrl("https://www.baidu.com/"); this.controller.loadUrl("https://www.baidu.com/");
await Utils.sleep(5000); await Utils.sleep(5000);
...@@ -78,7 +78,7 @@ struct webViewSetHttpDns { ...@@ -78,7 +78,7 @@ struct webViewSetHttpDns {
} }
case "emitSetHttpDnsSecureOnlyUserDefine": { case "emitSetHttpDnsSecureOnlyUserDefine": {
try { try {
web_webview.WebviewController.setHttpDns(web_webview.SecureDnsMode.SecureOnly, "https://httpdns-browser.platform.dbankcloud.cn/dns-query{?dns}") web_webview.WebviewController.setHttpDns(web_webview.SecureDnsMode.SECURE_ONLY, "https://httpdns-browser.platform.dbankcloud.cn/dns-query{?dns}")
await Utils.sleep(2000); await Utils.sleep(2000);
this.controller.refresh(); this.controller.refresh();
this.controller.loadUrl("https://weibo.com/"); this.controller.loadUrl("https://weibo.com/");
...@@ -95,7 +95,7 @@ struct webViewSetHttpDns { ...@@ -95,7 +95,7 @@ struct webViewSetHttpDns {
} }
case "emitSetHttpDnsAutoExample": { case "emitSetHttpDnsAutoExample": {
try { try {
web_webview.WebviewController.setHttpDns(web_webview.SecureDnsMode.Auto, "https://example1.test") web_webview.WebviewController.setHttpDns(web_webview.SecureDnsMode.AUTO, "https://example1.test")
await Utils.sleep(1000); await Utils.sleep(1000);
this.controller.loadUrl("https://www.huawei.com/cn/"); this.controller.loadUrl("https://www.huawei.com/cn/");
await Utils.sleep(6000); await Utils.sleep(6000);
...@@ -111,7 +111,7 @@ struct webViewSetHttpDns { ...@@ -111,7 +111,7 @@ struct webViewSetHttpDns {
} }
case "emitSetHttpDnsOffExample": { case "emitSetHttpDnsOffExample": {
try { try {
web_webview.WebviewController.setHttpDns(web_webview.SecureDnsMode.Off, "https://example1.test") web_webview.WebviewController.setHttpDns(web_webview.SecureDnsMode.OFF, "https://example1.test")
await Utils.sleep(1000); await Utils.sleep(1000);
this.controller.loadUrl("https://www.openharmony.cn/mainPlay"); this.controller.loadUrl("https://www.openharmony.cn/mainPlay");
await Utils.sleep(5000); await Utils.sleep(5000);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册