Skip to content

Fix custom strip test - #5278

Merged
teunbrand merged 1 commit into
tidyverse:mainfrom
teunbrand:fix_strip_test
Apr 21, 2023
Merged

teunbrand merged 1 commit into
tidyverse:mainfrom
teunbrand:fix_strip_test

Conversation

@teunbrand

Copy link
Copy Markdown
Collaborator

It recently came to my attention in #5273 (comment) that a visual test wasn't testing what it should.

Briefly, the test is supposed to test whether custom element_*() classes can be drawn in strips. However, the element_grob.element_test() method wasn't recognised in the expect_doppelganger() test. This PR fixes the test by registering the method.

@thomasp85 thomasp85 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch

@teunbrand
teunbrand merged commit dcd1eb2 into tidyverse:main Apr 21, 2023
@teunbrand
teunbrand deleted the fix_strip_test branch April 21, 2023 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants