diff --git a/CairoMakie/test/runtests.jl b/CairoMakie/test/runtests.jl index a1f4c4a4e60..126bc293908 100644 --- a/CairoMakie/test/runtests.jl +++ b/CairoMakie/test/runtests.jl @@ -15,6 +15,8 @@ Pkg.develop(PackageSpec(path = path)) end end +include(joinpath(@__DIR__, "svg_tests.jl")) + using ReferenceTests using ReferenceTests: database_filtered diff --git a/CairoMakie/test/svg_tests.jl b/CairoMakie/test/svg_tests.jl new file mode 100644 index 00000000000..9f1908a003e --- /dev/null +++ b/CairoMakie/test/svg_tests.jl @@ -0,0 +1,20 @@ +# guard against some future changes silently making simple vector graphics be +# rasterized if they are using features unsupported by the SVG spec +function svg_isnt_rasterized(x) + mktempdir() do path + path = joinpath(path, "test.svg") + save(path, x) + # this is rough but an easy way to catch rasterization, + # if an image element is present in the svg + return !occursin("