Skip to content

Commit 89870ed

Browse files
committed
Run tests from branch marianne-let-bargap
1 parent 64e75ae commit 89870ed

File tree

55 files changed

+13
-13
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+13
-13
lines changed

run_tests_with_outputs.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
library(testthat)
2-
devtools::install_github("ropensci/plotly", ref="pd-line-styles-and-width")
2+
devtools::install_github("ropensci/plotly", ref="marianne-let-bargarp")
33
library(plotly)
44

55
setwd("tests")
-58.8 KB
-51.3 KB
-51.9 KB
-56.6 KB
-75.8 KB
-52.5 KB

tests/testthat/test-ggplot-histogram-barmodestack.json

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
"data": [
33
{
44
"x": [
5-
1,
6-
1,
7-
2,
8-
2,
9-
2,
10-
3
5+
"CDN",
6+
"CDN",
7+
"MEX",
8+
"MEX",
9+
"MEX",
10+
"USA"
1111
],
1212
"autobinx": true,
1313
"xaxis": "x1",
@@ -57,7 +57,6 @@
5757
},
5858
"paper_bgcolor": "rgb(255,255,255)",
5959
"plot_bgcolor": "rgb(229,229,229)",
60-
"barmode": "stack",
61-
"bargap": 0
60+
"barmode": "stack"
6261
}
6362
}

tests/testthat/test-ggplot-histogram-binwidth.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@
106106
},
107107
"paper_bgcolor": "rgb(255,255,255)",
108108
"plot_bgcolor": "rgb(229,229,229)",
109-
"barmode": "stack",
110-
"bargap": 0
109+
"barmode": "stack"
111110
}
112111
}

tests/testthat/test-ggplot-histogram-dates.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
},
5858
"paper_bgcolor": "rgb(255,255,255)",
5959
"plot_bgcolor": "rgb(229,229,229)",
60-
"barmode": "stack",
61-
"bargap": 0
60+
"barmode": "stack"
6261
}
6362
}

tests/testthat/test-ggplot-histogram.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ test_that("default position is translated to barmode=stack", {
88
L <- gg2list(hist)
99
expect_equal(length(L), 2)
1010
expect_identical(L$kwargs$layout$barmode, "stack")
11+
expect_identical(L$kwargs$layout$xaxis$type, "category")
12+
expect_identical(L[[1]]$type, "histogram")
13+
expect_true(L[[1]]$x[1] %in% c("CDN", "MEX", "USA"))
1114

1215
save_outputs(hist, "histogram-barmodestack")
1316
})
-132 KB
-52.9 KB
-52 KB
-189 KB
-79.7 KB

0 commit comments

Comments
 (0)