Skip to content

Commit

Permalink
Add test model test_save_svg_figure.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinOtter committed Jul 4, 2022
1 parent 37c7096 commit 81fcf34
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ using Test
@testset "Test SignalTablesInterface_CairoMakie/test" begin
SignalTables.usePlotPackage("CairoMakie")
include("$(SignalTables.path)/test/include_all.jl")
include("test_save_svg_figure.jl")
SignalTables.usePreviousPlotPackage()
end

Expand Down
13 changes: 13 additions & 0 deletions test/test_save_svg_figure.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module test_save_svg_figure

using SignalTables
@usingPlotPackage

# Test the Figure operations
println("\n... test SignalTablesInterface_CairoMakie/test/test_save_svg_figure.jl:\n")

sigTable = getSignalTableExample("OneScalarSignal")
plot(sigTable, "phi", heading="sine(time)", figure=2)
saveFigure(2, "test_save_svg_figure.svg")

end

0 comments on commit 81fcf34

Please sign in to comment.