[WebView][Non-ACR][Add error code for emulator] 43/214743/2
authoryh106.jung <yh106.jung@samsung.com>
Thu, 26 Sep 2019 04:48:55 +0000 (13:48 +0900)
committeryh106.jung <yh106.jung@samsung.com>
Thu, 26 Sep 2019 04:54:42 +0000 (13:54 +0900)
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 <yh106.jung@samsung.com>
tct-suite-vs/Tizen.WebView.Tests/testcase/TSSmartCallbackLoadErrorArgs.cs

index 28d4da5..b3548f1 100755 (executable)
@@ -91,7 +91,7 @@ namespace Tizen.WebView.Tests
             EventHandler<SmartCallbackLoadErrorArgs> 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);
                 }