File tree Expand file tree Collapse file tree
tests/Plotly.NET.ImageExport.Tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3737
3838 <ItemGroup >
3939 <None Include =" ..\..\docs\img\logo.png" Pack =" true" PackagePath =" \" />
40- <ProjectReference Include =" ..\Plotly.NET\Plotly.NET.fsproj" PackageVersion =" [4.0.0] " />
40+ <ProjectReference Include =" ..\Plotly.NET\Plotly.NET.fsproj" PackageVersion =" [4.0.0, 5.0.0) " />
4141 </ItemGroup >
4242 <Target Name =" UseExplicitPackageVersions" BeforeTargets =" GenerateNuspec" >
4343 <ItemGroup >
Original file line number Diff line number Diff line change 3535 </ItemGroup >
3636
3737 <ItemGroup >
38- <ProjectReference Include =" ..\Plotly.NET\Plotly.NET.fsproj" PackageVersion =" [4.0.0] " />
38+ <ProjectReference Include =" ..\Plotly.NET\Plotly.NET.fsproj" PackageVersion =" [4.0.0, 5.0.0) " />
3939 <PackageReference Include =" DynamicObj" Version =" 2.0.0" />
4040 <PackageReference Include =" PuppeteerSharp" Version =" 9.0.2" />
4141 </ItemGroup >
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ type PuppeteerSharpRenderer() =
3636 DynObj.setValue l " width" " 100%"
3737 DynObj.setValue l " height" " 100%"
3838 l)
39- |> GenericChart.toChartHTML
39+ |> GenericChart.toEmbeddedHTML
4040 |> fun html -> html.Replace( " width: 600px; height: 600px;" , " width: 100%; height: 100%;" )
4141
4242 /// adapted from the original C# implementation by @ilyalatt : https://github.com/ilyalatt/Plotly.NET.PuppeteerRenderer
Original file line number Diff line number Diff line change 4949 </ItemGroup >
5050
5151 <ItemGroup >
52- <ProjectReference Include =" ..\Plotly.NET\Plotly.NET.fsproj" PackageVersion =" [4.0.0] " />
52+ <ProjectReference Include =" ..\Plotly.NET\Plotly.NET.fsproj" PackageVersion =" [4.0.0, 5.0.0) " />
5353 <PackageReference Include =" Microsoft.DotNet.Interactive" Version =" 1.0.0-beta.23102.2" />
5454 <PackageReference Include =" Microsoft.DotNet.Interactive.Formatting" Version =" 1.0.0-beta.23102.2" />
5555 </ItemGroup >
Original file line number Diff line number Diff line change @@ -48,13 +48,13 @@ let ``Image export tests`` =
4848 testBase64PNG
4949 " Invalid base64 string for Chart.toBase64PNGStringAsync"
5050 }
51- ptestCase " Chart.toBase64JPGString terminates" <| fun () ->
51+ testCase " Chart.toBase64JPGString terminates" <| fun () ->
5252 let actual = Chart.Point([ 1. , 1. ]) |> Chart.toBase64JPGString()
5353 Expect.isTrue ( actual.Length > 100 ) " "
54- ptestCase " Chart.toBase64PNGString terminates" <| fun () ->
54+ testCase " Chart.toBase64PNGString terminates" <| fun () ->
5555 let actual = Chart.Point([ 1. , 1. ]) |> Chart.toBase64PNGString()
5656 Expect.isTrue ( actual.Length > 100 ) " "
57- ptestCase " Chart.toSVGString terminates" <| fun () ->
57+ testCase " Chart.toSVGString terminates" <| fun () ->
5858 let actual = Chart.Point([ 1. , 1. ]) |> Chart.toSVGString()
5959 Expect.isTrue ( actual.Length > 100 ) " "
6060 ]
You can’t perform that action at this time.
0 commit comments