Skip to content

Commit

Permalink
added space after comma and blank line
Browse files Browse the repository at this point in the history
  • Loading branch information
siddhesh195 committed Jul 31, 2024
1 parent 1f613b7 commit 30f8e49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/testthat/helper-functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@ find_test_path <- function(dir = ".") {
}

runtime_evaluate <- function(script=NULL,return.value=FALSE){

eval.result<- remDr$Runtime$evaluate(script,returnByValue = TRUE)
if (return.value){
eval.result$result$value
Expand All @@ -426,7 +427,7 @@ runtime_evaluate <- function(script=NULL,return.value=FALSE){
}
}

runtime_evaluate_helper <- function(class_name=NULL, id=NULL, list_num=NULL,dispatch_event=NULL,return.value=FALSE) {
runtime_evaluate_helper <- function(class_name=NULL, id=NULL, list_num=NULL, dispatch_event=NULL, return.value=FALSE) {
if(!is.null(class_name) && !is.null(id) && !is.null(dispatch_event)){
script_template <- "div = document.getElementById('%s'); div.getElementsByClassName('%s')[%d].dispatchEvent(new CustomEvent('click'));"
script <- sprintf(script_template, as.character(id), class_name, list_num)
Expand Down

0 comments on commit 30f8e49

Please sign in to comment.