Skip to content

Instantly share code, notes, and snippets.

@cpsievert
Last active August 29, 2015 14:06
Show Gist options
  • Save cpsievert/9dc3f119193e745ff4a0 to your computer and use it in GitHub Desktop.
Save cpsievert/9dc3f119193e745ff4a0 to your computer and use it in GitHub Desktop.
1. Error: clickSelects 300 makes 300 <circle> elements --------------------------
	 Summary: InvalidElementState
 	 Detail: An element command could not be completed because the element is in an invalid state (e.g. attempting to click a disabled element).
 	 class: org.openqa.selenium.InvalidElementStateException
1: clickHTML(id = 300) at test-interactivity.R:77
2: remDr$mouseMoveToLocation(webElement = e) at test-interactivity.R:71
3: queryRD(paste0(serverURL, "/session/", sessionInfo$id, "/moveto"), "POST", qdata = sendLoc)
4: checkStatus()
5: stop(errMessage, call. = FALSE)

2. Error: clickSelects 1 changes to 1 <line> element ----------------------------
	 Summary: InvalidElementState
 	 Detail: An element command could not be completed because the element is in an invalid state (e.g. attempting to click a disabled element).
 	 class: org.openqa.selenium.InvalidElementStateException
1: clickHTML(id = 1) at test-interactivity.R:83
2: remDr$mouseMoveToLocation(webElement = e) at test-interactivity.R:71
3: queryRD(paste0(serverURL, "/session/", sessionInfo$id, "/moveto"), "POST", qdata = sendLoc)
4: checkStatus()
5: stop(errMessage, call. = FALSE)

3. Error: clickSelects 300 makes 300 <circle> elements --------------------------
	 Summary: InvalidElementState
 	 Detail: An element command could not be completed because the element is in an invalid state (e.g. attempting to click a disabled element).
 	 class: org.openqa.selenium.InvalidElementStateException
1: clickHTML(id = 300) at test-interactivity.R:110
2: remDr$mouseMoveToLocation(webElement = e) at test-interactivity.R:71
3: queryRD(paste0(serverURL, "/session/", sessionInfo$id, "/moveto"), "POST", qdata = sendLoc)
4: checkStatus()
5: stop(errMessage, call. = FALSE)

4. Error: clickSelects 1 adds 1 <line> and 4 <circle> ---------------------------
	 Summary: InvalidElementState
 	 Detail: An element command could not be completed because the element is in an invalid state (e.g. attempting to click a disabled element).
 	 class: org.openqa.selenium.InvalidElementStateException
1: clickHTML(id = 1) at test-interactivity.R:116
2: remDr$mouseMoveToLocation(webElement = e) at test-interactivity.R:71
3: queryRD(paste0(serverURL, "/session/", sessionInfo$id, "/moveto"), "POST", qdata = sendLoc)
4: checkStatus()
5: stop(errMessage, call. = FALSE)

5. Error: clickSelects 4 removes 4 <line> elements and 4 <circle> ---------------
	 Summary: InvalidElementState
 	 Detail: An element command could not be completed because the element is in an invalid state (e.g. attempting to click a disabled element).
 	 class: org.openqa.selenium.InvalidElementStateException
1: clickHTML(id = 4) at test-interactivity.R:124
2: remDr$mouseMoveToLocation(webElement = e) at test-interactivity.R:71
3: queryRD(paste0(serverURL, "/session/", sessionInfo$id, "/moveto"), "POST", qdata = sendLoc)
4: checkStatus()
5: stop(errMessage, call. = FALSE)

6. Error: clickSelects 1 removes all <line> elements and all <circle> -----------
	 Summary: InvalidElementState
 	 Detail: An element command could not be completed because the element is in an invalid state (e.g. attempting to click a disabled element).
 	 class: org.openqa.selenium.InvalidElementStateException
1: clickHTML(id = 1) at test-interactivity.R:132
2: remDr$mouseMoveToLocation(webElement = e) at test-interactivity.R:71
3: queryRD(paste0(serverURL, "/session/", sessionInfo$id, "/moveto"), "POST", qdata = sendLoc)
4: checkStatus()
5: stop(errMessage, call. = FALSE)
cpsievert@Carsons-MacBook-Pro:~/Desktop/github/local/animint$ R -e 'devtools::install(); setwd(system.file("tests", package = "animint")); source("testthat.R")'

R version 3.1.1 (2014-07-10) -- "Sock it to Me"
Copyright (C) 2014 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin13.1.0 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> devtools::install(); setwd(system.file("tests", package = "animint")); source("testthat.R")
Installing animint
'/Library/Frameworks/R.framework/Resources/bin/R' --vanilla CMD INSTALL  \
  '/Users/cpsievert/Desktop/github/local/animint'  \
  --library='/Library/Frameworks/R.framework/Versions/3.1/Resources/library'  \
  --install-tests 

