Skip to content

Commit 7fa647a

Browse files
cpsievertclaude
andcommitted
Update shinytest2 snapshots for S7 linewidth fix
The linewidth_or_size.element fix now correctly returns "linewidth" for S7 objects (ggplot2 >= 4.0), which means theme elements like tickwidth, gridwidth, and borderwidth now get their actual values instead of 0. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 1983018 commit 7fa647a

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

inst/examples/shiny/event_data/tests/testthat/_snaps/shinytest2/001.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@
239239
"ticks": "outside",
240240
"tickcolor": "rgba(51,51,51,1)",
241241
"ticklen": 3.6529680365296811,
242-
"tickwidth": 0,
242+
"tickwidth": 0.66417600664176002,
243243
"showticklabels": true,
244244
"tickfont": {
245245
"color": "rgba(77,77,77,1)",
@@ -252,7 +252,7 @@
252252
"linewidth": 0,
253253
"showgrid": true,
254254
"gridcolor": "rgba(255,255,255,1)",
255-
"gridwidth": 0,
255+
"gridwidth": 0.66417600664176002,
256256
"zeroline": false,
257257
"anchor": "y",
258258
"title": {
@@ -301,7 +301,7 @@
301301
"ticks": "outside",
302302
"tickcolor": "rgba(51,51,51,1)",
303303
"ticklen": 3.6529680365296811,
304-
"tickwidth": 0,
304+
"tickwidth": 0.66417600664176002,
305305
"showticklabels": true,
306306
"tickfont": {
307307
"color": "rgba(77,77,77,1)",
@@ -314,7 +314,7 @@
314314
"linewidth": 0,
315315
"showgrid": true,
316316
"gridcolor": "rgba(255,255,255,1)",
317-
"gridwidth": 0,
317+
"gridwidth": 0.66417600664176002,
318318
"zeroline": false,
319319
"anchor": "x",
320320
"title": {
@@ -334,7 +334,7 @@
334334
"legend": {
335335
"bgcolor": "rgba(255,255,255,1)",
336336
"bordercolor": "transparent",
337-
"borderwidth": 0,
337+
"borderwidth": 1.8897637795275593,
338338
"font": {
339339
"color": "rgba(0,0,0,1)",
340340
"family": "",

inst/examples/shiny/event_data/tests/testthat/_snaps/shinytest2/002.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@
242242
"ticks": "outside",
243243
"tickcolor": "rgba(51,51,51,1)",
244244
"ticklen": 3.6529680365296811,
245-
"tickwidth": 0,
245+
"tickwidth": 0.66417600664176002,
246246
"showticklabels": true,
247247
"tickfont": {
248248
"color": "rgba(77,77,77,1)",
@@ -255,7 +255,7 @@
255255
"linewidth": 0,
256256
"showgrid": true,
257257
"gridcolor": "rgba(255,255,255,1)",
258-
"gridwidth": 0,
258+
"gridwidth": 0.66417600664176002,
259259
"zeroline": false,
260260
"anchor": "y",
261261
"title": {
@@ -304,7 +304,7 @@
304304
"ticks": "outside",
305305
"tickcolor": "rgba(51,51,51,1)",
306306
"ticklen": 3.6529680365296811,
307-
"tickwidth": 0,
307+
"tickwidth": 0.66417600664176002,
308308
"showticklabels": true,
309309
"tickfont": {
310310
"color": "rgba(77,77,77,1)",
@@ -317,7 +317,7 @@
317317
"linewidth": 0,
318318
"showgrid": true,
319319
"gridcolor": "rgba(255,255,255,1)",
320-
"gridwidth": 0,
320+
"gridwidth": 0.66417600664176002,
321321
"zeroline": false,
322322
"anchor": "x",
323323
"title": {
@@ -337,7 +337,7 @@
337337
"legend": {
338338
"bgcolor": "rgba(255,255,255,1)",
339339
"bordercolor": "transparent",
340-
"borderwidth": 0,
340+
"borderwidth": 1.8897637795275593,
341341
"font": {
342342
"color": "rgba(0,0,0,1)",
343343
"family": "",

inst/examples/shiny/event_data/tests/testthat/_snaps/shinytest2/003.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@
246246
"ticks": "outside",
247247
"tickcolor": "rgba(51,51,51,1)",
248248
"ticklen": 3.6529680365296811,
249-
"tickwidth": 0,
249+
"tickwidth": 0.66417600664176002,
250250
"showticklabels": true,
251251
"tickfont": {
252252
"color": "rgba(77,77,77,1)",
@@ -259,7 +259,7 @@
259259
"linewidth": 0,
260260
"showgrid": true,
261261
"gridcolor": "rgba(255,255,255,1)",
262-
"gridwidth": 0,
262+
"gridwidth": 0.66417600664176002,
263263
"zeroline": false,
264264
"anchor": "y",
265265
"title": {
@@ -308,7 +308,7 @@
308308
"ticks": "outside",
309309
"tickcolor": "rgba(51,51,51,1)",
310310
"ticklen": 3.6529680365296811,
311-
"tickwidth": 0,
311+
"tickwidth": 0.66417600664176002,
312312
"showticklabels": true,
313313
"tickfont": {
314314
"color": "rgba(77,77,77,1)",
@@ -321,7 +321,7 @@
321321
"linewidth": 0,
322322
"showgrid": true,
323323
"gridcolor": "rgba(255,255,255,1)",
324-
"gridwidth": 0,
324+
"gridwidth": 0.66417600664176002,
325325
"zeroline": false,
326326
"anchor": "x",
327327
"title": {
@@ -341,7 +341,7 @@
341341
"legend": {
342342
"bgcolor": "rgba(255,255,255,1)",
343343
"bordercolor": "transparent",
344-
"borderwidth": 0,
344+
"borderwidth": 1.8897637795275593,
345345
"font": {
346346
"color": "rgba(0,0,0,1)",
347347
"family": "",

inst/examples/shiny/event_data/tests/testthat/_snaps/shinytest2/004.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@
247247
"ticks": "outside",
248248
"tickcolor": "rgba(51,51,51,1)",
249249
"ticklen": 3.6529680365296811,
250-
"tickwidth": 0,
250+
"tickwidth": 0.66417600664176002,
251251
"showticklabels": true,
252252
"tickfont": {
253253
"color": "rgba(77,77,77,1)",
@@ -260,7 +260,7 @@
260260
"linewidth": 0,
261261
"showgrid": true,
262262
"gridcolor": "rgba(255,255,255,1)",
263-
"gridwidth": 0,
263+
"gridwidth": 0.66417600664176002,
264264
"zeroline": false,
265265
"anchor": "y",
266266
"title": {
@@ -309,7 +309,7 @@
309309
"ticks": "outside",
310310
"tickcolor": "rgba(51,51,51,1)",
311311
"ticklen": 3.6529680365296811,
312-
"tickwidth": 0,
312+
"tickwidth": 0.66417600664176002,
313313
"showticklabels": true,
314314
"tickfont": {
315315
"color": "rgba(77,77,77,1)",
@@ -322,7 +322,7 @@
322322
"linewidth": 0,
323323
"showgrid": true,
324324
"gridcolor": "rgba(255,255,255,1)",
325-
"gridwidth": 0,
325+
"gridwidth": 0.66417600664176002,
326326
"zeroline": false,
327327
"anchor": "x",
328328
"title": {
@@ -342,7 +342,7 @@
342342
"legend": {
343343
"bgcolor": "rgba(255,255,255,1)",
344344
"bordercolor": "transparent",
345-
"borderwidth": 0,
345+
"borderwidth": 1.8897637795275593,
346346
"font": {
347347
"color": "rgba(0,0,0,1)",
348348
"family": "",

0 commit comments

Comments
 (0)