File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed
Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ plotlyjs = let
2020 end
2121 bind_artifact! (artifacts_toml, " plotlylatest" , plotlylatest_hash; force= true )
2222 end
23- joinpath (artifact_path (plotlylatest_hash), " plotlylatest " )
23+ joinpath (artifact_path (plotlylatest_hash), " plotly-latest.min.js " )
2424end
2525
2626
Original file line number Diff line number Diff line change @@ -7,3 +7,18 @@ using Test
77 @test Plot (Config (x = 1 : 10 ), Config (title= " Title" )) isa Plot
88 @test Plot (Config (x = 1 : 10 ), Config (title= " Title" ), Config (displaylogo= true )) isa Plot
99end
10+ @testset " src" begin
11+ p = Plot (Config (y= 1 : 10 ))
12+
13+ PlotlyLight. src! (:cdn )
14+ @test occursin (" plotly-latest.min.js" , repr (" text/html" , p))
15+
16+ PlotlyLight. src! (:none )
17+ @test ! occursin (" plotly-latest.min.js" , repr (" text/html" , p))
18+
19+ PlotlyLight. src! (:standalone )
20+ @test length (repr (" text/html" , p)) > 1000
21+
22+ PlotlyLight. src! (:local )
23+ @test occursin (" artifact" , repr (" text/html" , p))
24+ end
You can’t perform that action at this time.
0 commit comments