Skip to content

Commit

Permalink
Disable Plots test on Windows Julia 1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelHatherly committed Oct 16, 2024
1 parent 5e7827d commit b4df3b4
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions test/testsets/integrations/Plots.jl
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
include("../../utilities/prelude.jl")

test_example(joinpath(@__DIR__, "../../examples/integrations/Plots.qmd")) do json
cells = json["cells"]
cell = cells[6]
output = cell["outputs"][1]
# TODO: pdf render on windows 1.11 is stalling in CI, skip for now.
if !Sys.iswindows() && VERSION >= v"1.11.0"
test_example(joinpath(@__DIR__, "../../examples/integrations/Plots.qmd")) do json
cells = json["cells"]
cell = cells[6]
output = cell["outputs"][1]

@test !isempty(output["data"]["image/png"])
@test !isempty(output["data"]["image/svg+xml"])
@test !isempty(output["data"]["text/html"])
@test !isempty(output["data"]["image/png"])
@test !isempty(output["data"]["image/svg+xml"])
@test !isempty(output["data"]["text/html"])

@test cell["outputs"][1]["metadata"]["image/png"] ==
Dict("width" => 575, "height" => 432) # Plots does not seem to follow standard dpi rules so the values don't match Makie
@test cell["outputs"][1]["metadata"]["image/png"] ==
Dict("width" => 575, "height" => 432) # Plots does not seem to follow standard dpi rules so the values don't match Makie
end
end

# TODO: pdf render on windows 1.11 is stalling in CI, skip for now.
Expand Down

0 comments on commit b4df3b4

Please sign in to comment.