File tree 5 files changed +7
-7
lines changed
tests/Plotly.NET.ImageExport.Tests
5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 37
37
38
38
<ItemGroup >
39
39
<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) " />
41
41
</ItemGroup >
42
42
<Target Name =" UseExplicitPackageVersions" BeforeTargets =" GenerateNuspec" >
43
43
<ItemGroup >
Original file line number Diff line number Diff line change 35
35
</ItemGroup >
36
36
37
37
<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) " />
39
39
<PackageReference Include =" DynamicObj" Version =" 2.0.0" />
40
40
<PackageReference Include =" PuppeteerSharp" Version =" 9.0.2" />
41
41
</ItemGroup >
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ type PuppeteerSharpRenderer() =
36
36
DynObj.setValue l " width" " 100%"
37
37
DynObj.setValue l " height" " 100%"
38
38
l)
39
- |> GenericChart.toChartHTML
39
+ |> GenericChart.toEmbeddedHTML
40
40
|> fun html -> html.Replace( " width: 600px; height: 600px;" , " width: 100%; height: 100%;" )
41
41
42
42
/// 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 49
49
</ItemGroup >
50
50
51
51
<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) " />
53
53
<PackageReference Include =" Microsoft.DotNet.Interactive" Version =" 1.0.0-beta.23102.2" />
54
54
<PackageReference Include =" Microsoft.DotNet.Interactive.Formatting" Version =" 1.0.0-beta.23102.2" />
55
55
</ItemGroup >
Original file line number Diff line number Diff line change @@ -48,13 +48,13 @@ let ``Image export tests`` =
48
48
testBase64PNG
49
49
" Invalid base64 string for Chart.toBase64PNGStringAsync"
50
50
}
51
- ptestCase " Chart.toBase64JPGString terminates" <| fun () ->
51
+ testCase " Chart.toBase64JPGString terminates" <| fun () ->
52
52
let actual = Chart.Point([ 1. , 1. ]) |> Chart.toBase64JPGString()
53
53
Expect.isTrue ( actual.Length > 100 ) " "
54
- ptestCase " Chart.toBase64PNGString terminates" <| fun () ->
54
+ testCase " Chart.toBase64PNGString terminates" <| fun () ->
55
55
let actual = Chart.Point([ 1. , 1. ]) |> Chart.toBase64PNGString()
56
56
Expect.isTrue ( actual.Length > 100 ) " "
57
- ptestCase " Chart.toSVGString terminates" <| fun () ->
57
+ testCase " Chart.toSVGString terminates" <| fun () ->
58
58
let actual = Chart.Point([ 1. , 1. ]) |> Chart.toSVGString()
59
59
Expect.isTrue ( actual.Length > 100 ) " "
60
60
]
You can’t perform that action at this time.
0 commit comments