mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-06 20:19:41 +00:00
Test - Fix CanEvaluateDoubleValues by not relying on the current culture (#3966)
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
//
|
||||
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
|
||||
|
||||
using System.Globalization;
|
||||
using System.Threading.Tasks;
|
||||
using Xunit;
|
||||
using Xunit.Abstractions;
|
||||
@@ -64,7 +65,7 @@ namespace CefSharp.Test.Javascript
|
||||
|
||||
Assert.False(browser.IsLoading);
|
||||
|
||||
var javascriptResponse = await browser.EvaluateScriptAsync(num.ToString());
|
||||
var javascriptResponse = await browser.EvaluateScriptAsync(num.ToString(CultureInfo.InvariantCulture));
|
||||
Assert.True(javascriptResponse.Success);
|
||||
|
||||
var actualType = javascriptResponse.Result.GetType();
|
||||
|
||||
Reference in New Issue
Block a user