@@ -328,6 +328,7 @@ test_that("all elements in complete themes have inherit.blank=TRUE", {
328
328
expect_true(inherit_blanks(theme_linedraw()))
329
329
expect_true(inherit_blanks(theme_minimal()))
330
330
expect_true(inherit_blanks(theme_void()))
331
+ expect_true(inherit_blanks(theme_transparent()))
331
332
})
332
333
333
334
test_that(" elements can be merged" , {
@@ -477,6 +478,9 @@ test_that("provided themes explicitly define all elements", {
477
478
478
479
t <- theme_test()
479
480
expect_true(all(names(t ) %in% elements ))
481
+
482
+ t <- theme_transparent()
483
+ expect_true(all(names(t ) %in% elements ))
480
484
})
481
485
482
486
test_that(" Theme elements are checked during build" , {
@@ -538,6 +542,7 @@ test_that("themes don't change without acknowledgement", {
538
542
expect_doppelganger(" theme_light" , plot + theme_light())
539
543
expect_doppelganger(" theme_void" , plot + theme_void())
540
544
expect_doppelganger(" theme_linedraw" , plot + theme_linedraw())
545
+ expect_doppelganger(" theme_transparent" , plot + theme_transparent())
541
546
})
542
547
543
548
test_that(" themes look decent at larger base sizes" , {
@@ -554,6 +559,7 @@ test_that("themes look decent at larger base sizes", {
554
559
expect_doppelganger(" theme_light_large" , plot + theme_light(base_size = 33 ))
555
560
expect_doppelganger(" theme_void_large" , plot + theme_void(base_size = 33 ))
556
561
expect_doppelganger(" theme_linedraw_large" , plot + theme_linedraw(base_size = 33 ))
562
+ expect_doppelganger(" theme_transparent" , plot + theme_transparent(base_size = 33 ))
557
563
})
558
564
559
565
test_that(" axes can be styled independently" , {
0 commit comments