Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

additional test #56

Merged
merged 30 commits into from Nov 1, 2018
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
35ec0d1
update test results 21.1
Oct 3, 2018
04e97be
update test results 21.1
Oct 3, 2018
657e30d
update test results 21.1
Oct 3, 2018
e3edbc6
update test results 21.1
Oct 3, 2018
b976a64
update from upstream
ginberg Oct 23, 2018
ef9119b
21.2.9000 testing
ginberg Oct 24, 2018
49012ec
21.2.9000 testing: add warnings
Oct 25, 2018
5788d5d
21.2.9000 testing: add warnings
Oct 25, 2018
8237c1e
- update project settings
Oct 25, 2018
3def48b
update legend_position test
Oct 25, 2018
5895c66
update legend_position tests
Oct 25, 2018
51b5349
selectedDataPoints test
Oct 25, 2018
3e0e065
add zoomdisable test
ginberg Oct 25, 2018
2e19ce1
update legend_pos test
ginberg Oct 25, 2018
59038ef
add regressionLine test
ginberg Oct 25, 2018
6011443
update regression lines test
ginberg Oct 25, 2018
483cd9d
get input data from local
ginberg Oct 25, 2018
be65cee
Merge remote-tracking branch 'upstream/cran' into cran
ginberg Oct 29, 2018
8e7d8bd
21.3 CX Testing failure
Oct 29, 2018
226fc91
21.3 CX Testing: add warnings
Oct 29, 2018
4ac3e0c
Mergeback from 'upstream/cran'
ginberg Oct 30, 2018
21a3376
Merge branch 'cran' of github.com:ginberg/canvasXpress into cran
ginberg Oct 30, 2018
4f0b52c
add legendTitle test
Oct 30, 2018
d0e6f5f
update legend title test
Oct 30, 2018
bfc2c8c
add warnings legend position test
Oct 30, 2018
8b7c9d0
add custom events test
Oct 30, 2018
82de4c6
add decorations test
Oct 30, 2018
2c2b646
refactoring: use check_ui_test function where possible
Oct 30, 2018
fcd8457
Merge remote-tracking branch 'upstream/cran' into cran
ginberg Nov 1, 2018
eeca46a
add webshot print test
Nov 1, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
27 changes: 27 additions & 0 deletions tests/testthat/test-other-webshot-print.R
@@ -0,0 +1,27 @@
context("canvasXpress webshotPrint")

temp.html <- 'test.html'
result.png <- 'test.png'

test_that("scatterplot webshotPrint", {

y <- read.table(system.file("extdata", "cX-ageheightt-dat.txt", package = "canvasXpress"), header = TRUE, sep = "\t", quote = "", row.names = 1, fill = TRUE, check.names = FALSE, stringsAsFactors = FALSE)
x <- read.table(system.file("extdata", "cX-ageheightt-smp.txt", package = "canvasXpress"), header = TRUE, sep = "\t", quote = "", row.names = 1, fill = TRUE, check.names = FALSE, stringsAsFactors = FALSE)

result <- canvasXpress(data = y,
smpAnnot = x,
graphType = "Scatter2D",
title = "Scatterplot - webshot print")

# export to PNG and print in viewer
htmlwidgets::saveWidget(result, file = temp.html)
webshot::webshot(temp.html,
file = result.png,
# debug = T,
vwidth = result$width,
vheight = result$height)
grid::grid.raster(png::readPNG(result.png))
})

# cleanup temp files
file.remove(c(temp.html, result.png))