File tree Expand file tree Collapse file tree 2 files changed +0
-38
lines changed Expand file tree Collapse file tree 2 files changed +0
-38
lines changed Original file line number Diff line number Diff line change 145145
146146 `layer_data()` must return a <data.frame>.
147147
148- # get_layer_data works with layer names
149-
150- Can't extract elements that don't exist.
151- x Element `none` doesn't exist.
152-
153- ---
154-
155- Can't extract elements past the end.
156- i Location 4 doesn't exist.
157- i There are only 2 elements.
158-
159- # get_layer_grob works with layer names
160-
161- Can't extract elements that don't exist.
162- x Element `none` doesn't exist.
163-
164- ---
165-
166- Can't extract elements past the end.
167- i Location 4 doesn't exist.
168- i There are only 2 elements.
169-
Original file line number Diff line number Diff line change @@ -234,14 +234,6 @@ test_that("get_layer_data works with layer names", {
234234 get_layer_data(p , i = " bar" ),
235235 get_layer_data(p , i = 2L )
236236 )
237-
238- # name falls back to index
239- expect_snapshot_error(
240- get_layer_data(p , i = " none" )
241- )
242- expect_snapshot_error(
243- get_layer_data(p , i = 4L )
244- )
245237})
246238
247239test_that(" get_layer_grob works with layer names" , {
@@ -252,14 +244,6 @@ test_that("get_layer_grob works with layer names", {
252244 get_layer_grob(p , i = " bar" ),
253245 get_layer_grob(p , i = 2L )
254246 )
255-
256- # name falls back to index
257- expect_snapshot_error(
258- get_layer_grob(p , i = " none" )
259- )
260- expect_snapshot_error(
261- get_layer_grob(p , i = 4L )
262- )
263247})
264248
265249test_that(" data.frames and matrix aesthetics survive the build stage" , {
You can’t perform that action at this time.
0 commit comments