From: yh106.jung Date: Thu, 26 Sep 2019 04:48:55 +0000 (+0900) Subject: [WebView][Non-ACR][Add error code for emulator] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=93da3e7f3eb7c7d3609fa84e6697b6e7ffb051b1;p=test%2Ftct%2Fcsharp%2Fapi.git [WebView][Non-ACR][Add error code for emulator] We have been expected 'LoadErrorCode.CantLookupHost' for wrong URL. But in some emulator environment, we recieve 'LoadErrorCode.Unknown' instead of 'LoadErrorCode.CantLookupHost'. It is caused by network configuration of the emulator. So this patch adds 'LoadErrorCode.Unknown' to the condition. Change-Id: I3ed048563ba42a2fe446a1cd946dd82d974aac71 Signed-off-by: yh106.jung --- diff --git a/tct-suite-vs/Tizen.WebView.Tests/testcase/TSSmartCallbackLoadErrorArgs.cs b/tct-suite-vs/Tizen.WebView.Tests/testcase/TSSmartCallbackLoadErrorArgs.cs index 28d4da5..b3548f1 100755 --- a/tct-suite-vs/Tizen.WebView.Tests/testcase/TSSmartCallbackLoadErrorArgs.cs +++ b/tct-suite-vs/Tizen.WebView.Tests/testcase/TSSmartCallbackLoadErrorArgs.cs @@ -91,7 +91,7 @@ namespace Tizen.WebView.Tests EventHandler onLoadError = (s, e) => { var code = e.Code; - if (code.GetType() == typeof(LoadErrorCode) && code.Equals(LoadErrorCode.CantLookupHost)) + if (code.GetType() == typeof(LoadErrorCode) && (code.Equals(LoadErrorCode.CantLookupHost) || code.Equals(LoadErrorCode.Unknown))) { tcs.TrySetResult(true); }