Skip to content

Commit

Permalink
Test - Use invariant culture for double ToString (#5022)
Browse files Browse the repository at this point in the history
  • Loading branch information
campersau authored Jan 2, 2025
1 parent 2bf01fa commit aed9ffd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CefSharp.Test/Javascript/JavascriptCallbackTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public async Task ShouldWorkForDoubleComputation(double expectedValue, string sc
//https://github.com/cefsharp/CefSharp/issues/3858
public async Task ShouldWorkForDouble(double num)
{
var javascriptResponse = await Browser.EvaluateScriptAsync("(function() { return " + num + "})");
var javascriptResponse = await Browser.EvaluateScriptAsync("(function() { return " + num.ToString(CultureInfo.InvariantCulture) + "})");
Assert.True(javascriptResponse.Success);

var callback = (IJavascriptCallback)javascriptResponse.Result;
Expand Down

0 comments on commit aed9ffd

Please sign in to comment.