Skip to content

Commit f3c5674

Browse files
committed
Test from false frame.plot
1 parent 23784e0 commit f3c5674

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/testthat/tests-par.R

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,11 @@ test_that("graphics par behaves as expected",{
2727
expect_is(par("usr")[c(1,2)], 'numeric')
2828
expect_equal(par("usr")[c(1,2)],par()$usr[c(1,2)])
2929
expect_equal(gsplot::par("usr","mar"), graphics::par("usr","mar"))
30+
})
31+
32+
test_that("No frame plot", {
33+
gs <- gsplot(frame.plot=FALSE) %>%
34+
points(3,2,cex=2)
35+
expect_false(gs[['global']][['config']][['frame.plot']])
36+
3037
})

0 commit comments

Comments
 (0)