We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e46d268 commit 8136ed6Copy full SHA for 8136ed6
tests/testthat/test-ggplot-legend.R
@@ -110,9 +110,9 @@ test_that("many legend items", {
110
size = 100, replace = TRUE))
111
p_many_items <- ggplot(many_items, aes(cat2, fill=cat1)) +
112
geom_bar(position="dodge")
113
- info <- expect_traces(p_long_items, 3, "many legend items")
+ info <- expect_traces(p_many_items, 12, "many legend items")
114
expect_equal(length(info$layout$annotations), 1)
115
- expected.names <- levels(long_items$cat2)
+ expected.names <- levels(many_items$cat2)
116
expect_identical(info$layout$annotations[[1]]$y > 0.5, TRUE)
117
expect_identical(info$layout$annotations[[1]]$y -
118
info$layout$legend$y > 0, TRUE)
0 commit comments