Skip to content

Commit 0401cf8

Browse files
authored
Test - Fix CanEvaluateDoubleValues by not relying on the current culture (#3966)
1 parent 137a4bb commit 0401cf8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CefSharp.Test/Javascript/EvaluateScriptAsyncFacts.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
//
33
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
44

5+
using System.Globalization;
56
using System.Threading.Tasks;
67
using Xunit;
78
using Xunit.Abstractions;
@@ -64,7 +65,7 @@ public async Task CanEvaluateDoubleValues(double num)
6465

6566
Assert.False(browser.IsLoading);
6667

67-
var javascriptResponse = await browser.EvaluateScriptAsync(num.ToString());
68+
var javascriptResponse = await browser.EvaluateScriptAsync(num.ToString(CultureInfo.InvariantCulture));
6869
Assert.True(javascriptResponse.Success);
6970

7071
var actualType = javascriptResponse.Result.GetType();

0 commit comments

Comments
 (0)