Skip to content

Commit

Permalink
add test note
Browse files Browse the repository at this point in the history
  • Loading branch information
t-bltg committed Sep 24, 2022
1 parent ebe8928 commit 81fb843
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/test_recipes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,17 @@ end
@test length(sticks) == 1
end

# NOTE: the following test seems to trigger these deprecated warnings:
# WARNING: importing deprecated binding Colors.RGB1 into PlotUtils.
# WARNING: importing deprecated binding Colors.RGB1 into Plots.
@testset "framestyle axes" begin
pl = plot(-1:1, -1:1, -1:1)
sp = pl.subplots[1]
defaultret = Plots.axis_drawing_info_3d(sp, :x)
for letter in [:x, :y, :z]
for fr in [:box :semi :origin :zerolines :grid :none]
for letter in (:x, :y, :z)
for framestyle in [:box :semi :origin :zerolines :grid :none]
prevha = UInt64(0)
push!(sp.attr, :framestyle => fr)
push!(sp.attr, :framestyle => framestyle)
ret = Plots.axis_drawing_info_3d(sp, letter)
ha = hash(string(ret))
@test ha != prevha
Expand Down

0 comments on commit 81fb843

Please sign in to comment.