* installing *source* package 'animint' ...
** R
** data
** inst
** tests
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (animint)
Loading required package: ggplot2
Loading required package: proto
Loading required package: RCurl
Loading required package: bitops
Loading required package: RJSONIO
Loading required package: XML
USER        PID  %CPU %MEM      VSZ    RSS   TT  STAT STARTED      TIME COMMAND
cpsievert 75015  97.3  0.9  2567664  71352 s002  S+   12:44PM   0:01.71 /Library/Frameworks/R.framework/Resources/bin/
cpsievert 45478   0.0  0.0  2452824    180 s001  S+   Tue10AM   0:00.02 -bash
cpsievert 36953   0.0  0.0  2471256    184 s003  S+   Mon01PM   0:00.05 -bash
cpsievert   492   0.0  0.0  2481496      4 s000  S+   17Sep14   0:00.01 -bash
cpsievert   490   0.0  0.0  2473304    744 s002  S    17Sep14   0:00.89 -bash

R version 3.1.1 (2014-07-10) -- "Sock it to Me"
Copyright (C) 2014 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin13.1.0 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> servr::httd(port=4848, dir=file.path(getwd(), "testthat"), launch.browser=FALSE)
serving the directory /Library/Frameworks/R.framework/Versions/3.1/Resources/library/animint/tests/testthat at http://localhost:4848
PhantomJS is launching GhostDriver...
[INFO  - 2014-09-26T17:44:33.651Z] GhostDriver - Main - running on port 4444
[INFO  - 2014-09-26T17:44:37.542Z] Session [c8e54820-45a4-11e4-840d-17b97c8774cd] - page.settings - {"XSSAuditingEnabled":false,"javascriptCanCloseWindows":true,"javascriptCanOpenWindows":true,"javascriptEnabled":true,"loadImages":true,"localToRemoteUrlAccessEnabled":false,"userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X) AppleWebKit/534.34 (KHTML, like Gecko) PhantomJS/1.9.7 Safari/534.34","webSecurityEnabled":true}
[INFO  - 2014-09-26T17:44:37.542Z] Session [c8e54820-45a4-11e4-840d-17b97c8774cd] - page.customHeaders:  - {}
[INFO  - 2014-09-26T17:44:37.542Z] Session [c8e54820-45a4-11e4-840d-17b97c8774cd] - Session.negotiatedCapabilities - {"browserName":"phantomjs","version":"1.9.7","driverName":"ghostdriver","driverVersion":"1.1.0","platform":"mac-unknown-32bit","javascriptEnabled":true,"takesScreenshot":true,"handlesAlerts":false,"databaseEnabled":false,"locationContextEnabled":false,"applicationCacheEnabled":false,"browserConnectionEnabled":false,"cssSelectorsEnabled":true,"webStorageEnabled":false,"rotatable":false,"acceptSslCerts":false,"nativeEvents":true,"proxy":{"proxyType":"direct"}}
[INFO  - 2014-09-26T17:44:37.542Z] SessionManagerReqHand - _postNewSessionCommand - New Session Created: c8e54820-45a4-11e4-840d-17b97c8774cd
aesthetics : List of 1
 $ showSelected: symbol foo
.
animation : ...
chunks : ......
coord : ......
facet-coord : ....
facet_grid(space="free") : ..................
facet-strips : .....
aes(href) : ...
HTML page title : .
Interactive facets : .......
interactivity : .....12....3456.78
  |...........                                                      |  17%
  ordinary text without R code

  |......................                                           |  33%
label: safety (with options) 
List of 1
 $ echo: logi FALSE

  |................................                                 |  50%
  ordinary text without R code

  |...........................................                      |  67%
label: plot1
  |......................................................           |  83%
  ordinary text without R code

  |.................................................................| 100%
label: plot2

..
Labels : .................
legends : .....
plot names : ...
geom_point(aes(fill=numeric)) : ...
rect size : ....
Segment size : ...
selectors : ..
stat : .
Text : .....


1. Failure(@test-interactivity.R#79): clickSelects 300 makes 300 <circle> elements 
length(nodes) not equal to 300
Mean relative difference: 0.5

2. Failure(@test-interactivity.R#85): clickSelects 1 changes to 1 <line> element 
length(nodes) not equal to 1
Mean relative difference: 3

3. Failure(@test-interactivity.R#112): clickSelects 300 makes 300 <circle> elements 
length(nodes) not equal to 300
Mean relative difference: 0.5

4. Failure(@test-interactivity.R#118): clickSelects 1 adds 1 <line> and 4 <circle> 
length(nodes) not equal to 5
Mean relative difference: 0.2

5. Failure(@test-interactivity.R#120): clickSelects 1 adds 1 <line> and 4 <circle> 
length(nodes) not equal to 8
Mean relative difference: 0.5

6. Failure(@test-interactivity.R#126): clickSelects 4 removes 4 <line> elements and 4 <circle> 
length(nodes) not equal to 1
Mean relative difference: 3

7. Failure(@test-interactivity.R#134): clickSelects 1 removes all <line> elements and all <circle> 
length(nodes) not equal to 0
Mean absolute difference: 4

8. Failure(@test-interactivity.R#136): clickSelects 1 removes all <line> elements and all <circle> 
length(nodes) not equal to 0
Mean absolute difference: 4

Error: Test failures
Execution halted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment