diff --git a/001-hello-new/DESCRIPTION b/001-hello-new/DESCRIPTION new file mode 100644 index 00000000..fd1d5a52 --- /dev/null +++ b/001-hello-new/DESCRIPTION @@ -0,0 +1,7 @@ +Title: Hello Shiny! +Author: RStudio, Inc. +AuthorUrl: http://www.rstudio.com/ +License: MIT +DisplayMode: Showcase +Tags: getting-started +Type: Shiny diff --git a/001-hello-new/Readme.md b/001-hello-new/Readme.md new file mode 100644 index 00000000..a2450acc --- /dev/null +++ b/001-hello-new/Readme.md @@ -0,0 +1,3 @@ +This small Shiny application demonstrates Shiny's automatic UI updates. + +Move the *Number of bins* slider and notice how the `renderPlot` expression is automatically re-evaluated when its dependant, `input$bins`, changes, causing a histogram with a new number of bins to be rendered. diff --git a/001-hello-new/app.R b/001-hello-new/app.R new file mode 100644 index 00000000..887c5057 --- /dev/null +++ b/001-hello-new/app.R @@ -0,0 +1,59 @@ +library(shiny) + +# Define UI for app that draws a histogram ---- +ui <- fluidPage( + + # App title ---- + titlePanel("Hello Shiny!"), + + # Sidebar layout with input and output definitions ---- + sidebarLayout( + + # Sidebar panel for inputs ---- + sidebarPanel( + + # Input: Slider for the number of bins ---- + sliderInput(inputId = "bins", + label = "Number of bins:", + min = 1, + max = 50, + value = 30) + + ), + + # Main panel for displaying outputs ---- + mainPanel( + + # Output: Histogram ---- + plotOutput(outputId = "distPlot") + + ) + ) +) + +# Define server logic required to draw a histogram ---- +server <- function(input, output) { + + # Histogram of the Old Faithful Geyser Data ---- + # with requested number of bins + # This expression that generates a histogram is wrapped in a call + # to renderPlot to indicate that: + # + # 1. It is "reactive" and therefore should be automatically + # re-executed when inputs (input$bins) change + # 2. Its output type is a plot + output$distPlot <- renderPlot({ + + x <- faithful$waiting + bins <- seq(min(x), max(x), length.out = input$bins + 1) + + hist(x, breaks = bins, col = "#75AADB", border = "white", + xlab = "Waiting time to next eruption (in mins)", + main = "Histogram of waiting times") + + }) + +} + +# Create Shiny app ---- +shinyApp(ui = ui, server = server) diff --git a/001-hello-new/tests/mytest-current/001.json b/001-hello-new/tests/mytest-current/001.json new file mode 100644 index 00000000..ad20bfa8 --- /dev/null +++ b/001-hello-new/tests/mytest-current/001.json @@ -0,0 +1,44 @@ +{ + "input": { + "bins": 30 + }, + "output": { + "distPlot": { + "src": "[image data sha1: 62f07fdafae066c5a8e3a84fe6818264c35b29bf]", + "width": 628, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 40.88, + "right": 98.12, + "bottom": -1.08, + "top": 28.08 + }, + "range": { + "left": 59.04, + "right": 597.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 628, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/001-hello-new/tests/mytest-current/001.png b/001-hello-new/tests/mytest-current/001.png new file mode 100644 index 00000000..352f2822 Binary files /dev/null and b/001-hello-new/tests/mytest-current/001.png differ diff --git a/001-hello-new/tests/mytest-current/002.json b/001-hello-new/tests/mytest-current/002.json new file mode 100644 index 00000000..37b02140 --- /dev/null +++ b/001-hello-new/tests/mytest-current/002.json @@ -0,0 +1,44 @@ +{ + "input": { + "bins": 8 + }, + "output": { + "distPlot": { + "src": "[image data sha1: ccbab99b1f814c02c1b46553eda17b543ce4a923]", + "width": 628, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 40.88, + "right": 98.12, + "bottom": -2.8, + "top": 72.8 + }, + "range": { + "left": 59.04, + "right": 597.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 628, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/001-hello-new/tests/mytest-current/002.png b/001-hello-new/tests/mytest-current/002.png new file mode 100644 index 00000000..038f018c Binary files /dev/null and b/001-hello-new/tests/mytest-current/002.png differ diff --git a/001-hello-new/tests/mytest-current/003.json b/001-hello-new/tests/mytest-current/003.json new file mode 100644 index 00000000..569c22f1 --- /dev/null +++ b/001-hello-new/tests/mytest-current/003.json @@ -0,0 +1,44 @@ +{ + "input": { + "bins": 49 + }, + "output": { + "distPlot": { + "src": "[image data sha1: 3f341a0ffad911fe236eae66ae60b2dbc3efcbfc]", + "width": 628, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 40.88, + "right": 98.12, + "bottom": -1.04, + "top": 27.04 + }, + "range": { + "left": 59.04, + "right": 597.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 628, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/001-hello-new/tests/mytest-current/003.png b/001-hello-new/tests/mytest-current/003.png new file mode 100644 index 00000000..c7f5fc6e Binary files /dev/null and b/001-hello-new/tests/mytest-current/003.png differ diff --git a/001-hello-new/tests/mytest-current/004.json b/001-hello-new/tests/mytest-current/004.json new file mode 100644 index 00000000..5f8a1296 --- /dev/null +++ b/001-hello-new/tests/mytest-current/004.json @@ -0,0 +1,44 @@ +{ + "input": { + "bins": 22 + }, + "output": { + "distPlot": { + "src": "[image data sha1: 5da305c2913cc811cd8a52d19898ad9b1f2a3da2]", + "width": 628, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 40.88, + "right": 98.12, + "bottom": -1.48, + "top": 38.48 + }, + "range": { + "left": 59.04, + "right": 597.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 628, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/001-hello-new/tests/mytest-current/004.png b/001-hello-new/tests/mytest-current/004.png new file mode 100644 index 00000000..1258b252 Binary files /dev/null and b/001-hello-new/tests/mytest-current/004.png differ diff --git a/001-hello-new/tests/mytest-expected/001.json b/001-hello-new/tests/mytest-expected/001.json new file mode 100644 index 00000000..ad20bfa8 --- /dev/null +++ b/001-hello-new/tests/mytest-expected/001.json @@ -0,0 +1,44 @@ +{ + "input": { + "bins": 30 + }, + "output": { + "distPlot": { + "src": "[image data sha1: 62f07fdafae066c5a8e3a84fe6818264c35b29bf]", + "width": 628, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 40.88, + "right": 98.12, + "bottom": -1.08, + "top": 28.08 + }, + "range": { + "left": 59.04, + "right": 597.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 628, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/001-hello-new/tests/mytest-expected/001.png b/001-hello-new/tests/mytest-expected/001.png new file mode 100644 index 00000000..ac97822c Binary files /dev/null and b/001-hello-new/tests/mytest-expected/001.png differ diff --git a/001-hello-new/tests/mytest-expected/002.json b/001-hello-new/tests/mytest-expected/002.json new file mode 100644 index 00000000..37b02140 --- /dev/null +++ b/001-hello-new/tests/mytest-expected/002.json @@ -0,0 +1,44 @@ +{ + "input": { + "bins": 8 + }, + "output": { + "distPlot": { + "src": "[image data sha1: ccbab99b1f814c02c1b46553eda17b543ce4a923]", + "width": 628, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 40.88, + "right": 98.12, + "bottom": -2.8, + "top": 72.8 + }, + "range": { + "left": 59.04, + "right": 597.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 628, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/001-hello-new/tests/mytest-expected/002.png b/001-hello-new/tests/mytest-expected/002.png new file mode 100644 index 00000000..038f018c Binary files /dev/null and b/001-hello-new/tests/mytest-expected/002.png differ diff --git a/001-hello-new/tests/mytest-expected/003.json b/001-hello-new/tests/mytest-expected/003.json new file mode 100644 index 00000000..569c22f1 --- /dev/null +++ b/001-hello-new/tests/mytest-expected/003.json @@ -0,0 +1,44 @@ +{ + "input": { + "bins": 49 + }, + "output": { + "distPlot": { + "src": "[image data sha1: 3f341a0ffad911fe236eae66ae60b2dbc3efcbfc]", + "width": 628, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 40.88, + "right": 98.12, + "bottom": -1.04, + "top": 27.04 + }, + "range": { + "left": 59.04, + "right": 597.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 628, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/001-hello-new/tests/mytest-expected/003.png b/001-hello-new/tests/mytest-expected/003.png new file mode 100644 index 00000000..c7f5fc6e Binary files /dev/null and b/001-hello-new/tests/mytest-expected/003.png differ diff --git a/001-hello-new/tests/mytest-expected/004.json b/001-hello-new/tests/mytest-expected/004.json new file mode 100644 index 00000000..5f8a1296 --- /dev/null +++ b/001-hello-new/tests/mytest-expected/004.json @@ -0,0 +1,44 @@ +{ + "input": { + "bins": 22 + }, + "output": { + "distPlot": { + "src": "[image data sha1: 5da305c2913cc811cd8a52d19898ad9b1f2a3da2]", + "width": 628, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 40.88, + "right": 98.12, + "bottom": -1.48, + "top": 38.48 + }, + "range": { + "left": 59.04, + "right": 597.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 628, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/001-hello-new/tests/mytest-expected/004.png b/001-hello-new/tests/mytest-expected/004.png new file mode 100644 index 00000000..1258b252 Binary files /dev/null and b/001-hello-new/tests/mytest-expected/004.png differ diff --git a/001-hello-new/tests/mytest.R b/001-hello-new/tests/mytest.R new file mode 100644 index 00000000..46f74434 --- /dev/null +++ b/001-hello-new/tests/mytest.R @@ -0,0 +1,11 @@ +app <- ShinyDriver$new("../", seed = 100) +app$snapshotInit("mytest") + +app$snapshot() +app$setInputs(bins = 8) +app$snapshot() +app$setInputs(bins = 49) +app$snapshot() +app$setInputs(bins = 5) +app$setInputs(bins = 22) +app$snapshot() diff --git a/001-hello-new/tests/shinytest.R b/001-hello-new/tests/shinytest.R new file mode 100644 index 00000000..7021f8ec --- /dev/null +++ b/001-hello-new/tests/shinytest.R @@ -0,0 +1,3 @@ +library(shinytest) +shinytest::testApp("../") + diff --git a/001-hello-new/tests/shinytests/mytest-current/001.json b/001-hello-new/tests/shinytests/mytest-current/001.json new file mode 100644 index 00000000..ad20bfa8 --- /dev/null +++ b/001-hello-new/tests/shinytests/mytest-current/001.json @@ -0,0 +1,44 @@ +{ + "input": { + "bins": 30 + }, + "output": { + "distPlot": { + "src": "[image data sha1: 62f07fdafae066c5a8e3a84fe6818264c35b29bf]", + "width": 628, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 40.88, + "right": 98.12, + "bottom": -1.08, + "top": 28.08 + }, + "range": { + "left": 59.04, + "right": 597.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 628, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/001-hello-new/tests/shinytests/mytest-current/001.png b/001-hello-new/tests/shinytests/mytest-current/001.png new file mode 100644 index 00000000..02b8c661 Binary files /dev/null and b/001-hello-new/tests/shinytests/mytest-current/001.png differ diff --git a/001-hello-new/tests/shinytests/mytest-current/002.json b/001-hello-new/tests/shinytests/mytest-current/002.json new file mode 100644 index 00000000..ad20bfa8 --- /dev/null +++ b/001-hello-new/tests/shinytests/mytest-current/002.json @@ -0,0 +1,44 @@ +{ + "input": { + "bins": 30 + }, + "output": { + "distPlot": { + "src": "[image data sha1: 62f07fdafae066c5a8e3a84fe6818264c35b29bf]", + "width": 628, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 40.88, + "right": 98.12, + "bottom": -1.08, + "top": 28.08 + }, + "range": { + "left": 59.04, + "right": 597.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 628, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/001-hello-new/tests/shinytests/mytest-current/002.png b/001-hello-new/tests/shinytests/mytest-current/002.png new file mode 100644 index 00000000..2cb10007 Binary files /dev/null and b/001-hello-new/tests/shinytests/mytest-current/002.png differ diff --git a/001-hello-new/tests/shinytests/mytest-current/003.json b/001-hello-new/tests/shinytests/mytest-current/003.json new file mode 100644 index 00000000..0ee1620a --- /dev/null +++ b/001-hello-new/tests/shinytests/mytest-current/003.json @@ -0,0 +1,44 @@ +{ + "input": { + "bins": 50 + }, + "output": { + "distPlot": { + "src": "[image data sha1: a862ae9b7ab23b99e436af3cc9b65061f580eb4e]", + "width": 628, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 40.88, + "right": 98.12, + "bottom": -1, + "top": 26 + }, + "range": { + "left": 59.04, + "right": 597.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 628, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/001-hello-new/tests/shinytests/mytest-current/003.png b/001-hello-new/tests/shinytests/mytest-current/003.png new file mode 100644 index 00000000..5046b8cd Binary files /dev/null and b/001-hello-new/tests/shinytests/mytest-current/003.png differ diff --git a/001-hello-new/tests/shinytests/mytest-expected/001.json b/001-hello-new/tests/shinytests/mytest-expected/001.json new file mode 100644 index 00000000..ad20bfa8 --- /dev/null +++ b/001-hello-new/tests/shinytests/mytest-expected/001.json @@ -0,0 +1,44 @@ +{ + "input": { + "bins": 30 + }, + "output": { + "distPlot": { + "src": "[image data sha1: 62f07fdafae066c5a8e3a84fe6818264c35b29bf]", + "width": 628, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 40.88, + "right": 98.12, + "bottom": -1.08, + "top": 28.08 + }, + "range": { + "left": 59.04, + "right": 597.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 628, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/001-hello-new/tests/shinytests/mytest-expected/001.png b/001-hello-new/tests/shinytests/mytest-expected/001.png new file mode 100644 index 00000000..352f2822 Binary files /dev/null and b/001-hello-new/tests/shinytests/mytest-expected/001.png differ diff --git a/001-hello-new/tests/shinytests/mytest-expected/002.json b/001-hello-new/tests/shinytests/mytest-expected/002.json new file mode 100644 index 00000000..ad20bfa8 --- /dev/null +++ b/001-hello-new/tests/shinytests/mytest-expected/002.json @@ -0,0 +1,44 @@ +{ + "input": { + "bins": 30 + }, + "output": { + "distPlot": { + "src": "[image data sha1: 62f07fdafae066c5a8e3a84fe6818264c35b29bf]", + "width": 628, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 40.88, + "right": 98.12, + "bottom": -1.08, + "top": 28.08 + }, + "range": { + "left": 59.04, + "right": 597.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 628, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/001-hello-new/tests/shinytests/mytest-expected/002.png b/001-hello-new/tests/shinytests/mytest-expected/002.png new file mode 100644 index 00000000..1c4d4307 Binary files /dev/null and b/001-hello-new/tests/shinytests/mytest-expected/002.png differ diff --git a/001-hello-new/tests/shinytests/mytest-expected/003.json b/001-hello-new/tests/shinytests/mytest-expected/003.json new file mode 100644 index 00000000..0ee1620a --- /dev/null +++ b/001-hello-new/tests/shinytests/mytest-expected/003.json @@ -0,0 +1,44 @@ +{ + "input": { + "bins": 50 + }, + "output": { + "distPlot": { + "src": "[image data sha1: a862ae9b7ab23b99e436af3cc9b65061f580eb4e]", + "width": 628, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 40.88, + "right": 98.12, + "bottom": -1, + "top": 26 + }, + "range": { + "left": 59.04, + "right": 597.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 628, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/001-hello-new/tests/shinytests/mytest-expected/003.png b/001-hello-new/tests/shinytests/mytest-expected/003.png new file mode 100644 index 00000000..5046b8cd Binary files /dev/null and b/001-hello-new/tests/shinytests/mytest-expected/003.png differ diff --git a/001-hello-new/tests/shinytests/mytest.R b/001-hello-new/tests/shinytests/mytest.R new file mode 100644 index 00000000..84e46de3 --- /dev/null +++ b/001-hello-new/tests/shinytests/mytest.R @@ -0,0 +1,7 @@ +app <- ShinyDriver$new("../../", seed = 100) +app$snapshotInit("mytest") + +app$snapshot() +app$snapshot() +app$setInputs(bins = 50) +app$snapshot() diff --git a/001-hello/tests/shinytests/mytest-current/001.json b/001-hello/tests/shinytests/mytest-current/001.json new file mode 100644 index 00000000..ad20bfa8 --- /dev/null +++ b/001-hello/tests/shinytests/mytest-current/001.json @@ -0,0 +1,44 @@ +{ + "input": { + "bins": 30 + }, + "output": { + "distPlot": { + "src": "[image data sha1: 62f07fdafae066c5a8e3a84fe6818264c35b29bf]", + "width": 628, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 40.88, + "right": 98.12, + "bottom": -1.08, + "top": 28.08 + }, + "range": { + "left": 59.04, + "right": 597.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 628, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/001-hello/tests/shinytests/mytest-current/001.png b/001-hello/tests/shinytests/mytest-current/001.png new file mode 100644 index 00000000..352f2822 Binary files /dev/null and b/001-hello/tests/shinytests/mytest-current/001.png differ diff --git a/001-hello/tests/shinytests/mytest-current/002.json b/001-hello/tests/shinytests/mytest-current/002.json new file mode 100644 index 00000000..37b02140 --- /dev/null +++ b/001-hello/tests/shinytests/mytest-current/002.json @@ -0,0 +1,44 @@ +{ + "input": { + "bins": 8 + }, + "output": { + "distPlot": { + "src": "[image data sha1: ccbab99b1f814c02c1b46553eda17b543ce4a923]", + "width": 628, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 40.88, + "right": 98.12, + "bottom": -2.8, + "top": 72.8 + }, + "range": { + "left": 59.04, + "right": 597.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 628, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/001-hello/tests/shinytests/mytest-current/002.png b/001-hello/tests/shinytests/mytest-current/002.png new file mode 100644 index 00000000..038f018c Binary files /dev/null and b/001-hello/tests/shinytests/mytest-current/002.png differ diff --git a/001-hello/tests/shinytests/mytest-current/003.json b/001-hello/tests/shinytests/mytest-current/003.json new file mode 100644 index 00000000..569c22f1 --- /dev/null +++ b/001-hello/tests/shinytests/mytest-current/003.json @@ -0,0 +1,44 @@ +{ + "input": { + "bins": 49 + }, + "output": { + "distPlot": { + "src": "[image data sha1: 3f341a0ffad911fe236eae66ae60b2dbc3efcbfc]", + "width": 628, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 40.88, + "right": 98.12, + "bottom": -1.04, + "top": 27.04 + }, + "range": { + "left": 59.04, + "right": 597.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 628, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/001-hello/tests/shinytests/mytest-current/003.png b/001-hello/tests/shinytests/mytest-current/003.png new file mode 100644 index 00000000..c7f5fc6e Binary files /dev/null and b/001-hello/tests/shinytests/mytest-current/003.png differ diff --git a/001-hello/tests/shinytests/mytest-current/004.json b/001-hello/tests/shinytests/mytest-current/004.json new file mode 100644 index 00000000..5f8a1296 --- /dev/null +++ b/001-hello/tests/shinytests/mytest-current/004.json @@ -0,0 +1,44 @@ +{ + "input": { + "bins": 22 + }, + "output": { + "distPlot": { + "src": "[image data sha1: 5da305c2913cc811cd8a52d19898ad9b1f2a3da2]", + "width": 628, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 40.88, + "right": 98.12, + "bottom": -1.48, + "top": 38.48 + }, + "range": { + "left": 59.04, + "right": 597.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 628, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/001-hello/tests/shinytests/mytest-current/004.png b/001-hello/tests/shinytests/mytest-current/004.png new file mode 100644 index 00000000..1258b252 Binary files /dev/null and b/001-hello/tests/shinytests/mytest-current/004.png differ diff --git a/001-hello/tests/shinytests/mytest-expected/001.json b/001-hello/tests/shinytests/mytest-expected/001.json new file mode 100644 index 00000000..ad20bfa8 --- /dev/null +++ b/001-hello/tests/shinytests/mytest-expected/001.json @@ -0,0 +1,44 @@ +{ + "input": { + "bins": 30 + }, + "output": { + "distPlot": { + "src": "[image data sha1: 62f07fdafae066c5a8e3a84fe6818264c35b29bf]", + "width": 628, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 40.88, + "right": 98.12, + "bottom": -1.08, + "top": 28.08 + }, + "range": { + "left": 59.04, + "right": 597.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 628, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/001-hello/tests/shinytests/mytest-expected/001.png b/001-hello/tests/shinytests/mytest-expected/001.png new file mode 100644 index 00000000..ac97822c Binary files /dev/null and b/001-hello/tests/shinytests/mytest-expected/001.png differ diff --git a/001-hello/tests/shinytests/mytest-expected/002.json b/001-hello/tests/shinytests/mytest-expected/002.json new file mode 100644 index 00000000..37b02140 --- /dev/null +++ b/001-hello/tests/shinytests/mytest-expected/002.json @@ -0,0 +1,44 @@ +{ + "input": { + "bins": 8 + }, + "output": { + "distPlot": { + "src": "[image data sha1: ccbab99b1f814c02c1b46553eda17b543ce4a923]", + "width": 628, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 40.88, + "right": 98.12, + "bottom": -2.8, + "top": 72.8 + }, + "range": { + "left": 59.04, + "right": 597.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 628, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/001-hello/tests/shinytests/mytest-expected/002.png b/001-hello/tests/shinytests/mytest-expected/002.png new file mode 100644 index 00000000..038f018c Binary files /dev/null and b/001-hello/tests/shinytests/mytest-expected/002.png differ diff --git a/001-hello/tests/shinytests/mytest-expected/003.json b/001-hello/tests/shinytests/mytest-expected/003.json new file mode 100644 index 00000000..569c22f1 --- /dev/null +++ b/001-hello/tests/shinytests/mytest-expected/003.json @@ -0,0 +1,44 @@ +{ + "input": { + "bins": 49 + }, + "output": { + "distPlot": { + "src": "[image data sha1: 3f341a0ffad911fe236eae66ae60b2dbc3efcbfc]", + "width": 628, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 40.88, + "right": 98.12, + "bottom": -1.04, + "top": 27.04 + }, + "range": { + "left": 59.04, + "right": 597.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 628, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/001-hello/tests/shinytests/mytest-expected/003.png b/001-hello/tests/shinytests/mytest-expected/003.png new file mode 100644 index 00000000..c7f5fc6e Binary files /dev/null and b/001-hello/tests/shinytests/mytest-expected/003.png differ diff --git a/001-hello/tests/shinytests/mytest-expected/004.json b/001-hello/tests/shinytests/mytest-expected/004.json new file mode 100644 index 00000000..5f8a1296 --- /dev/null +++ b/001-hello/tests/shinytests/mytest-expected/004.json @@ -0,0 +1,44 @@ +{ + "input": { + "bins": 22 + }, + "output": { + "distPlot": { + "src": "[image data sha1: 5da305c2913cc811cd8a52d19898ad9b1f2a3da2]", + "width": 628, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 40.88, + "right": 98.12, + "bottom": -1.48, + "top": 38.48 + }, + "range": { + "left": 59.04, + "right": 597.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 628, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/001-hello/tests/shinytests/mytest-expected/004.png b/001-hello/tests/shinytests/mytest-expected/004.png new file mode 100644 index 00000000..1258b252 Binary files /dev/null and b/001-hello/tests/shinytests/mytest-expected/004.png differ diff --git a/001-hello/tests/shinytests/mytest.R b/001-hello/tests/shinytests/mytest.R new file mode 100644 index 00000000..46f74434 --- /dev/null +++ b/001-hello/tests/shinytests/mytest.R @@ -0,0 +1,11 @@ +app <- ShinyDriver$new("../", seed = 100) +app$snapshotInit("mytest") + +app$snapshot() +app$setInputs(bins = 8) +app$snapshot() +app$setInputs(bins = 49) +app$snapshot() +app$setInputs(bins = 5) +app$setInputs(bins = 22) +app$snapshot() diff --git a/002-text/tests/mytest-expected-mac/001.json b/002-text/tests/mytest-expected-mac/001.json new file mode 100644 index 00000000..e397b8fd --- /dev/null +++ b/002-text/tests/mytest-expected-mac/001.json @@ -0,0 +1,13 @@ +{ + "input": { + "dataset": "rock", + "obs": 10 + }, + "output": { + "summary": " area peri shape perm \n Min. : 1016 Min. : 308.6 Min. :0.09033 Min. : 6.30 \n 1st Qu.: 5305 1st Qu.:1414.9 1st Qu.:0.16226 1st Qu.: 76.45 \n Median : 7487 Median :2536.2 Median :0.19886 Median : 130.50 \n Mean : 7188 Mean :2682.2 Mean :0.21811 Mean : 415.45 \n 3rd Qu.: 8870 3rd Qu.:3989.5 3rd Qu.:0.26267 3rd Qu.: 777.50 \n Max. :12212 Max. :4864.2 Max. :0.46413 Max. :1300.00 ", + "view": "\n\n
area <\/th> peri <\/th> shape <\/th> perm <\/th> <\/tr> <\/thead>
4990 <\/td> 2791.90 <\/td> 0.09 <\/td> 6.30 <\/td> <\/tr>\n
7002 <\/td> 3892.60 <\/td> 0.15 <\/td> 6.30 <\/td> <\/tr>\n
7558 <\/td> 3930.66 <\/td> 0.18 <\/td> 6.30 <\/td> <\/tr>\n
7352 <\/td> 3869.32 <\/td> 0.12 <\/td> 6.30 <\/td> <\/tr>\n
7943 <\/td> 3948.54 <\/td> 0.12 <\/td> 17.10 <\/td> <\/tr>\n
7979 <\/td> 4010.15 <\/td> 0.17 <\/td> 17.10 <\/td> <\/tr>\n
9333 <\/td> 4345.75 <\/td> 0.19 <\/td> 17.10 <\/td> <\/tr>\n
8209 <\/td> 4344.75 <\/td> 0.16 <\/td> 17.10 <\/td> <\/tr>\n
8393 <\/td> 3682.04 <\/td> 0.20 <\/td> 119.00 <\/td> <\/tr>\n
6425 <\/td> 3098.65 <\/td> 0.16 <\/td> 119.00 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/002-text/tests/mytest-expected-mac/001.png b/002-text/tests/mytest-expected-mac/001.png new file mode 100644 index 00000000..b762b2ef Binary files /dev/null and b/002-text/tests/mytest-expected-mac/001.png differ diff --git a/002-text/tests/mytest-expected-mac/002.json b/002-text/tests/mytest-expected-mac/002.json new file mode 100644 index 00000000..d14a5d49 --- /dev/null +++ b/002-text/tests/mytest-expected-mac/002.json @@ -0,0 +1,13 @@ +{ + "input": { + "dataset": "pressure", + "obs": 1000 + }, + "output": { + "summary": " temperature pressure \n Min. : 0 Min. : 0.0002 \n 1st Qu.: 90 1st Qu.: 0.1800 \n Median :180 Median : 8.8000 \n Mean :180 Mean :124.3367 \n 3rd Qu.:270 3rd Qu.:126.5000 \n Max. :360 Max. :806.0000 ", + "view": "\n\n
temperature <\/th> pressure <\/th> <\/tr> <\/thead>
0.00 <\/td> 0.00 <\/td> <\/tr>\n
20.00 <\/td> 0.00 <\/td> <\/tr>\n
40.00 <\/td> 0.01 <\/td> <\/tr>\n
60.00 <\/td> 0.03 <\/td> <\/tr>\n
80.00 <\/td> 0.09 <\/td> <\/tr>\n
100.00 <\/td> 0.27 <\/td> <\/tr>\n
120.00 <\/td> 0.75 <\/td> <\/tr>\n
140.00 <\/td> 1.85 <\/td> <\/tr>\n
160.00 <\/td> 4.20 <\/td> <\/tr>\n
180.00 <\/td> 8.80 <\/td> <\/tr>\n
200.00 <\/td> 17.30 <\/td> <\/tr>\n
220.00 <\/td> 32.10 <\/td> <\/tr>\n
240.00 <\/td> 57.00 <\/td> <\/tr>\n
260.00 <\/td> 96.00 <\/td> <\/tr>\n
280.00 <\/td> 157.00 <\/td> <\/tr>\n
300.00 <\/td> 247.00 <\/td> <\/tr>\n
320.00 <\/td> 376.00 <\/td> <\/tr>\n
340.00 <\/td> 558.00 <\/td> <\/tr>\n
360.00 <\/td> 806.00 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/002-text/tests/mytest-expected-mac/002.png b/002-text/tests/mytest-expected-mac/002.png new file mode 100644 index 00000000..9e20a61d Binary files /dev/null and b/002-text/tests/mytest-expected-mac/002.png differ diff --git a/002-text/tests/mytest-expected-mac/003.json b/002-text/tests/mytest-expected-mac/003.json new file mode 100644 index 00000000..045ead83 --- /dev/null +++ b/002-text/tests/mytest-expected-mac/003.json @@ -0,0 +1,13 @@ +{ + "input": { + "dataset": "rock", + "obs": 1 + }, + "output": { + "summary": " area peri shape perm \n Min. : 1016 Min. : 308.6 Min. :0.09033 Min. : 6.30 \n 1st Qu.: 5305 1st Qu.:1414.9 1st Qu.:0.16226 1st Qu.: 76.45 \n Median : 7487 Median :2536.2 Median :0.19886 Median : 130.50 \n Mean : 7188 Mean :2682.2 Mean :0.21811 Mean : 415.45 \n 3rd Qu.: 8870 3rd Qu.:3989.5 3rd Qu.:0.26267 3rd Qu.: 777.50 \n Max. :12212 Max. :4864.2 Max. :0.46413 Max. :1300.00 ", + "view": "\n\n
area <\/th> peri <\/th> shape <\/th> perm <\/th> <\/tr> <\/thead>
4990 <\/td> 2791.90 <\/td> 0.09 <\/td> 6.30 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/002-text/tests/mytest-expected-mac/003.png b/002-text/tests/mytest-expected-mac/003.png new file mode 100644 index 00000000..eb9c546a Binary files /dev/null and b/002-text/tests/mytest-expected-mac/003.png differ diff --git a/002-text/tests/mytest-expected-mac/004.json b/002-text/tests/mytest-expected-mac/004.json new file mode 100644 index 00000000..5211b565 --- /dev/null +++ b/002-text/tests/mytest-expected-mac/004.json @@ -0,0 +1,13 @@ +{ + "input": { + "dataset": "rock", + "obs": 1000 + }, + "output": { + "summary": " area peri shape perm \n Min. : 1016 Min. : 308.6 Min. :0.09033 Min. : 6.30 \n 1st Qu.: 5305 1st Qu.:1414.9 1st Qu.:0.16226 1st Qu.: 76.45 \n Median : 7487 Median :2536.2 Median :0.19886 Median : 130.50 \n Mean : 7188 Mean :2682.2 Mean :0.21811 Mean : 415.45 \n 3rd Qu.: 8870 3rd Qu.:3989.5 3rd Qu.:0.26267 3rd Qu.: 777.50 \n Max. :12212 Max. :4864.2 Max. :0.46413 Max. :1300.00 ", + "view": "\n\n
area <\/th> peri <\/th> shape <\/th> perm <\/th> <\/tr> <\/thead>
4990 <\/td> 2791.90 <\/td> 0.09 <\/td> 6.30 <\/td> <\/tr>\n
7002 <\/td> 3892.60 <\/td> 0.15 <\/td> 6.30 <\/td> <\/tr>\n
7558 <\/td> 3930.66 <\/td> 0.18 <\/td> 6.30 <\/td> <\/tr>\n
7352 <\/td> 3869.32 <\/td> 0.12 <\/td> 6.30 <\/td> <\/tr>\n
7943 <\/td> 3948.54 <\/td> 0.12 <\/td> 17.10 <\/td> <\/tr>\n
7979 <\/td> 4010.15 <\/td> 0.17 <\/td> 17.10 <\/td> <\/tr>\n
9333 <\/td> 4345.75 <\/td> 0.19 <\/td> 17.10 <\/td> <\/tr>\n
8209 <\/td> 4344.75 <\/td> 0.16 <\/td> 17.10 <\/td> <\/tr>\n
8393 <\/td> 3682.04 <\/td> 0.20 <\/td> 119.00 <\/td> <\/tr>\n
6425 <\/td> 3098.65 <\/td> 0.16 <\/td> 119.00 <\/td> <\/tr>\n
9364 <\/td> 4480.05 <\/td> 0.15 <\/td> 119.00 <\/td> <\/tr>\n
8624 <\/td> 3986.24 <\/td> 0.15 <\/td> 119.00 <\/td> <\/tr>\n
10651 <\/td> 4036.54 <\/td> 0.23 <\/td> 82.40 <\/td> <\/tr>\n
8868 <\/td> 3518.04 <\/td> 0.23 <\/td> 82.40 <\/td> <\/tr>\n
9417 <\/td> 3999.37 <\/td> 0.17 <\/td> 82.40 <\/td> <\/tr>\n
8874 <\/td> 3629.07 <\/td> 0.15 <\/td> 82.40 <\/td> <\/tr>\n
10962 <\/td> 4608.66 <\/td> 0.20 <\/td> 58.60 <\/td> <\/tr>\n
10743 <\/td> 4787.62 <\/td> 0.26 <\/td> 58.60 <\/td> <\/tr>\n
11878 <\/td> 4864.22 <\/td> 0.20 <\/td> 58.60 <\/td> <\/tr>\n
9867 <\/td> 4479.41 <\/td> 0.14 <\/td> 58.60 <\/td> <\/tr>\n
7838 <\/td> 3428.74 <\/td> 0.11 <\/td> 142.00 <\/td> <\/tr>\n
11876 <\/td> 4353.14 <\/td> 0.29 <\/td> 142.00 <\/td> <\/tr>\n
12212 <\/td> 4697.65 <\/td> 0.24 <\/td> 142.00 <\/td> <\/tr>\n
8233 <\/td> 3518.44 <\/td> 0.16 <\/td> 142.00 <\/td> <\/tr>\n
6360 <\/td> 1977.39 <\/td> 0.28 <\/td> 740.00 <\/td> <\/tr>\n
4193 <\/td> 1379.35 <\/td> 0.18 <\/td> 740.00 <\/td> <\/tr>\n
7416 <\/td> 1916.24 <\/td> 0.19 <\/td> 740.00 <\/td> <\/tr>\n
5246 <\/td> 1585.42 <\/td> 0.13 <\/td> 740.00 <\/td> <\/tr>\n
6509 <\/td> 1851.21 <\/td> 0.23 <\/td> 890.00 <\/td> <\/tr>\n
4895 <\/td> 1239.66 <\/td> 0.34 <\/td> 890.00 <\/td> <\/tr>\n
6775 <\/td> 1728.14 <\/td> 0.31 <\/td> 890.00 <\/td> <\/tr>\n
7894 <\/td> 1461.06 <\/td> 0.28 <\/td> 890.00 <\/td> <\/tr>\n
5980 <\/td> 1426.76 <\/td> 0.20 <\/td> 950.00 <\/td> <\/tr>\n
5318 <\/td> 990.39 <\/td> 0.33 <\/td> 950.00 <\/td> <\/tr>\n
7392 <\/td> 1350.76 <\/td> 0.15 <\/td> 950.00 <\/td> <\/tr>\n
7894 <\/td> 1461.06 <\/td> 0.28 <\/td> 950.00 <\/td> <\/tr>\n
3469 <\/td> 1376.70 <\/td> 0.18 <\/td> 100.00 <\/td> <\/tr>\n
1468 <\/td> 476.32 <\/td> 0.44 <\/td> 100.00 <\/td> <\/tr>\n
3524 <\/td> 1189.46 <\/td> 0.16 <\/td> 100.00 <\/td> <\/tr>\n
5267 <\/td> 1644.96 <\/td> 0.25 <\/td> 100.00 <\/td> <\/tr>\n
5048 <\/td> 941.54 <\/td> 0.33 <\/td> 1300.00 <\/td> <\/tr>\n
1016 <\/td> 308.64 <\/td> 0.23 <\/td> 1300.00 <\/td> <\/tr>\n
5605 <\/td> 1145.69 <\/td> 0.46 <\/td> 1300.00 <\/td> <\/tr>\n
8793 <\/td> 2280.49 <\/td> 0.42 <\/td> 1300.00 <\/td> <\/tr>\n
3475 <\/td> 1174.11 <\/td> 0.20 <\/td> 580.00 <\/td> <\/tr>\n
1651 <\/td> 597.81 <\/td> 0.26 <\/td> 580.00 <\/td> <\/tr>\n
5514 <\/td> 1455.88 <\/td> 0.18 <\/td> 580.00 <\/td> <\/tr>\n
9718 <\/td> 1485.58 <\/td> 0.20 <\/td> 580.00 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/002-text/tests/mytest-expected-mac/004.png b/002-text/tests/mytest-expected-mac/004.png new file mode 100644 index 00000000..ea7d19e4 Binary files /dev/null and b/002-text/tests/mytest-expected-mac/004.png differ diff --git a/002-text/tests/mytest-expected-mac/005.json b/002-text/tests/mytest-expected-mac/005.json new file mode 100644 index 00000000..d14a5d49 --- /dev/null +++ b/002-text/tests/mytest-expected-mac/005.json @@ -0,0 +1,13 @@ +{ + "input": { + "dataset": "pressure", + "obs": 1000 + }, + "output": { + "summary": " temperature pressure \n Min. : 0 Min. : 0.0002 \n 1st Qu.: 90 1st Qu.: 0.1800 \n Median :180 Median : 8.8000 \n Mean :180 Mean :124.3367 \n 3rd Qu.:270 3rd Qu.:126.5000 \n Max. :360 Max. :806.0000 ", + "view": "\n\n
temperature <\/th> pressure <\/th> <\/tr> <\/thead>
0.00 <\/td> 0.00 <\/td> <\/tr>\n
20.00 <\/td> 0.00 <\/td> <\/tr>\n
40.00 <\/td> 0.01 <\/td> <\/tr>\n
60.00 <\/td> 0.03 <\/td> <\/tr>\n
80.00 <\/td> 0.09 <\/td> <\/tr>\n
100.00 <\/td> 0.27 <\/td> <\/tr>\n
120.00 <\/td> 0.75 <\/td> <\/tr>\n
140.00 <\/td> 1.85 <\/td> <\/tr>\n
160.00 <\/td> 4.20 <\/td> <\/tr>\n
180.00 <\/td> 8.80 <\/td> <\/tr>\n
200.00 <\/td> 17.30 <\/td> <\/tr>\n
220.00 <\/td> 32.10 <\/td> <\/tr>\n
240.00 <\/td> 57.00 <\/td> <\/tr>\n
260.00 <\/td> 96.00 <\/td> <\/tr>\n
280.00 <\/td> 157.00 <\/td> <\/tr>\n
300.00 <\/td> 247.00 <\/td> <\/tr>\n
320.00 <\/td> 376.00 <\/td> <\/tr>\n
340.00 <\/td> 558.00 <\/td> <\/tr>\n
360.00 <\/td> 806.00 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/002-text/tests/mytest-expected-mac/005.png b/002-text/tests/mytest-expected-mac/005.png new file mode 100644 index 00000000..9e20a61d Binary files /dev/null and b/002-text/tests/mytest-expected-mac/005.png differ diff --git a/002-text/tests/mytest-expected/001.json b/002-text/tests/mytest-expected/001.json new file mode 100644 index 00000000..e397b8fd --- /dev/null +++ b/002-text/tests/mytest-expected/001.json @@ -0,0 +1,13 @@ +{ + "input": { + "dataset": "rock", + "obs": 10 + }, + "output": { + "summary": " area peri shape perm \n Min. : 1016 Min. : 308.6 Min. :0.09033 Min. : 6.30 \n 1st Qu.: 5305 1st Qu.:1414.9 1st Qu.:0.16226 1st Qu.: 76.45 \n Median : 7487 Median :2536.2 Median :0.19886 Median : 130.50 \n Mean : 7188 Mean :2682.2 Mean :0.21811 Mean : 415.45 \n 3rd Qu.: 8870 3rd Qu.:3989.5 3rd Qu.:0.26267 3rd Qu.: 777.50 \n Max. :12212 Max. :4864.2 Max. :0.46413 Max. :1300.00 ", + "view": "\n\n
area <\/th> peri <\/th> shape <\/th> perm <\/th> <\/tr> <\/thead>
4990 <\/td> 2791.90 <\/td> 0.09 <\/td> 6.30 <\/td> <\/tr>\n
7002 <\/td> 3892.60 <\/td> 0.15 <\/td> 6.30 <\/td> <\/tr>\n
7558 <\/td> 3930.66 <\/td> 0.18 <\/td> 6.30 <\/td> <\/tr>\n
7352 <\/td> 3869.32 <\/td> 0.12 <\/td> 6.30 <\/td> <\/tr>\n
7943 <\/td> 3948.54 <\/td> 0.12 <\/td> 17.10 <\/td> <\/tr>\n
7979 <\/td> 4010.15 <\/td> 0.17 <\/td> 17.10 <\/td> <\/tr>\n
9333 <\/td> 4345.75 <\/td> 0.19 <\/td> 17.10 <\/td> <\/tr>\n
8209 <\/td> 4344.75 <\/td> 0.16 <\/td> 17.10 <\/td> <\/tr>\n
8393 <\/td> 3682.04 <\/td> 0.20 <\/td> 119.00 <\/td> <\/tr>\n
6425 <\/td> 3098.65 <\/td> 0.16 <\/td> 119.00 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/002-text/tests/mytest-expected/001.png b/002-text/tests/mytest-expected/001.png new file mode 100644 index 00000000..b762b2ef Binary files /dev/null and b/002-text/tests/mytest-expected/001.png differ diff --git a/002-text/tests/mytest-expected/002.json b/002-text/tests/mytest-expected/002.json new file mode 100644 index 00000000..d14a5d49 --- /dev/null +++ b/002-text/tests/mytest-expected/002.json @@ -0,0 +1,13 @@ +{ + "input": { + "dataset": "pressure", + "obs": 1000 + }, + "output": { + "summary": " temperature pressure \n Min. : 0 Min. : 0.0002 \n 1st Qu.: 90 1st Qu.: 0.1800 \n Median :180 Median : 8.8000 \n Mean :180 Mean :124.3367 \n 3rd Qu.:270 3rd Qu.:126.5000 \n Max. :360 Max. :806.0000 ", + "view": "\n\n
temperature <\/th> pressure <\/th> <\/tr> <\/thead>
0.00 <\/td> 0.00 <\/td> <\/tr>\n
20.00 <\/td> 0.00 <\/td> <\/tr>\n
40.00 <\/td> 0.01 <\/td> <\/tr>\n
60.00 <\/td> 0.03 <\/td> <\/tr>\n
80.00 <\/td> 0.09 <\/td> <\/tr>\n
100.00 <\/td> 0.27 <\/td> <\/tr>\n
120.00 <\/td> 0.75 <\/td> <\/tr>\n
140.00 <\/td> 1.85 <\/td> <\/tr>\n
160.00 <\/td> 4.20 <\/td> <\/tr>\n
180.00 <\/td> 8.80 <\/td> <\/tr>\n
200.00 <\/td> 17.30 <\/td> <\/tr>\n
220.00 <\/td> 32.10 <\/td> <\/tr>\n
240.00 <\/td> 57.00 <\/td> <\/tr>\n
260.00 <\/td> 96.00 <\/td> <\/tr>\n
280.00 <\/td> 157.00 <\/td> <\/tr>\n
300.00 <\/td> 247.00 <\/td> <\/tr>\n
320.00 <\/td> 376.00 <\/td> <\/tr>\n
340.00 <\/td> 558.00 <\/td> <\/tr>\n
360.00 <\/td> 806.00 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/002-text/tests/mytest-expected/002.png b/002-text/tests/mytest-expected/002.png new file mode 100644 index 00000000..9e20a61d Binary files /dev/null and b/002-text/tests/mytest-expected/002.png differ diff --git a/002-text/tests/mytest-expected/003.json b/002-text/tests/mytest-expected/003.json new file mode 100644 index 00000000..045ead83 --- /dev/null +++ b/002-text/tests/mytest-expected/003.json @@ -0,0 +1,13 @@ +{ + "input": { + "dataset": "rock", + "obs": 1 + }, + "output": { + "summary": " area peri shape perm \n Min. : 1016 Min. : 308.6 Min. :0.09033 Min. : 6.30 \n 1st Qu.: 5305 1st Qu.:1414.9 1st Qu.:0.16226 1st Qu.: 76.45 \n Median : 7487 Median :2536.2 Median :0.19886 Median : 130.50 \n Mean : 7188 Mean :2682.2 Mean :0.21811 Mean : 415.45 \n 3rd Qu.: 8870 3rd Qu.:3989.5 3rd Qu.:0.26267 3rd Qu.: 777.50 \n Max. :12212 Max. :4864.2 Max. :0.46413 Max. :1300.00 ", + "view": "\n\n
area <\/th> peri <\/th> shape <\/th> perm <\/th> <\/tr> <\/thead>
4990 <\/td> 2791.90 <\/td> 0.09 <\/td> 6.30 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/002-text/tests/mytest-expected/003.png b/002-text/tests/mytest-expected/003.png new file mode 100644 index 00000000..eb9c546a Binary files /dev/null and b/002-text/tests/mytest-expected/003.png differ diff --git a/002-text/tests/mytest-expected/004.json b/002-text/tests/mytest-expected/004.json new file mode 100644 index 00000000..5211b565 --- /dev/null +++ b/002-text/tests/mytest-expected/004.json @@ -0,0 +1,13 @@ +{ + "input": { + "dataset": "rock", + "obs": 1000 + }, + "output": { + "summary": " area peri shape perm \n Min. : 1016 Min. : 308.6 Min. :0.09033 Min. : 6.30 \n 1st Qu.: 5305 1st Qu.:1414.9 1st Qu.:0.16226 1st Qu.: 76.45 \n Median : 7487 Median :2536.2 Median :0.19886 Median : 130.50 \n Mean : 7188 Mean :2682.2 Mean :0.21811 Mean : 415.45 \n 3rd Qu.: 8870 3rd Qu.:3989.5 3rd Qu.:0.26267 3rd Qu.: 777.50 \n Max. :12212 Max. :4864.2 Max. :0.46413 Max. :1300.00 ", + "view": "\n\n
area <\/th> peri <\/th> shape <\/th> perm <\/th> <\/tr> <\/thead>
4990 <\/td> 2791.90 <\/td> 0.09 <\/td> 6.30 <\/td> <\/tr>\n
7002 <\/td> 3892.60 <\/td> 0.15 <\/td> 6.30 <\/td> <\/tr>\n
7558 <\/td> 3930.66 <\/td> 0.18 <\/td> 6.30 <\/td> <\/tr>\n
7352 <\/td> 3869.32 <\/td> 0.12 <\/td> 6.30 <\/td> <\/tr>\n
7943 <\/td> 3948.54 <\/td> 0.12 <\/td> 17.10 <\/td> <\/tr>\n
7979 <\/td> 4010.15 <\/td> 0.17 <\/td> 17.10 <\/td> <\/tr>\n
9333 <\/td> 4345.75 <\/td> 0.19 <\/td> 17.10 <\/td> <\/tr>\n
8209 <\/td> 4344.75 <\/td> 0.16 <\/td> 17.10 <\/td> <\/tr>\n
8393 <\/td> 3682.04 <\/td> 0.20 <\/td> 119.00 <\/td> <\/tr>\n
6425 <\/td> 3098.65 <\/td> 0.16 <\/td> 119.00 <\/td> <\/tr>\n
9364 <\/td> 4480.05 <\/td> 0.15 <\/td> 119.00 <\/td> <\/tr>\n
8624 <\/td> 3986.24 <\/td> 0.15 <\/td> 119.00 <\/td> <\/tr>\n
10651 <\/td> 4036.54 <\/td> 0.23 <\/td> 82.40 <\/td> <\/tr>\n
8868 <\/td> 3518.04 <\/td> 0.23 <\/td> 82.40 <\/td> <\/tr>\n
9417 <\/td> 3999.37 <\/td> 0.17 <\/td> 82.40 <\/td> <\/tr>\n
8874 <\/td> 3629.07 <\/td> 0.15 <\/td> 82.40 <\/td> <\/tr>\n
10962 <\/td> 4608.66 <\/td> 0.20 <\/td> 58.60 <\/td> <\/tr>\n
10743 <\/td> 4787.62 <\/td> 0.26 <\/td> 58.60 <\/td> <\/tr>\n
11878 <\/td> 4864.22 <\/td> 0.20 <\/td> 58.60 <\/td> <\/tr>\n
9867 <\/td> 4479.41 <\/td> 0.14 <\/td> 58.60 <\/td> <\/tr>\n
7838 <\/td> 3428.74 <\/td> 0.11 <\/td> 142.00 <\/td> <\/tr>\n
11876 <\/td> 4353.14 <\/td> 0.29 <\/td> 142.00 <\/td> <\/tr>\n
12212 <\/td> 4697.65 <\/td> 0.24 <\/td> 142.00 <\/td> <\/tr>\n
8233 <\/td> 3518.44 <\/td> 0.16 <\/td> 142.00 <\/td> <\/tr>\n
6360 <\/td> 1977.39 <\/td> 0.28 <\/td> 740.00 <\/td> <\/tr>\n
4193 <\/td> 1379.35 <\/td> 0.18 <\/td> 740.00 <\/td> <\/tr>\n
7416 <\/td> 1916.24 <\/td> 0.19 <\/td> 740.00 <\/td> <\/tr>\n
5246 <\/td> 1585.42 <\/td> 0.13 <\/td> 740.00 <\/td> <\/tr>\n
6509 <\/td> 1851.21 <\/td> 0.23 <\/td> 890.00 <\/td> <\/tr>\n
4895 <\/td> 1239.66 <\/td> 0.34 <\/td> 890.00 <\/td> <\/tr>\n
6775 <\/td> 1728.14 <\/td> 0.31 <\/td> 890.00 <\/td> <\/tr>\n
7894 <\/td> 1461.06 <\/td> 0.28 <\/td> 890.00 <\/td> <\/tr>\n
5980 <\/td> 1426.76 <\/td> 0.20 <\/td> 950.00 <\/td> <\/tr>\n
5318 <\/td> 990.39 <\/td> 0.33 <\/td> 950.00 <\/td> <\/tr>\n
7392 <\/td> 1350.76 <\/td> 0.15 <\/td> 950.00 <\/td> <\/tr>\n
7894 <\/td> 1461.06 <\/td> 0.28 <\/td> 950.00 <\/td> <\/tr>\n
3469 <\/td> 1376.70 <\/td> 0.18 <\/td> 100.00 <\/td> <\/tr>\n
1468 <\/td> 476.32 <\/td> 0.44 <\/td> 100.00 <\/td> <\/tr>\n
3524 <\/td> 1189.46 <\/td> 0.16 <\/td> 100.00 <\/td> <\/tr>\n
5267 <\/td> 1644.96 <\/td> 0.25 <\/td> 100.00 <\/td> <\/tr>\n
5048 <\/td> 941.54 <\/td> 0.33 <\/td> 1300.00 <\/td> <\/tr>\n
1016 <\/td> 308.64 <\/td> 0.23 <\/td> 1300.00 <\/td> <\/tr>\n
5605 <\/td> 1145.69 <\/td> 0.46 <\/td> 1300.00 <\/td> <\/tr>\n
8793 <\/td> 2280.49 <\/td> 0.42 <\/td> 1300.00 <\/td> <\/tr>\n
3475 <\/td> 1174.11 <\/td> 0.20 <\/td> 580.00 <\/td> <\/tr>\n
1651 <\/td> 597.81 <\/td> 0.26 <\/td> 580.00 <\/td> <\/tr>\n
5514 <\/td> 1455.88 <\/td> 0.18 <\/td> 580.00 <\/td> <\/tr>\n
9718 <\/td> 1485.58 <\/td> 0.20 <\/td> 580.00 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/002-text/tests/mytest-expected/004.png b/002-text/tests/mytest-expected/004.png new file mode 100644 index 00000000..ea7d19e4 Binary files /dev/null and b/002-text/tests/mytest-expected/004.png differ diff --git a/002-text/tests/mytest-expected/005.json b/002-text/tests/mytest-expected/005.json new file mode 100644 index 00000000..d14a5d49 --- /dev/null +++ b/002-text/tests/mytest-expected/005.json @@ -0,0 +1,13 @@ +{ + "input": { + "dataset": "pressure", + "obs": 1000 + }, + "output": { + "summary": " temperature pressure \n Min. : 0 Min. : 0.0002 \n 1st Qu.: 90 1st Qu.: 0.1800 \n Median :180 Median : 8.8000 \n Mean :180 Mean :124.3367 \n 3rd Qu.:270 3rd Qu.:126.5000 \n Max. :360 Max. :806.0000 ", + "view": "\n\n
temperature <\/th> pressure <\/th> <\/tr> <\/thead>
0.00 <\/td> 0.00 <\/td> <\/tr>\n
20.00 <\/td> 0.00 <\/td> <\/tr>\n
40.00 <\/td> 0.01 <\/td> <\/tr>\n
60.00 <\/td> 0.03 <\/td> <\/tr>\n
80.00 <\/td> 0.09 <\/td> <\/tr>\n
100.00 <\/td> 0.27 <\/td> <\/tr>\n
120.00 <\/td> 0.75 <\/td> <\/tr>\n
140.00 <\/td> 1.85 <\/td> <\/tr>\n
160.00 <\/td> 4.20 <\/td> <\/tr>\n
180.00 <\/td> 8.80 <\/td> <\/tr>\n
200.00 <\/td> 17.30 <\/td> <\/tr>\n
220.00 <\/td> 32.10 <\/td> <\/tr>\n
240.00 <\/td> 57.00 <\/td> <\/tr>\n
260.00 <\/td> 96.00 <\/td> <\/tr>\n
280.00 <\/td> 157.00 <\/td> <\/tr>\n
300.00 <\/td> 247.00 <\/td> <\/tr>\n
320.00 <\/td> 376.00 <\/td> <\/tr>\n
340.00 <\/td> 558.00 <\/td> <\/tr>\n
360.00 <\/td> 806.00 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/002-text/tests/mytest-expected/005.png b/002-text/tests/mytest-expected/005.png new file mode 100644 index 00000000..9e20a61d Binary files /dev/null and b/002-text/tests/mytest-expected/005.png differ diff --git a/002-text/tests/mytest.R b/002-text/tests/mytest.R new file mode 100644 index 00000000..1ff78a35 --- /dev/null +++ b/002-text/tests/mytest.R @@ -0,0 +1,14 @@ +app <- ShinyDriver$new("../", seed = 100,shinyOptions = list(display.mode = "normal")) +app$snapshotInit("mytest") + +app$snapshot() +app$setInputs(dataset = "pressure") +app$setInputs(obs = 1000) +app$snapshot() +app$setInputs(dataset = "rock") +app$setInputs(obs = 1) +app$snapshot() +app$setInputs(obs = 1000) +app$snapshot() +app$setInputs(dataset = "pressure") +app$snapshot() diff --git a/003-reactivity/tests/mytest-expected-mac/001.json b/003-reactivity/tests/mytest-expected-mac/001.json new file mode 100644 index 00000000..c4a4ef66 --- /dev/null +++ b/003-reactivity/tests/mytest-expected-mac/001.json @@ -0,0 +1,15 @@ +{ + "input": { + "caption": "Data Summary", + "dataset": "rock", + "obs": 10 + }, + "output": { + "caption": "Data Summary", + "summary": " area peri shape perm \n Min. : 1016 Min. : 308.6 Min. :0.09033 Min. : 6.30 \n 1st Qu.: 5305 1st Qu.:1414.9 1st Qu.:0.16226 1st Qu.: 76.45 \n Median : 7487 Median :2536.2 Median :0.19886 Median : 130.50 \n Mean : 7188 Mean :2682.2 Mean :0.21811 Mean : 415.45 \n 3rd Qu.: 8870 3rd Qu.:3989.5 3rd Qu.:0.26267 3rd Qu.: 777.50 \n Max. :12212 Max. :4864.2 Max. :0.46413 Max. :1300.00 ", + "view": "\n\n
area <\/th> peri <\/th> shape <\/th> perm <\/th> <\/tr> <\/thead>
4990 <\/td> 2791.90 <\/td> 0.09 <\/td> 6.30 <\/td> <\/tr>\n
7002 <\/td> 3892.60 <\/td> 0.15 <\/td> 6.30 <\/td> <\/tr>\n
7558 <\/td> 3930.66 <\/td> 0.18 <\/td> 6.30 <\/td> <\/tr>\n
7352 <\/td> 3869.32 <\/td> 0.12 <\/td> 6.30 <\/td> <\/tr>\n
7943 <\/td> 3948.54 <\/td> 0.12 <\/td> 17.10 <\/td> <\/tr>\n
7979 <\/td> 4010.15 <\/td> 0.17 <\/td> 17.10 <\/td> <\/tr>\n
9333 <\/td> 4345.75 <\/td> 0.19 <\/td> 17.10 <\/td> <\/tr>\n
8209 <\/td> 4344.75 <\/td> 0.16 <\/td> 17.10 <\/td> <\/tr>\n
8393 <\/td> 3682.04 <\/td> 0.20 <\/td> 119.00 <\/td> <\/tr>\n
6425 <\/td> 3098.65 <\/td> 0.16 <\/td> 119.00 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/003-reactivity/tests/mytest-expected-mac/001.png b/003-reactivity/tests/mytest-expected-mac/001.png new file mode 100644 index 00000000..1ef1f62f Binary files /dev/null and b/003-reactivity/tests/mytest-expected-mac/001.png differ diff --git a/003-reactivity/tests/mytest-expected-mac/002.json b/003-reactivity/tests/mytest-expected-mac/002.json new file mode 100644 index 00000000..3133833c --- /dev/null +++ b/003-reactivity/tests/mytest-expected-mac/002.json @@ -0,0 +1,15 @@ +{ + "input": { + "caption": "Data Summary", + "dataset": "pressure", + "obs": 10 + }, + "output": { + "caption": "Data Summary", + "summary": " temperature pressure \n Min. : 0 Min. : 0.0002 \n 1st Qu.: 90 1st Qu.: 0.1800 \n Median :180 Median : 8.8000 \n Mean :180 Mean :124.3367 \n 3rd Qu.:270 3rd Qu.:126.5000 \n Max. :360 Max. :806.0000 ", + "view": "\n\n
temperature <\/th> pressure <\/th> <\/tr> <\/thead>
0.00 <\/td> 0.00 <\/td> <\/tr>\n
20.00 <\/td> 0.00 <\/td> <\/tr>\n
40.00 <\/td> 0.01 <\/td> <\/tr>\n
60.00 <\/td> 0.03 <\/td> <\/tr>\n
80.00 <\/td> 0.09 <\/td> <\/tr>\n
100.00 <\/td> 0.27 <\/td> <\/tr>\n
120.00 <\/td> 0.75 <\/td> <\/tr>\n
140.00 <\/td> 1.85 <\/td> <\/tr>\n
160.00 <\/td> 4.20 <\/td> <\/tr>\n
180.00 <\/td> 8.80 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/003-reactivity/tests/mytest-expected-mac/002.png b/003-reactivity/tests/mytest-expected-mac/002.png new file mode 100644 index 00000000..70086e68 Binary files /dev/null and b/003-reactivity/tests/mytest-expected-mac/002.png differ diff --git a/003-reactivity/tests/mytest-expected-mac/003.json b/003-reactivity/tests/mytest-expected-mac/003.json new file mode 100644 index 00000000..9fc40043 --- /dev/null +++ b/003-reactivity/tests/mytest-expected-mac/003.json @@ -0,0 +1,15 @@ +{ + "input": { + "caption": "Data Summary", + "dataset": "cars", + "obs": 10 + }, + "output": { + "caption": "Data Summary", + "summary": " speed dist \n Min. : 4.0 Min. : 2.00 \n 1st Qu.:12.0 1st Qu.: 26.00 \n Median :15.0 Median : 36.00 \n Mean :15.4 Mean : 42.98 \n 3rd Qu.:19.0 3rd Qu.: 56.00 \n Max. :25.0 Max. :120.00 ", + "view": "\n\n
speed <\/th> dist <\/th> <\/tr> <\/thead>
4.00 <\/td> 2.00 <\/td> <\/tr>\n
4.00 <\/td> 10.00 <\/td> <\/tr>\n
7.00 <\/td> 4.00 <\/td> <\/tr>\n
7.00 <\/td> 22.00 <\/td> <\/tr>\n
8.00 <\/td> 16.00 <\/td> <\/tr>\n
9.00 <\/td> 10.00 <\/td> <\/tr>\n
10.00 <\/td> 18.00 <\/td> <\/tr>\n
10.00 <\/td> 26.00 <\/td> <\/tr>\n
10.00 <\/td> 34.00 <\/td> <\/tr>\n
11.00 <\/td> 17.00 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/003-reactivity/tests/mytest-expected-mac/003.png b/003-reactivity/tests/mytest-expected-mac/003.png new file mode 100644 index 00000000..2b046373 Binary files /dev/null and b/003-reactivity/tests/mytest-expected-mac/003.png differ diff --git a/003-reactivity/tests/mytest-expected-mac/004.json b/003-reactivity/tests/mytest-expected-mac/004.json new file mode 100644 index 00000000..3133833c --- /dev/null +++ b/003-reactivity/tests/mytest-expected-mac/004.json @@ -0,0 +1,15 @@ +{ + "input": { + "caption": "Data Summary", + "dataset": "pressure", + "obs": 10 + }, + "output": { + "caption": "Data Summary", + "summary": " temperature pressure \n Min. : 0 Min. : 0.0002 \n 1st Qu.: 90 1st Qu.: 0.1800 \n Median :180 Median : 8.8000 \n Mean :180 Mean :124.3367 \n 3rd Qu.:270 3rd Qu.:126.5000 \n Max. :360 Max. :806.0000 ", + "view": "\n\n
temperature <\/th> pressure <\/th> <\/tr> <\/thead>
0.00 <\/td> 0.00 <\/td> <\/tr>\n
20.00 <\/td> 0.00 <\/td> <\/tr>\n
40.00 <\/td> 0.01 <\/td> <\/tr>\n
60.00 <\/td> 0.03 <\/td> <\/tr>\n
80.00 <\/td> 0.09 <\/td> <\/tr>\n
100.00 <\/td> 0.27 <\/td> <\/tr>\n
120.00 <\/td> 0.75 <\/td> <\/tr>\n
140.00 <\/td> 1.85 <\/td> <\/tr>\n
160.00 <\/td> 4.20 <\/td> <\/tr>\n
180.00 <\/td> 8.80 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/003-reactivity/tests/mytest-expected-mac/004.png b/003-reactivity/tests/mytest-expected-mac/004.png new file mode 100644 index 00000000..70086e68 Binary files /dev/null and b/003-reactivity/tests/mytest-expected-mac/004.png differ diff --git a/003-reactivity/tests/mytest-expected/001.json b/003-reactivity/tests/mytest-expected/001.json new file mode 100644 index 00000000..c4a4ef66 --- /dev/null +++ b/003-reactivity/tests/mytest-expected/001.json @@ -0,0 +1,15 @@ +{ + "input": { + "caption": "Data Summary", + "dataset": "rock", + "obs": 10 + }, + "output": { + "caption": "Data Summary", + "summary": " area peri shape perm \n Min. : 1016 Min. : 308.6 Min. :0.09033 Min. : 6.30 \n 1st Qu.: 5305 1st Qu.:1414.9 1st Qu.:0.16226 1st Qu.: 76.45 \n Median : 7487 Median :2536.2 Median :0.19886 Median : 130.50 \n Mean : 7188 Mean :2682.2 Mean :0.21811 Mean : 415.45 \n 3rd Qu.: 8870 3rd Qu.:3989.5 3rd Qu.:0.26267 3rd Qu.: 777.50 \n Max. :12212 Max. :4864.2 Max. :0.46413 Max. :1300.00 ", + "view": "\n\n
area <\/th> peri <\/th> shape <\/th> perm <\/th> <\/tr> <\/thead>
4990 <\/td> 2791.90 <\/td> 0.09 <\/td> 6.30 <\/td> <\/tr>\n
7002 <\/td> 3892.60 <\/td> 0.15 <\/td> 6.30 <\/td> <\/tr>\n
7558 <\/td> 3930.66 <\/td> 0.18 <\/td> 6.30 <\/td> <\/tr>\n
7352 <\/td> 3869.32 <\/td> 0.12 <\/td> 6.30 <\/td> <\/tr>\n
7943 <\/td> 3948.54 <\/td> 0.12 <\/td> 17.10 <\/td> <\/tr>\n
7979 <\/td> 4010.15 <\/td> 0.17 <\/td> 17.10 <\/td> <\/tr>\n
9333 <\/td> 4345.75 <\/td> 0.19 <\/td> 17.10 <\/td> <\/tr>\n
8209 <\/td> 4344.75 <\/td> 0.16 <\/td> 17.10 <\/td> <\/tr>\n
8393 <\/td> 3682.04 <\/td> 0.20 <\/td> 119.00 <\/td> <\/tr>\n
6425 <\/td> 3098.65 <\/td> 0.16 <\/td> 119.00 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/003-reactivity/tests/mytest-expected/001.png b/003-reactivity/tests/mytest-expected/001.png new file mode 100644 index 00000000..1ef1f62f Binary files /dev/null and b/003-reactivity/tests/mytest-expected/001.png differ diff --git a/003-reactivity/tests/mytest-expected/002.json b/003-reactivity/tests/mytest-expected/002.json new file mode 100644 index 00000000..3133833c --- /dev/null +++ b/003-reactivity/tests/mytest-expected/002.json @@ -0,0 +1,15 @@ +{ + "input": { + "caption": "Data Summary", + "dataset": "pressure", + "obs": 10 + }, + "output": { + "caption": "Data Summary", + "summary": " temperature pressure \n Min. : 0 Min. : 0.0002 \n 1st Qu.: 90 1st Qu.: 0.1800 \n Median :180 Median : 8.8000 \n Mean :180 Mean :124.3367 \n 3rd Qu.:270 3rd Qu.:126.5000 \n Max. :360 Max. :806.0000 ", + "view": "\n\n
temperature <\/th> pressure <\/th> <\/tr> <\/thead>
0.00 <\/td> 0.00 <\/td> <\/tr>\n
20.00 <\/td> 0.00 <\/td> <\/tr>\n
40.00 <\/td> 0.01 <\/td> <\/tr>\n
60.00 <\/td> 0.03 <\/td> <\/tr>\n
80.00 <\/td> 0.09 <\/td> <\/tr>\n
100.00 <\/td> 0.27 <\/td> <\/tr>\n
120.00 <\/td> 0.75 <\/td> <\/tr>\n
140.00 <\/td> 1.85 <\/td> <\/tr>\n
160.00 <\/td> 4.20 <\/td> <\/tr>\n
180.00 <\/td> 8.80 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/003-reactivity/tests/mytest-expected/002.png b/003-reactivity/tests/mytest-expected/002.png new file mode 100644 index 00000000..70086e68 Binary files /dev/null and b/003-reactivity/tests/mytest-expected/002.png differ diff --git a/003-reactivity/tests/mytest-expected/003.json b/003-reactivity/tests/mytest-expected/003.json new file mode 100644 index 00000000..9fc40043 --- /dev/null +++ b/003-reactivity/tests/mytest-expected/003.json @@ -0,0 +1,15 @@ +{ + "input": { + "caption": "Data Summary", + "dataset": "cars", + "obs": 10 + }, + "output": { + "caption": "Data Summary", + "summary": " speed dist \n Min. : 4.0 Min. : 2.00 \n 1st Qu.:12.0 1st Qu.: 26.00 \n Median :15.0 Median : 36.00 \n Mean :15.4 Mean : 42.98 \n 3rd Qu.:19.0 3rd Qu.: 56.00 \n Max. :25.0 Max. :120.00 ", + "view": "\n\n
speed <\/th> dist <\/th> <\/tr> <\/thead>
4.00 <\/td> 2.00 <\/td> <\/tr>\n
4.00 <\/td> 10.00 <\/td> <\/tr>\n
7.00 <\/td> 4.00 <\/td> <\/tr>\n
7.00 <\/td> 22.00 <\/td> <\/tr>\n
8.00 <\/td> 16.00 <\/td> <\/tr>\n
9.00 <\/td> 10.00 <\/td> <\/tr>\n
10.00 <\/td> 18.00 <\/td> <\/tr>\n
10.00 <\/td> 26.00 <\/td> <\/tr>\n
10.00 <\/td> 34.00 <\/td> <\/tr>\n
11.00 <\/td> 17.00 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/003-reactivity/tests/mytest-expected/003.png b/003-reactivity/tests/mytest-expected/003.png new file mode 100644 index 00000000..2b046373 Binary files /dev/null and b/003-reactivity/tests/mytest-expected/003.png differ diff --git a/003-reactivity/tests/mytest-expected/004.json b/003-reactivity/tests/mytest-expected/004.json new file mode 100644 index 00000000..3133833c --- /dev/null +++ b/003-reactivity/tests/mytest-expected/004.json @@ -0,0 +1,15 @@ +{ + "input": { + "caption": "Data Summary", + "dataset": "pressure", + "obs": 10 + }, + "output": { + "caption": "Data Summary", + "summary": " temperature pressure \n Min. : 0 Min. : 0.0002 \n 1st Qu.: 90 1st Qu.: 0.1800 \n Median :180 Median : 8.8000 \n Mean :180 Mean :124.3367 \n 3rd Qu.:270 3rd Qu.:126.5000 \n Max. :360 Max. :806.0000 ", + "view": "\n\n
temperature <\/th> pressure <\/th> <\/tr> <\/thead>
0.00 <\/td> 0.00 <\/td> <\/tr>\n
20.00 <\/td> 0.00 <\/td> <\/tr>\n
40.00 <\/td> 0.01 <\/td> <\/tr>\n
60.00 <\/td> 0.03 <\/td> <\/tr>\n
80.00 <\/td> 0.09 <\/td> <\/tr>\n
100.00 <\/td> 0.27 <\/td> <\/tr>\n
120.00 <\/td> 0.75 <\/td> <\/tr>\n
140.00 <\/td> 1.85 <\/td> <\/tr>\n
160.00 <\/td> 4.20 <\/td> <\/tr>\n
180.00 <\/td> 8.80 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/003-reactivity/tests/mytest-expected/004.png b/003-reactivity/tests/mytest-expected/004.png new file mode 100644 index 00000000..70086e68 Binary files /dev/null and b/003-reactivity/tests/mytest-expected/004.png differ diff --git a/003-reactivity/tests/mytest.R b/003-reactivity/tests/mytest.R new file mode 100644 index 00000000..1e34efab --- /dev/null +++ b/003-reactivity/tests/mytest.R @@ -0,0 +1,11 @@ +app <- ShinyDriver$new("../", seed = 100,shinyOptions = list(display.mode = "normal")) +app$snapshotInit("mytest") + +app$snapshot() +app$setInputs(dataset = "pressure") +app$snapshot() +app$setInputs(dataset = "cars") +app$snapshot() +app$setInputs(dataset = "rock") +app$setInputs(dataset = "pressure") +app$snapshot() diff --git a/004-mpg/tests/mytest-expected-mac/001.json b/004-mpg/tests/mytest-expected-mac/001.json new file mode 100644 index 00000000..8926af1f --- /dev/null +++ b/004-mpg/tests/mytest-expected-mac/001.json @@ -0,0 +1,46 @@ +{ + "input": { + "outliers": true, + "variable": "cyl" + }, + "output": { + "caption": "mpg ~ cyl", + "mpgPlot": { + "src": "[image data sha1: d27247ffcee681f6b99989856ad2c31dd962dff4]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 0.38, + "right": 3.62, + "bottom": 9.46, + "top": 34.84 + }, + "range": { + "left": 59.04, + "right": 600.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/004-mpg/tests/mytest-expected-mac/001.png b/004-mpg/tests/mytest-expected-mac/001.png new file mode 100644 index 00000000..92ccfca8 Binary files /dev/null and b/004-mpg/tests/mytest-expected-mac/001.png differ diff --git a/004-mpg/tests/mytest-expected-mac/002.json b/004-mpg/tests/mytest-expected-mac/002.json new file mode 100644 index 00000000..229a2a3e --- /dev/null +++ b/004-mpg/tests/mytest-expected-mac/002.json @@ -0,0 +1,46 @@ +{ + "input": { + "outliers": true, + "variable": "am" + }, + "output": { + "caption": "mpg ~ am", + "mpgPlot": { + "src": "[image data sha1: a8d5e04486c4074290f2cf7a727aeea8d0eb97e4]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 0.42, + "right": 2.58, + "bottom": 9.46, + "top": 34.84 + }, + "range": { + "left": 59.04, + "right": 600.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/004-mpg/tests/mytest-expected-mac/002.png b/004-mpg/tests/mytest-expected-mac/002.png new file mode 100644 index 00000000..bdc12197 Binary files /dev/null and b/004-mpg/tests/mytest-expected-mac/002.png differ diff --git a/004-mpg/tests/mytest-expected-mac/003.json b/004-mpg/tests/mytest-expected-mac/003.json new file mode 100644 index 00000000..0c133366 --- /dev/null +++ b/004-mpg/tests/mytest-expected-mac/003.json @@ -0,0 +1,46 @@ +{ + "input": { + "outliers": true, + "variable": "gear" + }, + "output": { + "caption": "mpg ~ gear", + "mpgPlot": { + "src": "[image data sha1: 11aa3b60b0ebaea3b97dd7434944107c4ee02ed0]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 0.38, + "right": 3.62, + "bottom": 9.46, + "top": 34.84 + }, + "range": { + "left": 59.04, + "right": 600.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/004-mpg/tests/mytest-expected-mac/003.png b/004-mpg/tests/mytest-expected-mac/003.png new file mode 100644 index 00000000..0b90b043 Binary files /dev/null and b/004-mpg/tests/mytest-expected-mac/003.png differ diff --git a/004-mpg/tests/mytest-expected-mac/004.json b/004-mpg/tests/mytest-expected-mac/004.json new file mode 100644 index 00000000..217c230e --- /dev/null +++ b/004-mpg/tests/mytest-expected-mac/004.json @@ -0,0 +1,46 @@ +{ + "input": { + "outliers": false, + "variable": "gear" + }, + "output": { + "caption": "mpg ~ gear", + "mpgPlot": { + "src": "[image data sha1: 11aa3b60b0ebaea3b97dd7434944107c4ee02ed0]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 0.38, + "right": 3.62, + "bottom": 9.46, + "top": 34.84 + }, + "range": { + "left": 59.04, + "right": 600.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/004-mpg/tests/mytest-expected-mac/004.png b/004-mpg/tests/mytest-expected-mac/004.png new file mode 100644 index 00000000..08c50e71 Binary files /dev/null and b/004-mpg/tests/mytest-expected-mac/004.png differ diff --git a/004-mpg/tests/mytest-expected-mac/005.json b/004-mpg/tests/mytest-expected-mac/005.json new file mode 100644 index 00000000..86908247 --- /dev/null +++ b/004-mpg/tests/mytest-expected-mac/005.json @@ -0,0 +1,46 @@ +{ + "input": { + "outliers": false, + "variable": "cyl" + }, + "output": { + "caption": "mpg ~ cyl", + "mpgPlot": { + "src": "[image data sha1: a5c37a590ef62dafeb0e4562e2d06afb0ceb3dae]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 0.38, + "right": 3.62, + "bottom": 12.476, + "top": 34.724 + }, + "range": { + "left": 59.04, + "right": 600.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/004-mpg/tests/mytest-expected-mac/005.png b/004-mpg/tests/mytest-expected-mac/005.png new file mode 100644 index 00000000..09380691 Binary files /dev/null and b/004-mpg/tests/mytest-expected-mac/005.png differ diff --git a/004-mpg/tests/mytest-expected-mac/006.json b/004-mpg/tests/mytest-expected-mac/006.json new file mode 100644 index 00000000..0a3ec682 --- /dev/null +++ b/004-mpg/tests/mytest-expected-mac/006.json @@ -0,0 +1,46 @@ +{ + "input": { + "outliers": false, + "variable": "am" + }, + "output": { + "caption": "mpg ~ am", + "mpgPlot": { + "src": "[image data sha1: a8d5e04486c4074290f2cf7a727aeea8d0eb97e4]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 0.42, + "right": 2.58, + "bottom": 9.46, + "top": 34.84 + }, + "range": { + "left": 59.04, + "right": 600.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/004-mpg/tests/mytest-expected-mac/006.png b/004-mpg/tests/mytest-expected-mac/006.png new file mode 100644 index 00000000..a98a64ef Binary files /dev/null and b/004-mpg/tests/mytest-expected-mac/006.png differ diff --git a/004-mpg/tests/mytest-expected-mac/007.json b/004-mpg/tests/mytest-expected-mac/007.json new file mode 100644 index 00000000..86908247 --- /dev/null +++ b/004-mpg/tests/mytest-expected-mac/007.json @@ -0,0 +1,46 @@ +{ + "input": { + "outliers": false, + "variable": "cyl" + }, + "output": { + "caption": "mpg ~ cyl", + "mpgPlot": { + "src": "[image data sha1: a5c37a590ef62dafeb0e4562e2d06afb0ceb3dae]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 0.38, + "right": 3.62, + "bottom": 12.476, + "top": 34.724 + }, + "range": { + "left": 59.04, + "right": 600.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/004-mpg/tests/mytest-expected-mac/007.png b/004-mpg/tests/mytest-expected-mac/007.png new file mode 100644 index 00000000..09380691 Binary files /dev/null and b/004-mpg/tests/mytest-expected-mac/007.png differ diff --git a/004-mpg/tests/mytest-expected/001.json b/004-mpg/tests/mytest-expected/001.json new file mode 100644 index 00000000..286aae74 --- /dev/null +++ b/004-mpg/tests/mytest-expected/001.json @@ -0,0 +1,46 @@ +{ + "input": { + "outliers": true, + "variable": "cyl" + }, + "output": { + "caption": "mpg ~ cyl", + "mpgPlot": { + "src": "[image data sha1: 4b71d99c5f9fa8a02786e8809e968f789f2230d6]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 0.38, + "right": 3.62, + "bottom": 9.46, + "top": 34.84 + }, + "range": { + "left": 59.04, + "right": 600.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/004-mpg/tests/mytest-expected/001.png b/004-mpg/tests/mytest-expected/001.png new file mode 100644 index 00000000..028792ab Binary files /dev/null and b/004-mpg/tests/mytest-expected/001.png differ diff --git a/004-mpg/tests/mytest-expected/002.json b/004-mpg/tests/mytest-expected/002.json new file mode 100644 index 00000000..38f20c99 --- /dev/null +++ b/004-mpg/tests/mytest-expected/002.json @@ -0,0 +1,46 @@ +{ + "input": { + "outliers": true, + "variable": "am" + }, + "output": { + "caption": "mpg ~ am", + "mpgPlot": { + "src": "[image data sha1: b07ec3a9aeb09593e8f90fc0d081a1b4b478ad78]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 0.42, + "right": 2.58, + "bottom": 9.46, + "top": 34.84 + }, + "range": { + "left": 59.04, + "right": 600.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/004-mpg/tests/mytest-expected/002.png b/004-mpg/tests/mytest-expected/002.png new file mode 100644 index 00000000..b83daedc Binary files /dev/null and b/004-mpg/tests/mytest-expected/002.png differ diff --git a/004-mpg/tests/mytest-expected/003.json b/004-mpg/tests/mytest-expected/003.json new file mode 100644 index 00000000..bfa01023 --- /dev/null +++ b/004-mpg/tests/mytest-expected/003.json @@ -0,0 +1,46 @@ +{ + "input": { + "outliers": true, + "variable": "gear" + }, + "output": { + "caption": "mpg ~ gear", + "mpgPlot": { + "src": "[image data sha1: 93d2e982c1c2b993cf155c8dfb76ae280be23edb]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 0.38, + "right": 3.62, + "bottom": 9.46, + "top": 34.84 + }, + "range": { + "left": 59.04, + "right": 600.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/004-mpg/tests/mytest-expected/003.png b/004-mpg/tests/mytest-expected/003.png new file mode 100644 index 00000000..6380e2d6 Binary files /dev/null and b/004-mpg/tests/mytest-expected/003.png differ diff --git a/004-mpg/tests/mytest-expected/004.json b/004-mpg/tests/mytest-expected/004.json new file mode 100644 index 00000000..212d2073 --- /dev/null +++ b/004-mpg/tests/mytest-expected/004.json @@ -0,0 +1,46 @@ +{ + "input": { + "outliers": false, + "variable": "gear" + }, + "output": { + "caption": "mpg ~ gear", + "mpgPlot": { + "src": "[image data sha1: 93d2e982c1c2b993cf155c8dfb76ae280be23edb]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 0.38, + "right": 3.62, + "bottom": 9.46, + "top": 34.84 + }, + "range": { + "left": 59.04, + "right": 600.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/004-mpg/tests/mytest-expected/004.png b/004-mpg/tests/mytest-expected/004.png new file mode 100644 index 00000000..b8202a73 Binary files /dev/null and b/004-mpg/tests/mytest-expected/004.png differ diff --git a/004-mpg/tests/mytest-expected/005.json b/004-mpg/tests/mytest-expected/005.json new file mode 100644 index 00000000..eb0a5a03 --- /dev/null +++ b/004-mpg/tests/mytest-expected/005.json @@ -0,0 +1,46 @@ +{ + "input": { + "outliers": false, + "variable": "cyl" + }, + "output": { + "caption": "mpg ~ cyl", + "mpgPlot": { + "src": "[image data sha1: 6a28047be9bdfb1728e747106805843ab534f164]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 0.38, + "right": 3.62, + "bottom": 12.476, + "top": 34.724 + }, + "range": { + "left": 59.04, + "right": 600.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/004-mpg/tests/mytest-expected/005.png b/004-mpg/tests/mytest-expected/005.png new file mode 100644 index 00000000..a753eb33 Binary files /dev/null and b/004-mpg/tests/mytest-expected/005.png differ diff --git a/004-mpg/tests/mytest-expected/006.json b/004-mpg/tests/mytest-expected/006.json new file mode 100644 index 00000000..46db215d --- /dev/null +++ b/004-mpg/tests/mytest-expected/006.json @@ -0,0 +1,46 @@ +{ + "input": { + "outliers": false, + "variable": "am" + }, + "output": { + "caption": "mpg ~ am", + "mpgPlot": { + "src": "[image data sha1: b07ec3a9aeb09593e8f90fc0d081a1b4b478ad78]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 0.42, + "right": 2.58, + "bottom": 9.46, + "top": 34.84 + }, + "range": { + "left": 59.04, + "right": 600.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/004-mpg/tests/mytest-expected/006.png b/004-mpg/tests/mytest-expected/006.png new file mode 100644 index 00000000..9f7138dd Binary files /dev/null and b/004-mpg/tests/mytest-expected/006.png differ diff --git a/004-mpg/tests/mytest-expected/007.json b/004-mpg/tests/mytest-expected/007.json new file mode 100644 index 00000000..eb0a5a03 --- /dev/null +++ b/004-mpg/tests/mytest-expected/007.json @@ -0,0 +1,46 @@ +{ + "input": { + "outliers": false, + "variable": "cyl" + }, + "output": { + "caption": "mpg ~ cyl", + "mpgPlot": { + "src": "[image data sha1: 6a28047be9bdfb1728e747106805843ab534f164]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 0.38, + "right": 3.62, + "bottom": 12.476, + "top": 34.724 + }, + "range": { + "left": 59.04, + "right": 600.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/004-mpg/tests/mytest-expected/007.png b/004-mpg/tests/mytest-expected/007.png new file mode 100644 index 00000000..a753eb33 Binary files /dev/null and b/004-mpg/tests/mytest-expected/007.png differ diff --git a/004-mpg/tests/mytest.R b/004-mpg/tests/mytest.R new file mode 100644 index 00000000..7bf2b3db --- /dev/null +++ b/004-mpg/tests/mytest.R @@ -0,0 +1,16 @@ +app <- ShinyDriver$new("../", seed = 100,shinyOptions = list(display.mode = "normal")) +app$snapshotInit("mytest") + +app$snapshot() +app$setInputs(variable = "am") +app$snapshot() +app$setInputs(variable = "gear") +app$snapshot() +app$setInputs(outliers = FALSE) +app$snapshot() +app$setInputs(variable = "cyl") +app$snapshot() +app$setInputs(variable = "am") +app$snapshot() +app$setInputs(variable = "cyl") +app$snapshot() diff --git a/005-sliders/tests/mytest-expected/001.json b/005-sliders/tests/mytest-expected/001.json new file mode 100644 index 00000000..90065898 --- /dev/null +++ b/005-sliders/tests/mytest-expected/001.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 1, + "decimal": 0.5, + "format": 0, + "integer": 500, + "range": [ + 200, + 500 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 500 <\/td> <\/tr>\n
Decimal <\/td> 0.5 <\/td> <\/tr>\n
Range <\/td> 200 500 <\/td> <\/tr>\n
Custom Format <\/td> 0 <\/td> <\/tr>\n
Animation <\/td> 1 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests/mytest-expected/001.png b/005-sliders/tests/mytest-expected/001.png new file mode 100644 index 00000000..f02c2742 Binary files /dev/null and b/005-sliders/tests/mytest-expected/001.png differ diff --git a/005-sliders/tests/mytest-expected/002.json b/005-sliders/tests/mytest-expected/002.json new file mode 100644 index 00000000..90065898 --- /dev/null +++ b/005-sliders/tests/mytest-expected/002.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 1, + "decimal": 0.5, + "format": 0, + "integer": 500, + "range": [ + 200, + 500 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 500 <\/td> <\/tr>\n
Decimal <\/td> 0.5 <\/td> <\/tr>\n
Range <\/td> 200 500 <\/td> <\/tr>\n
Custom Format <\/td> 0 <\/td> <\/tr>\n
Animation <\/td> 1 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests/mytest-expected/002.png b/005-sliders/tests/mytest-expected/002.png new file mode 100644 index 00000000..f02c2742 Binary files /dev/null and b/005-sliders/tests/mytest-expected/002.png differ diff --git a/005-sliders/tests/mytest-expected/003.json b/005-sliders/tests/mytest-expected/003.json new file mode 100644 index 00000000..90065898 --- /dev/null +++ b/005-sliders/tests/mytest-expected/003.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 1, + "decimal": 0.5, + "format": 0, + "integer": 500, + "range": [ + 200, + 500 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 500 <\/td> <\/tr>\n
Decimal <\/td> 0.5 <\/td> <\/tr>\n
Range <\/td> 200 500 <\/td> <\/tr>\n
Custom Format <\/td> 0 <\/td> <\/tr>\n
Animation <\/td> 1 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests/mytest-expected/003.png b/005-sliders/tests/mytest-expected/003.png new file mode 100644 index 00000000..f02c2742 Binary files /dev/null and b/005-sliders/tests/mytest-expected/003.png differ diff --git a/005-sliders/tests/mytest-expected/004.json b/005-sliders/tests/mytest-expected/004.json new file mode 100644 index 00000000..e1a98e35 --- /dev/null +++ b/005-sliders/tests/mytest-expected/004.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 1, + "decimal": 1, + "format": 0, + "integer": 32, + "range": [ + 200, + 500 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 32 <\/td> <\/tr>\n
Decimal <\/td> 1 <\/td> <\/tr>\n
Range <\/td> 200 500 <\/td> <\/tr>\n
Custom Format <\/td> 0 <\/td> <\/tr>\n
Animation <\/td> 1 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests/mytest-expected/004.png b/005-sliders/tests/mytest-expected/004.png new file mode 100644 index 00000000..9d502cb7 Binary files /dev/null and b/005-sliders/tests/mytest-expected/004.png differ diff --git a/005-sliders/tests/mytest-expected/005.json b/005-sliders/tests/mytest-expected/005.json new file mode 100644 index 00000000..0c21fee5 --- /dev/null +++ b/005-sliders/tests/mytest-expected/005.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 1, + "decimal": 1, + "format": 0, + "integer": 32, + "range": [ + 200, + 972 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 32 <\/td> <\/tr>\n
Decimal <\/td> 1 <\/td> <\/tr>\n
Range <\/td> 200 972 <\/td> <\/tr>\n
Custom Format <\/td> 0 <\/td> <\/tr>\n
Animation <\/td> 1 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests/mytest-expected/005.png b/005-sliders/tests/mytest-expected/005.png new file mode 100644 index 00000000..eaa430d2 Binary files /dev/null and b/005-sliders/tests/mytest-expected/005.png differ diff --git a/005-sliders/tests/mytest-expected/006.json b/005-sliders/tests/mytest-expected/006.json new file mode 100644 index 00000000..a68a2be7 --- /dev/null +++ b/005-sliders/tests/mytest-expected/006.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 1, + "decimal": 1, + "format": 0, + "integer": 32, + "range": [ + 584, + 972 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 32 <\/td> <\/tr>\n
Decimal <\/td> 1 <\/td> <\/tr>\n
Range <\/td> 584 972 <\/td> <\/tr>\n
Custom Format <\/td> 0 <\/td> <\/tr>\n
Animation <\/td> 1 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests/mytest-expected/006.png b/005-sliders/tests/mytest-expected/006.png new file mode 100644 index 00000000..e9bff0ec Binary files /dev/null and b/005-sliders/tests/mytest-expected/006.png differ diff --git a/005-sliders/tests/mytest-expected/007.json b/005-sliders/tests/mytest-expected/007.json new file mode 100644 index 00000000..ec80530a --- /dev/null +++ b/005-sliders/tests/mytest-expected/007.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 1, + "decimal": 1, + "format": 5000, + "integer": 32, + "range": [ + 584, + 972 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 32 <\/td> <\/tr>\n
Decimal <\/td> 1 <\/td> <\/tr>\n
Range <\/td> 584 972 <\/td> <\/tr>\n
Custom Format <\/td> 5000 <\/td> <\/tr>\n
Animation <\/td> 1 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests/mytest-expected/007.png b/005-sliders/tests/mytest-expected/007.png new file mode 100644 index 00000000..1fc1c7c7 Binary files /dev/null and b/005-sliders/tests/mytest-expected/007.png differ diff --git a/005-sliders/tests/mytest-expected/008.json b/005-sliders/tests/mytest-expected/008.json new file mode 100644 index 00000000..9024cbbc --- /dev/null +++ b/005-sliders/tests/mytest-expected/008.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 1, + "decimal": 1, + "format": 10000, + "integer": 32, + "range": [ + 584, + 972 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 32 <\/td> <\/tr>\n
Decimal <\/td> 1 <\/td> <\/tr>\n
Range <\/td> 584 972 <\/td> <\/tr>\n
Custom Format <\/td> 10000 <\/td> <\/tr>\n
Animation <\/td> 1 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests/mytest-expected/008.png b/005-sliders/tests/mytest-expected/008.png new file mode 100644 index 00000000..c49aeee6 Binary files /dev/null and b/005-sliders/tests/mytest-expected/008.png differ diff --git a/005-sliders/tests/mytest-expected/009.json b/005-sliders/tests/mytest-expected/009.json new file mode 100644 index 00000000..3cedb867 --- /dev/null +++ b/005-sliders/tests/mytest-expected/009.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 631, + "decimal": 1, + "format": 10000, + "integer": 32, + "range": [ + 584, + 972 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 32 <\/td> <\/tr>\n
Decimal <\/td> 1 <\/td> <\/tr>\n
Range <\/td> 584 972 <\/td> <\/tr>\n
Custom Format <\/td> 10000 <\/td> <\/tr>\n
Animation <\/td> 631 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests/mytest-expected/009.png b/005-sliders/tests/mytest-expected/009.png new file mode 100644 index 00000000..7000bd9d Binary files /dev/null and b/005-sliders/tests/mytest-expected/009.png differ diff --git a/005-sliders/tests/mytest-expected/010.json b/005-sliders/tests/mytest-expected/010.json new file mode 100644 index 00000000..ac96a334 --- /dev/null +++ b/005-sliders/tests/mytest-expected/010.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 1691, + "decimal": 1, + "format": 10000, + "integer": 32, + "range": [ + 584, + 972 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 32 <\/td> <\/tr>\n
Decimal <\/td> 1 <\/td> <\/tr>\n
Range <\/td> 584 972 <\/td> <\/tr>\n
Custom Format <\/td> 10000 <\/td> <\/tr>\n
Animation <\/td> 1691 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests/mytest-expected/010.png b/005-sliders/tests/mytest-expected/010.png new file mode 100644 index 00000000..d926bfe7 Binary files /dev/null and b/005-sliders/tests/mytest-expected/010.png differ diff --git a/005-sliders/tests/mytest-expected/011.json b/005-sliders/tests/mytest-expected/011.json new file mode 100644 index 00000000..f70b294a --- /dev/null +++ b/005-sliders/tests/mytest-expected/011.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 2000, + "decimal": 1, + "format": 10000, + "integer": 32, + "range": [ + 584, + 972 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 32 <\/td> <\/tr>\n
Decimal <\/td> 1 <\/td> <\/tr>\n
Range <\/td> 584 972 <\/td> <\/tr>\n
Custom Format <\/td> 10000 <\/td> <\/tr>\n
Animation <\/td> 2000 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests/mytest-expected/011.png b/005-sliders/tests/mytest-expected/011.png new file mode 100644 index 00000000..06c17eea Binary files /dev/null and b/005-sliders/tests/mytest-expected/011.png differ diff --git a/005-sliders/tests/mytest.R b/005-sliders/tests/mytest.R new file mode 100644 index 00000000..b4fb8185 --- /dev/null +++ b/005-sliders/tests/mytest.R @@ -0,0 +1,23 @@ +app <- ShinyDriver$new("../", seed = 100,shinyOptions = list(display.mode = "normal")) +app$snapshotInit("mytest") + +app$snapshot() +app$snapshot() +app$snapshot() +app$setInputs(decimal = 1) +app$setInputs(integer = 32) +app$snapshot() +app$setInputs(range = c(200, 972)) +app$snapshot() +app$setInputs(range = c(584, 972)) +app$snapshot() +app$setInputs(format = 5000) +app$snapshot() +app$setInputs(format = 10000) +app$snapshot() +app$setInputs(animation = 631) +app$snapshot() +app$setInputs(animation = 1691) +app$snapshot() +app$setInputs(animation = 2000) +app$snapshot() diff --git a/005-sliders/tests/shinytests/mytest-expected-mac/001.json b/005-sliders/tests/shinytests/mytest-expected-mac/001.json new file mode 100644 index 00000000..90065898 --- /dev/null +++ b/005-sliders/tests/shinytests/mytest-expected-mac/001.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 1, + "decimal": 0.5, + "format": 0, + "integer": 500, + "range": [ + 200, + 500 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 500 <\/td> <\/tr>\n
Decimal <\/td> 0.5 <\/td> <\/tr>\n
Range <\/td> 200 500 <\/td> <\/tr>\n
Custom Format <\/td> 0 <\/td> <\/tr>\n
Animation <\/td> 1 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests/shinytests/mytest-expected-mac/001.png b/005-sliders/tests/shinytests/mytest-expected-mac/001.png new file mode 100644 index 00000000..03206294 Binary files /dev/null and b/005-sliders/tests/shinytests/mytest-expected-mac/001.png differ diff --git a/005-sliders/tests/shinytests/mytest-expected-mac/002.json b/005-sliders/tests/shinytests/mytest-expected-mac/002.json new file mode 100644 index 00000000..1bc2395f --- /dev/null +++ b/005-sliders/tests/shinytests/mytest-expected-mac/002.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 1, + "decimal": 1, + "format": 0, + "integer": 500, + "range": [ + 200, + 500 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 500 <\/td> <\/tr>\n
Decimal <\/td> 1 <\/td> <\/tr>\n
Range <\/td> 200 500 <\/td> <\/tr>\n
Custom Format <\/td> 0 <\/td> <\/tr>\n
Animation <\/td> 1 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests/shinytests/mytest-expected-mac/002.png b/005-sliders/tests/shinytests/mytest-expected-mac/002.png new file mode 100644 index 00000000..08a366bd Binary files /dev/null and b/005-sliders/tests/shinytests/mytest-expected-mac/002.png differ diff --git a/005-sliders/tests/shinytests/mytest-expected-mac/003.json b/005-sliders/tests/shinytests/mytest-expected-mac/003.json new file mode 100644 index 00000000..7909b3b4 --- /dev/null +++ b/005-sliders/tests/shinytests/mytest-expected-mac/003.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 1051, + "decimal": 1, + "format": 7500, + "integer": 500, + "range": [ + 200, + 1000 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 500 <\/td> <\/tr>\n
Decimal <\/td> 1 <\/td> <\/tr>\n
Range <\/td> 200 1000 <\/td> <\/tr>\n
Custom Format <\/td> 7500 <\/td> <\/tr>\n
Animation <\/td> 1051 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests/shinytests/mytest-expected-mac/003.png b/005-sliders/tests/shinytests/mytest-expected-mac/003.png new file mode 100644 index 00000000..41de2adb Binary files /dev/null and b/005-sliders/tests/shinytests/mytest-expected-mac/003.png differ diff --git a/005-sliders/tests/shinytests/mytest-expected-mac/004.json b/005-sliders/tests/shinytests/mytest-expected-mac/004.json new file mode 100644 index 00000000..e3c1f51e --- /dev/null +++ b/005-sliders/tests/shinytests/mytest-expected-mac/004.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 1051, + "decimal": 1, + "format": 0, + "integer": 500, + "range": [ + 200, + 1000 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 500 <\/td> <\/tr>\n
Decimal <\/td> 1 <\/td> <\/tr>\n
Range <\/td> 200 1000 <\/td> <\/tr>\n
Custom Format <\/td> 0 <\/td> <\/tr>\n
Animation <\/td> 1051 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests/shinytests/mytest-expected-mac/004.png b/005-sliders/tests/shinytests/mytest-expected-mac/004.png new file mode 100644 index 00000000..059a4474 Binary files /dev/null and b/005-sliders/tests/shinytests/mytest-expected-mac/004.png differ diff --git a/005-sliders/tests/shinytests/mytest-expected-mac/005.json b/005-sliders/tests/shinytests/mytest-expected-mac/005.json new file mode 100644 index 00000000..e022a767 --- /dev/null +++ b/005-sliders/tests/shinytests/mytest-expected-mac/005.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 1051, + "decimal": 0.3, + "format": 0, + "integer": 500, + "range": [ + 200, + 727 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 500 <\/td> <\/tr>\n
Decimal <\/td> 0.3 <\/td> <\/tr>\n
Range <\/td> 200 727 <\/td> <\/tr>\n
Custom Format <\/td> 0 <\/td> <\/tr>\n
Animation <\/td> 1051 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests/shinytests/mytest-expected-mac/005.png b/005-sliders/tests/shinytests/mytest-expected-mac/005.png new file mode 100644 index 00000000..e8b06544 Binary files /dev/null and b/005-sliders/tests/shinytests/mytest-expected-mac/005.png differ diff --git a/005-sliders/tests/shinytests/mytest-expected-mac/006.json b/005-sliders/tests/shinytests/mytest-expected-mac/006.json new file mode 100644 index 00000000..953575a4 --- /dev/null +++ b/005-sliders/tests/shinytests/mytest-expected-mac/006.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 1051, + "decimal": 0.3, + "format": 0, + "integer": 37, + "range": [ + 200, + 727 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 37 <\/td> <\/tr>\n
Decimal <\/td> 0.3 <\/td> <\/tr>\n
Range <\/td> 200 727 <\/td> <\/tr>\n
Custom Format <\/td> 0 <\/td> <\/tr>\n
Animation <\/td> 1051 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests/shinytests/mytest-expected-mac/006.png b/005-sliders/tests/shinytests/mytest-expected-mac/006.png new file mode 100644 index 00000000..0b8606ba Binary files /dev/null and b/005-sliders/tests/shinytests/mytest-expected-mac/006.png differ diff --git a/005-sliders/tests/shinytests/mytest-expected-mac/007.json b/005-sliders/tests/shinytests/mytest-expected-mac/007.json new file mode 100644 index 00000000..f7eabef0 --- /dev/null +++ b/005-sliders/tests/shinytests/mytest-expected-mac/007.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 1051, + "decimal": 0.3, + "format": 7500, + "integer": 37, + "range": [ + 200, + 727 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 37 <\/td> <\/tr>\n
Decimal <\/td> 0.3 <\/td> <\/tr>\n
Range <\/td> 200 727 <\/td> <\/tr>\n
Custom Format <\/td> 7500 <\/td> <\/tr>\n
Animation <\/td> 1051 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests/shinytests/mytest-expected-mac/007.png b/005-sliders/tests/shinytests/mytest-expected-mac/007.png new file mode 100644 index 00000000..bae325b5 Binary files /dev/null and b/005-sliders/tests/shinytests/mytest-expected-mac/007.png differ diff --git a/005-sliders/tests/shinytests/mytest-expected-mac/008.json b/005-sliders/tests/shinytests/mytest-expected-mac/008.json new file mode 100644 index 00000000..437ee91f --- /dev/null +++ b/005-sliders/tests/shinytests/mytest-expected-mac/008.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 2000, + "decimal": 0.3, + "format": 7500, + "integer": 37, + "range": [ + 200, + 727 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 37 <\/td> <\/tr>\n
Decimal <\/td> 0.3 <\/td> <\/tr>\n
Range <\/td> 200 727 <\/td> <\/tr>\n
Custom Format <\/td> 7500 <\/td> <\/tr>\n
Animation <\/td> 2000 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests/shinytests/mytest-expected-mac/008.png b/005-sliders/tests/shinytests/mytest-expected-mac/008.png new file mode 100644 index 00000000..ced41714 Binary files /dev/null and b/005-sliders/tests/shinytests/mytest-expected-mac/008.png differ diff --git a/005-sliders/tests/shinytests/mytest-expected/001.json b/005-sliders/tests/shinytests/mytest-expected/001.json new file mode 100644 index 00000000..90065898 --- /dev/null +++ b/005-sliders/tests/shinytests/mytest-expected/001.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 1, + "decimal": 0.5, + "format": 0, + "integer": 500, + "range": [ + 200, + 500 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 500 <\/td> <\/tr>\n
Decimal <\/td> 0.5 <\/td> <\/tr>\n
Range <\/td> 200 500 <\/td> <\/tr>\n
Custom Format <\/td> 0 <\/td> <\/tr>\n
Animation <\/td> 1 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests/shinytests/mytest-expected/001.png b/005-sliders/tests/shinytests/mytest-expected/001.png new file mode 100644 index 00000000..04c6ea83 Binary files /dev/null and b/005-sliders/tests/shinytests/mytest-expected/001.png differ diff --git a/005-sliders/tests/shinytests/mytest-expected/002.json b/005-sliders/tests/shinytests/mytest-expected/002.json new file mode 100644 index 00000000..1bc2395f --- /dev/null +++ b/005-sliders/tests/shinytests/mytest-expected/002.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 1, + "decimal": 1, + "format": 0, + "integer": 500, + "range": [ + 200, + 500 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 500 <\/td> <\/tr>\n
Decimal <\/td> 1 <\/td> <\/tr>\n
Range <\/td> 200 500 <\/td> <\/tr>\n
Custom Format <\/td> 0 <\/td> <\/tr>\n
Animation <\/td> 1 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests/shinytests/mytest-expected/002.png b/005-sliders/tests/shinytests/mytest-expected/002.png new file mode 100644 index 00000000..08a366bd Binary files /dev/null and b/005-sliders/tests/shinytests/mytest-expected/002.png differ diff --git a/005-sliders/tests/shinytests/mytest-expected/003.json b/005-sliders/tests/shinytests/mytest-expected/003.json new file mode 100644 index 00000000..7909b3b4 --- /dev/null +++ b/005-sliders/tests/shinytests/mytest-expected/003.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 1051, + "decimal": 1, + "format": 7500, + "integer": 500, + "range": [ + 200, + 1000 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 500 <\/td> <\/tr>\n
Decimal <\/td> 1 <\/td> <\/tr>\n
Range <\/td> 200 1000 <\/td> <\/tr>\n
Custom Format <\/td> 7500 <\/td> <\/tr>\n
Animation <\/td> 1051 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests/shinytests/mytest-expected/003.png b/005-sliders/tests/shinytests/mytest-expected/003.png new file mode 100644 index 00000000..41de2adb Binary files /dev/null and b/005-sliders/tests/shinytests/mytest-expected/003.png differ diff --git a/005-sliders/tests/shinytests/mytest-expected/004.json b/005-sliders/tests/shinytests/mytest-expected/004.json new file mode 100644 index 00000000..e3c1f51e --- /dev/null +++ b/005-sliders/tests/shinytests/mytest-expected/004.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 1051, + "decimal": 1, + "format": 0, + "integer": 500, + "range": [ + 200, + 1000 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 500 <\/td> <\/tr>\n
Decimal <\/td> 1 <\/td> <\/tr>\n
Range <\/td> 200 1000 <\/td> <\/tr>\n
Custom Format <\/td> 0 <\/td> <\/tr>\n
Animation <\/td> 1051 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests/shinytests/mytest-expected/004.png b/005-sliders/tests/shinytests/mytest-expected/004.png new file mode 100644 index 00000000..059a4474 Binary files /dev/null and b/005-sliders/tests/shinytests/mytest-expected/004.png differ diff --git a/005-sliders/tests/shinytests/mytest-expected/005.json b/005-sliders/tests/shinytests/mytest-expected/005.json new file mode 100644 index 00000000..e022a767 --- /dev/null +++ b/005-sliders/tests/shinytests/mytest-expected/005.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 1051, + "decimal": 0.3, + "format": 0, + "integer": 500, + "range": [ + 200, + 727 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 500 <\/td> <\/tr>\n
Decimal <\/td> 0.3 <\/td> <\/tr>\n
Range <\/td> 200 727 <\/td> <\/tr>\n
Custom Format <\/td> 0 <\/td> <\/tr>\n
Animation <\/td> 1051 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests/shinytests/mytest-expected/005.png b/005-sliders/tests/shinytests/mytest-expected/005.png new file mode 100644 index 00000000..e8b06544 Binary files /dev/null and b/005-sliders/tests/shinytests/mytest-expected/005.png differ diff --git a/005-sliders/tests/shinytests/mytest-expected/006.json b/005-sliders/tests/shinytests/mytest-expected/006.json new file mode 100644 index 00000000..953575a4 --- /dev/null +++ b/005-sliders/tests/shinytests/mytest-expected/006.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 1051, + "decimal": 0.3, + "format": 0, + "integer": 37, + "range": [ + 200, + 727 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 37 <\/td> <\/tr>\n
Decimal <\/td> 0.3 <\/td> <\/tr>\n
Range <\/td> 200 727 <\/td> <\/tr>\n
Custom Format <\/td> 0 <\/td> <\/tr>\n
Animation <\/td> 1051 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests/shinytests/mytest-expected/006.png b/005-sliders/tests/shinytests/mytest-expected/006.png new file mode 100644 index 00000000..0b8606ba Binary files /dev/null and b/005-sliders/tests/shinytests/mytest-expected/006.png differ diff --git a/005-sliders/tests/shinytests/mytest-expected/007.json b/005-sliders/tests/shinytests/mytest-expected/007.json new file mode 100644 index 00000000..f7eabef0 --- /dev/null +++ b/005-sliders/tests/shinytests/mytest-expected/007.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 1051, + "decimal": 0.3, + "format": 7500, + "integer": 37, + "range": [ + 200, + 727 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 37 <\/td> <\/tr>\n
Decimal <\/td> 0.3 <\/td> <\/tr>\n
Range <\/td> 200 727 <\/td> <\/tr>\n
Custom Format <\/td> 7500 <\/td> <\/tr>\n
Animation <\/td> 1051 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests/shinytests/mytest-expected/007.png b/005-sliders/tests/shinytests/mytest-expected/007.png new file mode 100644 index 00000000..bae325b5 Binary files /dev/null and b/005-sliders/tests/shinytests/mytest-expected/007.png differ diff --git a/005-sliders/tests/shinytests/mytest-expected/008.json b/005-sliders/tests/shinytests/mytest-expected/008.json new file mode 100644 index 00000000..437ee91f --- /dev/null +++ b/005-sliders/tests/shinytests/mytest-expected/008.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 2000, + "decimal": 0.3, + "format": 7500, + "integer": 37, + "range": [ + 200, + 727 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 37 <\/td> <\/tr>\n
Decimal <\/td> 0.3 <\/td> <\/tr>\n
Range <\/td> 200 727 <\/td> <\/tr>\n
Custom Format <\/td> 7500 <\/td> <\/tr>\n
Animation <\/td> 2000 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests/shinytests/mytest-expected/008.png b/005-sliders/tests/shinytests/mytest-expected/008.png new file mode 100644 index 00000000..ced41714 Binary files /dev/null and b/005-sliders/tests/shinytests/mytest-expected/008.png differ diff --git a/005-sliders/tests/shinytests/mytest.R b/005-sliders/tests/shinytests/mytest.R new file mode 100644 index 00000000..90d694f8 --- /dev/null +++ b/005-sliders/tests/shinytests/mytest.R @@ -0,0 +1,22 @@ +app <- ShinyDriver$new("../../", seed = 100) +app$snapshotInit("mytest") + +app$snapshot() +app$setInputs(decimal = 1) +app$snapshot() +app$setInputs(range = c(200, 1000)) +app$setInputs(format = 7500) +app$setInputs(animation = 1051) +app$snapshot() +app$setInputs(format = 0) +app$snapshot() +app$setInputs(range = c(200, 727)) +app$setInputs(decimal = 0.3) +app$snapshot() +app$setInputs(integer = 32) +app$setInputs(integer = 37) +app$snapshot() +app$setInputs(format = 7500) +app$snapshot() +app$setInputs(animation = 2000) +app$snapshot() diff --git a/005-sliders/tests_bkp/mytest-expected/001.json b/005-sliders/tests_bkp/mytest-expected/001.json new file mode 100644 index 00000000..8ed6bc8d --- /dev/null +++ b/005-sliders/tests_bkp/mytest-expected/001.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 1, + "decimal": 0.5, + "format": 5000, + "integer": 500, + "range": [ + 200, + 500 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 500 <\/td> <\/tr>\n
Decimal <\/td> 0.5 <\/td> <\/tr>\n
Range <\/td> 200 500 <\/td> <\/tr>\n
Custom Format <\/td> 5000 <\/td> <\/tr>\n
Animation <\/td> 1 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests_bkp/mytest-expected/001.png b/005-sliders/tests_bkp/mytest-expected/001.png new file mode 100644 index 00000000..e31cc32e Binary files /dev/null and b/005-sliders/tests_bkp/mytest-expected/001.png differ diff --git a/005-sliders/tests_bkp/mytest-expected/002.json b/005-sliders/tests_bkp/mytest-expected/002.json new file mode 100644 index 00000000..944dc806 --- /dev/null +++ b/005-sliders/tests_bkp/mytest-expected/002.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 1, + "decimal": 1, + "format": 5000, + "integer": 500, + "range": [ + 200, + 500 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 500 <\/td> <\/tr>\n
Decimal <\/td> 1 <\/td> <\/tr>\n
Range <\/td> 200 500 <\/td> <\/tr>\n
Custom Format <\/td> 5000 <\/td> <\/tr>\n
Animation <\/td> 1 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests_bkp/mytest-expected/002.png b/005-sliders/tests_bkp/mytest-expected/002.png new file mode 100644 index 00000000..201fb3ab Binary files /dev/null and b/005-sliders/tests_bkp/mytest-expected/002.png differ diff --git a/005-sliders/tests_bkp/mytest-expected/003.json b/005-sliders/tests_bkp/mytest-expected/003.json new file mode 100644 index 00000000..822dfdb5 --- /dev/null +++ b/005-sliders/tests_bkp/mytest-expected/003.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 1, + "decimal": 1, + "format": 5000, + "integer": 167, + "range": [ + 200, + 500 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 167 <\/td> <\/tr>\n
Decimal <\/td> 1 <\/td> <\/tr>\n
Range <\/td> 200 500 <\/td> <\/tr>\n
Custom Format <\/td> 5000 <\/td> <\/tr>\n
Animation <\/td> 1 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests_bkp/mytest-expected/003.png b/005-sliders/tests_bkp/mytest-expected/003.png new file mode 100644 index 00000000..20f5f636 Binary files /dev/null and b/005-sliders/tests_bkp/mytest-expected/003.png differ diff --git a/005-sliders/tests_bkp/mytest-expected/004.json b/005-sliders/tests_bkp/mytest-expected/004.json new file mode 100644 index 00000000..0b8ee1f7 --- /dev/null +++ b/005-sliders/tests_bkp/mytest-expected/004.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 1, + "decimal": 1, + "format": 5000, + "integer": 167, + "range": [ + 200, + 861 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 167 <\/td> <\/tr>\n
Decimal <\/td> 1 <\/td> <\/tr>\n
Range <\/td> 200 861 <\/td> <\/tr>\n
Custom Format <\/td> 5000 <\/td> <\/tr>\n
Animation <\/td> 1 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests_bkp/mytest-expected/004.png b/005-sliders/tests_bkp/mytest-expected/004.png new file mode 100644 index 00000000..c5482042 Binary files /dev/null and b/005-sliders/tests_bkp/mytest-expected/004.png differ diff --git a/005-sliders/tests_bkp/mytest-expected/005.json b/005-sliders/tests_bkp/mytest-expected/005.json new file mode 100644 index 00000000..5e80cc23 --- /dev/null +++ b/005-sliders/tests_bkp/mytest-expected/005.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 1, + "decimal": 1, + "format": 10000, + "integer": 167, + "range": [ + 200, + 861 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 167 <\/td> <\/tr>\n
Decimal <\/td> 1 <\/td> <\/tr>\n
Range <\/td> 200 861 <\/td> <\/tr>\n
Custom Format <\/td> 10000 <\/td> <\/tr>\n
Animation <\/td> 1 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests_bkp/mytest-expected/005.png b/005-sliders/tests_bkp/mytest-expected/005.png new file mode 100644 index 00000000..6911abdf Binary files /dev/null and b/005-sliders/tests_bkp/mytest-expected/005.png differ diff --git a/005-sliders/tests_bkp/mytest-expected/006.json b/005-sliders/tests_bkp/mytest-expected/006.json new file mode 100644 index 00000000..0b8ee1f7 --- /dev/null +++ b/005-sliders/tests_bkp/mytest-expected/006.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 1, + "decimal": 1, + "format": 5000, + "integer": 167, + "range": [ + 200, + 861 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 167 <\/td> <\/tr>\n
Decimal <\/td> 1 <\/td> <\/tr>\n
Range <\/td> 200 861 <\/td> <\/tr>\n
Custom Format <\/td> 5000 <\/td> <\/tr>\n
Animation <\/td> 1 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests_bkp/mytest-expected/006.png b/005-sliders/tests_bkp/mytest-expected/006.png new file mode 100644 index 00000000..c5482042 Binary files /dev/null and b/005-sliders/tests_bkp/mytest-expected/006.png differ diff --git a/005-sliders/tests_bkp/mytest-expected/007.json b/005-sliders/tests_bkp/mytest-expected/007.json new file mode 100644 index 00000000..494e5246 --- /dev/null +++ b/005-sliders/tests_bkp/mytest-expected/007.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 851, + "decimal": 1, + "format": 5000, + "integer": 167, + "range": [ + 200, + 861 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 167 <\/td> <\/tr>\n
Decimal <\/td> 1 <\/td> <\/tr>\n
Range <\/td> 200 861 <\/td> <\/tr>\n
Custom Format <\/td> 5000 <\/td> <\/tr>\n
Animation <\/td> 851 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests_bkp/mytest-expected/007.png b/005-sliders/tests_bkp/mytest-expected/007.png new file mode 100644 index 00000000..ef37d9fd Binary files /dev/null and b/005-sliders/tests_bkp/mytest-expected/007.png differ diff --git a/005-sliders/tests_bkp/mytest-expected/008.json b/005-sliders/tests_bkp/mytest-expected/008.json new file mode 100644 index 00000000..0d55bb6a --- /dev/null +++ b/005-sliders/tests_bkp/mytest-expected/008.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 851, + "decimal": 1, + "format": 5000, + "integer": 167, + "range": [ + 1, + 1 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 167 <\/td> <\/tr>\n
Decimal <\/td> 1 <\/td> <\/tr>\n
Range <\/td> 1 1 <\/td> <\/tr>\n
Custom Format <\/td> 5000 <\/td> <\/tr>\n
Animation <\/td> 851 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests_bkp/mytest-expected/008.png b/005-sliders/tests_bkp/mytest-expected/008.png new file mode 100644 index 00000000..a98aab92 Binary files /dev/null and b/005-sliders/tests_bkp/mytest-expected/008.png differ diff --git a/005-sliders/tests_bkp/mytest-expected/009.json b/005-sliders/tests_bkp/mytest-expected/009.json new file mode 100644 index 00000000..ff690fba --- /dev/null +++ b/005-sliders/tests_bkp/mytest-expected/009.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 851, + "decimal": 1, + "format": 0, + "integer": 167, + "range": [ + 1, + 1 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 167 <\/td> <\/tr>\n
Decimal <\/td> 1 <\/td> <\/tr>\n
Range <\/td> 1 1 <\/td> <\/tr>\n
Custom Format <\/td> 0 <\/td> <\/tr>\n
Animation <\/td> 851 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests_bkp/mytest-expected/009.png b/005-sliders/tests_bkp/mytest-expected/009.png new file mode 100644 index 00000000..7b58c37f Binary files /dev/null and b/005-sliders/tests_bkp/mytest-expected/009.png differ diff --git a/005-sliders/tests_bkp/mytest.R b/005-sliders/tests_bkp/mytest.R new file mode 100644 index 00000000..075bb02e --- /dev/null +++ b/005-sliders/tests_bkp/mytest.R @@ -0,0 +1,23 @@ +app <- ShinyDriver$new("../", shinyOptions = list(display.mode = "normal")) +app$snapshotInit("mytest") + +app$setInputs(format = 5000) +app$snapshot() +app$setInputs(decimal = 1) +app$snapshot() +app$setInputs(integer = 167) +app$snapshot() +app$setInputs(range = c(200, 861)) +app$snapshot() +app$setInputs(format = 10000) +app$snapshot() +app$setInputs(format = 5000) +app$snapshot() +app$setInputs(animation = 851) +app$snapshot() +app$setInputs(range = c(1, 861)) +app$setInputs(range = c(1, 1)) +app$snapshot() +app$setInputs(format = 7500) +app$setInputs(format = 0) +app$snapshot() diff --git a/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/001.json b/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/001.json new file mode 100644 index 00000000..8ed6bc8d --- /dev/null +++ b/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/001.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 1, + "decimal": 0.5, + "format": 5000, + "integer": 500, + "range": [ + 200, + 500 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 500 <\/td> <\/tr>\n
Decimal <\/td> 0.5 <\/td> <\/tr>\n
Range <\/td> 200 500 <\/td> <\/tr>\n
Custom Format <\/td> 5000 <\/td> <\/tr>\n
Animation <\/td> 1 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/001.png b/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/001.png new file mode 100644 index 00000000..e31cc32e Binary files /dev/null and b/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/001.png differ diff --git a/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/002.json b/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/002.json new file mode 100644 index 00000000..944dc806 --- /dev/null +++ b/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/002.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 1, + "decimal": 1, + "format": 5000, + "integer": 500, + "range": [ + 200, + 500 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 500 <\/td> <\/tr>\n
Decimal <\/td> 1 <\/td> <\/tr>\n
Range <\/td> 200 500 <\/td> <\/tr>\n
Custom Format <\/td> 5000 <\/td> <\/tr>\n
Animation <\/td> 1 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/002.png b/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/002.png new file mode 100644 index 00000000..201fb3ab Binary files /dev/null and b/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/002.png differ diff --git a/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/003.json b/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/003.json new file mode 100644 index 00000000..822dfdb5 --- /dev/null +++ b/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/003.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 1, + "decimal": 1, + "format": 5000, + "integer": 167, + "range": [ + 200, + 500 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 167 <\/td> <\/tr>\n
Decimal <\/td> 1 <\/td> <\/tr>\n
Range <\/td> 200 500 <\/td> <\/tr>\n
Custom Format <\/td> 5000 <\/td> <\/tr>\n
Animation <\/td> 1 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/003.png b/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/003.png new file mode 100644 index 00000000..20f5f636 Binary files /dev/null and b/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/003.png differ diff --git a/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/004.json b/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/004.json new file mode 100644 index 00000000..0b8ee1f7 --- /dev/null +++ b/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/004.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 1, + "decimal": 1, + "format": 5000, + "integer": 167, + "range": [ + 200, + 861 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 167 <\/td> <\/tr>\n
Decimal <\/td> 1 <\/td> <\/tr>\n
Range <\/td> 200 861 <\/td> <\/tr>\n
Custom Format <\/td> 5000 <\/td> <\/tr>\n
Animation <\/td> 1 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/004.png b/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/004.png new file mode 100644 index 00000000..c5482042 Binary files /dev/null and b/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/004.png differ diff --git a/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/005.json b/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/005.json new file mode 100644 index 00000000..5e80cc23 --- /dev/null +++ b/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/005.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 1, + "decimal": 1, + "format": 10000, + "integer": 167, + "range": [ + 200, + 861 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 167 <\/td> <\/tr>\n
Decimal <\/td> 1 <\/td> <\/tr>\n
Range <\/td> 200 861 <\/td> <\/tr>\n
Custom Format <\/td> 10000 <\/td> <\/tr>\n
Animation <\/td> 1 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/005.png b/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/005.png new file mode 100644 index 00000000..6911abdf Binary files /dev/null and b/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/005.png differ diff --git a/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/006.json b/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/006.json new file mode 100644 index 00000000..0b8ee1f7 --- /dev/null +++ b/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/006.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 1, + "decimal": 1, + "format": 5000, + "integer": 167, + "range": [ + 200, + 861 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 167 <\/td> <\/tr>\n
Decimal <\/td> 1 <\/td> <\/tr>\n
Range <\/td> 200 861 <\/td> <\/tr>\n
Custom Format <\/td> 5000 <\/td> <\/tr>\n
Animation <\/td> 1 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/006.png b/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/006.png new file mode 100644 index 00000000..c5482042 Binary files /dev/null and b/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/006.png differ diff --git a/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/007.json b/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/007.json new file mode 100644 index 00000000..494e5246 --- /dev/null +++ b/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/007.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 851, + "decimal": 1, + "format": 5000, + "integer": 167, + "range": [ + 200, + 861 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 167 <\/td> <\/tr>\n
Decimal <\/td> 1 <\/td> <\/tr>\n
Range <\/td> 200 861 <\/td> <\/tr>\n
Custom Format <\/td> 5000 <\/td> <\/tr>\n
Animation <\/td> 851 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/007.png b/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/007.png new file mode 100644 index 00000000..ef37d9fd Binary files /dev/null and b/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/007.png differ diff --git a/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/008.json b/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/008.json new file mode 100644 index 00000000..0d55bb6a --- /dev/null +++ b/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/008.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 851, + "decimal": 1, + "format": 5000, + "integer": 167, + "range": [ + 1, + 1 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 167 <\/td> <\/tr>\n
Decimal <\/td> 1 <\/td> <\/tr>\n
Range <\/td> 1 1 <\/td> <\/tr>\n
Custom Format <\/td> 5000 <\/td> <\/tr>\n
Animation <\/td> 851 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/008.png b/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/008.png new file mode 100644 index 00000000..a98aab92 Binary files /dev/null and b/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/008.png differ diff --git a/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/009.json b/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/009.json new file mode 100644 index 00000000..ff690fba --- /dev/null +++ b/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/009.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 851, + "decimal": 1, + "format": 0, + "integer": 167, + "range": [ + 1, + 1 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 167 <\/td> <\/tr>\n
Decimal <\/td> 1 <\/td> <\/tr>\n
Range <\/td> 1 1 <\/td> <\/tr>\n
Custom Format <\/td> 0 <\/td> <\/tr>\n
Animation <\/td> 851 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/009.png b/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/009.png new file mode 100644 index 00000000..7b58c37f Binary files /dev/null and b/005-sliders/tests_bkp/shinytests_bkp/mytest-expected/009.png differ diff --git a/005-sliders/tests_bkp/shinytests_bkp/mytest.R b/005-sliders/tests_bkp/shinytests_bkp/mytest.R new file mode 100644 index 00000000..337d505e --- /dev/null +++ b/005-sliders/tests_bkp/shinytests_bkp/mytest.R @@ -0,0 +1,23 @@ +app <- ShinyDriver$new("../../", shinyOptions = list(display.mode = "normal")) +app$snapshotInit("mytest") + +app$setInputs(format = 5000) +app$snapshot() +app$setInputs(decimal = 1) +app$snapshot() +app$setInputs(integer = 167) +app$snapshot() +app$setInputs(range = c(200, 861)) +app$snapshot() +app$setInputs(format = 10000) +app$snapshot() +app$setInputs(format = 5000) +app$snapshot() +app$setInputs(animation = 851) +app$snapshot() +app$setInputs(range = c(1, 861)) +app$setInputs(range = c(1, 1)) +app$snapshot() +app$setInputs(format = 7500) +app$setInputs(format = 0) +app$snapshot() diff --git a/005-sliders/tests_bkp/test-cur/001.json b/005-sliders/tests_bkp/test-cur/001.json new file mode 100644 index 00000000..8ed6bc8d --- /dev/null +++ b/005-sliders/tests_bkp/test-cur/001.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 1, + "decimal": 0.5, + "format": 5000, + "integer": 500, + "range": [ + 200, + 500 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 500 <\/td> <\/tr>\n
Decimal <\/td> 0.5 <\/td> <\/tr>\n
Range <\/td> 200 500 <\/td> <\/tr>\n
Custom Format <\/td> 5000 <\/td> <\/tr>\n
Animation <\/td> 1 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests_bkp/test-cur/001.png b/005-sliders/tests_bkp/test-cur/001.png new file mode 100644 index 00000000..e31cc32e Binary files /dev/null and b/005-sliders/tests_bkp/test-cur/001.png differ diff --git a/005-sliders/tests_bkp/test-cur/002.json b/005-sliders/tests_bkp/test-cur/002.json new file mode 100644 index 00000000..944dc806 --- /dev/null +++ b/005-sliders/tests_bkp/test-cur/002.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 1, + "decimal": 1, + "format": 5000, + "integer": 500, + "range": [ + 200, + 500 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 500 <\/td> <\/tr>\n
Decimal <\/td> 1 <\/td> <\/tr>\n
Range <\/td> 200 500 <\/td> <\/tr>\n
Custom Format <\/td> 5000 <\/td> <\/tr>\n
Animation <\/td> 1 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests_bkp/test-cur/002.png b/005-sliders/tests_bkp/test-cur/002.png new file mode 100644 index 00000000..201fb3ab Binary files /dev/null and b/005-sliders/tests_bkp/test-cur/002.png differ diff --git a/005-sliders/tests_bkp/test-cur/003.json b/005-sliders/tests_bkp/test-cur/003.json new file mode 100644 index 00000000..822dfdb5 --- /dev/null +++ b/005-sliders/tests_bkp/test-cur/003.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 1, + "decimal": 1, + "format": 5000, + "integer": 167, + "range": [ + 200, + 500 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 167 <\/td> <\/tr>\n
Decimal <\/td> 1 <\/td> <\/tr>\n
Range <\/td> 200 500 <\/td> <\/tr>\n
Custom Format <\/td> 5000 <\/td> <\/tr>\n
Animation <\/td> 1 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests_bkp/test-cur/003.png b/005-sliders/tests_bkp/test-cur/003.png new file mode 100644 index 00000000..20f5f636 Binary files /dev/null and b/005-sliders/tests_bkp/test-cur/003.png differ diff --git a/005-sliders/tests_bkp/test-cur/004.json b/005-sliders/tests_bkp/test-cur/004.json new file mode 100644 index 00000000..0b8ee1f7 --- /dev/null +++ b/005-sliders/tests_bkp/test-cur/004.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 1, + "decimal": 1, + "format": 5000, + "integer": 167, + "range": [ + 200, + 861 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 167 <\/td> <\/tr>\n
Decimal <\/td> 1 <\/td> <\/tr>\n
Range <\/td> 200 861 <\/td> <\/tr>\n
Custom Format <\/td> 5000 <\/td> <\/tr>\n
Animation <\/td> 1 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests_bkp/test-cur/004.png b/005-sliders/tests_bkp/test-cur/004.png new file mode 100644 index 00000000..c5482042 Binary files /dev/null and b/005-sliders/tests_bkp/test-cur/004.png differ diff --git a/005-sliders/tests_bkp/test-cur/005.json b/005-sliders/tests_bkp/test-cur/005.json new file mode 100644 index 00000000..5e80cc23 --- /dev/null +++ b/005-sliders/tests_bkp/test-cur/005.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 1, + "decimal": 1, + "format": 10000, + "integer": 167, + "range": [ + 200, + 861 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 167 <\/td> <\/tr>\n
Decimal <\/td> 1 <\/td> <\/tr>\n
Range <\/td> 200 861 <\/td> <\/tr>\n
Custom Format <\/td> 10000 <\/td> <\/tr>\n
Animation <\/td> 1 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests_bkp/test-cur/005.png b/005-sliders/tests_bkp/test-cur/005.png new file mode 100644 index 00000000..6911abdf Binary files /dev/null and b/005-sliders/tests_bkp/test-cur/005.png differ diff --git a/005-sliders/tests_bkp/test-cur/006.json b/005-sliders/tests_bkp/test-cur/006.json new file mode 100644 index 00000000..0b8ee1f7 --- /dev/null +++ b/005-sliders/tests_bkp/test-cur/006.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 1, + "decimal": 1, + "format": 5000, + "integer": 167, + "range": [ + 200, + 861 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 167 <\/td> <\/tr>\n
Decimal <\/td> 1 <\/td> <\/tr>\n
Range <\/td> 200 861 <\/td> <\/tr>\n
Custom Format <\/td> 5000 <\/td> <\/tr>\n
Animation <\/td> 1 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests_bkp/test-cur/006.png b/005-sliders/tests_bkp/test-cur/006.png new file mode 100644 index 00000000..c5482042 Binary files /dev/null and b/005-sliders/tests_bkp/test-cur/006.png differ diff --git a/005-sliders/tests_bkp/test-cur/007.json b/005-sliders/tests_bkp/test-cur/007.json new file mode 100644 index 00000000..494e5246 --- /dev/null +++ b/005-sliders/tests_bkp/test-cur/007.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 851, + "decimal": 1, + "format": 5000, + "integer": 167, + "range": [ + 200, + 861 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 167 <\/td> <\/tr>\n
Decimal <\/td> 1 <\/td> <\/tr>\n
Range <\/td> 200 861 <\/td> <\/tr>\n
Custom Format <\/td> 5000 <\/td> <\/tr>\n
Animation <\/td> 851 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests_bkp/test-cur/007.png b/005-sliders/tests_bkp/test-cur/007.png new file mode 100644 index 00000000..ef37d9fd Binary files /dev/null and b/005-sliders/tests_bkp/test-cur/007.png differ diff --git a/005-sliders/tests_bkp/test-cur/008.json b/005-sliders/tests_bkp/test-cur/008.json new file mode 100644 index 00000000..0d55bb6a --- /dev/null +++ b/005-sliders/tests_bkp/test-cur/008.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 851, + "decimal": 1, + "format": 5000, + "integer": 167, + "range": [ + 1, + 1 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 167 <\/td> <\/tr>\n
Decimal <\/td> 1 <\/td> <\/tr>\n
Range <\/td> 1 1 <\/td> <\/tr>\n
Custom Format <\/td> 5000 <\/td> <\/tr>\n
Animation <\/td> 851 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests_bkp/test-cur/008.png b/005-sliders/tests_bkp/test-cur/008.png new file mode 100644 index 00000000..a98aab92 Binary files /dev/null and b/005-sliders/tests_bkp/test-cur/008.png differ diff --git a/005-sliders/tests_bkp/test-cur/009.json b/005-sliders/tests_bkp/test-cur/009.json new file mode 100644 index 00000000..ff690fba --- /dev/null +++ b/005-sliders/tests_bkp/test-cur/009.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 851, + "decimal": 1, + "format": 0, + "integer": 167, + "range": [ + 1, + 1 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 167 <\/td> <\/tr>\n
Decimal <\/td> 1 <\/td> <\/tr>\n
Range <\/td> 1 1 <\/td> <\/tr>\n
Custom Format <\/td> 0 <\/td> <\/tr>\n
Animation <\/td> 851 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests_bkp/test-cur/009.png b/005-sliders/tests_bkp/test-cur/009.png new file mode 100644 index 00000000..7b58c37f Binary files /dev/null and b/005-sliders/tests_bkp/test-cur/009.png differ diff --git a/005-sliders/tests_bkp/test-exp/001.json b/005-sliders/tests_bkp/test-exp/001.json new file mode 100644 index 00000000..8ed6bc8d --- /dev/null +++ b/005-sliders/tests_bkp/test-exp/001.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 1, + "decimal": 0.5, + "format": 5000, + "integer": 500, + "range": [ + 200, + 500 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 500 <\/td> <\/tr>\n
Decimal <\/td> 0.5 <\/td> <\/tr>\n
Range <\/td> 200 500 <\/td> <\/tr>\n
Custom Format <\/td> 5000 <\/td> <\/tr>\n
Animation <\/td> 1 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests_bkp/test-exp/001.png b/005-sliders/tests_bkp/test-exp/001.png new file mode 100644 index 00000000..edf9d5e4 Binary files /dev/null and b/005-sliders/tests_bkp/test-exp/001.png differ diff --git a/005-sliders/tests_bkp/test-exp/002.json b/005-sliders/tests_bkp/test-exp/002.json new file mode 100644 index 00000000..944dc806 --- /dev/null +++ b/005-sliders/tests_bkp/test-exp/002.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 1, + "decimal": 1, + "format": 5000, + "integer": 500, + "range": [ + 200, + 500 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 500 <\/td> <\/tr>\n
Decimal <\/td> 1 <\/td> <\/tr>\n
Range <\/td> 200 500 <\/td> <\/tr>\n
Custom Format <\/td> 5000 <\/td> <\/tr>\n
Animation <\/td> 1 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests_bkp/test-exp/002.png b/005-sliders/tests_bkp/test-exp/002.png new file mode 100644 index 00000000..b9bd5d93 Binary files /dev/null and b/005-sliders/tests_bkp/test-exp/002.png differ diff --git a/005-sliders/tests_bkp/test-exp/003.json b/005-sliders/tests_bkp/test-exp/003.json new file mode 100644 index 00000000..822dfdb5 --- /dev/null +++ b/005-sliders/tests_bkp/test-exp/003.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 1, + "decimal": 1, + "format": 5000, + "integer": 167, + "range": [ + 200, + 500 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 167 <\/td> <\/tr>\n
Decimal <\/td> 1 <\/td> <\/tr>\n
Range <\/td> 200 500 <\/td> <\/tr>\n
Custom Format <\/td> 5000 <\/td> <\/tr>\n
Animation <\/td> 1 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests_bkp/test-exp/003.png b/005-sliders/tests_bkp/test-exp/003.png new file mode 100644 index 00000000..2c8c53e8 Binary files /dev/null and b/005-sliders/tests_bkp/test-exp/003.png differ diff --git a/005-sliders/tests_bkp/test-exp/004.json b/005-sliders/tests_bkp/test-exp/004.json new file mode 100644 index 00000000..0b8ee1f7 --- /dev/null +++ b/005-sliders/tests_bkp/test-exp/004.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 1, + "decimal": 1, + "format": 5000, + "integer": 167, + "range": [ + 200, + 861 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 167 <\/td> <\/tr>\n
Decimal <\/td> 1 <\/td> <\/tr>\n
Range <\/td> 200 861 <\/td> <\/tr>\n
Custom Format <\/td> 5000 <\/td> <\/tr>\n
Animation <\/td> 1 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests_bkp/test-exp/004.png b/005-sliders/tests_bkp/test-exp/004.png new file mode 100644 index 00000000..08048b35 Binary files /dev/null and b/005-sliders/tests_bkp/test-exp/004.png differ diff --git a/005-sliders/tests_bkp/test-exp/005.json b/005-sliders/tests_bkp/test-exp/005.json new file mode 100644 index 00000000..5e80cc23 --- /dev/null +++ b/005-sliders/tests_bkp/test-exp/005.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 1, + "decimal": 1, + "format": 10000, + "integer": 167, + "range": [ + 200, + 861 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 167 <\/td> <\/tr>\n
Decimal <\/td> 1 <\/td> <\/tr>\n
Range <\/td> 200 861 <\/td> <\/tr>\n
Custom Format <\/td> 10000 <\/td> <\/tr>\n
Animation <\/td> 1 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests_bkp/test-exp/005.png b/005-sliders/tests_bkp/test-exp/005.png new file mode 100644 index 00000000..aa695bcc Binary files /dev/null and b/005-sliders/tests_bkp/test-exp/005.png differ diff --git a/005-sliders/tests_bkp/test-exp/006.json b/005-sliders/tests_bkp/test-exp/006.json new file mode 100644 index 00000000..0b8ee1f7 --- /dev/null +++ b/005-sliders/tests_bkp/test-exp/006.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 1, + "decimal": 1, + "format": 5000, + "integer": 167, + "range": [ + 200, + 861 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 167 <\/td> <\/tr>\n
Decimal <\/td> 1 <\/td> <\/tr>\n
Range <\/td> 200 861 <\/td> <\/tr>\n
Custom Format <\/td> 5000 <\/td> <\/tr>\n
Animation <\/td> 1 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests_bkp/test-exp/006.png b/005-sliders/tests_bkp/test-exp/006.png new file mode 100644 index 00000000..08048b35 Binary files /dev/null and b/005-sliders/tests_bkp/test-exp/006.png differ diff --git a/005-sliders/tests_bkp/test-exp/007.json b/005-sliders/tests_bkp/test-exp/007.json new file mode 100644 index 00000000..494e5246 --- /dev/null +++ b/005-sliders/tests_bkp/test-exp/007.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 851, + "decimal": 1, + "format": 5000, + "integer": 167, + "range": [ + 200, + 861 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 167 <\/td> <\/tr>\n
Decimal <\/td> 1 <\/td> <\/tr>\n
Range <\/td> 200 861 <\/td> <\/tr>\n
Custom Format <\/td> 5000 <\/td> <\/tr>\n
Animation <\/td> 851 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests_bkp/test-exp/007.png b/005-sliders/tests_bkp/test-exp/007.png new file mode 100644 index 00000000..6c6ec6aa Binary files /dev/null and b/005-sliders/tests_bkp/test-exp/007.png differ diff --git a/005-sliders/tests_bkp/test-exp/008.json b/005-sliders/tests_bkp/test-exp/008.json new file mode 100644 index 00000000..0d55bb6a --- /dev/null +++ b/005-sliders/tests_bkp/test-exp/008.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 851, + "decimal": 1, + "format": 5000, + "integer": 167, + "range": [ + 1, + 1 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 167 <\/td> <\/tr>\n
Decimal <\/td> 1 <\/td> <\/tr>\n
Range <\/td> 1 1 <\/td> <\/tr>\n
Custom Format <\/td> 5000 <\/td> <\/tr>\n
Animation <\/td> 851 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests_bkp/test-exp/008.png b/005-sliders/tests_bkp/test-exp/008.png new file mode 100644 index 00000000..f99d8f13 Binary files /dev/null and b/005-sliders/tests_bkp/test-exp/008.png differ diff --git a/005-sliders/tests_bkp/test-exp/009.json b/005-sliders/tests_bkp/test-exp/009.json new file mode 100644 index 00000000..ff690fba --- /dev/null +++ b/005-sliders/tests_bkp/test-exp/009.json @@ -0,0 +1,18 @@ +{ + "input": { + "animation": 851, + "decimal": 1, + "format": 0, + "integer": 167, + "range": [ + 1, + 1 + ] + }, + "output": { + "values": "\n\n
Name <\/th> Value <\/th> <\/tr> <\/thead>
Integer <\/td> 167 <\/td> <\/tr>\n
Decimal <\/td> 1 <\/td> <\/tr>\n
Range <\/td> 1 1 <\/td> <\/tr>\n
Custom Format <\/td> 0 <\/td> <\/tr>\n
Animation <\/td> 851 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/005-sliders/tests_bkp/test-exp/009.png b/005-sliders/tests_bkp/test-exp/009.png new file mode 100644 index 00000000..95c89551 Binary files /dev/null and b/005-sliders/tests_bkp/test-exp/009.png differ diff --git a/006-tabsets/tests/mytest-expected-mac/001.json b/006-tabsets/tests/mytest-expected-mac/001.json new file mode 100644 index 00000000..556f0c4f --- /dev/null +++ b/006-tabsets/tests/mytest-expected-mac/001.json @@ -0,0 +1,45 @@ +{ + "input": { + "dist": "norm", + "n": 500 + }, + "output": { + "plot": { + "src": "[image data sha1: e4fcfdfd84ba655e0e85110cc8e12a00c2de14b9]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": -3.78, + "right": 3.78, + "bottom": -4.6, + "top": 119.6 + }, + "range": { + "left": 59.04, + "right": 600.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/006-tabsets/tests/mytest-expected-mac/001.png b/006-tabsets/tests/mytest-expected-mac/001.png new file mode 100644 index 00000000..5f9d1dbc Binary files /dev/null and b/006-tabsets/tests/mytest-expected-mac/001.png differ diff --git a/006-tabsets/tests/mytest-expected-mac/002.json b/006-tabsets/tests/mytest-expected-mac/002.json new file mode 100644 index 00000000..868cfd5d --- /dev/null +++ b/006-tabsets/tests/mytest-expected-mac/002.json @@ -0,0 +1,45 @@ +{ + "input": { + "dist": "unif", + "n": 500 + }, + "output": { + "plot": { + "src": "[image data sha1: c3f669d6ee8eb04f246e6349e8a54dbcf422958a]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": -0.04, + "right": 1.04, + "bottom": -2.4, + "top": 62.4 + }, + "range": { + "left": 59.04, + "right": 600.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/006-tabsets/tests/mytest-expected-mac/002.png b/006-tabsets/tests/mytest-expected-mac/002.png new file mode 100644 index 00000000..082f5adf Binary files /dev/null and b/006-tabsets/tests/mytest-expected-mac/002.png differ diff --git a/006-tabsets/tests/mytest-expected-mac/003.json b/006-tabsets/tests/mytest-expected-mac/003.json new file mode 100644 index 00000000..868cfd5d --- /dev/null +++ b/006-tabsets/tests/mytest-expected-mac/003.json @@ -0,0 +1,45 @@ +{ + "input": { + "dist": "unif", + "n": 500 + }, + "output": { + "plot": { + "src": "[image data sha1: c3f669d6ee8eb04f246e6349e8a54dbcf422958a]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": -0.04, + "right": 1.04, + "bottom": -2.4, + "top": 62.4 + }, + "range": { + "left": 59.04, + "right": 600.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/006-tabsets/tests/mytest-expected-mac/003.png b/006-tabsets/tests/mytest-expected-mac/003.png new file mode 100644 index 00000000..082f5adf Binary files /dev/null and b/006-tabsets/tests/mytest-expected-mac/003.png differ diff --git a/006-tabsets/tests/mytest-expected-mac/004.json b/006-tabsets/tests/mytest-expected-mac/004.json new file mode 100644 index 00000000..868cfd5d --- /dev/null +++ b/006-tabsets/tests/mytest-expected-mac/004.json @@ -0,0 +1,45 @@ +{ + "input": { + "dist": "unif", + "n": 500 + }, + "output": { + "plot": { + "src": "[image data sha1: c3f669d6ee8eb04f246e6349e8a54dbcf422958a]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": -0.04, + "right": 1.04, + "bottom": -2.4, + "top": 62.4 + }, + "range": { + "left": 59.04, + "right": 600.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/006-tabsets/tests/mytest-expected-mac/004.png b/006-tabsets/tests/mytest-expected-mac/004.png new file mode 100644 index 00000000..082f5adf Binary files /dev/null and b/006-tabsets/tests/mytest-expected-mac/004.png differ diff --git a/006-tabsets/tests/mytest-expected-mac/005.json b/006-tabsets/tests/mytest-expected-mac/005.json new file mode 100644 index 00000000..c9fc8e45 --- /dev/null +++ b/006-tabsets/tests/mytest-expected-mac/005.json @@ -0,0 +1,45 @@ +{ + "input": { + "dist": "lnorm", + "n": 500 + }, + "output": { + "plot": { + "src": "[image data sha1: 575ed4a33022f758099d67132ea217e19115abb8]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": -0.96, + "right": 24.96, + "bottom": -14.56, + "top": 378.56 + }, + "range": { + "left": 59.04, + "right": 600.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/006-tabsets/tests/mytest-expected-mac/005.png b/006-tabsets/tests/mytest-expected-mac/005.png new file mode 100644 index 00000000..781335f6 Binary files /dev/null and b/006-tabsets/tests/mytest-expected-mac/005.png differ diff --git a/006-tabsets/tests/mytest-expected-mac/006.json b/006-tabsets/tests/mytest-expected-mac/006.json new file mode 100644 index 00000000..70255e6d --- /dev/null +++ b/006-tabsets/tests/mytest-expected-mac/006.json @@ -0,0 +1,45 @@ +{ + "input": { + "dist": "exp", + "n": 500 + }, + "output": { + "plot": { + "src": "[image data sha1: 922bb6d7e3d9a687f2b4171a0e4876dc060cee7a]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": -0.22, + "right": 5.72, + "bottom": -7.84, + "top": 203.84 + }, + "range": { + "left": 59.04, + "right": 600.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/006-tabsets/tests/mytest-expected-mac/006.png b/006-tabsets/tests/mytest-expected-mac/006.png new file mode 100644 index 00000000..79008c0f Binary files /dev/null and b/006-tabsets/tests/mytest-expected-mac/006.png differ diff --git a/006-tabsets/tests/mytest-expected-mac/007.json b/006-tabsets/tests/mytest-expected-mac/007.json new file mode 100644 index 00000000..70255e6d --- /dev/null +++ b/006-tabsets/tests/mytest-expected-mac/007.json @@ -0,0 +1,45 @@ +{ + "input": { + "dist": "exp", + "n": 500 + }, + "output": { + "plot": { + "src": "[image data sha1: 922bb6d7e3d9a687f2b4171a0e4876dc060cee7a]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": -0.22, + "right": 5.72, + "bottom": -7.84, + "top": 203.84 + }, + "range": { + "left": 59.04, + "right": 600.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/006-tabsets/tests/mytest-expected-mac/007.png b/006-tabsets/tests/mytest-expected-mac/007.png new file mode 100644 index 00000000..79008c0f Binary files /dev/null and b/006-tabsets/tests/mytest-expected-mac/007.png differ diff --git a/006-tabsets/tests/mytest-expected-mac/008.json b/006-tabsets/tests/mytest-expected-mac/008.json new file mode 100644 index 00000000..01e38017 --- /dev/null +++ b/006-tabsets/tests/mytest-expected-mac/008.json @@ -0,0 +1,45 @@ +{ + "input": { + "dist": "norm", + "n": 500 + }, + "output": { + "plot": { + "src": "[image data sha1: 87cb356b7d97dca35104ba013998241ad1df9822]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": -3.26, + "right": 3.76, + "bottom": -4.12, + "top": 107.12 + }, + "range": { + "left": 59.04, + "right": 600.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/006-tabsets/tests/mytest-expected-mac/008.png b/006-tabsets/tests/mytest-expected-mac/008.png new file mode 100644 index 00000000..434807f0 Binary files /dev/null and b/006-tabsets/tests/mytest-expected-mac/008.png differ diff --git a/006-tabsets/tests/mytest-expected-mac/009.json b/006-tabsets/tests/mytest-expected-mac/009.json new file mode 100644 index 00000000..d02055a2 --- /dev/null +++ b/006-tabsets/tests/mytest-expected-mac/009.json @@ -0,0 +1,45 @@ +{ + "input": { + "dist": "norm", + "n": 1000 + }, + "output": { + "plot": { + "src": "[image data sha1: 83a2d3f822b65e1667f5baddcae81f278d79b286]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": -3.78, + "right": 3.78, + "bottom": -7.24, + "top": 188.24 + }, + "range": { + "left": 59.04, + "right": 600.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/006-tabsets/tests/mytest-expected-mac/009.png b/006-tabsets/tests/mytest-expected-mac/009.png new file mode 100644 index 00000000..fce1abc4 Binary files /dev/null and b/006-tabsets/tests/mytest-expected-mac/009.png differ diff --git a/006-tabsets/tests/mytest-expected-mac/010.json b/006-tabsets/tests/mytest-expected-mac/010.json new file mode 100644 index 00000000..4bf631d9 --- /dev/null +++ b/006-tabsets/tests/mytest-expected-mac/010.json @@ -0,0 +1,45 @@ +{ + "input": { + "dist": "norm", + "n": 1 + }, + "output": { + "plot": { + "src": "[image data sha1: 11d9ef80a50ad889647f7bc6e48c5011bded0872]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": -1.02, + "right": -0.48, + "bottom": -0.04, + "top": 1.04 + }, + "range": { + "left": 59.04, + "right": 600.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/006-tabsets/tests/mytest-expected-mac/010.png b/006-tabsets/tests/mytest-expected-mac/010.png new file mode 100644 index 00000000..0cdd8859 Binary files /dev/null and b/006-tabsets/tests/mytest-expected-mac/010.png differ diff --git a/006-tabsets/tests/mytest-expected-mac/011.json b/006-tabsets/tests/mytest-expected-mac/011.json new file mode 100644 index 00000000..38af2770 --- /dev/null +++ b/006-tabsets/tests/mytest-expected-mac/011.json @@ -0,0 +1,45 @@ +{ + "input": { + "dist": "norm", + "n": 511 + }, + "output": { + "plot": { + "src": "[image data sha1: 09a75f83a1048b38cd7e6dcabc04664b918ac8dd]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": -3.24, + "right": 3.24, + "bottom": -3.88, + "top": 100.88 + }, + "range": { + "left": 59.04, + "right": 600.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/006-tabsets/tests/mytest-expected-mac/011.png b/006-tabsets/tests/mytest-expected-mac/011.png new file mode 100644 index 00000000..2f89a63c Binary files /dev/null and b/006-tabsets/tests/mytest-expected-mac/011.png differ diff --git a/006-tabsets/tests/mytest-expected-mac/012.json b/006-tabsets/tests/mytest-expected-mac/012.json new file mode 100644 index 00000000..8b9030db --- /dev/null +++ b/006-tabsets/tests/mytest-expected-mac/012.json @@ -0,0 +1,45 @@ +{ + "input": { + "dist": "norm", + "n": 896 + }, + "output": { + "plot": { + "src": "[image data sha1: a6f3d141423169f2c0ba88a2c8091b86d19e00c7]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": -3.76, + "right": 3.26, + "bottom": -7.68, + "top": 199.68 + }, + "range": { + "left": 59.0399999999999, + "right": 600.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/006-tabsets/tests/mytest-expected-mac/012.png b/006-tabsets/tests/mytest-expected-mac/012.png new file mode 100644 index 00000000..3e1b466b Binary files /dev/null and b/006-tabsets/tests/mytest-expected-mac/012.png differ diff --git a/006-tabsets/tests/mytest-expected/001.json b/006-tabsets/tests/mytest-expected/001.json new file mode 100644 index 00000000..556f0c4f --- /dev/null +++ b/006-tabsets/tests/mytest-expected/001.json @@ -0,0 +1,45 @@ +{ + "input": { + "dist": "norm", + "n": 500 + }, + "output": { + "plot": { + "src": "[image data sha1: e4fcfdfd84ba655e0e85110cc8e12a00c2de14b9]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": -3.78, + "right": 3.78, + "bottom": -4.6, + "top": 119.6 + }, + "range": { + "left": 59.04, + "right": 600.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/006-tabsets/tests/mytest-expected/001.png b/006-tabsets/tests/mytest-expected/001.png new file mode 100644 index 00000000..5f9d1dbc Binary files /dev/null and b/006-tabsets/tests/mytest-expected/001.png differ diff --git a/006-tabsets/tests/mytest-expected/002.json b/006-tabsets/tests/mytest-expected/002.json new file mode 100644 index 00000000..868cfd5d --- /dev/null +++ b/006-tabsets/tests/mytest-expected/002.json @@ -0,0 +1,45 @@ +{ + "input": { + "dist": "unif", + "n": 500 + }, + "output": { + "plot": { + "src": "[image data sha1: c3f669d6ee8eb04f246e6349e8a54dbcf422958a]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": -0.04, + "right": 1.04, + "bottom": -2.4, + "top": 62.4 + }, + "range": { + "left": 59.04, + "right": 600.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/006-tabsets/tests/mytest-expected/002.png b/006-tabsets/tests/mytest-expected/002.png new file mode 100644 index 00000000..082f5adf Binary files /dev/null and b/006-tabsets/tests/mytest-expected/002.png differ diff --git a/006-tabsets/tests/mytest-expected/003.json b/006-tabsets/tests/mytest-expected/003.json new file mode 100644 index 00000000..868cfd5d --- /dev/null +++ b/006-tabsets/tests/mytest-expected/003.json @@ -0,0 +1,45 @@ +{ + "input": { + "dist": "unif", + "n": 500 + }, + "output": { + "plot": { + "src": "[image data sha1: c3f669d6ee8eb04f246e6349e8a54dbcf422958a]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": -0.04, + "right": 1.04, + "bottom": -2.4, + "top": 62.4 + }, + "range": { + "left": 59.04, + "right": 600.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/006-tabsets/tests/mytest-expected/003.png b/006-tabsets/tests/mytest-expected/003.png new file mode 100644 index 00000000..082f5adf Binary files /dev/null and b/006-tabsets/tests/mytest-expected/003.png differ diff --git a/006-tabsets/tests/mytest-expected/004.json b/006-tabsets/tests/mytest-expected/004.json new file mode 100644 index 00000000..868cfd5d --- /dev/null +++ b/006-tabsets/tests/mytest-expected/004.json @@ -0,0 +1,45 @@ +{ + "input": { + "dist": "unif", + "n": 500 + }, + "output": { + "plot": { + "src": "[image data sha1: c3f669d6ee8eb04f246e6349e8a54dbcf422958a]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": -0.04, + "right": 1.04, + "bottom": -2.4, + "top": 62.4 + }, + "range": { + "left": 59.04, + "right": 600.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/006-tabsets/tests/mytest-expected/004.png b/006-tabsets/tests/mytest-expected/004.png new file mode 100644 index 00000000..082f5adf Binary files /dev/null and b/006-tabsets/tests/mytest-expected/004.png differ diff --git a/006-tabsets/tests/mytest-expected/005.json b/006-tabsets/tests/mytest-expected/005.json new file mode 100644 index 00000000..c9fc8e45 --- /dev/null +++ b/006-tabsets/tests/mytest-expected/005.json @@ -0,0 +1,45 @@ +{ + "input": { + "dist": "lnorm", + "n": 500 + }, + "output": { + "plot": { + "src": "[image data sha1: 575ed4a33022f758099d67132ea217e19115abb8]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": -0.96, + "right": 24.96, + "bottom": -14.56, + "top": 378.56 + }, + "range": { + "left": 59.04, + "right": 600.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/006-tabsets/tests/mytest-expected/005.png b/006-tabsets/tests/mytest-expected/005.png new file mode 100644 index 00000000..781335f6 Binary files /dev/null and b/006-tabsets/tests/mytest-expected/005.png differ diff --git a/006-tabsets/tests/mytest-expected/006.json b/006-tabsets/tests/mytest-expected/006.json new file mode 100644 index 00000000..70255e6d --- /dev/null +++ b/006-tabsets/tests/mytest-expected/006.json @@ -0,0 +1,45 @@ +{ + "input": { + "dist": "exp", + "n": 500 + }, + "output": { + "plot": { + "src": "[image data sha1: 922bb6d7e3d9a687f2b4171a0e4876dc060cee7a]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": -0.22, + "right": 5.72, + "bottom": -7.84, + "top": 203.84 + }, + "range": { + "left": 59.04, + "right": 600.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/006-tabsets/tests/mytest-expected/006.png b/006-tabsets/tests/mytest-expected/006.png new file mode 100644 index 00000000..79008c0f Binary files /dev/null and b/006-tabsets/tests/mytest-expected/006.png differ diff --git a/006-tabsets/tests/mytest-expected/007.json b/006-tabsets/tests/mytest-expected/007.json new file mode 100644 index 00000000..70255e6d --- /dev/null +++ b/006-tabsets/tests/mytest-expected/007.json @@ -0,0 +1,45 @@ +{ + "input": { + "dist": "exp", + "n": 500 + }, + "output": { + "plot": { + "src": "[image data sha1: 922bb6d7e3d9a687f2b4171a0e4876dc060cee7a]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": -0.22, + "right": 5.72, + "bottom": -7.84, + "top": 203.84 + }, + "range": { + "left": 59.04, + "right": 600.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/006-tabsets/tests/mytest-expected/007.png b/006-tabsets/tests/mytest-expected/007.png new file mode 100644 index 00000000..79008c0f Binary files /dev/null and b/006-tabsets/tests/mytest-expected/007.png differ diff --git a/006-tabsets/tests/mytest-expected/008.json b/006-tabsets/tests/mytest-expected/008.json new file mode 100644 index 00000000..01e38017 --- /dev/null +++ b/006-tabsets/tests/mytest-expected/008.json @@ -0,0 +1,45 @@ +{ + "input": { + "dist": "norm", + "n": 500 + }, + "output": { + "plot": { + "src": "[image data sha1: 87cb356b7d97dca35104ba013998241ad1df9822]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": -3.26, + "right": 3.76, + "bottom": -4.12, + "top": 107.12 + }, + "range": { + "left": 59.04, + "right": 600.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/006-tabsets/tests/mytest-expected/008.png b/006-tabsets/tests/mytest-expected/008.png new file mode 100644 index 00000000..434807f0 Binary files /dev/null and b/006-tabsets/tests/mytest-expected/008.png differ diff --git a/006-tabsets/tests/mytest-expected/009.json b/006-tabsets/tests/mytest-expected/009.json new file mode 100644 index 00000000..d02055a2 --- /dev/null +++ b/006-tabsets/tests/mytest-expected/009.json @@ -0,0 +1,45 @@ +{ + "input": { + "dist": "norm", + "n": 1000 + }, + "output": { + "plot": { + "src": "[image data sha1: 83a2d3f822b65e1667f5baddcae81f278d79b286]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": -3.78, + "right": 3.78, + "bottom": -7.24, + "top": 188.24 + }, + "range": { + "left": 59.04, + "right": 600.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/006-tabsets/tests/mytest-expected/009.png b/006-tabsets/tests/mytest-expected/009.png new file mode 100644 index 00000000..fce1abc4 Binary files /dev/null and b/006-tabsets/tests/mytest-expected/009.png differ diff --git a/006-tabsets/tests/mytest-expected/010.json b/006-tabsets/tests/mytest-expected/010.json new file mode 100644 index 00000000..4bf631d9 --- /dev/null +++ b/006-tabsets/tests/mytest-expected/010.json @@ -0,0 +1,45 @@ +{ + "input": { + "dist": "norm", + "n": 1 + }, + "output": { + "plot": { + "src": "[image data sha1: 11d9ef80a50ad889647f7bc6e48c5011bded0872]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": -1.02, + "right": -0.48, + "bottom": -0.04, + "top": 1.04 + }, + "range": { + "left": 59.04, + "right": 600.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/006-tabsets/tests/mytest-expected/010.png b/006-tabsets/tests/mytest-expected/010.png new file mode 100644 index 00000000..0cdd8859 Binary files /dev/null and b/006-tabsets/tests/mytest-expected/010.png differ diff --git a/006-tabsets/tests/mytest-expected/011.json b/006-tabsets/tests/mytest-expected/011.json new file mode 100644 index 00000000..38af2770 --- /dev/null +++ b/006-tabsets/tests/mytest-expected/011.json @@ -0,0 +1,45 @@ +{ + "input": { + "dist": "norm", + "n": 511 + }, + "output": { + "plot": { + "src": "[image data sha1: 09a75f83a1048b38cd7e6dcabc04664b918ac8dd]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": -3.24, + "right": 3.24, + "bottom": -3.88, + "top": 100.88 + }, + "range": { + "left": 59.04, + "right": 600.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/006-tabsets/tests/mytest-expected/011.png b/006-tabsets/tests/mytest-expected/011.png new file mode 100644 index 00000000..2f89a63c Binary files /dev/null and b/006-tabsets/tests/mytest-expected/011.png differ diff --git a/006-tabsets/tests/mytest-expected/012.json b/006-tabsets/tests/mytest-expected/012.json new file mode 100644 index 00000000..8b9030db --- /dev/null +++ b/006-tabsets/tests/mytest-expected/012.json @@ -0,0 +1,45 @@ +{ + "input": { + "dist": "norm", + "n": 896 + }, + "output": { + "plot": { + "src": "[image data sha1: a6f3d141423169f2c0ba88a2c8091b86d19e00c7]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": -3.76, + "right": 3.26, + "bottom": -7.68, + "top": 199.68 + }, + "range": { + "left": 59.0399999999999, + "right": 600.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/006-tabsets/tests/mytest-expected/012.png b/006-tabsets/tests/mytest-expected/012.png new file mode 100644 index 00000000..3e1b466b Binary files /dev/null and b/006-tabsets/tests/mytest-expected/012.png differ diff --git a/006-tabsets/tests/mytest.R b/006-tabsets/tests/mytest.R new file mode 100644 index 00000000..7abb2a16 --- /dev/null +++ b/006-tabsets/tests/mytest.R @@ -0,0 +1,38 @@ +app <- ShinyDriver$new("../", seed = 100,shinyOptions = list(display.mode = "normal")) +Sys.sleep(3) +app$snapshotInit("mytest") +Sys.sleep(3) +app$snapshot() +app$setInputs(dist = "unif") +Sys.sleep(3) +app$snapshot() +Sys.sleep(3) +app$snapshot() +Sys.sleep(3) +app$snapshot() +app$setInputs(dist = "lnorm") +Sys.sleep(3) +app$snapshot() +app$setInputs(dist = "exp") +Sys.sleep(3) +app$snapshot() +Sys.sleep(3) +app$snapshot() +app$setInputs(dist = "norm") +Sys.sleep(3) +app$snapshot() +app$setInputs(n = 1) +app$setInputs(n = 1000) +Sys.sleep(3) +app$snapshot() +app$setInputs(n = 1) +app$setInputs(n = 107) +app$setInputs(n = 1) +Sys.sleep(3) +app$snapshot() +app$setInputs(n = 511) +Sys.sleep(3) +app$snapshot() +app$setInputs(n = 896) +Sys.sleep(3) +app$snapshot() diff --git a/007-widgets/tests/mytest-expected-mac/001.json b/007-widgets/tests/mytest-expected-mac/001.json new file mode 100644 index 00000000..88a04f21 --- /dev/null +++ b/007-widgets/tests/mytest-expected-mac/001.json @@ -0,0 +1,14 @@ +{ + "input": { + "dataset": "rock", + "obs": 10, + "update": 0 + }, + "output": { + "summary": " area peri shape perm \n Min. : 1016 Min. : 308.6 Min. :0.09033 Min. : 6.30 \n 1st Qu.: 5305 1st Qu.:1414.9 1st Qu.:0.16226 1st Qu.: 76.45 \n Median : 7487 Median :2536.2 Median :0.19886 Median : 130.50 \n Mean : 7188 Mean :2682.2 Mean :0.21811 Mean : 415.45 \n 3rd Qu.: 8870 3rd Qu.:3989.5 3rd Qu.:0.26267 3rd Qu.: 777.50 \n Max. :12212 Max. :4864.2 Max. :0.46413 Max. :1300.00 ", + "view": "\n\n
area <\/th> peri <\/th> shape <\/th> perm <\/th> <\/tr> <\/thead>
4990 <\/td> 2791.90 <\/td> 0.09 <\/td> 6.30 <\/td> <\/tr>\n
7002 <\/td> 3892.60 <\/td> 0.15 <\/td> 6.30 <\/td> <\/tr>\n
7558 <\/td> 3930.66 <\/td> 0.18 <\/td> 6.30 <\/td> <\/tr>\n
7352 <\/td> 3869.32 <\/td> 0.12 <\/td> 6.30 <\/td> <\/tr>\n
7943 <\/td> 3948.54 <\/td> 0.12 <\/td> 17.10 <\/td> <\/tr>\n
7979 <\/td> 4010.15 <\/td> 0.17 <\/td> 17.10 <\/td> <\/tr>\n
9333 <\/td> 4345.75 <\/td> 0.19 <\/td> 17.10 <\/td> <\/tr>\n
8209 <\/td> 4344.75 <\/td> 0.16 <\/td> 17.10 <\/td> <\/tr>\n
8393 <\/td> 3682.04 <\/td> 0.20 <\/td> 119.00 <\/td> <\/tr>\n
6425 <\/td> 3098.65 <\/td> 0.16 <\/td> 119.00 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/007-widgets/tests/mytest-expected-mac/001.png b/007-widgets/tests/mytest-expected-mac/001.png new file mode 100644 index 00000000..4e8cd9e0 Binary files /dev/null and b/007-widgets/tests/mytest-expected-mac/001.png differ diff --git a/007-widgets/tests/mytest-expected-mac/002.json b/007-widgets/tests/mytest-expected-mac/002.json new file mode 100644 index 00000000..546210e4 --- /dev/null +++ b/007-widgets/tests/mytest-expected-mac/002.json @@ -0,0 +1,14 @@ +{ + "input": { + "dataset": "pressure", + "obs": 10, + "update": 1 + }, + "output": { + "summary": " temperature pressure \n Min. : 0 Min. : 0.0002 \n 1st Qu.: 90 1st Qu.: 0.1800 \n Median :180 Median : 8.8000 \n Mean :180 Mean :124.3367 \n 3rd Qu.:270 3rd Qu.:126.5000 \n Max. :360 Max. :806.0000 ", + "view": "\n\n
temperature <\/th> pressure <\/th> <\/tr> <\/thead>
0.00 <\/td> 0.00 <\/td> <\/tr>\n
20.00 <\/td> 0.00 <\/td> <\/tr>\n
40.00 <\/td> 0.01 <\/td> <\/tr>\n
60.00 <\/td> 0.03 <\/td> <\/tr>\n
80.00 <\/td> 0.09 <\/td> <\/tr>\n
100.00 <\/td> 0.27 <\/td> <\/tr>\n
120.00 <\/td> 0.75 <\/td> <\/tr>\n
140.00 <\/td> 1.85 <\/td> <\/tr>\n
160.00 <\/td> 4.20 <\/td> <\/tr>\n
180.00 <\/td> 8.80 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/007-widgets/tests/mytest-expected-mac/002.png b/007-widgets/tests/mytest-expected-mac/002.png new file mode 100644 index 00000000..2870113e Binary files /dev/null and b/007-widgets/tests/mytest-expected-mac/002.png differ diff --git a/007-widgets/tests/mytest-expected-mac/003.json b/007-widgets/tests/mytest-expected-mac/003.json new file mode 100644 index 00000000..546210e4 --- /dev/null +++ b/007-widgets/tests/mytest-expected-mac/003.json @@ -0,0 +1,14 @@ +{ + "input": { + "dataset": "pressure", + "obs": 10, + "update": 1 + }, + "output": { + "summary": " temperature pressure \n Min. : 0 Min. : 0.0002 \n 1st Qu.: 90 1st Qu.: 0.1800 \n Median :180 Median : 8.8000 \n Mean :180 Mean :124.3367 \n 3rd Qu.:270 3rd Qu.:126.5000 \n Max. :360 Max. :806.0000 ", + "view": "\n\n
temperature <\/th> pressure <\/th> <\/tr> <\/thead>
0.00 <\/td> 0.00 <\/td> <\/tr>\n
20.00 <\/td> 0.00 <\/td> <\/tr>\n
40.00 <\/td> 0.01 <\/td> <\/tr>\n
60.00 <\/td> 0.03 <\/td> <\/tr>\n
80.00 <\/td> 0.09 <\/td> <\/tr>\n
100.00 <\/td> 0.27 <\/td> <\/tr>\n
120.00 <\/td> 0.75 <\/td> <\/tr>\n
140.00 <\/td> 1.85 <\/td> <\/tr>\n
160.00 <\/td> 4.20 <\/td> <\/tr>\n
180.00 <\/td> 8.80 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/007-widgets/tests/mytest-expected-mac/003.png b/007-widgets/tests/mytest-expected-mac/003.png new file mode 100644 index 00000000..2870113e Binary files /dev/null and b/007-widgets/tests/mytest-expected-mac/003.png differ diff --git a/007-widgets/tests/mytest-expected-mac/004.json b/007-widgets/tests/mytest-expected-mac/004.json new file mode 100644 index 00000000..7eff270b --- /dev/null +++ b/007-widgets/tests/mytest-expected-mac/004.json @@ -0,0 +1,14 @@ +{ + "input": { + "dataset": "cars", + "obs": 10, + "update": 1 + }, + "output": { + "summary": " temperature pressure \n Min. : 0 Min. : 0.0002 \n 1st Qu.: 90 1st Qu.: 0.1800 \n Median :180 Median : 8.8000 \n Mean :180 Mean :124.3367 \n 3rd Qu.:270 3rd Qu.:126.5000 \n Max. :360 Max. :806.0000 ", + "view": "\n\n
temperature <\/th> pressure <\/th> <\/tr> <\/thead>
0.00 <\/td> 0.00 <\/td> <\/tr>\n
20.00 <\/td> 0.00 <\/td> <\/tr>\n
40.00 <\/td> 0.01 <\/td> <\/tr>\n
60.00 <\/td> 0.03 <\/td> <\/tr>\n
80.00 <\/td> 0.09 <\/td> <\/tr>\n
100.00 <\/td> 0.27 <\/td> <\/tr>\n
120.00 <\/td> 0.75 <\/td> <\/tr>\n
140.00 <\/td> 1.85 <\/td> <\/tr>\n
160.00 <\/td> 4.20 <\/td> <\/tr>\n
180.00 <\/td> 8.80 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/007-widgets/tests/mytest-expected-mac/004.png b/007-widgets/tests/mytest-expected-mac/004.png new file mode 100644 index 00000000..da171840 Binary files /dev/null and b/007-widgets/tests/mytest-expected-mac/004.png differ diff --git a/007-widgets/tests/mytest-expected-mac/005.json b/007-widgets/tests/mytest-expected-mac/005.json new file mode 100644 index 00000000..3eec9d4a --- /dev/null +++ b/007-widgets/tests/mytest-expected-mac/005.json @@ -0,0 +1,14 @@ +{ + "input": { + "dataset": "pressure", + "obs": 0, + "update": 4 + }, + "output": { + "summary": " temperature pressure \n Min. : 0 Min. : 0.0002 \n 1st Qu.: 90 1st Qu.: 0.1800 \n Median :180 Median : 8.8000 \n Mean :180 Mean :124.3367 \n 3rd Qu.:270 3rd Qu.:126.5000 \n Max. :360 Max. :806.0000 ", + "view": "\n\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/007-widgets/tests/mytest-expected-mac/005.png b/007-widgets/tests/mytest-expected-mac/005.png new file mode 100644 index 00000000..30b990c3 Binary files /dev/null and b/007-widgets/tests/mytest-expected-mac/005.png differ diff --git a/007-widgets/tests/mytest-expected/001.json b/007-widgets/tests/mytest-expected/001.json new file mode 100644 index 00000000..88a04f21 --- /dev/null +++ b/007-widgets/tests/mytest-expected/001.json @@ -0,0 +1,14 @@ +{ + "input": { + "dataset": "rock", + "obs": 10, + "update": 0 + }, + "output": { + "summary": " area peri shape perm \n Min. : 1016 Min. : 308.6 Min. :0.09033 Min. : 6.30 \n 1st Qu.: 5305 1st Qu.:1414.9 1st Qu.:0.16226 1st Qu.: 76.45 \n Median : 7487 Median :2536.2 Median :0.19886 Median : 130.50 \n Mean : 7188 Mean :2682.2 Mean :0.21811 Mean : 415.45 \n 3rd Qu.: 8870 3rd Qu.:3989.5 3rd Qu.:0.26267 3rd Qu.: 777.50 \n Max. :12212 Max. :4864.2 Max. :0.46413 Max. :1300.00 ", + "view": "
temperature <\/th> pressure <\/th> <\/tr> <\/thead>
\n\n
area <\/th> peri <\/th> shape <\/th> perm <\/th> <\/tr> <\/thead>
4990 <\/td> 2791.90 <\/td> 0.09 <\/td> 6.30 <\/td> <\/tr>\n
7002 <\/td> 3892.60 <\/td> 0.15 <\/td> 6.30 <\/td> <\/tr>\n
7558 <\/td> 3930.66 <\/td> 0.18 <\/td> 6.30 <\/td> <\/tr>\n
7352 <\/td> 3869.32 <\/td> 0.12 <\/td> 6.30 <\/td> <\/tr>\n
7943 <\/td> 3948.54 <\/td> 0.12 <\/td> 17.10 <\/td> <\/tr>\n
7979 <\/td> 4010.15 <\/td> 0.17 <\/td> 17.10 <\/td> <\/tr>\n
9333 <\/td> 4345.75 <\/td> 0.19 <\/td> 17.10 <\/td> <\/tr>\n
8209 <\/td> 4344.75 <\/td> 0.16 <\/td> 17.10 <\/td> <\/tr>\n
8393 <\/td> 3682.04 <\/td> 0.20 <\/td> 119.00 <\/td> <\/tr>\n
6425 <\/td> 3098.65 <\/td> 0.16 <\/td> 119.00 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/007-widgets/tests/mytest-expected/001.png b/007-widgets/tests/mytest-expected/001.png new file mode 100644 index 00000000..4e8cd9e0 Binary files /dev/null and b/007-widgets/tests/mytest-expected/001.png differ diff --git a/007-widgets/tests/mytest-expected/002.json b/007-widgets/tests/mytest-expected/002.json new file mode 100644 index 00000000..546210e4 --- /dev/null +++ b/007-widgets/tests/mytest-expected/002.json @@ -0,0 +1,14 @@ +{ + "input": { + "dataset": "pressure", + "obs": 10, + "update": 1 + }, + "output": { + "summary": " temperature pressure \n Min. : 0 Min. : 0.0002 \n 1st Qu.: 90 1st Qu.: 0.1800 \n Median :180 Median : 8.8000 \n Mean :180 Mean :124.3367 \n 3rd Qu.:270 3rd Qu.:126.5000 \n Max. :360 Max. :806.0000 ", + "view": "\n\n
temperature <\/th> pressure <\/th> <\/tr> <\/thead>
0.00 <\/td> 0.00 <\/td> <\/tr>\n
20.00 <\/td> 0.00 <\/td> <\/tr>\n
40.00 <\/td> 0.01 <\/td> <\/tr>\n
60.00 <\/td> 0.03 <\/td> <\/tr>\n
80.00 <\/td> 0.09 <\/td> <\/tr>\n
100.00 <\/td> 0.27 <\/td> <\/tr>\n
120.00 <\/td> 0.75 <\/td> <\/tr>\n
140.00 <\/td> 1.85 <\/td> <\/tr>\n
160.00 <\/td> 4.20 <\/td> <\/tr>\n
180.00 <\/td> 8.80 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/007-widgets/tests/mytest-expected/002.png b/007-widgets/tests/mytest-expected/002.png new file mode 100644 index 00000000..2870113e Binary files /dev/null and b/007-widgets/tests/mytest-expected/002.png differ diff --git a/007-widgets/tests/mytest-expected/003.json b/007-widgets/tests/mytest-expected/003.json new file mode 100644 index 00000000..546210e4 --- /dev/null +++ b/007-widgets/tests/mytest-expected/003.json @@ -0,0 +1,14 @@ +{ + "input": { + "dataset": "pressure", + "obs": 10, + "update": 1 + }, + "output": { + "summary": " temperature pressure \n Min. : 0 Min. : 0.0002 \n 1st Qu.: 90 1st Qu.: 0.1800 \n Median :180 Median : 8.8000 \n Mean :180 Mean :124.3367 \n 3rd Qu.:270 3rd Qu.:126.5000 \n Max. :360 Max. :806.0000 ", + "view": "\n\n
temperature <\/th> pressure <\/th> <\/tr> <\/thead>
0.00 <\/td> 0.00 <\/td> <\/tr>\n
20.00 <\/td> 0.00 <\/td> <\/tr>\n
40.00 <\/td> 0.01 <\/td> <\/tr>\n
60.00 <\/td> 0.03 <\/td> <\/tr>\n
80.00 <\/td> 0.09 <\/td> <\/tr>\n
100.00 <\/td> 0.27 <\/td> <\/tr>\n
120.00 <\/td> 0.75 <\/td> <\/tr>\n
140.00 <\/td> 1.85 <\/td> <\/tr>\n
160.00 <\/td> 4.20 <\/td> <\/tr>\n
180.00 <\/td> 8.80 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/007-widgets/tests/mytest-expected/003.png b/007-widgets/tests/mytest-expected/003.png new file mode 100644 index 00000000..2870113e Binary files /dev/null and b/007-widgets/tests/mytest-expected/003.png differ diff --git a/007-widgets/tests/mytest-expected/004.json b/007-widgets/tests/mytest-expected/004.json new file mode 100644 index 00000000..7eff270b --- /dev/null +++ b/007-widgets/tests/mytest-expected/004.json @@ -0,0 +1,14 @@ +{ + "input": { + "dataset": "cars", + "obs": 10, + "update": 1 + }, + "output": { + "summary": " temperature pressure \n Min. : 0 Min. : 0.0002 \n 1st Qu.: 90 1st Qu.: 0.1800 \n Median :180 Median : 8.8000 \n Mean :180 Mean :124.3367 \n 3rd Qu.:270 3rd Qu.:126.5000 \n Max. :360 Max. :806.0000 ", + "view": "\n\n
temperature <\/th> pressure <\/th> <\/tr> <\/thead>
0.00 <\/td> 0.00 <\/td> <\/tr>\n
20.00 <\/td> 0.00 <\/td> <\/tr>\n
40.00 <\/td> 0.01 <\/td> <\/tr>\n
60.00 <\/td> 0.03 <\/td> <\/tr>\n
80.00 <\/td> 0.09 <\/td> <\/tr>\n
100.00 <\/td> 0.27 <\/td> <\/tr>\n
120.00 <\/td> 0.75 <\/td> <\/tr>\n
140.00 <\/td> 1.85 <\/td> <\/tr>\n
160.00 <\/td> 4.20 <\/td> <\/tr>\n
180.00 <\/td> 8.80 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/007-widgets/tests/mytest-expected/004.png b/007-widgets/tests/mytest-expected/004.png new file mode 100644 index 00000000..da171840 Binary files /dev/null and b/007-widgets/tests/mytest-expected/004.png differ diff --git a/007-widgets/tests/mytest-expected/005.json b/007-widgets/tests/mytest-expected/005.json new file mode 100644 index 00000000..3eec9d4a --- /dev/null +++ b/007-widgets/tests/mytest-expected/005.json @@ -0,0 +1,14 @@ +{ + "input": { + "dataset": "pressure", + "obs": 0, + "update": 4 + }, + "output": { + "summary": " temperature pressure \n Min. : 0 Min. : 0.0002 \n 1st Qu.: 90 1st Qu.: 0.1800 \n Median :180 Median : 8.8000 \n Mean :180 Mean :124.3367 \n 3rd Qu.:270 3rd Qu.:126.5000 \n Max. :360 Max. :806.0000 ", + "view": "\n\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/007-widgets/tests/mytest-expected/005.png b/007-widgets/tests/mytest-expected/005.png new file mode 100644 index 00000000..30b990c3 Binary files /dev/null and b/007-widgets/tests/mytest-expected/005.png differ diff --git a/007-widgets/tests/mytest.R b/007-widgets/tests/mytest.R new file mode 100644 index 00000000..feb610cf --- /dev/null +++ b/007-widgets/tests/mytest.R @@ -0,0 +1,37 @@ +app <- ShinyDriver$new("../", seed = 100,shinyOptions = list(display.mode = "normal")) +app$snapshotInit("mytest") + +app$snapshot() +app$setInputs(dataset = "pressure") +app$setInputs(update = "click") +app$snapshot() +app$snapshot() +app$setInputs(dataset = "cars") +app$snapshot() +app$setInputs(dataset = "pressure") +app$setInputs(update = "click") +app$setInputs(obs = 11) +app$setInputs(obs = 12) +app$setInputs(obs = 13) +app$setInputs(obs = 14) +app$setInputs(obs = 15) +app$setInputs(obs = 16) +app$setInputs(update = "click") +app$setInputs(obs = 15) +app$setInputs(obs = 14) +app$setInputs(obs = 13) +app$setInputs(obs = 12) +app$setInputs(obs = 11) +app$setInputs(obs = 10) +app$setInputs(obs = 9) +app$setInputs(obs = 8) +app$setInputs(obs = 7) +app$setInputs(obs = 6) +app$setInputs(obs = 5) +app$setInputs(obs = 4) +app$setInputs(obs = 3) +app$setInputs(obs = 2) +app$setInputs(obs = 1) +app$setInputs(obs = 0) +app$setInputs(update = "click") +app$snapshot() diff --git a/008-html/tests/mytest-expected-mac/001.json b/008-html/tests/mytest-expected-mac/001.json new file mode 100644 index 00000000..3a0d6458 --- /dev/null +++ b/008-html/tests/mytest-expected-mac/001.json @@ -0,0 +1,47 @@ +{ + "input": { + "dist": "norm", + "n": 500 + }, + "output": { + "plot": { + "src": "[image data sha1: ebb4bdef9bebc752bc92ebe9c649e0f8ab615455]", + "width": 976, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": -3.78, + "right": 3.78, + "bottom": -4.6, + "top": 119.6 + }, + "range": { + "left": 59.0399999999999, + "right": 945.76, + "bottom": 225.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 976, + "height": 300 + } + } + }, + "summary": " Min. 1st Qu. Median Mean 3rd Qu. Max. \n-3.32078 -0.60584 -0.06009 -0.03761 0.63328 3.30415 ", + "table": "
temperature <\/th> pressure <\/th> <\/tr> <\/thead>
\n\n
x <\/th> <\/tr> <\/thead>
-0.50 <\/td> <\/tr>\n
0.13 <\/td> <\/tr>\n
-0.08 <\/td> <\/tr>\n
0.89 <\/td> <\/tr>\n
0.12 <\/td> <\/tr>\n
0.32 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/008-html/tests/mytest-expected-mac/001.png b/008-html/tests/mytest-expected-mac/001.png new file mode 100644 index 00000000..f630667c Binary files /dev/null and b/008-html/tests/mytest-expected-mac/001.png differ diff --git a/008-html/tests/mytest-expected-mac/002.json b/008-html/tests/mytest-expected-mac/002.json new file mode 100644 index 00000000..3a0d6458 --- /dev/null +++ b/008-html/tests/mytest-expected-mac/002.json @@ -0,0 +1,47 @@ +{ + "input": { + "dist": "norm", + "n": 500 + }, + "output": { + "plot": { + "src": "[image data sha1: ebb4bdef9bebc752bc92ebe9c649e0f8ab615455]", + "width": 976, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": -3.78, + "right": 3.78, + "bottom": -4.6, + "top": 119.6 + }, + "range": { + "left": 59.0399999999999, + "right": 945.76, + "bottom": 225.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 976, + "height": 300 + } + } + }, + "summary": " Min. 1st Qu. Median Mean 3rd Qu. Max. \n-3.32078 -0.60584 -0.06009 -0.03761 0.63328 3.30415 ", + "table": "\n\n
x <\/th> <\/tr> <\/thead>
-0.50 <\/td> <\/tr>\n
0.13 <\/td> <\/tr>\n
-0.08 <\/td> <\/tr>\n
0.89 <\/td> <\/tr>\n
0.12 <\/td> <\/tr>\n
0.32 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/008-html/tests/mytest-expected-mac/002.png b/008-html/tests/mytest-expected-mac/002.png new file mode 100644 index 00000000..f630667c Binary files /dev/null and b/008-html/tests/mytest-expected-mac/002.png differ diff --git a/008-html/tests/mytest-expected-mac/003.json b/008-html/tests/mytest-expected-mac/003.json new file mode 100644 index 00000000..3a0d6458 --- /dev/null +++ b/008-html/tests/mytest-expected-mac/003.json @@ -0,0 +1,47 @@ +{ + "input": { + "dist": "norm", + "n": 500 + }, + "output": { + "plot": { + "src": "[image data sha1: ebb4bdef9bebc752bc92ebe9c649e0f8ab615455]", + "width": 976, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": -3.78, + "right": 3.78, + "bottom": -4.6, + "top": 119.6 + }, + "range": { + "left": 59.0399999999999, + "right": 945.76, + "bottom": 225.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 976, + "height": 300 + } + } + }, + "summary": " Min. 1st Qu. Median Mean 3rd Qu. Max. \n-3.32078 -0.60584 -0.06009 -0.03761 0.63328 3.30415 ", + "table": "\n\n
x <\/th> <\/tr> <\/thead>
-0.50 <\/td> <\/tr>\n
0.13 <\/td> <\/tr>\n
-0.08 <\/td> <\/tr>\n
0.89 <\/td> <\/tr>\n
0.12 <\/td> <\/tr>\n
0.32 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/008-html/tests/mytest-expected-mac/003.png b/008-html/tests/mytest-expected-mac/003.png new file mode 100644 index 00000000..f630667c Binary files /dev/null and b/008-html/tests/mytest-expected-mac/003.png differ diff --git a/008-html/tests/mytest-expected-mac/004.json b/008-html/tests/mytest-expected-mac/004.json new file mode 100644 index 00000000..3a0d6458 --- /dev/null +++ b/008-html/tests/mytest-expected-mac/004.json @@ -0,0 +1,47 @@ +{ + "input": { + "dist": "norm", + "n": 500 + }, + "output": { + "plot": { + "src": "[image data sha1: ebb4bdef9bebc752bc92ebe9c649e0f8ab615455]", + "width": 976, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": -3.78, + "right": 3.78, + "bottom": -4.6, + "top": 119.6 + }, + "range": { + "left": 59.0399999999999, + "right": 945.76, + "bottom": 225.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 976, + "height": 300 + } + } + }, + "summary": " Min. 1st Qu. Median Mean 3rd Qu. Max. \n-3.32078 -0.60584 -0.06009 -0.03761 0.63328 3.30415 ", + "table": "\n\n
x <\/th> <\/tr> <\/thead>
-0.50 <\/td> <\/tr>\n
0.13 <\/td> <\/tr>\n
-0.08 <\/td> <\/tr>\n
0.89 <\/td> <\/tr>\n
0.12 <\/td> <\/tr>\n
0.32 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/008-html/tests/mytest-expected-mac/004.png b/008-html/tests/mytest-expected-mac/004.png new file mode 100644 index 00000000..f630667c Binary files /dev/null and b/008-html/tests/mytest-expected-mac/004.png differ diff --git a/008-html/tests/mytest-expected-mac/005.json b/008-html/tests/mytest-expected-mac/005.json new file mode 100644 index 00000000..3a0d6458 --- /dev/null +++ b/008-html/tests/mytest-expected-mac/005.json @@ -0,0 +1,47 @@ +{ + "input": { + "dist": "norm", + "n": 500 + }, + "output": { + "plot": { + "src": "[image data sha1: ebb4bdef9bebc752bc92ebe9c649e0f8ab615455]", + "width": 976, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": -3.78, + "right": 3.78, + "bottom": -4.6, + "top": 119.6 + }, + "range": { + "left": 59.0399999999999, + "right": 945.76, + "bottom": 225.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 976, + "height": 300 + } + } + }, + "summary": " Min. 1st Qu. Median Mean 3rd Qu. Max. \n-3.32078 -0.60584 -0.06009 -0.03761 0.63328 3.30415 ", + "table": "\n\n
x <\/th> <\/tr> <\/thead>
-0.50 <\/td> <\/tr>\n
0.13 <\/td> <\/tr>\n
-0.08 <\/td> <\/tr>\n
0.89 <\/td> <\/tr>\n
0.12 <\/td> <\/tr>\n
0.32 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/008-html/tests/mytest-expected-mac/005.png b/008-html/tests/mytest-expected-mac/005.png new file mode 100644 index 00000000..f630667c Binary files /dev/null and b/008-html/tests/mytest-expected-mac/005.png differ diff --git a/008-html/tests/mytest-expected-mac/006.json b/008-html/tests/mytest-expected-mac/006.json new file mode 100644 index 00000000..3a0d6458 --- /dev/null +++ b/008-html/tests/mytest-expected-mac/006.json @@ -0,0 +1,47 @@ +{ + "input": { + "dist": "norm", + "n": 500 + }, + "output": { + "plot": { + "src": "[image data sha1: ebb4bdef9bebc752bc92ebe9c649e0f8ab615455]", + "width": 976, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": -3.78, + "right": 3.78, + "bottom": -4.6, + "top": 119.6 + }, + "range": { + "left": 59.0399999999999, + "right": 945.76, + "bottom": 225.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 976, + "height": 300 + } + } + }, + "summary": " Min. 1st Qu. Median Mean 3rd Qu. Max. \n-3.32078 -0.60584 -0.06009 -0.03761 0.63328 3.30415 ", + "table": "\n\n
x <\/th> <\/tr> <\/thead>
-0.50 <\/td> <\/tr>\n
0.13 <\/td> <\/tr>\n
-0.08 <\/td> <\/tr>\n
0.89 <\/td> <\/tr>\n
0.12 <\/td> <\/tr>\n
0.32 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/008-html/tests/mytest-expected-mac/006.png b/008-html/tests/mytest-expected-mac/006.png new file mode 100644 index 00000000..f630667c Binary files /dev/null and b/008-html/tests/mytest-expected-mac/006.png differ diff --git a/008-html/tests/mytest-expected/001.json b/008-html/tests/mytest-expected/001.json new file mode 100644 index 00000000..3a0d6458 --- /dev/null +++ b/008-html/tests/mytest-expected/001.json @@ -0,0 +1,47 @@ +{ + "input": { + "dist": "norm", + "n": 500 + }, + "output": { + "plot": { + "src": "[image data sha1: ebb4bdef9bebc752bc92ebe9c649e0f8ab615455]", + "width": 976, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": -3.78, + "right": 3.78, + "bottom": -4.6, + "top": 119.6 + }, + "range": { + "left": 59.0399999999999, + "right": 945.76, + "bottom": 225.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 976, + "height": 300 + } + } + }, + "summary": " Min. 1st Qu. Median Mean 3rd Qu. Max. \n-3.32078 -0.60584 -0.06009 -0.03761 0.63328 3.30415 ", + "table": "\n\n
x <\/th> <\/tr> <\/thead>
-0.50 <\/td> <\/tr>\n
0.13 <\/td> <\/tr>\n
-0.08 <\/td> <\/tr>\n
0.89 <\/td> <\/tr>\n
0.12 <\/td> <\/tr>\n
0.32 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/008-html/tests/mytest-expected/001.png b/008-html/tests/mytest-expected/001.png new file mode 100644 index 00000000..f630667c Binary files /dev/null and b/008-html/tests/mytest-expected/001.png differ diff --git a/008-html/tests/mytest-expected/002.json b/008-html/tests/mytest-expected/002.json new file mode 100644 index 00000000..3a0d6458 --- /dev/null +++ b/008-html/tests/mytest-expected/002.json @@ -0,0 +1,47 @@ +{ + "input": { + "dist": "norm", + "n": 500 + }, + "output": { + "plot": { + "src": "[image data sha1: ebb4bdef9bebc752bc92ebe9c649e0f8ab615455]", + "width": 976, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": -3.78, + "right": 3.78, + "bottom": -4.6, + "top": 119.6 + }, + "range": { + "left": 59.0399999999999, + "right": 945.76, + "bottom": 225.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 976, + "height": 300 + } + } + }, + "summary": " Min. 1st Qu. Median Mean 3rd Qu. Max. \n-3.32078 -0.60584 -0.06009 -0.03761 0.63328 3.30415 ", + "table": "\n\n
x <\/th> <\/tr> <\/thead>
-0.50 <\/td> <\/tr>\n
0.13 <\/td> <\/tr>\n
-0.08 <\/td> <\/tr>\n
0.89 <\/td> <\/tr>\n
0.12 <\/td> <\/tr>\n
0.32 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/008-html/tests/mytest-expected/002.png b/008-html/tests/mytest-expected/002.png new file mode 100644 index 00000000..f630667c Binary files /dev/null and b/008-html/tests/mytest-expected/002.png differ diff --git a/008-html/tests/mytest-expected/003.json b/008-html/tests/mytest-expected/003.json new file mode 100644 index 00000000..3a0d6458 --- /dev/null +++ b/008-html/tests/mytest-expected/003.json @@ -0,0 +1,47 @@ +{ + "input": { + "dist": "norm", + "n": 500 + }, + "output": { + "plot": { + "src": "[image data sha1: ebb4bdef9bebc752bc92ebe9c649e0f8ab615455]", + "width": 976, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": -3.78, + "right": 3.78, + "bottom": -4.6, + "top": 119.6 + }, + "range": { + "left": 59.0399999999999, + "right": 945.76, + "bottom": 225.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 976, + "height": 300 + } + } + }, + "summary": " Min. 1st Qu. Median Mean 3rd Qu. Max. \n-3.32078 -0.60584 -0.06009 -0.03761 0.63328 3.30415 ", + "table": "\n\n
x <\/th> <\/tr> <\/thead>
-0.50 <\/td> <\/tr>\n
0.13 <\/td> <\/tr>\n
-0.08 <\/td> <\/tr>\n
0.89 <\/td> <\/tr>\n
0.12 <\/td> <\/tr>\n
0.32 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/008-html/tests/mytest-expected/003.png b/008-html/tests/mytest-expected/003.png new file mode 100644 index 00000000..f630667c Binary files /dev/null and b/008-html/tests/mytest-expected/003.png differ diff --git a/008-html/tests/mytest-expected/004.json b/008-html/tests/mytest-expected/004.json new file mode 100644 index 00000000..3a0d6458 --- /dev/null +++ b/008-html/tests/mytest-expected/004.json @@ -0,0 +1,47 @@ +{ + "input": { + "dist": "norm", + "n": 500 + }, + "output": { + "plot": { + "src": "[image data sha1: ebb4bdef9bebc752bc92ebe9c649e0f8ab615455]", + "width": 976, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": -3.78, + "right": 3.78, + "bottom": -4.6, + "top": 119.6 + }, + "range": { + "left": 59.0399999999999, + "right": 945.76, + "bottom": 225.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 976, + "height": 300 + } + } + }, + "summary": " Min. 1st Qu. Median Mean 3rd Qu. Max. \n-3.32078 -0.60584 -0.06009 -0.03761 0.63328 3.30415 ", + "table": "\n\n
x <\/th> <\/tr> <\/thead>
-0.50 <\/td> <\/tr>\n
0.13 <\/td> <\/tr>\n
-0.08 <\/td> <\/tr>\n
0.89 <\/td> <\/tr>\n
0.12 <\/td> <\/tr>\n
0.32 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/008-html/tests/mytest-expected/004.png b/008-html/tests/mytest-expected/004.png new file mode 100644 index 00000000..f630667c Binary files /dev/null and b/008-html/tests/mytest-expected/004.png differ diff --git a/008-html/tests/mytest-expected/005.json b/008-html/tests/mytest-expected/005.json new file mode 100644 index 00000000..3a0d6458 --- /dev/null +++ b/008-html/tests/mytest-expected/005.json @@ -0,0 +1,47 @@ +{ + "input": { + "dist": "norm", + "n": 500 + }, + "output": { + "plot": { + "src": "[image data sha1: ebb4bdef9bebc752bc92ebe9c649e0f8ab615455]", + "width": 976, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": -3.78, + "right": 3.78, + "bottom": -4.6, + "top": 119.6 + }, + "range": { + "left": 59.0399999999999, + "right": 945.76, + "bottom": 225.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 976, + "height": 300 + } + } + }, + "summary": " Min. 1st Qu. Median Mean 3rd Qu. Max. \n-3.32078 -0.60584 -0.06009 -0.03761 0.63328 3.30415 ", + "table": "\n\n
x <\/th> <\/tr> <\/thead>
-0.50 <\/td> <\/tr>\n
0.13 <\/td> <\/tr>\n
-0.08 <\/td> <\/tr>\n
0.89 <\/td> <\/tr>\n
0.12 <\/td> <\/tr>\n
0.32 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/008-html/tests/mytest-expected/005.png b/008-html/tests/mytest-expected/005.png new file mode 100644 index 00000000..f630667c Binary files /dev/null and b/008-html/tests/mytest-expected/005.png differ diff --git a/008-html/tests/mytest-expected/006.json b/008-html/tests/mytest-expected/006.json new file mode 100644 index 00000000..3a0d6458 --- /dev/null +++ b/008-html/tests/mytest-expected/006.json @@ -0,0 +1,47 @@ +{ + "input": { + "dist": "norm", + "n": 500 + }, + "output": { + "plot": { + "src": "[image data sha1: ebb4bdef9bebc752bc92ebe9c649e0f8ab615455]", + "width": 976, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": -3.78, + "right": 3.78, + "bottom": -4.6, + "top": 119.6 + }, + "range": { + "left": 59.0399999999999, + "right": 945.76, + "bottom": 225.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 976, + "height": 300 + } + } + }, + "summary": " Min. 1st Qu. Median Mean 3rd Qu. Max. \n-3.32078 -0.60584 -0.06009 -0.03761 0.63328 3.30415 ", + "table": "\n\n
x <\/th> <\/tr> <\/thead>
-0.50 <\/td> <\/tr>\n
0.13 <\/td> <\/tr>\n
-0.08 <\/td> <\/tr>\n
0.89 <\/td> <\/tr>\n
0.12 <\/td> <\/tr>\n
0.32 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/008-html/tests/mytest-expected/006.png b/008-html/tests/mytest-expected/006.png new file mode 100644 index 00000000..f630667c Binary files /dev/null and b/008-html/tests/mytest-expected/006.png differ diff --git a/008-html/tests/mytest.R b/008-html/tests/mytest.R new file mode 100644 index 00000000..decb275a --- /dev/null +++ b/008-html/tests/mytest.R @@ -0,0 +1,15 @@ +app <- ShinyDriver$new("../", seed = 100,shinyOptions = list(display.mode = "normal")) +Sys.sleep(2) +app$snapshotInit("mytest") +Sys.sleep(2) +app$snapshot() +Sys.sleep(2) +app$snapshot() +Sys.sleep(2) +app$snapshot() +Sys.sleep(2) +app$snapshot() +Sys.sleep(2) +app$snapshot() +Sys.sleep(2) +app$snapshot() diff --git a/009-upload/tests/Rock.csv b/009-upload/tests/Rock.csv new file mode 100644 index 00000000..a5649077 --- /dev/null +++ b/009-upload/tests/Rock.csv @@ -0,0 +1,49 @@ +"area","peri","shape","perm" +4990,2791.9,0.0903296,6.3 +7002,3892.6,0.148622,6.3 +7558,3930.66,0.183312,6.3 +7352,3869.32,0.117063,6.3 +7943,3948.54,0.122417,17.1 +7979,4010.15,0.167045,17.1 +9333,4345.75,0.189651,17.1 +8209,4344.75,0.164127,17.1 +8393,3682.04,0.203654,119 +6425,3098.65,0.162394,119 +9364,4480.05,0.150944,119 +8624,3986.24,0.148141,119 +10651,4036.54,0.228595,82.4 +8868,3518.04,0.231623,82.4 +9417,3999.37,0.172567,82.4 +8874,3629.07,0.153481,82.4 +10962,4608.66,0.204314,58.6 +10743,4787.62,0.262727,58.6 +11878,4864.22,0.200071,58.6 +9867,4479.41,0.14481,58.6 +7838,3428.74,0.113852,142 +11876,4353.14,0.291029,142 +12212,4697.65,0.240077,142 +8233,3518.44,0.161865,142 +6360,1977.39,0.280887,740 +4193,1379.35,0.179455,740 +7416,1916.24,0.191802,740 +5246,1585.42,0.133083,740 +6509,1851.21,0.225214,890 +4895,1239.66,0.341273,890 +6775,1728.14,0.311646,890 +7894,1461.06,0.276016,890 +5980,1426.76,0.197653,950 +5318,990.388,0.326635,950 +7392,1350.76,0.154192,950 +7894,1461.06,0.276016,950 +3469,1376.7,0.176969,100 +1468,476.322,0.438712,100 +3524,1189.46,0.163586,100 +5267,1644.96,0.253832,100 +5048,941.543,0.328641,1300 +1016,308.642,0.230081,1300 +5605,1145.69,0.464125,1300 +8793,2280.49,0.420477,1300 +3475,1174.11,0.200744,580 +1651,597.808,0.262651,580 +5514,1455.88,0.182453,580 +9718,1485.58,0.200447,580 diff --git a/009-upload/tests/mytest-expected-mac/001.json b/009-upload/tests/mytest-expected-mac/001.json new file mode 100644 index 00000000..39b8b061 --- /dev/null +++ b/009-upload/tests/mytest-expected-mac/001.json @@ -0,0 +1,28 @@ +{ + "input": { + "disp": "head", + "file1": { + "name": [ + "Rock.csv" + ], + "size": [ + 1296 + ], + "type": [ + "text/csv" + ], + "datapath": [ + "0.csv" + ] + }, + "header": true, + "quote": "\"", + "sep": "," + }, + "output": { + "contents": "\n\n
area <\/th> peri <\/th> shape <\/th> perm <\/th> <\/tr> <\/thead>
4990 <\/td> 2791.90 <\/td> 0.09 <\/td> 6.30 <\/td> <\/tr>\n
7002 <\/td> 3892.60 <\/td> 0.15 <\/td> 6.30 <\/td> <\/tr>\n
7558 <\/td> 3930.66 <\/td> 0.18 <\/td> 6.30 <\/td> <\/tr>\n
7352 <\/td> 3869.32 <\/td> 0.12 <\/td> 6.30 <\/td> <\/tr>\n
7943 <\/td> 3948.54 <\/td> 0.12 <\/td> 17.10 <\/td> <\/tr>\n
7979 <\/td> 4010.15 <\/td> 0.17 <\/td> 17.10 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/009-upload/tests/mytest-expected-mac/001.png b/009-upload/tests/mytest-expected-mac/001.png new file mode 100644 index 00000000..5783e692 Binary files /dev/null and b/009-upload/tests/mytest-expected-mac/001.png differ diff --git a/009-upload/tests/mytest-expected-mac/002.json b/009-upload/tests/mytest-expected-mac/002.json new file mode 100644 index 00000000..e1e1f162 --- /dev/null +++ b/009-upload/tests/mytest-expected-mac/002.json @@ -0,0 +1,28 @@ +{ + "input": { + "disp": "head", + "file1": { + "name": [ + "Rock.csv" + ], + "size": [ + 1296 + ], + "type": [ + "text/csv" + ], + "datapath": [ + "0.csv" + ] + }, + "header": true, + "quote": "", + "sep": "," + }, + "output": { + "contents": "\n\n
X.area. <\/th> X.peri. <\/th> X.shape. <\/th> X.perm. <\/th> <\/tr> <\/thead>
4990 <\/td> 2791.90 <\/td> 0.09 <\/td> 6.30 <\/td> <\/tr>\n
7002 <\/td> 3892.60 <\/td> 0.15 <\/td> 6.30 <\/td> <\/tr>\n
7558 <\/td> 3930.66 <\/td> 0.18 <\/td> 6.30 <\/td> <\/tr>\n
7352 <\/td> 3869.32 <\/td> 0.12 <\/td> 6.30 <\/td> <\/tr>\n
7943 <\/td> 3948.54 <\/td> 0.12 <\/td> 17.10 <\/td> <\/tr>\n
7979 <\/td> 4010.15 <\/td> 0.17 <\/td> 17.10 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/009-upload/tests/mytest-expected-mac/002.png b/009-upload/tests/mytest-expected-mac/002.png new file mode 100644 index 00000000..78990ed9 Binary files /dev/null and b/009-upload/tests/mytest-expected-mac/002.png differ diff --git a/009-upload/tests/mytest-expected-mac/003.json b/009-upload/tests/mytest-expected-mac/003.json new file mode 100644 index 00000000..47b78fb0 --- /dev/null +++ b/009-upload/tests/mytest-expected-mac/003.json @@ -0,0 +1,28 @@ +{ + "input": { + "disp": "head", + "file1": { + "name": [ + "Rock.csv" + ], + "size": [ + 1296 + ], + "type": [ + "text/csv" + ], + "datapath": [ + "0.csv" + ] + }, + "header": true, + "quote": "", + "sep": ";" + }, + "output": { + "contents": "\n\n
X.area...peri...shape...perm. <\/th> <\/tr> <\/thead>
4990,2791.9,0.0903296,6.3 <\/td> <\/tr>\n
7002,3892.6,0.148622,6.3 <\/td> <\/tr>\n
7558,3930.66,0.183312,6.3 <\/td> <\/tr>\n
7352,3869.32,0.117063,6.3 <\/td> <\/tr>\n
7943,3948.54,0.122417,17.1 <\/td> <\/tr>\n
7979,4010.15,0.167045,17.1 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/009-upload/tests/mytest-expected-mac/003.png b/009-upload/tests/mytest-expected-mac/003.png new file mode 100644 index 00000000..4e68ecc2 Binary files /dev/null and b/009-upload/tests/mytest-expected-mac/003.png differ diff --git a/009-upload/tests/mytest-expected-mac/004.json b/009-upload/tests/mytest-expected-mac/004.json new file mode 100644 index 00000000..798f4389 --- /dev/null +++ b/009-upload/tests/mytest-expected-mac/004.json @@ -0,0 +1,28 @@ +{ + "input": { + "disp": "head", + "file1": { + "name": [ + "Rock.csv" + ], + "size": [ + 1296 + ], + "type": [ + "text/csv" + ], + "datapath": [ + "0.csv" + ] + }, + "header": true, + "quote": "", + "sep": "\t" + }, + "output": { + "contents": "\n\n
X.area...peri...shape...perm. <\/th> <\/tr> <\/thead>
4990,2791.9,0.0903296,6.3 <\/td> <\/tr>\n
7002,3892.6,0.148622,6.3 <\/td> <\/tr>\n
7558,3930.66,0.183312,6.3 <\/td> <\/tr>\n
7352,3869.32,0.117063,6.3 <\/td> <\/tr>\n
7943,3948.54,0.122417,17.1 <\/td> <\/tr>\n
7979,4010.15,0.167045,17.1 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/009-upload/tests/mytest-expected-mac/004.png b/009-upload/tests/mytest-expected-mac/004.png new file mode 100644 index 00000000..78dac65b Binary files /dev/null and b/009-upload/tests/mytest-expected-mac/004.png differ diff --git a/009-upload/tests/mytest-expected-mac/005.json b/009-upload/tests/mytest-expected-mac/005.json new file mode 100644 index 00000000..344ea0bf --- /dev/null +++ b/009-upload/tests/mytest-expected-mac/005.json @@ -0,0 +1,28 @@ +{ + "input": { + "disp": "all", + "file1": { + "name": [ + "Rock.csv" + ], + "size": [ + 1296 + ], + "type": [ + "text/csv" + ], + "datapath": [ + "0.csv" + ] + }, + "header": true, + "quote": "", + "sep": "\t" + }, + "output": { + "contents": "\n\n
X.area...peri...shape...perm. <\/th> <\/tr> <\/thead>
4990,2791.9,0.0903296,6.3 <\/td> <\/tr>\n
7002,3892.6,0.148622,6.3 <\/td> <\/tr>\n
7558,3930.66,0.183312,6.3 <\/td> <\/tr>\n
7352,3869.32,0.117063,6.3 <\/td> <\/tr>\n
7943,3948.54,0.122417,17.1 <\/td> <\/tr>\n
7979,4010.15,0.167045,17.1 <\/td> <\/tr>\n
9333,4345.75,0.189651,17.1 <\/td> <\/tr>\n
8209,4344.75,0.164127,17.1 <\/td> <\/tr>\n
8393,3682.04,0.203654,119 <\/td> <\/tr>\n
6425,3098.65,0.162394,119 <\/td> <\/tr>\n
9364,4480.05,0.150944,119 <\/td> <\/tr>\n
8624,3986.24,0.148141,119 <\/td> <\/tr>\n
10651,4036.54,0.228595,82.4 <\/td> <\/tr>\n
8868,3518.04,0.231623,82.4 <\/td> <\/tr>\n
9417,3999.37,0.172567,82.4 <\/td> <\/tr>\n
8874,3629.07,0.153481,82.4 <\/td> <\/tr>\n
10962,4608.66,0.204314,58.6 <\/td> <\/tr>\n
10743,4787.62,0.262727,58.6 <\/td> <\/tr>\n
11878,4864.22,0.200071,58.6 <\/td> <\/tr>\n
9867,4479.41,0.14481,58.6 <\/td> <\/tr>\n
7838,3428.74,0.113852,142 <\/td> <\/tr>\n
11876,4353.14,0.291029,142 <\/td> <\/tr>\n
12212,4697.65,0.240077,142 <\/td> <\/tr>\n
8233,3518.44,0.161865,142 <\/td> <\/tr>\n
6360,1977.39,0.280887,740 <\/td> <\/tr>\n
4193,1379.35,0.179455,740 <\/td> <\/tr>\n
7416,1916.24,0.191802,740 <\/td> <\/tr>\n
5246,1585.42,0.133083,740 <\/td> <\/tr>\n
6509,1851.21,0.225214,890 <\/td> <\/tr>\n
4895,1239.66,0.341273,890 <\/td> <\/tr>\n
6775,1728.14,0.311646,890 <\/td> <\/tr>\n
7894,1461.06,0.276016,890 <\/td> <\/tr>\n
5980,1426.76,0.197653,950 <\/td> <\/tr>\n
5318,990.388,0.326635,950 <\/td> <\/tr>\n
7392,1350.76,0.154192,950 <\/td> <\/tr>\n
7894,1461.06,0.276016,950 <\/td> <\/tr>\n
3469,1376.7,0.176969,100 <\/td> <\/tr>\n
1468,476.322,0.438712,100 <\/td> <\/tr>\n
3524,1189.46,0.163586,100 <\/td> <\/tr>\n
5267,1644.96,0.253832,100 <\/td> <\/tr>\n
5048,941.543,0.328641,1300 <\/td> <\/tr>\n
1016,308.642,0.230081,1300 <\/td> <\/tr>\n
5605,1145.69,0.464125,1300 <\/td> <\/tr>\n
8793,2280.49,0.420477,1300 <\/td> <\/tr>\n
3475,1174.11,0.200744,580 <\/td> <\/tr>\n
1651,597.808,0.262651,580 <\/td> <\/tr>\n
5514,1455.88,0.182453,580 <\/td> <\/tr>\n
9718,1485.58,0.200447,580 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/009-upload/tests/mytest-expected-mac/005.png b/009-upload/tests/mytest-expected-mac/005.png new file mode 100644 index 00000000..1e068b2c Binary files /dev/null and b/009-upload/tests/mytest-expected-mac/005.png differ diff --git a/009-upload/tests/mytest-expected-mac/006.json b/009-upload/tests/mytest-expected-mac/006.json new file mode 100644 index 00000000..cca667bd --- /dev/null +++ b/009-upload/tests/mytest-expected-mac/006.json @@ -0,0 +1,28 @@ +{ + "input": { + "disp": "all", + "file1": { + "name": [ + "Rock.csv" + ], + "size": [ + 1296 + ], + "type": [ + "text/csv" + ], + "datapath": [ + "0.csv" + ] + }, + "header": true, + "quote": "'", + "sep": "\t" + }, + "output": { + "contents": "\n\n
X.area...peri...shape...perm. <\/th> <\/tr> <\/thead>
4990,2791.9,0.0903296,6.3 <\/td> <\/tr>\n
7002,3892.6,0.148622,6.3 <\/td> <\/tr>\n
7558,3930.66,0.183312,6.3 <\/td> <\/tr>\n
7352,3869.32,0.117063,6.3 <\/td> <\/tr>\n
7943,3948.54,0.122417,17.1 <\/td> <\/tr>\n
7979,4010.15,0.167045,17.1 <\/td> <\/tr>\n
9333,4345.75,0.189651,17.1 <\/td> <\/tr>\n
8209,4344.75,0.164127,17.1 <\/td> <\/tr>\n
8393,3682.04,0.203654,119 <\/td> <\/tr>\n
6425,3098.65,0.162394,119 <\/td> <\/tr>\n
9364,4480.05,0.150944,119 <\/td> <\/tr>\n
8624,3986.24,0.148141,119 <\/td> <\/tr>\n
10651,4036.54,0.228595,82.4 <\/td> <\/tr>\n
8868,3518.04,0.231623,82.4 <\/td> <\/tr>\n
9417,3999.37,0.172567,82.4 <\/td> <\/tr>\n
8874,3629.07,0.153481,82.4 <\/td> <\/tr>\n
10962,4608.66,0.204314,58.6 <\/td> <\/tr>\n
10743,4787.62,0.262727,58.6 <\/td> <\/tr>\n
11878,4864.22,0.200071,58.6 <\/td> <\/tr>\n
9867,4479.41,0.14481,58.6 <\/td> <\/tr>\n
7838,3428.74,0.113852,142 <\/td> <\/tr>\n
11876,4353.14,0.291029,142 <\/td> <\/tr>\n
12212,4697.65,0.240077,142 <\/td> <\/tr>\n
8233,3518.44,0.161865,142 <\/td> <\/tr>\n
6360,1977.39,0.280887,740 <\/td> <\/tr>\n
4193,1379.35,0.179455,740 <\/td> <\/tr>\n
7416,1916.24,0.191802,740 <\/td> <\/tr>\n
5246,1585.42,0.133083,740 <\/td> <\/tr>\n
6509,1851.21,0.225214,890 <\/td> <\/tr>\n
4895,1239.66,0.341273,890 <\/td> <\/tr>\n
6775,1728.14,0.311646,890 <\/td> <\/tr>\n
7894,1461.06,0.276016,890 <\/td> <\/tr>\n
5980,1426.76,0.197653,950 <\/td> <\/tr>\n
5318,990.388,0.326635,950 <\/td> <\/tr>\n
7392,1350.76,0.154192,950 <\/td> <\/tr>\n
7894,1461.06,0.276016,950 <\/td> <\/tr>\n
3469,1376.7,0.176969,100 <\/td> <\/tr>\n
1468,476.322,0.438712,100 <\/td> <\/tr>\n
3524,1189.46,0.163586,100 <\/td> <\/tr>\n
5267,1644.96,0.253832,100 <\/td> <\/tr>\n
5048,941.543,0.328641,1300 <\/td> <\/tr>\n
1016,308.642,0.230081,1300 <\/td> <\/tr>\n
5605,1145.69,0.464125,1300 <\/td> <\/tr>\n
8793,2280.49,0.420477,1300 <\/td> <\/tr>\n
3475,1174.11,0.200744,580 <\/td> <\/tr>\n
1651,597.808,0.262651,580 <\/td> <\/tr>\n
5514,1455.88,0.182453,580 <\/td> <\/tr>\n
9718,1485.58,0.200447,580 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/009-upload/tests/mytest-expected-mac/006.png b/009-upload/tests/mytest-expected-mac/006.png new file mode 100644 index 00000000..20da0c11 Binary files /dev/null and b/009-upload/tests/mytest-expected-mac/006.png differ diff --git a/009-upload/tests/mytest-expected-mac/007.json b/009-upload/tests/mytest-expected-mac/007.json new file mode 100644 index 00000000..cca667bd --- /dev/null +++ b/009-upload/tests/mytest-expected-mac/007.json @@ -0,0 +1,28 @@ +{ + "input": { + "disp": "all", + "file1": { + "name": [ + "Rock.csv" + ], + "size": [ + 1296 + ], + "type": [ + "text/csv" + ], + "datapath": [ + "0.csv" + ] + }, + "header": true, + "quote": "'", + "sep": "\t" + }, + "output": { + "contents": "\n\n
X.area...peri...shape...perm. <\/th> <\/tr> <\/thead>
4990,2791.9,0.0903296,6.3 <\/td> <\/tr>\n
7002,3892.6,0.148622,6.3 <\/td> <\/tr>\n
7558,3930.66,0.183312,6.3 <\/td> <\/tr>\n
7352,3869.32,0.117063,6.3 <\/td> <\/tr>\n
7943,3948.54,0.122417,17.1 <\/td> <\/tr>\n
7979,4010.15,0.167045,17.1 <\/td> <\/tr>\n
9333,4345.75,0.189651,17.1 <\/td> <\/tr>\n
8209,4344.75,0.164127,17.1 <\/td> <\/tr>\n
8393,3682.04,0.203654,119 <\/td> <\/tr>\n
6425,3098.65,0.162394,119 <\/td> <\/tr>\n
9364,4480.05,0.150944,119 <\/td> <\/tr>\n
8624,3986.24,0.148141,119 <\/td> <\/tr>\n
10651,4036.54,0.228595,82.4 <\/td> <\/tr>\n
8868,3518.04,0.231623,82.4 <\/td> <\/tr>\n
9417,3999.37,0.172567,82.4 <\/td> <\/tr>\n
8874,3629.07,0.153481,82.4 <\/td> <\/tr>\n
10962,4608.66,0.204314,58.6 <\/td> <\/tr>\n
10743,4787.62,0.262727,58.6 <\/td> <\/tr>\n
11878,4864.22,0.200071,58.6 <\/td> <\/tr>\n
9867,4479.41,0.14481,58.6 <\/td> <\/tr>\n
7838,3428.74,0.113852,142 <\/td> <\/tr>\n
11876,4353.14,0.291029,142 <\/td> <\/tr>\n
12212,4697.65,0.240077,142 <\/td> <\/tr>\n
8233,3518.44,0.161865,142 <\/td> <\/tr>\n
6360,1977.39,0.280887,740 <\/td> <\/tr>\n
4193,1379.35,0.179455,740 <\/td> <\/tr>\n
7416,1916.24,0.191802,740 <\/td> <\/tr>\n
5246,1585.42,0.133083,740 <\/td> <\/tr>\n
6509,1851.21,0.225214,890 <\/td> <\/tr>\n
4895,1239.66,0.341273,890 <\/td> <\/tr>\n
6775,1728.14,0.311646,890 <\/td> <\/tr>\n
7894,1461.06,0.276016,890 <\/td> <\/tr>\n
5980,1426.76,0.197653,950 <\/td> <\/tr>\n
5318,990.388,0.326635,950 <\/td> <\/tr>\n
7392,1350.76,0.154192,950 <\/td> <\/tr>\n
7894,1461.06,0.276016,950 <\/td> <\/tr>\n
3469,1376.7,0.176969,100 <\/td> <\/tr>\n
1468,476.322,0.438712,100 <\/td> <\/tr>\n
3524,1189.46,0.163586,100 <\/td> <\/tr>\n
5267,1644.96,0.253832,100 <\/td> <\/tr>\n
5048,941.543,0.328641,1300 <\/td> <\/tr>\n
1016,308.642,0.230081,1300 <\/td> <\/tr>\n
5605,1145.69,0.464125,1300 <\/td> <\/tr>\n
8793,2280.49,0.420477,1300 <\/td> <\/tr>\n
3475,1174.11,0.200744,580 <\/td> <\/tr>\n
1651,597.808,0.262651,580 <\/td> <\/tr>\n
5514,1455.88,0.182453,580 <\/td> <\/tr>\n
9718,1485.58,0.200447,580 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/009-upload/tests/mytest-expected-mac/007.png b/009-upload/tests/mytest-expected-mac/007.png new file mode 100644 index 00000000..20da0c11 Binary files /dev/null and b/009-upload/tests/mytest-expected-mac/007.png differ diff --git a/009-upload/tests/mytest-expected-mac/008.json b/009-upload/tests/mytest-expected-mac/008.json new file mode 100644 index 00000000..cca667bd --- /dev/null +++ b/009-upload/tests/mytest-expected-mac/008.json @@ -0,0 +1,28 @@ +{ + "input": { + "disp": "all", + "file1": { + "name": [ + "Rock.csv" + ], + "size": [ + 1296 + ], + "type": [ + "text/csv" + ], + "datapath": [ + "0.csv" + ] + }, + "header": true, + "quote": "'", + "sep": "\t" + }, + "output": { + "contents": "\n\n
X.area...peri...shape...perm. <\/th> <\/tr> <\/thead>
4990,2791.9,0.0903296,6.3 <\/td> <\/tr>\n
7002,3892.6,0.148622,6.3 <\/td> <\/tr>\n
7558,3930.66,0.183312,6.3 <\/td> <\/tr>\n
7352,3869.32,0.117063,6.3 <\/td> <\/tr>\n
7943,3948.54,0.122417,17.1 <\/td> <\/tr>\n
7979,4010.15,0.167045,17.1 <\/td> <\/tr>\n
9333,4345.75,0.189651,17.1 <\/td> <\/tr>\n
8209,4344.75,0.164127,17.1 <\/td> <\/tr>\n
8393,3682.04,0.203654,119 <\/td> <\/tr>\n
6425,3098.65,0.162394,119 <\/td> <\/tr>\n
9364,4480.05,0.150944,119 <\/td> <\/tr>\n
8624,3986.24,0.148141,119 <\/td> <\/tr>\n
10651,4036.54,0.228595,82.4 <\/td> <\/tr>\n
8868,3518.04,0.231623,82.4 <\/td> <\/tr>\n
9417,3999.37,0.172567,82.4 <\/td> <\/tr>\n
8874,3629.07,0.153481,82.4 <\/td> <\/tr>\n
10962,4608.66,0.204314,58.6 <\/td> <\/tr>\n
10743,4787.62,0.262727,58.6 <\/td> <\/tr>\n
11878,4864.22,0.200071,58.6 <\/td> <\/tr>\n
9867,4479.41,0.14481,58.6 <\/td> <\/tr>\n
7838,3428.74,0.113852,142 <\/td> <\/tr>\n
11876,4353.14,0.291029,142 <\/td> <\/tr>\n
12212,4697.65,0.240077,142 <\/td> <\/tr>\n
8233,3518.44,0.161865,142 <\/td> <\/tr>\n
6360,1977.39,0.280887,740 <\/td> <\/tr>\n
4193,1379.35,0.179455,740 <\/td> <\/tr>\n
7416,1916.24,0.191802,740 <\/td> <\/tr>\n
5246,1585.42,0.133083,740 <\/td> <\/tr>\n
6509,1851.21,0.225214,890 <\/td> <\/tr>\n
4895,1239.66,0.341273,890 <\/td> <\/tr>\n
6775,1728.14,0.311646,890 <\/td> <\/tr>\n
7894,1461.06,0.276016,890 <\/td> <\/tr>\n
5980,1426.76,0.197653,950 <\/td> <\/tr>\n
5318,990.388,0.326635,950 <\/td> <\/tr>\n
7392,1350.76,0.154192,950 <\/td> <\/tr>\n
7894,1461.06,0.276016,950 <\/td> <\/tr>\n
3469,1376.7,0.176969,100 <\/td> <\/tr>\n
1468,476.322,0.438712,100 <\/td> <\/tr>\n
3524,1189.46,0.163586,100 <\/td> <\/tr>\n
5267,1644.96,0.253832,100 <\/td> <\/tr>\n
5048,941.543,0.328641,1300 <\/td> <\/tr>\n
1016,308.642,0.230081,1300 <\/td> <\/tr>\n
5605,1145.69,0.464125,1300 <\/td> <\/tr>\n
8793,2280.49,0.420477,1300 <\/td> <\/tr>\n
3475,1174.11,0.200744,580 <\/td> <\/tr>\n
1651,597.808,0.262651,580 <\/td> <\/tr>\n
5514,1455.88,0.182453,580 <\/td> <\/tr>\n
9718,1485.58,0.200447,580 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/009-upload/tests/mytest-expected-mac/008.png b/009-upload/tests/mytest-expected-mac/008.png new file mode 100644 index 00000000..20da0c11 Binary files /dev/null and b/009-upload/tests/mytest-expected-mac/008.png differ diff --git a/009-upload/tests/mytest-expected-mac/009.json b/009-upload/tests/mytest-expected-mac/009.json new file mode 100644 index 00000000..6afe2bc5 --- /dev/null +++ b/009-upload/tests/mytest-expected-mac/009.json @@ -0,0 +1,28 @@ +{ + "input": { + "disp": "head", + "file1": { + "name": [ + "Rock.csv" + ], + "size": [ + 1296 + ], + "type": [ + "text/csv" + ], + "datapath": [ + "0.csv" + ] + }, + "header": true, + "quote": "'", + "sep": "\t" + }, + "output": { + "contents": "\n\n
X.area...peri...shape...perm. <\/th> <\/tr> <\/thead>
4990,2791.9,0.0903296,6.3 <\/td> <\/tr>\n
7002,3892.6,0.148622,6.3 <\/td> <\/tr>\n
7558,3930.66,0.183312,6.3 <\/td> <\/tr>\n
7352,3869.32,0.117063,6.3 <\/td> <\/tr>\n
7943,3948.54,0.122417,17.1 <\/td> <\/tr>\n
7979,4010.15,0.167045,17.1 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/009-upload/tests/mytest-expected-mac/009.png b/009-upload/tests/mytest-expected-mac/009.png new file mode 100644 index 00000000..d73f3a2c Binary files /dev/null and b/009-upload/tests/mytest-expected-mac/009.png differ diff --git a/009-upload/tests/mytest-expected/001.json b/009-upload/tests/mytest-expected/001.json new file mode 100644 index 00000000..39b8b061 --- /dev/null +++ b/009-upload/tests/mytest-expected/001.json @@ -0,0 +1,28 @@ +{ + "input": { + "disp": "head", + "file1": { + "name": [ + "Rock.csv" + ], + "size": [ + 1296 + ], + "type": [ + "text/csv" + ], + "datapath": [ + "0.csv" + ] + }, + "header": true, + "quote": "\"", + "sep": "," + }, + "output": { + "contents": "\n\n
area <\/th> peri <\/th> shape <\/th> perm <\/th> <\/tr> <\/thead>
4990 <\/td> 2791.90 <\/td> 0.09 <\/td> 6.30 <\/td> <\/tr>\n
7002 <\/td> 3892.60 <\/td> 0.15 <\/td> 6.30 <\/td> <\/tr>\n
7558 <\/td> 3930.66 <\/td> 0.18 <\/td> 6.30 <\/td> <\/tr>\n
7352 <\/td> 3869.32 <\/td> 0.12 <\/td> 6.30 <\/td> <\/tr>\n
7943 <\/td> 3948.54 <\/td> 0.12 <\/td> 17.10 <\/td> <\/tr>\n
7979 <\/td> 4010.15 <\/td> 0.17 <\/td> 17.10 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/009-upload/tests/mytest-expected/001.png b/009-upload/tests/mytest-expected/001.png new file mode 100644 index 00000000..5783e692 Binary files /dev/null and b/009-upload/tests/mytest-expected/001.png differ diff --git a/009-upload/tests/mytest-expected/002.json b/009-upload/tests/mytest-expected/002.json new file mode 100644 index 00000000..e1e1f162 --- /dev/null +++ b/009-upload/tests/mytest-expected/002.json @@ -0,0 +1,28 @@ +{ + "input": { + "disp": "head", + "file1": { + "name": [ + "Rock.csv" + ], + "size": [ + 1296 + ], + "type": [ + "text/csv" + ], + "datapath": [ + "0.csv" + ] + }, + "header": true, + "quote": "", + "sep": "," + }, + "output": { + "contents": "\n\n
X.area. <\/th> X.peri. <\/th> X.shape. <\/th> X.perm. <\/th> <\/tr> <\/thead>
4990 <\/td> 2791.90 <\/td> 0.09 <\/td> 6.30 <\/td> <\/tr>\n
7002 <\/td> 3892.60 <\/td> 0.15 <\/td> 6.30 <\/td> <\/tr>\n
7558 <\/td> 3930.66 <\/td> 0.18 <\/td> 6.30 <\/td> <\/tr>\n
7352 <\/td> 3869.32 <\/td> 0.12 <\/td> 6.30 <\/td> <\/tr>\n
7943 <\/td> 3948.54 <\/td> 0.12 <\/td> 17.10 <\/td> <\/tr>\n
7979 <\/td> 4010.15 <\/td> 0.17 <\/td> 17.10 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/009-upload/tests/mytest-expected/002.png b/009-upload/tests/mytest-expected/002.png new file mode 100644 index 00000000..78990ed9 Binary files /dev/null and b/009-upload/tests/mytest-expected/002.png differ diff --git a/009-upload/tests/mytest-expected/003.json b/009-upload/tests/mytest-expected/003.json new file mode 100644 index 00000000..47b78fb0 --- /dev/null +++ b/009-upload/tests/mytest-expected/003.json @@ -0,0 +1,28 @@ +{ + "input": { + "disp": "head", + "file1": { + "name": [ + "Rock.csv" + ], + "size": [ + 1296 + ], + "type": [ + "text/csv" + ], + "datapath": [ + "0.csv" + ] + }, + "header": true, + "quote": "", + "sep": ";" + }, + "output": { + "contents": "\n\n
X.area...peri...shape...perm. <\/th> <\/tr> <\/thead>
4990,2791.9,0.0903296,6.3 <\/td> <\/tr>\n
7002,3892.6,0.148622,6.3 <\/td> <\/tr>\n
7558,3930.66,0.183312,6.3 <\/td> <\/tr>\n
7352,3869.32,0.117063,6.3 <\/td> <\/tr>\n
7943,3948.54,0.122417,17.1 <\/td> <\/tr>\n
7979,4010.15,0.167045,17.1 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/009-upload/tests/mytest-expected/003.png b/009-upload/tests/mytest-expected/003.png new file mode 100644 index 00000000..4e68ecc2 Binary files /dev/null and b/009-upload/tests/mytest-expected/003.png differ diff --git a/009-upload/tests/mytest-expected/004.json b/009-upload/tests/mytest-expected/004.json new file mode 100644 index 00000000..798f4389 --- /dev/null +++ b/009-upload/tests/mytest-expected/004.json @@ -0,0 +1,28 @@ +{ + "input": { + "disp": "head", + "file1": { + "name": [ + "Rock.csv" + ], + "size": [ + 1296 + ], + "type": [ + "text/csv" + ], + "datapath": [ + "0.csv" + ] + }, + "header": true, + "quote": "", + "sep": "\t" + }, + "output": { + "contents": "\n\n
X.area...peri...shape...perm. <\/th> <\/tr> <\/thead>
4990,2791.9,0.0903296,6.3 <\/td> <\/tr>\n
7002,3892.6,0.148622,6.3 <\/td> <\/tr>\n
7558,3930.66,0.183312,6.3 <\/td> <\/tr>\n
7352,3869.32,0.117063,6.3 <\/td> <\/tr>\n
7943,3948.54,0.122417,17.1 <\/td> <\/tr>\n
7979,4010.15,0.167045,17.1 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/009-upload/tests/mytest-expected/004.png b/009-upload/tests/mytest-expected/004.png new file mode 100644 index 00000000..78dac65b Binary files /dev/null and b/009-upload/tests/mytest-expected/004.png differ diff --git a/009-upload/tests/mytest-expected/005.json b/009-upload/tests/mytest-expected/005.json new file mode 100644 index 00000000..344ea0bf --- /dev/null +++ b/009-upload/tests/mytest-expected/005.json @@ -0,0 +1,28 @@ +{ + "input": { + "disp": "all", + "file1": { + "name": [ + "Rock.csv" + ], + "size": [ + 1296 + ], + "type": [ + "text/csv" + ], + "datapath": [ + "0.csv" + ] + }, + "header": true, + "quote": "", + "sep": "\t" + }, + "output": { + "contents": "\n\n
X.area...peri...shape...perm. <\/th> <\/tr> <\/thead>
4990,2791.9,0.0903296,6.3 <\/td> <\/tr>\n
7002,3892.6,0.148622,6.3 <\/td> <\/tr>\n
7558,3930.66,0.183312,6.3 <\/td> <\/tr>\n
7352,3869.32,0.117063,6.3 <\/td> <\/tr>\n
7943,3948.54,0.122417,17.1 <\/td> <\/tr>\n
7979,4010.15,0.167045,17.1 <\/td> <\/tr>\n
9333,4345.75,0.189651,17.1 <\/td> <\/tr>\n
8209,4344.75,0.164127,17.1 <\/td> <\/tr>\n
8393,3682.04,0.203654,119 <\/td> <\/tr>\n
6425,3098.65,0.162394,119 <\/td> <\/tr>\n
9364,4480.05,0.150944,119 <\/td> <\/tr>\n
8624,3986.24,0.148141,119 <\/td> <\/tr>\n
10651,4036.54,0.228595,82.4 <\/td> <\/tr>\n
8868,3518.04,0.231623,82.4 <\/td> <\/tr>\n
9417,3999.37,0.172567,82.4 <\/td> <\/tr>\n
8874,3629.07,0.153481,82.4 <\/td> <\/tr>\n
10962,4608.66,0.204314,58.6 <\/td> <\/tr>\n
10743,4787.62,0.262727,58.6 <\/td> <\/tr>\n
11878,4864.22,0.200071,58.6 <\/td> <\/tr>\n
9867,4479.41,0.14481,58.6 <\/td> <\/tr>\n
7838,3428.74,0.113852,142 <\/td> <\/tr>\n
11876,4353.14,0.291029,142 <\/td> <\/tr>\n
12212,4697.65,0.240077,142 <\/td> <\/tr>\n
8233,3518.44,0.161865,142 <\/td> <\/tr>\n
6360,1977.39,0.280887,740 <\/td> <\/tr>\n
4193,1379.35,0.179455,740 <\/td> <\/tr>\n
7416,1916.24,0.191802,740 <\/td> <\/tr>\n
5246,1585.42,0.133083,740 <\/td> <\/tr>\n
6509,1851.21,0.225214,890 <\/td> <\/tr>\n
4895,1239.66,0.341273,890 <\/td> <\/tr>\n
6775,1728.14,0.311646,890 <\/td> <\/tr>\n
7894,1461.06,0.276016,890 <\/td> <\/tr>\n
5980,1426.76,0.197653,950 <\/td> <\/tr>\n
5318,990.388,0.326635,950 <\/td> <\/tr>\n
7392,1350.76,0.154192,950 <\/td> <\/tr>\n
7894,1461.06,0.276016,950 <\/td> <\/tr>\n
3469,1376.7,0.176969,100 <\/td> <\/tr>\n
1468,476.322,0.438712,100 <\/td> <\/tr>\n
3524,1189.46,0.163586,100 <\/td> <\/tr>\n
5267,1644.96,0.253832,100 <\/td> <\/tr>\n
5048,941.543,0.328641,1300 <\/td> <\/tr>\n
1016,308.642,0.230081,1300 <\/td> <\/tr>\n
5605,1145.69,0.464125,1300 <\/td> <\/tr>\n
8793,2280.49,0.420477,1300 <\/td> <\/tr>\n
3475,1174.11,0.200744,580 <\/td> <\/tr>\n
1651,597.808,0.262651,580 <\/td> <\/tr>\n
5514,1455.88,0.182453,580 <\/td> <\/tr>\n
9718,1485.58,0.200447,580 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/009-upload/tests/mytest-expected/005.png b/009-upload/tests/mytest-expected/005.png new file mode 100644 index 00000000..1e068b2c Binary files /dev/null and b/009-upload/tests/mytest-expected/005.png differ diff --git a/009-upload/tests/mytest-expected/006.json b/009-upload/tests/mytest-expected/006.json new file mode 100644 index 00000000..cca667bd --- /dev/null +++ b/009-upload/tests/mytest-expected/006.json @@ -0,0 +1,28 @@ +{ + "input": { + "disp": "all", + "file1": { + "name": [ + "Rock.csv" + ], + "size": [ + 1296 + ], + "type": [ + "text/csv" + ], + "datapath": [ + "0.csv" + ] + }, + "header": true, + "quote": "'", + "sep": "\t" + }, + "output": { + "contents": "\n\n
X.area...peri...shape...perm. <\/th> <\/tr> <\/thead>
4990,2791.9,0.0903296,6.3 <\/td> <\/tr>\n
7002,3892.6,0.148622,6.3 <\/td> <\/tr>\n
7558,3930.66,0.183312,6.3 <\/td> <\/tr>\n
7352,3869.32,0.117063,6.3 <\/td> <\/tr>\n
7943,3948.54,0.122417,17.1 <\/td> <\/tr>\n
7979,4010.15,0.167045,17.1 <\/td> <\/tr>\n
9333,4345.75,0.189651,17.1 <\/td> <\/tr>\n
8209,4344.75,0.164127,17.1 <\/td> <\/tr>\n
8393,3682.04,0.203654,119 <\/td> <\/tr>\n
6425,3098.65,0.162394,119 <\/td> <\/tr>\n
9364,4480.05,0.150944,119 <\/td> <\/tr>\n
8624,3986.24,0.148141,119 <\/td> <\/tr>\n
10651,4036.54,0.228595,82.4 <\/td> <\/tr>\n
8868,3518.04,0.231623,82.4 <\/td> <\/tr>\n
9417,3999.37,0.172567,82.4 <\/td> <\/tr>\n
8874,3629.07,0.153481,82.4 <\/td> <\/tr>\n
10962,4608.66,0.204314,58.6 <\/td> <\/tr>\n
10743,4787.62,0.262727,58.6 <\/td> <\/tr>\n
11878,4864.22,0.200071,58.6 <\/td> <\/tr>\n
9867,4479.41,0.14481,58.6 <\/td> <\/tr>\n
7838,3428.74,0.113852,142 <\/td> <\/tr>\n
11876,4353.14,0.291029,142 <\/td> <\/tr>\n
12212,4697.65,0.240077,142 <\/td> <\/tr>\n
8233,3518.44,0.161865,142 <\/td> <\/tr>\n
6360,1977.39,0.280887,740 <\/td> <\/tr>\n
4193,1379.35,0.179455,740 <\/td> <\/tr>\n
7416,1916.24,0.191802,740 <\/td> <\/tr>\n
5246,1585.42,0.133083,740 <\/td> <\/tr>\n
6509,1851.21,0.225214,890 <\/td> <\/tr>\n
4895,1239.66,0.341273,890 <\/td> <\/tr>\n
6775,1728.14,0.311646,890 <\/td> <\/tr>\n
7894,1461.06,0.276016,890 <\/td> <\/tr>\n
5980,1426.76,0.197653,950 <\/td> <\/tr>\n
5318,990.388,0.326635,950 <\/td> <\/tr>\n
7392,1350.76,0.154192,950 <\/td> <\/tr>\n
7894,1461.06,0.276016,950 <\/td> <\/tr>\n
3469,1376.7,0.176969,100 <\/td> <\/tr>\n
1468,476.322,0.438712,100 <\/td> <\/tr>\n
3524,1189.46,0.163586,100 <\/td> <\/tr>\n
5267,1644.96,0.253832,100 <\/td> <\/tr>\n
5048,941.543,0.328641,1300 <\/td> <\/tr>\n
1016,308.642,0.230081,1300 <\/td> <\/tr>\n
5605,1145.69,0.464125,1300 <\/td> <\/tr>\n
8793,2280.49,0.420477,1300 <\/td> <\/tr>\n
3475,1174.11,0.200744,580 <\/td> <\/tr>\n
1651,597.808,0.262651,580 <\/td> <\/tr>\n
5514,1455.88,0.182453,580 <\/td> <\/tr>\n
9718,1485.58,0.200447,580 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/009-upload/tests/mytest-expected/006.png b/009-upload/tests/mytest-expected/006.png new file mode 100644 index 00000000..20da0c11 Binary files /dev/null and b/009-upload/tests/mytest-expected/006.png differ diff --git a/009-upload/tests/mytest-expected/007.json b/009-upload/tests/mytest-expected/007.json new file mode 100644 index 00000000..cca667bd --- /dev/null +++ b/009-upload/tests/mytest-expected/007.json @@ -0,0 +1,28 @@ +{ + "input": { + "disp": "all", + "file1": { + "name": [ + "Rock.csv" + ], + "size": [ + 1296 + ], + "type": [ + "text/csv" + ], + "datapath": [ + "0.csv" + ] + }, + "header": true, + "quote": "'", + "sep": "\t" + }, + "output": { + "contents": "\n\n
X.area...peri...shape...perm. <\/th> <\/tr> <\/thead>
4990,2791.9,0.0903296,6.3 <\/td> <\/tr>\n
7002,3892.6,0.148622,6.3 <\/td> <\/tr>\n
7558,3930.66,0.183312,6.3 <\/td> <\/tr>\n
7352,3869.32,0.117063,6.3 <\/td> <\/tr>\n
7943,3948.54,0.122417,17.1 <\/td> <\/tr>\n
7979,4010.15,0.167045,17.1 <\/td> <\/tr>\n
9333,4345.75,0.189651,17.1 <\/td> <\/tr>\n
8209,4344.75,0.164127,17.1 <\/td> <\/tr>\n
8393,3682.04,0.203654,119 <\/td> <\/tr>\n
6425,3098.65,0.162394,119 <\/td> <\/tr>\n
9364,4480.05,0.150944,119 <\/td> <\/tr>\n
8624,3986.24,0.148141,119 <\/td> <\/tr>\n
10651,4036.54,0.228595,82.4 <\/td> <\/tr>\n
8868,3518.04,0.231623,82.4 <\/td> <\/tr>\n
9417,3999.37,0.172567,82.4 <\/td> <\/tr>\n
8874,3629.07,0.153481,82.4 <\/td> <\/tr>\n
10962,4608.66,0.204314,58.6 <\/td> <\/tr>\n
10743,4787.62,0.262727,58.6 <\/td> <\/tr>\n
11878,4864.22,0.200071,58.6 <\/td> <\/tr>\n
9867,4479.41,0.14481,58.6 <\/td> <\/tr>\n
7838,3428.74,0.113852,142 <\/td> <\/tr>\n
11876,4353.14,0.291029,142 <\/td> <\/tr>\n
12212,4697.65,0.240077,142 <\/td> <\/tr>\n
8233,3518.44,0.161865,142 <\/td> <\/tr>\n
6360,1977.39,0.280887,740 <\/td> <\/tr>\n
4193,1379.35,0.179455,740 <\/td> <\/tr>\n
7416,1916.24,0.191802,740 <\/td> <\/tr>\n
5246,1585.42,0.133083,740 <\/td> <\/tr>\n
6509,1851.21,0.225214,890 <\/td> <\/tr>\n
4895,1239.66,0.341273,890 <\/td> <\/tr>\n
6775,1728.14,0.311646,890 <\/td> <\/tr>\n
7894,1461.06,0.276016,890 <\/td> <\/tr>\n
5980,1426.76,0.197653,950 <\/td> <\/tr>\n
5318,990.388,0.326635,950 <\/td> <\/tr>\n
7392,1350.76,0.154192,950 <\/td> <\/tr>\n
7894,1461.06,0.276016,950 <\/td> <\/tr>\n
3469,1376.7,0.176969,100 <\/td> <\/tr>\n
1468,476.322,0.438712,100 <\/td> <\/tr>\n
3524,1189.46,0.163586,100 <\/td> <\/tr>\n
5267,1644.96,0.253832,100 <\/td> <\/tr>\n
5048,941.543,0.328641,1300 <\/td> <\/tr>\n
1016,308.642,0.230081,1300 <\/td> <\/tr>\n
5605,1145.69,0.464125,1300 <\/td> <\/tr>\n
8793,2280.49,0.420477,1300 <\/td> <\/tr>\n
3475,1174.11,0.200744,580 <\/td> <\/tr>\n
1651,597.808,0.262651,580 <\/td> <\/tr>\n
5514,1455.88,0.182453,580 <\/td> <\/tr>\n
9718,1485.58,0.200447,580 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/009-upload/tests/mytest-expected/007.png b/009-upload/tests/mytest-expected/007.png new file mode 100644 index 00000000..20da0c11 Binary files /dev/null and b/009-upload/tests/mytest-expected/007.png differ diff --git a/009-upload/tests/mytest-expected/008.json b/009-upload/tests/mytest-expected/008.json new file mode 100644 index 00000000..cca667bd --- /dev/null +++ b/009-upload/tests/mytest-expected/008.json @@ -0,0 +1,28 @@ +{ + "input": { + "disp": "all", + "file1": { + "name": [ + "Rock.csv" + ], + "size": [ + 1296 + ], + "type": [ + "text/csv" + ], + "datapath": [ + "0.csv" + ] + }, + "header": true, + "quote": "'", + "sep": "\t" + }, + "output": { + "contents": "\n\n
X.area...peri...shape...perm. <\/th> <\/tr> <\/thead>
4990,2791.9,0.0903296,6.3 <\/td> <\/tr>\n
7002,3892.6,0.148622,6.3 <\/td> <\/tr>\n
7558,3930.66,0.183312,6.3 <\/td> <\/tr>\n
7352,3869.32,0.117063,6.3 <\/td> <\/tr>\n
7943,3948.54,0.122417,17.1 <\/td> <\/tr>\n
7979,4010.15,0.167045,17.1 <\/td> <\/tr>\n
9333,4345.75,0.189651,17.1 <\/td> <\/tr>\n
8209,4344.75,0.164127,17.1 <\/td> <\/tr>\n
8393,3682.04,0.203654,119 <\/td> <\/tr>\n
6425,3098.65,0.162394,119 <\/td> <\/tr>\n
9364,4480.05,0.150944,119 <\/td> <\/tr>\n
8624,3986.24,0.148141,119 <\/td> <\/tr>\n
10651,4036.54,0.228595,82.4 <\/td> <\/tr>\n
8868,3518.04,0.231623,82.4 <\/td> <\/tr>\n
9417,3999.37,0.172567,82.4 <\/td> <\/tr>\n
8874,3629.07,0.153481,82.4 <\/td> <\/tr>\n
10962,4608.66,0.204314,58.6 <\/td> <\/tr>\n
10743,4787.62,0.262727,58.6 <\/td> <\/tr>\n
11878,4864.22,0.200071,58.6 <\/td> <\/tr>\n
9867,4479.41,0.14481,58.6 <\/td> <\/tr>\n
7838,3428.74,0.113852,142 <\/td> <\/tr>\n
11876,4353.14,0.291029,142 <\/td> <\/tr>\n
12212,4697.65,0.240077,142 <\/td> <\/tr>\n
8233,3518.44,0.161865,142 <\/td> <\/tr>\n
6360,1977.39,0.280887,740 <\/td> <\/tr>\n
4193,1379.35,0.179455,740 <\/td> <\/tr>\n
7416,1916.24,0.191802,740 <\/td> <\/tr>\n
5246,1585.42,0.133083,740 <\/td> <\/tr>\n
6509,1851.21,0.225214,890 <\/td> <\/tr>\n
4895,1239.66,0.341273,890 <\/td> <\/tr>\n
6775,1728.14,0.311646,890 <\/td> <\/tr>\n
7894,1461.06,0.276016,890 <\/td> <\/tr>\n
5980,1426.76,0.197653,950 <\/td> <\/tr>\n
5318,990.388,0.326635,950 <\/td> <\/tr>\n
7392,1350.76,0.154192,950 <\/td> <\/tr>\n
7894,1461.06,0.276016,950 <\/td> <\/tr>\n
3469,1376.7,0.176969,100 <\/td> <\/tr>\n
1468,476.322,0.438712,100 <\/td> <\/tr>\n
3524,1189.46,0.163586,100 <\/td> <\/tr>\n
5267,1644.96,0.253832,100 <\/td> <\/tr>\n
5048,941.543,0.328641,1300 <\/td> <\/tr>\n
1016,308.642,0.230081,1300 <\/td> <\/tr>\n
5605,1145.69,0.464125,1300 <\/td> <\/tr>\n
8793,2280.49,0.420477,1300 <\/td> <\/tr>\n
3475,1174.11,0.200744,580 <\/td> <\/tr>\n
1651,597.808,0.262651,580 <\/td> <\/tr>\n
5514,1455.88,0.182453,580 <\/td> <\/tr>\n
9718,1485.58,0.200447,580 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/009-upload/tests/mytest-expected/008.png b/009-upload/tests/mytest-expected/008.png new file mode 100644 index 00000000..20da0c11 Binary files /dev/null and b/009-upload/tests/mytest-expected/008.png differ diff --git a/009-upload/tests/mytest-expected/009.json b/009-upload/tests/mytest-expected/009.json new file mode 100644 index 00000000..6afe2bc5 --- /dev/null +++ b/009-upload/tests/mytest-expected/009.json @@ -0,0 +1,28 @@ +{ + "input": { + "disp": "head", + "file1": { + "name": [ + "Rock.csv" + ], + "size": [ + 1296 + ], + "type": [ + "text/csv" + ], + "datapath": [ + "0.csv" + ] + }, + "header": true, + "quote": "'", + "sep": "\t" + }, + "output": { + "contents": "\n\n
X.area...peri...shape...perm. <\/th> <\/tr> <\/thead>
4990,2791.9,0.0903296,6.3 <\/td> <\/tr>\n
7002,3892.6,0.148622,6.3 <\/td> <\/tr>\n
7558,3930.66,0.183312,6.3 <\/td> <\/tr>\n
7352,3869.32,0.117063,6.3 <\/td> <\/tr>\n
7943,3948.54,0.122417,17.1 <\/td> <\/tr>\n
7979,4010.15,0.167045,17.1 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/009-upload/tests/mytest-expected/009.png b/009-upload/tests/mytest-expected/009.png new file mode 100644 index 00000000..d73f3a2c Binary files /dev/null and b/009-upload/tests/mytest-expected/009.png differ diff --git a/009-upload/tests/mytest.R b/009-upload/tests/mytest.R new file mode 100644 index 00000000..db3bd3c0 --- /dev/null +++ b/009-upload/tests/mytest.R @@ -0,0 +1,21 @@ +app <- ShinyDriver$new("../", seed = 100,shinyOptions = list(display.mode = "normal")) +app$snapshotInit("mytest") + +app$uploadFile(file1 = "Rock.csv") # <-- This should be the path to the file, relative to the app's tests/ directory +app$snapshot() +app$setInputs(sep = ";") +app$setInputs(sep = ",") +app$setInputs(quote = "") +app$snapshot() +app$setInputs(sep = ";") +app$snapshot() +app$setInputs(sep = " ") +app$snapshot() +app$setInputs(disp = "all") +app$snapshot() +app$setInputs(quote = "'") +app$snapshot() +app$snapshot() +app$snapshot() +app$setInputs(disp = "head") +app$snapshot() diff --git a/010-download/tests/mytest-expected-mac/001.json b/010-download/tests/mytest-expected-mac/001.json new file mode 100644 index 00000000..b7dad789 --- /dev/null +++ b/010-download/tests/mytest-expected-mac/001.json @@ -0,0 +1,11 @@ +{ + "input": { + "dataset": "rock" + }, + "output": { + "table": "\n\n
area <\/th> peri <\/th> shape <\/th> perm <\/th> <\/tr> <\/thead>
4990 <\/td> 2791.90 <\/td> 0.09 <\/td> 6.30 <\/td> <\/tr>\n
7002 <\/td> 3892.60 <\/td> 0.15 <\/td> 6.30 <\/td> <\/tr>\n
7558 <\/td> 3930.66 <\/td> 0.18 <\/td> 6.30 <\/td> <\/tr>\n
7352 <\/td> 3869.32 <\/td> 0.12 <\/td> 6.30 <\/td> <\/tr>\n
7943 <\/td> 3948.54 <\/td> 0.12 <\/td> 17.10 <\/td> <\/tr>\n
7979 <\/td> 4010.15 <\/td> 0.17 <\/td> 17.10 <\/td> <\/tr>\n
9333 <\/td> 4345.75 <\/td> 0.19 <\/td> 17.10 <\/td> <\/tr>\n
8209 <\/td> 4344.75 <\/td> 0.16 <\/td> 17.10 <\/td> <\/tr>\n
8393 <\/td> 3682.04 <\/td> 0.20 <\/td> 119.00 <\/td> <\/tr>\n
6425 <\/td> 3098.65 <\/td> 0.16 <\/td> 119.00 <\/td> <\/tr>\n
9364 <\/td> 4480.05 <\/td> 0.15 <\/td> 119.00 <\/td> <\/tr>\n
8624 <\/td> 3986.24 <\/td> 0.15 <\/td> 119.00 <\/td> <\/tr>\n
10651 <\/td> 4036.54 <\/td> 0.23 <\/td> 82.40 <\/td> <\/tr>\n
8868 <\/td> 3518.04 <\/td> 0.23 <\/td> 82.40 <\/td> <\/tr>\n
9417 <\/td> 3999.37 <\/td> 0.17 <\/td> 82.40 <\/td> <\/tr>\n
8874 <\/td> 3629.07 <\/td> 0.15 <\/td> 82.40 <\/td> <\/tr>\n
10962 <\/td> 4608.66 <\/td> 0.20 <\/td> 58.60 <\/td> <\/tr>\n
10743 <\/td> 4787.62 <\/td> 0.26 <\/td> 58.60 <\/td> <\/tr>\n
11878 <\/td> 4864.22 <\/td> 0.20 <\/td> 58.60 <\/td> <\/tr>\n
9867 <\/td> 4479.41 <\/td> 0.14 <\/td> 58.60 <\/td> <\/tr>\n
7838 <\/td> 3428.74 <\/td> 0.11 <\/td> 142.00 <\/td> <\/tr>\n
11876 <\/td> 4353.14 <\/td> 0.29 <\/td> 142.00 <\/td> <\/tr>\n
12212 <\/td> 4697.65 <\/td> 0.24 <\/td> 142.00 <\/td> <\/tr>\n
8233 <\/td> 3518.44 <\/td> 0.16 <\/td> 142.00 <\/td> <\/tr>\n
6360 <\/td> 1977.39 <\/td> 0.28 <\/td> 740.00 <\/td> <\/tr>\n
4193 <\/td> 1379.35 <\/td> 0.18 <\/td> 740.00 <\/td> <\/tr>\n
7416 <\/td> 1916.24 <\/td> 0.19 <\/td> 740.00 <\/td> <\/tr>\n
5246 <\/td> 1585.42 <\/td> 0.13 <\/td> 740.00 <\/td> <\/tr>\n
6509 <\/td> 1851.21 <\/td> 0.23 <\/td> 890.00 <\/td> <\/tr>\n
4895 <\/td> 1239.66 <\/td> 0.34 <\/td> 890.00 <\/td> <\/tr>\n
6775 <\/td> 1728.14 <\/td> 0.31 <\/td> 890.00 <\/td> <\/tr>\n
7894 <\/td> 1461.06 <\/td> 0.28 <\/td> 890.00 <\/td> <\/tr>\n
5980 <\/td> 1426.76 <\/td> 0.20 <\/td> 950.00 <\/td> <\/tr>\n
5318 <\/td> 990.39 <\/td> 0.33 <\/td> 950.00 <\/td> <\/tr>\n
7392 <\/td> 1350.76 <\/td> 0.15 <\/td> 950.00 <\/td> <\/tr>\n
7894 <\/td> 1461.06 <\/td> 0.28 <\/td> 950.00 <\/td> <\/tr>\n
3469 <\/td> 1376.70 <\/td> 0.18 <\/td> 100.00 <\/td> <\/tr>\n
1468 <\/td> 476.32 <\/td> 0.44 <\/td> 100.00 <\/td> <\/tr>\n
3524 <\/td> 1189.46 <\/td> 0.16 <\/td> 100.00 <\/td> <\/tr>\n
5267 <\/td> 1644.96 <\/td> 0.25 <\/td> 100.00 <\/td> <\/tr>\n
5048 <\/td> 941.54 <\/td> 0.33 <\/td> 1300.00 <\/td> <\/tr>\n
1016 <\/td> 308.64 <\/td> 0.23 <\/td> 1300.00 <\/td> <\/tr>\n
5605 <\/td> 1145.69 <\/td> 0.46 <\/td> 1300.00 <\/td> <\/tr>\n
8793 <\/td> 2280.49 <\/td> 0.42 <\/td> 1300.00 <\/td> <\/tr>\n
3475 <\/td> 1174.11 <\/td> 0.20 <\/td> 580.00 <\/td> <\/tr>\n
1651 <\/td> 597.81 <\/td> 0.26 <\/td> 580.00 <\/td> <\/tr>\n
5514 <\/td> 1455.88 <\/td> 0.18 <\/td> 580.00 <\/td> <\/tr>\n
9718 <\/td> 1485.58 <\/td> 0.20 <\/td> 580.00 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/010-download/tests/mytest-expected-mac/001.png b/010-download/tests/mytest-expected-mac/001.png new file mode 100644 index 00000000..b76366f9 Binary files /dev/null and b/010-download/tests/mytest-expected-mac/001.png differ diff --git a/010-download/tests/mytest-expected-mac/002.json b/010-download/tests/mytest-expected-mac/002.json new file mode 100644 index 00000000..d20d14eb --- /dev/null +++ b/010-download/tests/mytest-expected-mac/002.json @@ -0,0 +1,11 @@ +{ + "input": { + "dataset": "pressure" + }, + "output": { + "table": "\n\n
temperature <\/th> pressure <\/th> <\/tr> <\/thead>
0.00 <\/td> 0.00 <\/td> <\/tr>\n
20.00 <\/td> 0.00 <\/td> <\/tr>\n
40.00 <\/td> 0.01 <\/td> <\/tr>\n
60.00 <\/td> 0.03 <\/td> <\/tr>\n
80.00 <\/td> 0.09 <\/td> <\/tr>\n
100.00 <\/td> 0.27 <\/td> <\/tr>\n
120.00 <\/td> 0.75 <\/td> <\/tr>\n
140.00 <\/td> 1.85 <\/td> <\/tr>\n
160.00 <\/td> 4.20 <\/td> <\/tr>\n
180.00 <\/td> 8.80 <\/td> <\/tr>\n
200.00 <\/td> 17.30 <\/td> <\/tr>\n
220.00 <\/td> 32.10 <\/td> <\/tr>\n
240.00 <\/td> 57.00 <\/td> <\/tr>\n
260.00 <\/td> 96.00 <\/td> <\/tr>\n
280.00 <\/td> 157.00 <\/td> <\/tr>\n
300.00 <\/td> 247.00 <\/td> <\/tr>\n
320.00 <\/td> 376.00 <\/td> <\/tr>\n
340.00 <\/td> 558.00 <\/td> <\/tr>\n
360.00 <\/td> 806.00 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/010-download/tests/mytest-expected-mac/002.png b/010-download/tests/mytest-expected-mac/002.png new file mode 100644 index 00000000..0a7db85d Binary files /dev/null and b/010-download/tests/mytest-expected-mac/002.png differ diff --git a/010-download/tests/mytest-expected-mac/003.json b/010-download/tests/mytest-expected-mac/003.json new file mode 100644 index 00000000..befc3620 --- /dev/null +++ b/010-download/tests/mytest-expected-mac/003.json @@ -0,0 +1,11 @@ +{ + "input": { + "dataset": "cars" + }, + "output": { + "table": "\n\n
speed <\/th> dist <\/th> <\/tr> <\/thead>
4.00 <\/td> 2.00 <\/td> <\/tr>\n
4.00 <\/td> 10.00 <\/td> <\/tr>\n
7.00 <\/td> 4.00 <\/td> <\/tr>\n
7.00 <\/td> 22.00 <\/td> <\/tr>\n
8.00 <\/td> 16.00 <\/td> <\/tr>\n
9.00 <\/td> 10.00 <\/td> <\/tr>\n
10.00 <\/td> 18.00 <\/td> <\/tr>\n
10.00 <\/td> 26.00 <\/td> <\/tr>\n
10.00 <\/td> 34.00 <\/td> <\/tr>\n
11.00 <\/td> 17.00 <\/td> <\/tr>\n
11.00 <\/td> 28.00 <\/td> <\/tr>\n
12.00 <\/td> 14.00 <\/td> <\/tr>\n
12.00 <\/td> 20.00 <\/td> <\/tr>\n
12.00 <\/td> 24.00 <\/td> <\/tr>\n
12.00 <\/td> 28.00 <\/td> <\/tr>\n
13.00 <\/td> 26.00 <\/td> <\/tr>\n
13.00 <\/td> 34.00 <\/td> <\/tr>\n
13.00 <\/td> 34.00 <\/td> <\/tr>\n
13.00 <\/td> 46.00 <\/td> <\/tr>\n
14.00 <\/td> 26.00 <\/td> <\/tr>\n
14.00 <\/td> 36.00 <\/td> <\/tr>\n
14.00 <\/td> 60.00 <\/td> <\/tr>\n
14.00 <\/td> 80.00 <\/td> <\/tr>\n
15.00 <\/td> 20.00 <\/td> <\/tr>\n
15.00 <\/td> 26.00 <\/td> <\/tr>\n
15.00 <\/td> 54.00 <\/td> <\/tr>\n
16.00 <\/td> 32.00 <\/td> <\/tr>\n
16.00 <\/td> 40.00 <\/td> <\/tr>\n
17.00 <\/td> 32.00 <\/td> <\/tr>\n
17.00 <\/td> 40.00 <\/td> <\/tr>\n
17.00 <\/td> 50.00 <\/td> <\/tr>\n
18.00 <\/td> 42.00 <\/td> <\/tr>\n
18.00 <\/td> 56.00 <\/td> <\/tr>\n
18.00 <\/td> 76.00 <\/td> <\/tr>\n
18.00 <\/td> 84.00 <\/td> <\/tr>\n
19.00 <\/td> 36.00 <\/td> <\/tr>\n
19.00 <\/td> 46.00 <\/td> <\/tr>\n
19.00 <\/td> 68.00 <\/td> <\/tr>\n
20.00 <\/td> 32.00 <\/td> <\/tr>\n
20.00 <\/td> 48.00 <\/td> <\/tr>\n
20.00 <\/td> 52.00 <\/td> <\/tr>\n
20.00 <\/td> 56.00 <\/td> <\/tr>\n
20.00 <\/td> 64.00 <\/td> <\/tr>\n
22.00 <\/td> 66.00 <\/td> <\/tr>\n
23.00 <\/td> 54.00 <\/td> <\/tr>\n
24.00 <\/td> 70.00 <\/td> <\/tr>\n
24.00 <\/td> 92.00 <\/td> <\/tr>\n
24.00 <\/td> 93.00 <\/td> <\/tr>\n
24.00 <\/td> 120.00 <\/td> <\/tr>\n
25.00 <\/td> 85.00 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/010-download/tests/mytest-expected-mac/003.png b/010-download/tests/mytest-expected-mac/003.png new file mode 100644 index 00000000..3db245ce Binary files /dev/null and b/010-download/tests/mytest-expected-mac/003.png differ diff --git a/010-download/tests/mytest-expected-mac/004.download b/010-download/tests/mytest-expected-mac/004.download new file mode 100644 index 00000000..5d0acdb9 --- /dev/null +++ b/010-download/tests/mytest-expected-mac/004.download @@ -0,0 +1,51 @@ +"speed","dist" +4,2 +4,10 +7,4 +7,22 +8,16 +9,10 +10,18 +10,26 +10,34 +11,17 +11,28 +12,14 +12,20 +12,24 +12,28 +13,26 +13,34 +13,34 +13,46 +14,26 +14,36 +14,60 +14,80 +15,20 +15,26 +15,54 +16,32 +16,40 +17,32 +17,40 +17,50 +18,42 +18,56 +18,76 +18,84 +19,36 +19,46 +19,68 +20,32 +20,48 +20,52 +20,56 +20,64 +22,66 +23,54 +24,70 +24,92 +24,93 +24,120 +25,85 diff --git a/010-download/tests/mytest-expected-mac/005.json b/010-download/tests/mytest-expected-mac/005.json new file mode 100644 index 00000000..befc3620 --- /dev/null +++ b/010-download/tests/mytest-expected-mac/005.json @@ -0,0 +1,11 @@ +{ + "input": { + "dataset": "cars" + }, + "output": { + "table": "\n\n
speed <\/th> dist <\/th> <\/tr> <\/thead>
4.00 <\/td> 2.00 <\/td> <\/tr>\n
4.00 <\/td> 10.00 <\/td> <\/tr>\n
7.00 <\/td> 4.00 <\/td> <\/tr>\n
7.00 <\/td> 22.00 <\/td> <\/tr>\n
8.00 <\/td> 16.00 <\/td> <\/tr>\n
9.00 <\/td> 10.00 <\/td> <\/tr>\n
10.00 <\/td> 18.00 <\/td> <\/tr>\n
10.00 <\/td> 26.00 <\/td> <\/tr>\n
10.00 <\/td> 34.00 <\/td> <\/tr>\n
11.00 <\/td> 17.00 <\/td> <\/tr>\n
11.00 <\/td> 28.00 <\/td> <\/tr>\n
12.00 <\/td> 14.00 <\/td> <\/tr>\n
12.00 <\/td> 20.00 <\/td> <\/tr>\n
12.00 <\/td> 24.00 <\/td> <\/tr>\n
12.00 <\/td> 28.00 <\/td> <\/tr>\n
13.00 <\/td> 26.00 <\/td> <\/tr>\n
13.00 <\/td> 34.00 <\/td> <\/tr>\n
13.00 <\/td> 34.00 <\/td> <\/tr>\n
13.00 <\/td> 46.00 <\/td> <\/tr>\n
14.00 <\/td> 26.00 <\/td> <\/tr>\n
14.00 <\/td> 36.00 <\/td> <\/tr>\n
14.00 <\/td> 60.00 <\/td> <\/tr>\n
14.00 <\/td> 80.00 <\/td> <\/tr>\n
15.00 <\/td> 20.00 <\/td> <\/tr>\n
15.00 <\/td> 26.00 <\/td> <\/tr>\n
15.00 <\/td> 54.00 <\/td> <\/tr>\n
16.00 <\/td> 32.00 <\/td> <\/tr>\n
16.00 <\/td> 40.00 <\/td> <\/tr>\n
17.00 <\/td> 32.00 <\/td> <\/tr>\n
17.00 <\/td> 40.00 <\/td> <\/tr>\n
17.00 <\/td> 50.00 <\/td> <\/tr>\n
18.00 <\/td> 42.00 <\/td> <\/tr>\n
18.00 <\/td> 56.00 <\/td> <\/tr>\n
18.00 <\/td> 76.00 <\/td> <\/tr>\n
18.00 <\/td> 84.00 <\/td> <\/tr>\n
19.00 <\/td> 36.00 <\/td> <\/tr>\n
19.00 <\/td> 46.00 <\/td> <\/tr>\n
19.00 <\/td> 68.00 <\/td> <\/tr>\n
20.00 <\/td> 32.00 <\/td> <\/tr>\n
20.00 <\/td> 48.00 <\/td> <\/tr>\n
20.00 <\/td> 52.00 <\/td> <\/tr>\n
20.00 <\/td> 56.00 <\/td> <\/tr>\n
20.00 <\/td> 64.00 <\/td> <\/tr>\n
22.00 <\/td> 66.00 <\/td> <\/tr>\n
23.00 <\/td> 54.00 <\/td> <\/tr>\n
24.00 <\/td> 70.00 <\/td> <\/tr>\n
24.00 <\/td> 92.00 <\/td> <\/tr>\n
24.00 <\/td> 93.00 <\/td> <\/tr>\n
24.00 <\/td> 120.00 <\/td> <\/tr>\n
25.00 <\/td> 85.00 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/010-download/tests/mytest-expected-mac/005.png b/010-download/tests/mytest-expected-mac/005.png new file mode 100644 index 00000000..3db245ce Binary files /dev/null and b/010-download/tests/mytest-expected-mac/005.png differ diff --git a/010-download/tests/mytest-expected-mac/006.json b/010-download/tests/mytest-expected-mac/006.json new file mode 100644 index 00000000..b7dad789 --- /dev/null +++ b/010-download/tests/mytest-expected-mac/006.json @@ -0,0 +1,11 @@ +{ + "input": { + "dataset": "rock" + }, + "output": { + "table": "\n\n
area <\/th> peri <\/th> shape <\/th> perm <\/th> <\/tr> <\/thead>
4990 <\/td> 2791.90 <\/td> 0.09 <\/td> 6.30 <\/td> <\/tr>\n
7002 <\/td> 3892.60 <\/td> 0.15 <\/td> 6.30 <\/td> <\/tr>\n
7558 <\/td> 3930.66 <\/td> 0.18 <\/td> 6.30 <\/td> <\/tr>\n
7352 <\/td> 3869.32 <\/td> 0.12 <\/td> 6.30 <\/td> <\/tr>\n
7943 <\/td> 3948.54 <\/td> 0.12 <\/td> 17.10 <\/td> <\/tr>\n
7979 <\/td> 4010.15 <\/td> 0.17 <\/td> 17.10 <\/td> <\/tr>\n
9333 <\/td> 4345.75 <\/td> 0.19 <\/td> 17.10 <\/td> <\/tr>\n
8209 <\/td> 4344.75 <\/td> 0.16 <\/td> 17.10 <\/td> <\/tr>\n
8393 <\/td> 3682.04 <\/td> 0.20 <\/td> 119.00 <\/td> <\/tr>\n
6425 <\/td> 3098.65 <\/td> 0.16 <\/td> 119.00 <\/td> <\/tr>\n
9364 <\/td> 4480.05 <\/td> 0.15 <\/td> 119.00 <\/td> <\/tr>\n
8624 <\/td> 3986.24 <\/td> 0.15 <\/td> 119.00 <\/td> <\/tr>\n
10651 <\/td> 4036.54 <\/td> 0.23 <\/td> 82.40 <\/td> <\/tr>\n
8868 <\/td> 3518.04 <\/td> 0.23 <\/td> 82.40 <\/td> <\/tr>\n
9417 <\/td> 3999.37 <\/td> 0.17 <\/td> 82.40 <\/td> <\/tr>\n
8874 <\/td> 3629.07 <\/td> 0.15 <\/td> 82.40 <\/td> <\/tr>\n
10962 <\/td> 4608.66 <\/td> 0.20 <\/td> 58.60 <\/td> <\/tr>\n
10743 <\/td> 4787.62 <\/td> 0.26 <\/td> 58.60 <\/td> <\/tr>\n
11878 <\/td> 4864.22 <\/td> 0.20 <\/td> 58.60 <\/td> <\/tr>\n
9867 <\/td> 4479.41 <\/td> 0.14 <\/td> 58.60 <\/td> <\/tr>\n
7838 <\/td> 3428.74 <\/td> 0.11 <\/td> 142.00 <\/td> <\/tr>\n
11876 <\/td> 4353.14 <\/td> 0.29 <\/td> 142.00 <\/td> <\/tr>\n
12212 <\/td> 4697.65 <\/td> 0.24 <\/td> 142.00 <\/td> <\/tr>\n
8233 <\/td> 3518.44 <\/td> 0.16 <\/td> 142.00 <\/td> <\/tr>\n
6360 <\/td> 1977.39 <\/td> 0.28 <\/td> 740.00 <\/td> <\/tr>\n
4193 <\/td> 1379.35 <\/td> 0.18 <\/td> 740.00 <\/td> <\/tr>\n
7416 <\/td> 1916.24 <\/td> 0.19 <\/td> 740.00 <\/td> <\/tr>\n
5246 <\/td> 1585.42 <\/td> 0.13 <\/td> 740.00 <\/td> <\/tr>\n
6509 <\/td> 1851.21 <\/td> 0.23 <\/td> 890.00 <\/td> <\/tr>\n
4895 <\/td> 1239.66 <\/td> 0.34 <\/td> 890.00 <\/td> <\/tr>\n
6775 <\/td> 1728.14 <\/td> 0.31 <\/td> 890.00 <\/td> <\/tr>\n
7894 <\/td> 1461.06 <\/td> 0.28 <\/td> 890.00 <\/td> <\/tr>\n
5980 <\/td> 1426.76 <\/td> 0.20 <\/td> 950.00 <\/td> <\/tr>\n
5318 <\/td> 990.39 <\/td> 0.33 <\/td> 950.00 <\/td> <\/tr>\n
7392 <\/td> 1350.76 <\/td> 0.15 <\/td> 950.00 <\/td> <\/tr>\n
7894 <\/td> 1461.06 <\/td> 0.28 <\/td> 950.00 <\/td> <\/tr>\n
3469 <\/td> 1376.70 <\/td> 0.18 <\/td> 100.00 <\/td> <\/tr>\n
1468 <\/td> 476.32 <\/td> 0.44 <\/td> 100.00 <\/td> <\/tr>\n
3524 <\/td> 1189.46 <\/td> 0.16 <\/td> 100.00 <\/td> <\/tr>\n
5267 <\/td> 1644.96 <\/td> 0.25 <\/td> 100.00 <\/td> <\/tr>\n
5048 <\/td> 941.54 <\/td> 0.33 <\/td> 1300.00 <\/td> <\/tr>\n
1016 <\/td> 308.64 <\/td> 0.23 <\/td> 1300.00 <\/td> <\/tr>\n
5605 <\/td> 1145.69 <\/td> 0.46 <\/td> 1300.00 <\/td> <\/tr>\n
8793 <\/td> 2280.49 <\/td> 0.42 <\/td> 1300.00 <\/td> <\/tr>\n
3475 <\/td> 1174.11 <\/td> 0.20 <\/td> 580.00 <\/td> <\/tr>\n
1651 <\/td> 597.81 <\/td> 0.26 <\/td> 580.00 <\/td> <\/tr>\n
5514 <\/td> 1455.88 <\/td> 0.18 <\/td> 580.00 <\/td> <\/tr>\n
9718 <\/td> 1485.58 <\/td> 0.20 <\/td> 580.00 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/010-download/tests/mytest-expected-mac/006.png b/010-download/tests/mytest-expected-mac/006.png new file mode 100644 index 00000000..b76366f9 Binary files /dev/null and b/010-download/tests/mytest-expected-mac/006.png differ diff --git a/010-download/tests/mytest-expected/001.json b/010-download/tests/mytest-expected/001.json new file mode 100644 index 00000000..b7dad789 --- /dev/null +++ b/010-download/tests/mytest-expected/001.json @@ -0,0 +1,11 @@ +{ + "input": { + "dataset": "rock" + }, + "output": { + "table": "\n\n
area <\/th> peri <\/th> shape <\/th> perm <\/th> <\/tr> <\/thead>
4990 <\/td> 2791.90 <\/td> 0.09 <\/td> 6.30 <\/td> <\/tr>\n
7002 <\/td> 3892.60 <\/td> 0.15 <\/td> 6.30 <\/td> <\/tr>\n
7558 <\/td> 3930.66 <\/td> 0.18 <\/td> 6.30 <\/td> <\/tr>\n
7352 <\/td> 3869.32 <\/td> 0.12 <\/td> 6.30 <\/td> <\/tr>\n
7943 <\/td> 3948.54 <\/td> 0.12 <\/td> 17.10 <\/td> <\/tr>\n
7979 <\/td> 4010.15 <\/td> 0.17 <\/td> 17.10 <\/td> <\/tr>\n
9333 <\/td> 4345.75 <\/td> 0.19 <\/td> 17.10 <\/td> <\/tr>\n
8209 <\/td> 4344.75 <\/td> 0.16 <\/td> 17.10 <\/td> <\/tr>\n
8393 <\/td> 3682.04 <\/td> 0.20 <\/td> 119.00 <\/td> <\/tr>\n
6425 <\/td> 3098.65 <\/td> 0.16 <\/td> 119.00 <\/td> <\/tr>\n
9364 <\/td> 4480.05 <\/td> 0.15 <\/td> 119.00 <\/td> <\/tr>\n
8624 <\/td> 3986.24 <\/td> 0.15 <\/td> 119.00 <\/td> <\/tr>\n
10651 <\/td> 4036.54 <\/td> 0.23 <\/td> 82.40 <\/td> <\/tr>\n
8868 <\/td> 3518.04 <\/td> 0.23 <\/td> 82.40 <\/td> <\/tr>\n
9417 <\/td> 3999.37 <\/td> 0.17 <\/td> 82.40 <\/td> <\/tr>\n
8874 <\/td> 3629.07 <\/td> 0.15 <\/td> 82.40 <\/td> <\/tr>\n
10962 <\/td> 4608.66 <\/td> 0.20 <\/td> 58.60 <\/td> <\/tr>\n
10743 <\/td> 4787.62 <\/td> 0.26 <\/td> 58.60 <\/td> <\/tr>\n
11878 <\/td> 4864.22 <\/td> 0.20 <\/td> 58.60 <\/td> <\/tr>\n
9867 <\/td> 4479.41 <\/td> 0.14 <\/td> 58.60 <\/td> <\/tr>\n
7838 <\/td> 3428.74 <\/td> 0.11 <\/td> 142.00 <\/td> <\/tr>\n
11876 <\/td> 4353.14 <\/td> 0.29 <\/td> 142.00 <\/td> <\/tr>\n
12212 <\/td> 4697.65 <\/td> 0.24 <\/td> 142.00 <\/td> <\/tr>\n
8233 <\/td> 3518.44 <\/td> 0.16 <\/td> 142.00 <\/td> <\/tr>\n
6360 <\/td> 1977.39 <\/td> 0.28 <\/td> 740.00 <\/td> <\/tr>\n
4193 <\/td> 1379.35 <\/td> 0.18 <\/td> 740.00 <\/td> <\/tr>\n
7416 <\/td> 1916.24 <\/td> 0.19 <\/td> 740.00 <\/td> <\/tr>\n
5246 <\/td> 1585.42 <\/td> 0.13 <\/td> 740.00 <\/td> <\/tr>\n
6509 <\/td> 1851.21 <\/td> 0.23 <\/td> 890.00 <\/td> <\/tr>\n
4895 <\/td> 1239.66 <\/td> 0.34 <\/td> 890.00 <\/td> <\/tr>\n
6775 <\/td> 1728.14 <\/td> 0.31 <\/td> 890.00 <\/td> <\/tr>\n
7894 <\/td> 1461.06 <\/td> 0.28 <\/td> 890.00 <\/td> <\/tr>\n
5980 <\/td> 1426.76 <\/td> 0.20 <\/td> 950.00 <\/td> <\/tr>\n
5318 <\/td> 990.39 <\/td> 0.33 <\/td> 950.00 <\/td> <\/tr>\n
7392 <\/td> 1350.76 <\/td> 0.15 <\/td> 950.00 <\/td> <\/tr>\n
7894 <\/td> 1461.06 <\/td> 0.28 <\/td> 950.00 <\/td> <\/tr>\n
3469 <\/td> 1376.70 <\/td> 0.18 <\/td> 100.00 <\/td> <\/tr>\n
1468 <\/td> 476.32 <\/td> 0.44 <\/td> 100.00 <\/td> <\/tr>\n
3524 <\/td> 1189.46 <\/td> 0.16 <\/td> 100.00 <\/td> <\/tr>\n
5267 <\/td> 1644.96 <\/td> 0.25 <\/td> 100.00 <\/td> <\/tr>\n
5048 <\/td> 941.54 <\/td> 0.33 <\/td> 1300.00 <\/td> <\/tr>\n
1016 <\/td> 308.64 <\/td> 0.23 <\/td> 1300.00 <\/td> <\/tr>\n
5605 <\/td> 1145.69 <\/td> 0.46 <\/td> 1300.00 <\/td> <\/tr>\n
8793 <\/td> 2280.49 <\/td> 0.42 <\/td> 1300.00 <\/td> <\/tr>\n
3475 <\/td> 1174.11 <\/td> 0.20 <\/td> 580.00 <\/td> <\/tr>\n
1651 <\/td> 597.81 <\/td> 0.26 <\/td> 580.00 <\/td> <\/tr>\n
5514 <\/td> 1455.88 <\/td> 0.18 <\/td> 580.00 <\/td> <\/tr>\n
9718 <\/td> 1485.58 <\/td> 0.20 <\/td> 580.00 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/010-download/tests/mytest-expected/001.png b/010-download/tests/mytest-expected/001.png new file mode 100644 index 00000000..b76366f9 Binary files /dev/null and b/010-download/tests/mytest-expected/001.png differ diff --git a/010-download/tests/mytest-expected/002.json b/010-download/tests/mytest-expected/002.json new file mode 100644 index 00000000..d20d14eb --- /dev/null +++ b/010-download/tests/mytest-expected/002.json @@ -0,0 +1,11 @@ +{ + "input": { + "dataset": "pressure" + }, + "output": { + "table": "\n\n
temperature <\/th> pressure <\/th> <\/tr> <\/thead>
0.00 <\/td> 0.00 <\/td> <\/tr>\n
20.00 <\/td> 0.00 <\/td> <\/tr>\n
40.00 <\/td> 0.01 <\/td> <\/tr>\n
60.00 <\/td> 0.03 <\/td> <\/tr>\n
80.00 <\/td> 0.09 <\/td> <\/tr>\n
100.00 <\/td> 0.27 <\/td> <\/tr>\n
120.00 <\/td> 0.75 <\/td> <\/tr>\n
140.00 <\/td> 1.85 <\/td> <\/tr>\n
160.00 <\/td> 4.20 <\/td> <\/tr>\n
180.00 <\/td> 8.80 <\/td> <\/tr>\n
200.00 <\/td> 17.30 <\/td> <\/tr>\n
220.00 <\/td> 32.10 <\/td> <\/tr>\n
240.00 <\/td> 57.00 <\/td> <\/tr>\n
260.00 <\/td> 96.00 <\/td> <\/tr>\n
280.00 <\/td> 157.00 <\/td> <\/tr>\n
300.00 <\/td> 247.00 <\/td> <\/tr>\n
320.00 <\/td> 376.00 <\/td> <\/tr>\n
340.00 <\/td> 558.00 <\/td> <\/tr>\n
360.00 <\/td> 806.00 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/010-download/tests/mytest-expected/002.png b/010-download/tests/mytest-expected/002.png new file mode 100644 index 00000000..0a7db85d Binary files /dev/null and b/010-download/tests/mytest-expected/002.png differ diff --git a/010-download/tests/mytest-expected/003.json b/010-download/tests/mytest-expected/003.json new file mode 100644 index 00000000..befc3620 --- /dev/null +++ b/010-download/tests/mytest-expected/003.json @@ -0,0 +1,11 @@ +{ + "input": { + "dataset": "cars" + }, + "output": { + "table": "\n\n
speed <\/th> dist <\/th> <\/tr> <\/thead>
4.00 <\/td> 2.00 <\/td> <\/tr>\n
4.00 <\/td> 10.00 <\/td> <\/tr>\n
7.00 <\/td> 4.00 <\/td> <\/tr>\n
7.00 <\/td> 22.00 <\/td> <\/tr>\n
8.00 <\/td> 16.00 <\/td> <\/tr>\n
9.00 <\/td> 10.00 <\/td> <\/tr>\n
10.00 <\/td> 18.00 <\/td> <\/tr>\n
10.00 <\/td> 26.00 <\/td> <\/tr>\n
10.00 <\/td> 34.00 <\/td> <\/tr>\n
11.00 <\/td> 17.00 <\/td> <\/tr>\n
11.00 <\/td> 28.00 <\/td> <\/tr>\n
12.00 <\/td> 14.00 <\/td> <\/tr>\n
12.00 <\/td> 20.00 <\/td> <\/tr>\n
12.00 <\/td> 24.00 <\/td> <\/tr>\n
12.00 <\/td> 28.00 <\/td> <\/tr>\n
13.00 <\/td> 26.00 <\/td> <\/tr>\n
13.00 <\/td> 34.00 <\/td> <\/tr>\n
13.00 <\/td> 34.00 <\/td> <\/tr>\n
13.00 <\/td> 46.00 <\/td> <\/tr>\n
14.00 <\/td> 26.00 <\/td> <\/tr>\n
14.00 <\/td> 36.00 <\/td> <\/tr>\n
14.00 <\/td> 60.00 <\/td> <\/tr>\n
14.00 <\/td> 80.00 <\/td> <\/tr>\n
15.00 <\/td> 20.00 <\/td> <\/tr>\n
15.00 <\/td> 26.00 <\/td> <\/tr>\n
15.00 <\/td> 54.00 <\/td> <\/tr>\n
16.00 <\/td> 32.00 <\/td> <\/tr>\n
16.00 <\/td> 40.00 <\/td> <\/tr>\n
17.00 <\/td> 32.00 <\/td> <\/tr>\n
17.00 <\/td> 40.00 <\/td> <\/tr>\n
17.00 <\/td> 50.00 <\/td> <\/tr>\n
18.00 <\/td> 42.00 <\/td> <\/tr>\n
18.00 <\/td> 56.00 <\/td> <\/tr>\n
18.00 <\/td> 76.00 <\/td> <\/tr>\n
18.00 <\/td> 84.00 <\/td> <\/tr>\n
19.00 <\/td> 36.00 <\/td> <\/tr>\n
19.00 <\/td> 46.00 <\/td> <\/tr>\n
19.00 <\/td> 68.00 <\/td> <\/tr>\n
20.00 <\/td> 32.00 <\/td> <\/tr>\n
20.00 <\/td> 48.00 <\/td> <\/tr>\n
20.00 <\/td> 52.00 <\/td> <\/tr>\n
20.00 <\/td> 56.00 <\/td> <\/tr>\n
20.00 <\/td> 64.00 <\/td> <\/tr>\n
22.00 <\/td> 66.00 <\/td> <\/tr>\n
23.00 <\/td> 54.00 <\/td> <\/tr>\n
24.00 <\/td> 70.00 <\/td> <\/tr>\n
24.00 <\/td> 92.00 <\/td> <\/tr>\n
24.00 <\/td> 93.00 <\/td> <\/tr>\n
24.00 <\/td> 120.00 <\/td> <\/tr>\n
25.00 <\/td> 85.00 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/010-download/tests/mytest-expected/003.png b/010-download/tests/mytest-expected/003.png new file mode 100644 index 00000000..3db245ce Binary files /dev/null and b/010-download/tests/mytest-expected/003.png differ diff --git a/010-download/tests/mytest-expected/004.download b/010-download/tests/mytest-expected/004.download new file mode 100644 index 00000000..5d0acdb9 --- /dev/null +++ b/010-download/tests/mytest-expected/004.download @@ -0,0 +1,51 @@ +"speed","dist" +4,2 +4,10 +7,4 +7,22 +8,16 +9,10 +10,18 +10,26 +10,34 +11,17 +11,28 +12,14 +12,20 +12,24 +12,28 +13,26 +13,34 +13,34 +13,46 +14,26 +14,36 +14,60 +14,80 +15,20 +15,26 +15,54 +16,32 +16,40 +17,32 +17,40 +17,50 +18,42 +18,56 +18,76 +18,84 +19,36 +19,46 +19,68 +20,32 +20,48 +20,52 +20,56 +20,64 +22,66 +23,54 +24,70 +24,92 +24,93 +24,120 +25,85 diff --git a/010-download/tests/mytest-expected/005.json b/010-download/tests/mytest-expected/005.json new file mode 100644 index 00000000..befc3620 --- /dev/null +++ b/010-download/tests/mytest-expected/005.json @@ -0,0 +1,11 @@ +{ + "input": { + "dataset": "cars" + }, + "output": { + "table": "\n\n
speed <\/th> dist <\/th> <\/tr> <\/thead>
4.00 <\/td> 2.00 <\/td> <\/tr>\n
4.00 <\/td> 10.00 <\/td> <\/tr>\n
7.00 <\/td> 4.00 <\/td> <\/tr>\n
7.00 <\/td> 22.00 <\/td> <\/tr>\n
8.00 <\/td> 16.00 <\/td> <\/tr>\n
9.00 <\/td> 10.00 <\/td> <\/tr>\n
10.00 <\/td> 18.00 <\/td> <\/tr>\n
10.00 <\/td> 26.00 <\/td> <\/tr>\n
10.00 <\/td> 34.00 <\/td> <\/tr>\n
11.00 <\/td> 17.00 <\/td> <\/tr>\n
11.00 <\/td> 28.00 <\/td> <\/tr>\n
12.00 <\/td> 14.00 <\/td> <\/tr>\n
12.00 <\/td> 20.00 <\/td> <\/tr>\n
12.00 <\/td> 24.00 <\/td> <\/tr>\n
12.00 <\/td> 28.00 <\/td> <\/tr>\n
13.00 <\/td> 26.00 <\/td> <\/tr>\n
13.00 <\/td> 34.00 <\/td> <\/tr>\n
13.00 <\/td> 34.00 <\/td> <\/tr>\n
13.00 <\/td> 46.00 <\/td> <\/tr>\n
14.00 <\/td> 26.00 <\/td> <\/tr>\n
14.00 <\/td> 36.00 <\/td> <\/tr>\n
14.00 <\/td> 60.00 <\/td> <\/tr>\n
14.00 <\/td> 80.00 <\/td> <\/tr>\n
15.00 <\/td> 20.00 <\/td> <\/tr>\n
15.00 <\/td> 26.00 <\/td> <\/tr>\n
15.00 <\/td> 54.00 <\/td> <\/tr>\n
16.00 <\/td> 32.00 <\/td> <\/tr>\n
16.00 <\/td> 40.00 <\/td> <\/tr>\n
17.00 <\/td> 32.00 <\/td> <\/tr>\n
17.00 <\/td> 40.00 <\/td> <\/tr>\n
17.00 <\/td> 50.00 <\/td> <\/tr>\n
18.00 <\/td> 42.00 <\/td> <\/tr>\n
18.00 <\/td> 56.00 <\/td> <\/tr>\n
18.00 <\/td> 76.00 <\/td> <\/tr>\n
18.00 <\/td> 84.00 <\/td> <\/tr>\n
19.00 <\/td> 36.00 <\/td> <\/tr>\n
19.00 <\/td> 46.00 <\/td> <\/tr>\n
19.00 <\/td> 68.00 <\/td> <\/tr>\n
20.00 <\/td> 32.00 <\/td> <\/tr>\n
20.00 <\/td> 48.00 <\/td> <\/tr>\n
20.00 <\/td> 52.00 <\/td> <\/tr>\n
20.00 <\/td> 56.00 <\/td> <\/tr>\n
20.00 <\/td> 64.00 <\/td> <\/tr>\n
22.00 <\/td> 66.00 <\/td> <\/tr>\n
23.00 <\/td> 54.00 <\/td> <\/tr>\n
24.00 <\/td> 70.00 <\/td> <\/tr>\n
24.00 <\/td> 92.00 <\/td> <\/tr>\n
24.00 <\/td> 93.00 <\/td> <\/tr>\n
24.00 <\/td> 120.00 <\/td> <\/tr>\n
25.00 <\/td> 85.00 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/010-download/tests/mytest-expected/005.png b/010-download/tests/mytest-expected/005.png new file mode 100644 index 00000000..3db245ce Binary files /dev/null and b/010-download/tests/mytest-expected/005.png differ diff --git a/010-download/tests/mytest-expected/006.json b/010-download/tests/mytest-expected/006.json new file mode 100644 index 00000000..b7dad789 --- /dev/null +++ b/010-download/tests/mytest-expected/006.json @@ -0,0 +1,11 @@ +{ + "input": { + "dataset": "rock" + }, + "output": { + "table": "\n\n
area <\/th> peri <\/th> shape <\/th> perm <\/th> <\/tr> <\/thead>
4990 <\/td> 2791.90 <\/td> 0.09 <\/td> 6.30 <\/td> <\/tr>\n
7002 <\/td> 3892.60 <\/td> 0.15 <\/td> 6.30 <\/td> <\/tr>\n
7558 <\/td> 3930.66 <\/td> 0.18 <\/td> 6.30 <\/td> <\/tr>\n
7352 <\/td> 3869.32 <\/td> 0.12 <\/td> 6.30 <\/td> <\/tr>\n
7943 <\/td> 3948.54 <\/td> 0.12 <\/td> 17.10 <\/td> <\/tr>\n
7979 <\/td> 4010.15 <\/td> 0.17 <\/td> 17.10 <\/td> <\/tr>\n
9333 <\/td> 4345.75 <\/td> 0.19 <\/td> 17.10 <\/td> <\/tr>\n
8209 <\/td> 4344.75 <\/td> 0.16 <\/td> 17.10 <\/td> <\/tr>\n
8393 <\/td> 3682.04 <\/td> 0.20 <\/td> 119.00 <\/td> <\/tr>\n
6425 <\/td> 3098.65 <\/td> 0.16 <\/td> 119.00 <\/td> <\/tr>\n
9364 <\/td> 4480.05 <\/td> 0.15 <\/td> 119.00 <\/td> <\/tr>\n
8624 <\/td> 3986.24 <\/td> 0.15 <\/td> 119.00 <\/td> <\/tr>\n
10651 <\/td> 4036.54 <\/td> 0.23 <\/td> 82.40 <\/td> <\/tr>\n
8868 <\/td> 3518.04 <\/td> 0.23 <\/td> 82.40 <\/td> <\/tr>\n
9417 <\/td> 3999.37 <\/td> 0.17 <\/td> 82.40 <\/td> <\/tr>\n
8874 <\/td> 3629.07 <\/td> 0.15 <\/td> 82.40 <\/td> <\/tr>\n
10962 <\/td> 4608.66 <\/td> 0.20 <\/td> 58.60 <\/td> <\/tr>\n
10743 <\/td> 4787.62 <\/td> 0.26 <\/td> 58.60 <\/td> <\/tr>\n
11878 <\/td> 4864.22 <\/td> 0.20 <\/td> 58.60 <\/td> <\/tr>\n
9867 <\/td> 4479.41 <\/td> 0.14 <\/td> 58.60 <\/td> <\/tr>\n
7838 <\/td> 3428.74 <\/td> 0.11 <\/td> 142.00 <\/td> <\/tr>\n
11876 <\/td> 4353.14 <\/td> 0.29 <\/td> 142.00 <\/td> <\/tr>\n
12212 <\/td> 4697.65 <\/td> 0.24 <\/td> 142.00 <\/td> <\/tr>\n
8233 <\/td> 3518.44 <\/td> 0.16 <\/td> 142.00 <\/td> <\/tr>\n
6360 <\/td> 1977.39 <\/td> 0.28 <\/td> 740.00 <\/td> <\/tr>\n
4193 <\/td> 1379.35 <\/td> 0.18 <\/td> 740.00 <\/td> <\/tr>\n
7416 <\/td> 1916.24 <\/td> 0.19 <\/td> 740.00 <\/td> <\/tr>\n
5246 <\/td> 1585.42 <\/td> 0.13 <\/td> 740.00 <\/td> <\/tr>\n
6509 <\/td> 1851.21 <\/td> 0.23 <\/td> 890.00 <\/td> <\/tr>\n
4895 <\/td> 1239.66 <\/td> 0.34 <\/td> 890.00 <\/td> <\/tr>\n
6775 <\/td> 1728.14 <\/td> 0.31 <\/td> 890.00 <\/td> <\/tr>\n
7894 <\/td> 1461.06 <\/td> 0.28 <\/td> 890.00 <\/td> <\/tr>\n
5980 <\/td> 1426.76 <\/td> 0.20 <\/td> 950.00 <\/td> <\/tr>\n
5318 <\/td> 990.39 <\/td> 0.33 <\/td> 950.00 <\/td> <\/tr>\n
7392 <\/td> 1350.76 <\/td> 0.15 <\/td> 950.00 <\/td> <\/tr>\n
7894 <\/td> 1461.06 <\/td> 0.28 <\/td> 950.00 <\/td> <\/tr>\n
3469 <\/td> 1376.70 <\/td> 0.18 <\/td> 100.00 <\/td> <\/tr>\n
1468 <\/td> 476.32 <\/td> 0.44 <\/td> 100.00 <\/td> <\/tr>\n
3524 <\/td> 1189.46 <\/td> 0.16 <\/td> 100.00 <\/td> <\/tr>\n
5267 <\/td> 1644.96 <\/td> 0.25 <\/td> 100.00 <\/td> <\/tr>\n
5048 <\/td> 941.54 <\/td> 0.33 <\/td> 1300.00 <\/td> <\/tr>\n
1016 <\/td> 308.64 <\/td> 0.23 <\/td> 1300.00 <\/td> <\/tr>\n
5605 <\/td> 1145.69 <\/td> 0.46 <\/td> 1300.00 <\/td> <\/tr>\n
8793 <\/td> 2280.49 <\/td> 0.42 <\/td> 1300.00 <\/td> <\/tr>\n
3475 <\/td> 1174.11 <\/td> 0.20 <\/td> 580.00 <\/td> <\/tr>\n
1651 <\/td> 597.81 <\/td> 0.26 <\/td> 580.00 <\/td> <\/tr>\n
5514 <\/td> 1455.88 <\/td> 0.18 <\/td> 580.00 <\/td> <\/tr>\n
9718 <\/td> 1485.58 <\/td> 0.20 <\/td> 580.00 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/010-download/tests/mytest-expected/006.png b/010-download/tests/mytest-expected/006.png new file mode 100644 index 00000000..b76366f9 Binary files /dev/null and b/010-download/tests/mytest-expected/006.png differ diff --git a/010-download/tests/mytest.R b/010-download/tests/mytest.R new file mode 100644 index 00000000..3848e664 --- /dev/null +++ b/010-download/tests/mytest.R @@ -0,0 +1,13 @@ +app <- ShinyDriver$new("../", seed = 100,shinyOptions = list(display.mode = "normal")) +app$snapshotInit("mytest") + +app$snapshot() +app$setInputs(dataset = "pressure") +app$snapshot() +app$setInputs(dataset = "cars") +app$snapshot() +app$snapshotDownload("downloadData") +app$snapshot() +app$setInputs(dataset = "rock") +app$snapshot() +app$setInputs(dataset = "pressure") diff --git a/010-download/tests/mytest2-expected-mac/001.json b/010-download/tests/mytest2-expected-mac/001.json new file mode 100644 index 00000000..b7dad789 --- /dev/null +++ b/010-download/tests/mytest2-expected-mac/001.json @@ -0,0 +1,11 @@ +{ + "input": { + "dataset": "rock" + }, + "output": { + "table": "\n\n
area <\/th> peri <\/th> shape <\/th> perm <\/th> <\/tr> <\/thead>
4990 <\/td> 2791.90 <\/td> 0.09 <\/td> 6.30 <\/td> <\/tr>\n
7002 <\/td> 3892.60 <\/td> 0.15 <\/td> 6.30 <\/td> <\/tr>\n
7558 <\/td> 3930.66 <\/td> 0.18 <\/td> 6.30 <\/td> <\/tr>\n
7352 <\/td> 3869.32 <\/td> 0.12 <\/td> 6.30 <\/td> <\/tr>\n
7943 <\/td> 3948.54 <\/td> 0.12 <\/td> 17.10 <\/td> <\/tr>\n
7979 <\/td> 4010.15 <\/td> 0.17 <\/td> 17.10 <\/td> <\/tr>\n
9333 <\/td> 4345.75 <\/td> 0.19 <\/td> 17.10 <\/td> <\/tr>\n
8209 <\/td> 4344.75 <\/td> 0.16 <\/td> 17.10 <\/td> <\/tr>\n
8393 <\/td> 3682.04 <\/td> 0.20 <\/td> 119.00 <\/td> <\/tr>\n
6425 <\/td> 3098.65 <\/td> 0.16 <\/td> 119.00 <\/td> <\/tr>\n
9364 <\/td> 4480.05 <\/td> 0.15 <\/td> 119.00 <\/td> <\/tr>\n
8624 <\/td> 3986.24 <\/td> 0.15 <\/td> 119.00 <\/td> <\/tr>\n
10651 <\/td> 4036.54 <\/td> 0.23 <\/td> 82.40 <\/td> <\/tr>\n
8868 <\/td> 3518.04 <\/td> 0.23 <\/td> 82.40 <\/td> <\/tr>\n
9417 <\/td> 3999.37 <\/td> 0.17 <\/td> 82.40 <\/td> <\/tr>\n
8874 <\/td> 3629.07 <\/td> 0.15 <\/td> 82.40 <\/td> <\/tr>\n
10962 <\/td> 4608.66 <\/td> 0.20 <\/td> 58.60 <\/td> <\/tr>\n
10743 <\/td> 4787.62 <\/td> 0.26 <\/td> 58.60 <\/td> <\/tr>\n
11878 <\/td> 4864.22 <\/td> 0.20 <\/td> 58.60 <\/td> <\/tr>\n
9867 <\/td> 4479.41 <\/td> 0.14 <\/td> 58.60 <\/td> <\/tr>\n
7838 <\/td> 3428.74 <\/td> 0.11 <\/td> 142.00 <\/td> <\/tr>\n
11876 <\/td> 4353.14 <\/td> 0.29 <\/td> 142.00 <\/td> <\/tr>\n
12212 <\/td> 4697.65 <\/td> 0.24 <\/td> 142.00 <\/td> <\/tr>\n
8233 <\/td> 3518.44 <\/td> 0.16 <\/td> 142.00 <\/td> <\/tr>\n
6360 <\/td> 1977.39 <\/td> 0.28 <\/td> 740.00 <\/td> <\/tr>\n
4193 <\/td> 1379.35 <\/td> 0.18 <\/td> 740.00 <\/td> <\/tr>\n
7416 <\/td> 1916.24 <\/td> 0.19 <\/td> 740.00 <\/td> <\/tr>\n
5246 <\/td> 1585.42 <\/td> 0.13 <\/td> 740.00 <\/td> <\/tr>\n
6509 <\/td> 1851.21 <\/td> 0.23 <\/td> 890.00 <\/td> <\/tr>\n
4895 <\/td> 1239.66 <\/td> 0.34 <\/td> 890.00 <\/td> <\/tr>\n
6775 <\/td> 1728.14 <\/td> 0.31 <\/td> 890.00 <\/td> <\/tr>\n
7894 <\/td> 1461.06 <\/td> 0.28 <\/td> 890.00 <\/td> <\/tr>\n
5980 <\/td> 1426.76 <\/td> 0.20 <\/td> 950.00 <\/td> <\/tr>\n
5318 <\/td> 990.39 <\/td> 0.33 <\/td> 950.00 <\/td> <\/tr>\n
7392 <\/td> 1350.76 <\/td> 0.15 <\/td> 950.00 <\/td> <\/tr>\n
7894 <\/td> 1461.06 <\/td> 0.28 <\/td> 950.00 <\/td> <\/tr>\n
3469 <\/td> 1376.70 <\/td> 0.18 <\/td> 100.00 <\/td> <\/tr>\n
1468 <\/td> 476.32 <\/td> 0.44 <\/td> 100.00 <\/td> <\/tr>\n
3524 <\/td> 1189.46 <\/td> 0.16 <\/td> 100.00 <\/td> <\/tr>\n
5267 <\/td> 1644.96 <\/td> 0.25 <\/td> 100.00 <\/td> <\/tr>\n
5048 <\/td> 941.54 <\/td> 0.33 <\/td> 1300.00 <\/td> <\/tr>\n
1016 <\/td> 308.64 <\/td> 0.23 <\/td> 1300.00 <\/td> <\/tr>\n
5605 <\/td> 1145.69 <\/td> 0.46 <\/td> 1300.00 <\/td> <\/tr>\n
8793 <\/td> 2280.49 <\/td> 0.42 <\/td> 1300.00 <\/td> <\/tr>\n
3475 <\/td> 1174.11 <\/td> 0.20 <\/td> 580.00 <\/td> <\/tr>\n
1651 <\/td> 597.81 <\/td> 0.26 <\/td> 580.00 <\/td> <\/tr>\n
5514 <\/td> 1455.88 <\/td> 0.18 <\/td> 580.00 <\/td> <\/tr>\n
9718 <\/td> 1485.58 <\/td> 0.20 <\/td> 580.00 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/010-download/tests/mytest2-expected-mac/001.png b/010-download/tests/mytest2-expected-mac/001.png new file mode 100644 index 00000000..b76366f9 Binary files /dev/null and b/010-download/tests/mytest2-expected-mac/001.png differ diff --git a/010-download/tests/mytest2-expected-mac/002.download b/010-download/tests/mytest2-expected-mac/002.download new file mode 100644 index 00000000..a5649077 --- /dev/null +++ b/010-download/tests/mytest2-expected-mac/002.download @@ -0,0 +1,49 @@ +"area","peri","shape","perm" +4990,2791.9,0.0903296,6.3 +7002,3892.6,0.148622,6.3 +7558,3930.66,0.183312,6.3 +7352,3869.32,0.117063,6.3 +7943,3948.54,0.122417,17.1 +7979,4010.15,0.167045,17.1 +9333,4345.75,0.189651,17.1 +8209,4344.75,0.164127,17.1 +8393,3682.04,0.203654,119 +6425,3098.65,0.162394,119 +9364,4480.05,0.150944,119 +8624,3986.24,0.148141,119 +10651,4036.54,0.228595,82.4 +8868,3518.04,0.231623,82.4 +9417,3999.37,0.172567,82.4 +8874,3629.07,0.153481,82.4 +10962,4608.66,0.204314,58.6 +10743,4787.62,0.262727,58.6 +11878,4864.22,0.200071,58.6 +9867,4479.41,0.14481,58.6 +7838,3428.74,0.113852,142 +11876,4353.14,0.291029,142 +12212,4697.65,0.240077,142 +8233,3518.44,0.161865,142 +6360,1977.39,0.280887,740 +4193,1379.35,0.179455,740 +7416,1916.24,0.191802,740 +5246,1585.42,0.133083,740 +6509,1851.21,0.225214,890 +4895,1239.66,0.341273,890 +6775,1728.14,0.311646,890 +7894,1461.06,0.276016,890 +5980,1426.76,0.197653,950 +5318,990.388,0.326635,950 +7392,1350.76,0.154192,950 +7894,1461.06,0.276016,950 +3469,1376.7,0.176969,100 +1468,476.322,0.438712,100 +3524,1189.46,0.163586,100 +5267,1644.96,0.253832,100 +5048,941.543,0.328641,1300 +1016,308.642,0.230081,1300 +5605,1145.69,0.464125,1300 +8793,2280.49,0.420477,1300 +3475,1174.11,0.200744,580 +1651,597.808,0.262651,580 +5514,1455.88,0.182453,580 +9718,1485.58,0.200447,580 diff --git a/010-download/tests/mytest2-expected-mac/003.json b/010-download/tests/mytest2-expected-mac/003.json new file mode 100644 index 00000000..d20d14eb --- /dev/null +++ b/010-download/tests/mytest2-expected-mac/003.json @@ -0,0 +1,11 @@ +{ + "input": { + "dataset": "pressure" + }, + "output": { + "table": "\n\n
temperature <\/th> pressure <\/th> <\/tr> <\/thead>
0.00 <\/td> 0.00 <\/td> <\/tr>\n
20.00 <\/td> 0.00 <\/td> <\/tr>\n
40.00 <\/td> 0.01 <\/td> <\/tr>\n
60.00 <\/td> 0.03 <\/td> <\/tr>\n
80.00 <\/td> 0.09 <\/td> <\/tr>\n
100.00 <\/td> 0.27 <\/td> <\/tr>\n
120.00 <\/td> 0.75 <\/td> <\/tr>\n
140.00 <\/td> 1.85 <\/td> <\/tr>\n
160.00 <\/td> 4.20 <\/td> <\/tr>\n
180.00 <\/td> 8.80 <\/td> <\/tr>\n
200.00 <\/td> 17.30 <\/td> <\/tr>\n
220.00 <\/td> 32.10 <\/td> <\/tr>\n
240.00 <\/td> 57.00 <\/td> <\/tr>\n
260.00 <\/td> 96.00 <\/td> <\/tr>\n
280.00 <\/td> 157.00 <\/td> <\/tr>\n
300.00 <\/td> 247.00 <\/td> <\/tr>\n
320.00 <\/td> 376.00 <\/td> <\/tr>\n
340.00 <\/td> 558.00 <\/td> <\/tr>\n
360.00 <\/td> 806.00 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/010-download/tests/mytest2-expected-mac/003.png b/010-download/tests/mytest2-expected-mac/003.png new file mode 100644 index 00000000..0a7db85d Binary files /dev/null and b/010-download/tests/mytest2-expected-mac/003.png differ diff --git a/010-download/tests/mytest2-expected-mac/004.download b/010-download/tests/mytest2-expected-mac/004.download new file mode 100644 index 00000000..2a6bb442 --- /dev/null +++ b/010-download/tests/mytest2-expected-mac/004.download @@ -0,0 +1,20 @@ +"temperature","pressure" +0,2e-04 +20,0.0012 +40,0.006 +60,0.03 +80,0.09 +100,0.27 +120,0.75 +140,1.85 +160,4.2 +180,8.8 +200,17.3 +220,32.1 +240,57 +260,96 +280,157 +300,247 +320,376 +340,558 +360,806 diff --git a/010-download/tests/mytest2-expected/001.json b/010-download/tests/mytest2-expected/001.json new file mode 100644 index 00000000..b7dad789 --- /dev/null +++ b/010-download/tests/mytest2-expected/001.json @@ -0,0 +1,11 @@ +{ + "input": { + "dataset": "rock" + }, + "output": { + "table": "\n\n
area <\/th> peri <\/th> shape <\/th> perm <\/th> <\/tr> <\/thead>
4990 <\/td> 2791.90 <\/td> 0.09 <\/td> 6.30 <\/td> <\/tr>\n
7002 <\/td> 3892.60 <\/td> 0.15 <\/td> 6.30 <\/td> <\/tr>\n
7558 <\/td> 3930.66 <\/td> 0.18 <\/td> 6.30 <\/td> <\/tr>\n
7352 <\/td> 3869.32 <\/td> 0.12 <\/td> 6.30 <\/td> <\/tr>\n
7943 <\/td> 3948.54 <\/td> 0.12 <\/td> 17.10 <\/td> <\/tr>\n
7979 <\/td> 4010.15 <\/td> 0.17 <\/td> 17.10 <\/td> <\/tr>\n
9333 <\/td> 4345.75 <\/td> 0.19 <\/td> 17.10 <\/td> <\/tr>\n
8209 <\/td> 4344.75 <\/td> 0.16 <\/td> 17.10 <\/td> <\/tr>\n
8393 <\/td> 3682.04 <\/td> 0.20 <\/td> 119.00 <\/td> <\/tr>\n
6425 <\/td> 3098.65 <\/td> 0.16 <\/td> 119.00 <\/td> <\/tr>\n
9364 <\/td> 4480.05 <\/td> 0.15 <\/td> 119.00 <\/td> <\/tr>\n
8624 <\/td> 3986.24 <\/td> 0.15 <\/td> 119.00 <\/td> <\/tr>\n
10651 <\/td> 4036.54 <\/td> 0.23 <\/td> 82.40 <\/td> <\/tr>\n
8868 <\/td> 3518.04 <\/td> 0.23 <\/td> 82.40 <\/td> <\/tr>\n
9417 <\/td> 3999.37 <\/td> 0.17 <\/td> 82.40 <\/td> <\/tr>\n
8874 <\/td> 3629.07 <\/td> 0.15 <\/td> 82.40 <\/td> <\/tr>\n
10962 <\/td> 4608.66 <\/td> 0.20 <\/td> 58.60 <\/td> <\/tr>\n
10743 <\/td> 4787.62 <\/td> 0.26 <\/td> 58.60 <\/td> <\/tr>\n
11878 <\/td> 4864.22 <\/td> 0.20 <\/td> 58.60 <\/td> <\/tr>\n
9867 <\/td> 4479.41 <\/td> 0.14 <\/td> 58.60 <\/td> <\/tr>\n
7838 <\/td> 3428.74 <\/td> 0.11 <\/td> 142.00 <\/td> <\/tr>\n
11876 <\/td> 4353.14 <\/td> 0.29 <\/td> 142.00 <\/td> <\/tr>\n
12212 <\/td> 4697.65 <\/td> 0.24 <\/td> 142.00 <\/td> <\/tr>\n
8233 <\/td> 3518.44 <\/td> 0.16 <\/td> 142.00 <\/td> <\/tr>\n
6360 <\/td> 1977.39 <\/td> 0.28 <\/td> 740.00 <\/td> <\/tr>\n
4193 <\/td> 1379.35 <\/td> 0.18 <\/td> 740.00 <\/td> <\/tr>\n
7416 <\/td> 1916.24 <\/td> 0.19 <\/td> 740.00 <\/td> <\/tr>\n
5246 <\/td> 1585.42 <\/td> 0.13 <\/td> 740.00 <\/td> <\/tr>\n
6509 <\/td> 1851.21 <\/td> 0.23 <\/td> 890.00 <\/td> <\/tr>\n
4895 <\/td> 1239.66 <\/td> 0.34 <\/td> 890.00 <\/td> <\/tr>\n
6775 <\/td> 1728.14 <\/td> 0.31 <\/td> 890.00 <\/td> <\/tr>\n
7894 <\/td> 1461.06 <\/td> 0.28 <\/td> 890.00 <\/td> <\/tr>\n
5980 <\/td> 1426.76 <\/td> 0.20 <\/td> 950.00 <\/td> <\/tr>\n
5318 <\/td> 990.39 <\/td> 0.33 <\/td> 950.00 <\/td> <\/tr>\n
7392 <\/td> 1350.76 <\/td> 0.15 <\/td> 950.00 <\/td> <\/tr>\n
7894 <\/td> 1461.06 <\/td> 0.28 <\/td> 950.00 <\/td> <\/tr>\n
3469 <\/td> 1376.70 <\/td> 0.18 <\/td> 100.00 <\/td> <\/tr>\n
1468 <\/td> 476.32 <\/td> 0.44 <\/td> 100.00 <\/td> <\/tr>\n
3524 <\/td> 1189.46 <\/td> 0.16 <\/td> 100.00 <\/td> <\/tr>\n
5267 <\/td> 1644.96 <\/td> 0.25 <\/td> 100.00 <\/td> <\/tr>\n
5048 <\/td> 941.54 <\/td> 0.33 <\/td> 1300.00 <\/td> <\/tr>\n
1016 <\/td> 308.64 <\/td> 0.23 <\/td> 1300.00 <\/td> <\/tr>\n
5605 <\/td> 1145.69 <\/td> 0.46 <\/td> 1300.00 <\/td> <\/tr>\n
8793 <\/td> 2280.49 <\/td> 0.42 <\/td> 1300.00 <\/td> <\/tr>\n
3475 <\/td> 1174.11 <\/td> 0.20 <\/td> 580.00 <\/td> <\/tr>\n
1651 <\/td> 597.81 <\/td> 0.26 <\/td> 580.00 <\/td> <\/tr>\n
5514 <\/td> 1455.88 <\/td> 0.18 <\/td> 580.00 <\/td> <\/tr>\n
9718 <\/td> 1485.58 <\/td> 0.20 <\/td> 580.00 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/010-download/tests/mytest2-expected/001.png b/010-download/tests/mytest2-expected/001.png new file mode 100644 index 00000000..b76366f9 Binary files /dev/null and b/010-download/tests/mytest2-expected/001.png differ diff --git a/010-download/tests/mytest2-expected/002.download b/010-download/tests/mytest2-expected/002.download new file mode 100644 index 00000000..a5649077 --- /dev/null +++ b/010-download/tests/mytest2-expected/002.download @@ -0,0 +1,49 @@ +"area","peri","shape","perm" +4990,2791.9,0.0903296,6.3 +7002,3892.6,0.148622,6.3 +7558,3930.66,0.183312,6.3 +7352,3869.32,0.117063,6.3 +7943,3948.54,0.122417,17.1 +7979,4010.15,0.167045,17.1 +9333,4345.75,0.189651,17.1 +8209,4344.75,0.164127,17.1 +8393,3682.04,0.203654,119 +6425,3098.65,0.162394,119 +9364,4480.05,0.150944,119 +8624,3986.24,0.148141,119 +10651,4036.54,0.228595,82.4 +8868,3518.04,0.231623,82.4 +9417,3999.37,0.172567,82.4 +8874,3629.07,0.153481,82.4 +10962,4608.66,0.204314,58.6 +10743,4787.62,0.262727,58.6 +11878,4864.22,0.200071,58.6 +9867,4479.41,0.14481,58.6 +7838,3428.74,0.113852,142 +11876,4353.14,0.291029,142 +12212,4697.65,0.240077,142 +8233,3518.44,0.161865,142 +6360,1977.39,0.280887,740 +4193,1379.35,0.179455,740 +7416,1916.24,0.191802,740 +5246,1585.42,0.133083,740 +6509,1851.21,0.225214,890 +4895,1239.66,0.341273,890 +6775,1728.14,0.311646,890 +7894,1461.06,0.276016,890 +5980,1426.76,0.197653,950 +5318,990.388,0.326635,950 +7392,1350.76,0.154192,950 +7894,1461.06,0.276016,950 +3469,1376.7,0.176969,100 +1468,476.322,0.438712,100 +3524,1189.46,0.163586,100 +5267,1644.96,0.253832,100 +5048,941.543,0.328641,1300 +1016,308.642,0.230081,1300 +5605,1145.69,0.464125,1300 +8793,2280.49,0.420477,1300 +3475,1174.11,0.200744,580 +1651,597.808,0.262651,580 +5514,1455.88,0.182453,580 +9718,1485.58,0.200447,580 diff --git a/010-download/tests/mytest2-expected/003.json b/010-download/tests/mytest2-expected/003.json new file mode 100644 index 00000000..d20d14eb --- /dev/null +++ b/010-download/tests/mytest2-expected/003.json @@ -0,0 +1,11 @@ +{ + "input": { + "dataset": "pressure" + }, + "output": { + "table": "\n\n
temperature <\/th> pressure <\/th> <\/tr> <\/thead>
0.00 <\/td> 0.00 <\/td> <\/tr>\n
20.00 <\/td> 0.00 <\/td> <\/tr>\n
40.00 <\/td> 0.01 <\/td> <\/tr>\n
60.00 <\/td> 0.03 <\/td> <\/tr>\n
80.00 <\/td> 0.09 <\/td> <\/tr>\n
100.00 <\/td> 0.27 <\/td> <\/tr>\n
120.00 <\/td> 0.75 <\/td> <\/tr>\n
140.00 <\/td> 1.85 <\/td> <\/tr>\n
160.00 <\/td> 4.20 <\/td> <\/tr>\n
180.00 <\/td> 8.80 <\/td> <\/tr>\n
200.00 <\/td> 17.30 <\/td> <\/tr>\n
220.00 <\/td> 32.10 <\/td> <\/tr>\n
240.00 <\/td> 57.00 <\/td> <\/tr>\n
260.00 <\/td> 96.00 <\/td> <\/tr>\n
280.00 <\/td> 157.00 <\/td> <\/tr>\n
300.00 <\/td> 247.00 <\/td> <\/tr>\n
320.00 <\/td> 376.00 <\/td> <\/tr>\n
340.00 <\/td> 558.00 <\/td> <\/tr>\n
360.00 <\/td> 806.00 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/010-download/tests/mytest2-expected/003.png b/010-download/tests/mytest2-expected/003.png new file mode 100644 index 00000000..0a7db85d Binary files /dev/null and b/010-download/tests/mytest2-expected/003.png differ diff --git a/010-download/tests/mytest2-expected/004.download b/010-download/tests/mytest2-expected/004.download new file mode 100644 index 00000000..2a6bb442 --- /dev/null +++ b/010-download/tests/mytest2-expected/004.download @@ -0,0 +1,20 @@ +"temperature","pressure" +0,2e-04 +20,0.0012 +40,0.006 +60,0.03 +80,0.09 +100,0.27 +120,0.75 +140,1.85 +160,4.2 +180,8.8 +200,17.3 +220,32.1 +240,57 +260,96 +280,157 +300,247 +320,376 +340,558 +360,806 diff --git a/010-download/tests/mytest2.R b/010-download/tests/mytest2.R new file mode 100644 index 00000000..d6b9b679 --- /dev/null +++ b/010-download/tests/mytest2.R @@ -0,0 +1,8 @@ +app <- ShinyDriver$new("../", seed = 100,shinyOptions = list(display.mode = "normal")) +app$snapshotInit("mytest2") + +app$snapshot() +app$snapshotDownload("downloadData") +app$setInputs(dataset = "pressure") +app$snapshot() +app$snapshotDownload("downloadData") diff --git a/010-download/tests/mytest3-expected-mac/001.json b/010-download/tests/mytest3-expected-mac/001.json new file mode 100644 index 00000000..b7dad789 --- /dev/null +++ b/010-download/tests/mytest3-expected-mac/001.json @@ -0,0 +1,11 @@ +{ + "input": { + "dataset": "rock" + }, + "output": { + "table": "\n\n
area <\/th> peri <\/th> shape <\/th> perm <\/th> <\/tr> <\/thead>
4990 <\/td> 2791.90 <\/td> 0.09 <\/td> 6.30 <\/td> <\/tr>\n
7002 <\/td> 3892.60 <\/td> 0.15 <\/td> 6.30 <\/td> <\/tr>\n
7558 <\/td> 3930.66 <\/td> 0.18 <\/td> 6.30 <\/td> <\/tr>\n
7352 <\/td> 3869.32 <\/td> 0.12 <\/td> 6.30 <\/td> <\/tr>\n
7943 <\/td> 3948.54 <\/td> 0.12 <\/td> 17.10 <\/td> <\/tr>\n
7979 <\/td> 4010.15 <\/td> 0.17 <\/td> 17.10 <\/td> <\/tr>\n
9333 <\/td> 4345.75 <\/td> 0.19 <\/td> 17.10 <\/td> <\/tr>\n
8209 <\/td> 4344.75 <\/td> 0.16 <\/td> 17.10 <\/td> <\/tr>\n
8393 <\/td> 3682.04 <\/td> 0.20 <\/td> 119.00 <\/td> <\/tr>\n
6425 <\/td> 3098.65 <\/td> 0.16 <\/td> 119.00 <\/td> <\/tr>\n
9364 <\/td> 4480.05 <\/td> 0.15 <\/td> 119.00 <\/td> <\/tr>\n
8624 <\/td> 3986.24 <\/td> 0.15 <\/td> 119.00 <\/td> <\/tr>\n
10651 <\/td> 4036.54 <\/td> 0.23 <\/td> 82.40 <\/td> <\/tr>\n
8868 <\/td> 3518.04 <\/td> 0.23 <\/td> 82.40 <\/td> <\/tr>\n
9417 <\/td> 3999.37 <\/td> 0.17 <\/td> 82.40 <\/td> <\/tr>\n
8874 <\/td> 3629.07 <\/td> 0.15 <\/td> 82.40 <\/td> <\/tr>\n
10962 <\/td> 4608.66 <\/td> 0.20 <\/td> 58.60 <\/td> <\/tr>\n
10743 <\/td> 4787.62 <\/td> 0.26 <\/td> 58.60 <\/td> <\/tr>\n
11878 <\/td> 4864.22 <\/td> 0.20 <\/td> 58.60 <\/td> <\/tr>\n
9867 <\/td> 4479.41 <\/td> 0.14 <\/td> 58.60 <\/td> <\/tr>\n
7838 <\/td> 3428.74 <\/td> 0.11 <\/td> 142.00 <\/td> <\/tr>\n
11876 <\/td> 4353.14 <\/td> 0.29 <\/td> 142.00 <\/td> <\/tr>\n
12212 <\/td> 4697.65 <\/td> 0.24 <\/td> 142.00 <\/td> <\/tr>\n
8233 <\/td> 3518.44 <\/td> 0.16 <\/td> 142.00 <\/td> <\/tr>\n
6360 <\/td> 1977.39 <\/td> 0.28 <\/td> 740.00 <\/td> <\/tr>\n
4193 <\/td> 1379.35 <\/td> 0.18 <\/td> 740.00 <\/td> <\/tr>\n
7416 <\/td> 1916.24 <\/td> 0.19 <\/td> 740.00 <\/td> <\/tr>\n
5246 <\/td> 1585.42 <\/td> 0.13 <\/td> 740.00 <\/td> <\/tr>\n
6509 <\/td> 1851.21 <\/td> 0.23 <\/td> 890.00 <\/td> <\/tr>\n
4895 <\/td> 1239.66 <\/td> 0.34 <\/td> 890.00 <\/td> <\/tr>\n
6775 <\/td> 1728.14 <\/td> 0.31 <\/td> 890.00 <\/td> <\/tr>\n
7894 <\/td> 1461.06 <\/td> 0.28 <\/td> 890.00 <\/td> <\/tr>\n
5980 <\/td> 1426.76 <\/td> 0.20 <\/td> 950.00 <\/td> <\/tr>\n
5318 <\/td> 990.39 <\/td> 0.33 <\/td> 950.00 <\/td> <\/tr>\n
7392 <\/td> 1350.76 <\/td> 0.15 <\/td> 950.00 <\/td> <\/tr>\n
7894 <\/td> 1461.06 <\/td> 0.28 <\/td> 950.00 <\/td> <\/tr>\n
3469 <\/td> 1376.70 <\/td> 0.18 <\/td> 100.00 <\/td> <\/tr>\n
1468 <\/td> 476.32 <\/td> 0.44 <\/td> 100.00 <\/td> <\/tr>\n
3524 <\/td> 1189.46 <\/td> 0.16 <\/td> 100.00 <\/td> <\/tr>\n
5267 <\/td> 1644.96 <\/td> 0.25 <\/td> 100.00 <\/td> <\/tr>\n
5048 <\/td> 941.54 <\/td> 0.33 <\/td> 1300.00 <\/td> <\/tr>\n
1016 <\/td> 308.64 <\/td> 0.23 <\/td> 1300.00 <\/td> <\/tr>\n
5605 <\/td> 1145.69 <\/td> 0.46 <\/td> 1300.00 <\/td> <\/tr>\n
8793 <\/td> 2280.49 <\/td> 0.42 <\/td> 1300.00 <\/td> <\/tr>\n
3475 <\/td> 1174.11 <\/td> 0.20 <\/td> 580.00 <\/td> <\/tr>\n
1651 <\/td> 597.81 <\/td> 0.26 <\/td> 580.00 <\/td> <\/tr>\n
5514 <\/td> 1455.88 <\/td> 0.18 <\/td> 580.00 <\/td> <\/tr>\n
9718 <\/td> 1485.58 <\/td> 0.20 <\/td> 580.00 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/010-download/tests/mytest3-expected-mac/001.png b/010-download/tests/mytest3-expected-mac/001.png new file mode 100644 index 00000000..97a8890b Binary files /dev/null and b/010-download/tests/mytest3-expected-mac/001.png differ diff --git a/010-download/tests/mytest3-expected-mac/002.download b/010-download/tests/mytest3-expected-mac/002.download new file mode 100644 index 00000000..a5649077 --- /dev/null +++ b/010-download/tests/mytest3-expected-mac/002.download @@ -0,0 +1,49 @@ +"area","peri","shape","perm" +4990,2791.9,0.0903296,6.3 +7002,3892.6,0.148622,6.3 +7558,3930.66,0.183312,6.3 +7352,3869.32,0.117063,6.3 +7943,3948.54,0.122417,17.1 +7979,4010.15,0.167045,17.1 +9333,4345.75,0.189651,17.1 +8209,4344.75,0.164127,17.1 +8393,3682.04,0.203654,119 +6425,3098.65,0.162394,119 +9364,4480.05,0.150944,119 +8624,3986.24,0.148141,119 +10651,4036.54,0.228595,82.4 +8868,3518.04,0.231623,82.4 +9417,3999.37,0.172567,82.4 +8874,3629.07,0.153481,82.4 +10962,4608.66,0.204314,58.6 +10743,4787.62,0.262727,58.6 +11878,4864.22,0.200071,58.6 +9867,4479.41,0.14481,58.6 +7838,3428.74,0.113852,142 +11876,4353.14,0.291029,142 +12212,4697.65,0.240077,142 +8233,3518.44,0.161865,142 +6360,1977.39,0.280887,740 +4193,1379.35,0.179455,740 +7416,1916.24,0.191802,740 +5246,1585.42,0.133083,740 +6509,1851.21,0.225214,890 +4895,1239.66,0.341273,890 +6775,1728.14,0.311646,890 +7894,1461.06,0.276016,890 +5980,1426.76,0.197653,950 +5318,990.388,0.326635,950 +7392,1350.76,0.154192,950 +7894,1461.06,0.276016,950 +3469,1376.7,0.176969,100 +1468,476.322,0.438712,100 +3524,1189.46,0.163586,100 +5267,1644.96,0.253832,100 +5048,941.543,0.328641,1300 +1016,308.642,0.230081,1300 +5605,1145.69,0.464125,1300 +8793,2280.49,0.420477,1300 +3475,1174.11,0.200744,580 +1651,597.808,0.262651,580 +5514,1455.88,0.182453,580 +9718,1485.58,0.200447,580 diff --git a/010-download/tests/mytest3-expected-mac/003.json b/010-download/tests/mytest3-expected-mac/003.json new file mode 100644 index 00000000..d20d14eb --- /dev/null +++ b/010-download/tests/mytest3-expected-mac/003.json @@ -0,0 +1,11 @@ +{ + "input": { + "dataset": "pressure" + }, + "output": { + "table": "\n\n
temperature <\/th> pressure <\/th> <\/tr> <\/thead>
0.00 <\/td> 0.00 <\/td> <\/tr>\n
20.00 <\/td> 0.00 <\/td> <\/tr>\n
40.00 <\/td> 0.01 <\/td> <\/tr>\n
60.00 <\/td> 0.03 <\/td> <\/tr>\n
80.00 <\/td> 0.09 <\/td> <\/tr>\n
100.00 <\/td> 0.27 <\/td> <\/tr>\n
120.00 <\/td> 0.75 <\/td> <\/tr>\n
140.00 <\/td> 1.85 <\/td> <\/tr>\n
160.00 <\/td> 4.20 <\/td> <\/tr>\n
180.00 <\/td> 8.80 <\/td> <\/tr>\n
200.00 <\/td> 17.30 <\/td> <\/tr>\n
220.00 <\/td> 32.10 <\/td> <\/tr>\n
240.00 <\/td> 57.00 <\/td> <\/tr>\n
260.00 <\/td> 96.00 <\/td> <\/tr>\n
280.00 <\/td> 157.00 <\/td> <\/tr>\n
300.00 <\/td> 247.00 <\/td> <\/tr>\n
320.00 <\/td> 376.00 <\/td> <\/tr>\n
340.00 <\/td> 558.00 <\/td> <\/tr>\n
360.00 <\/td> 806.00 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/010-download/tests/mytest3-expected-mac/003.png b/010-download/tests/mytest3-expected-mac/003.png new file mode 100644 index 00000000..5b48872a Binary files /dev/null and b/010-download/tests/mytest3-expected-mac/003.png differ diff --git a/010-download/tests/mytest3-expected-mac/004.download b/010-download/tests/mytest3-expected-mac/004.download new file mode 100644 index 00000000..2a6bb442 --- /dev/null +++ b/010-download/tests/mytest3-expected-mac/004.download @@ -0,0 +1,20 @@ +"temperature","pressure" +0,2e-04 +20,0.0012 +40,0.006 +60,0.03 +80,0.09 +100,0.27 +120,0.75 +140,1.85 +160,4.2 +180,8.8 +200,17.3 +220,32.1 +240,57 +260,96 +280,157 +300,247 +320,376 +340,558 +360,806 diff --git a/010-download/tests/mytest3-expected-mac/005.json b/010-download/tests/mytest3-expected-mac/005.json new file mode 100644 index 00000000..d20d14eb --- /dev/null +++ b/010-download/tests/mytest3-expected-mac/005.json @@ -0,0 +1,11 @@ +{ + "input": { + "dataset": "pressure" + }, + "output": { + "table": "\n\n
temperature <\/th> pressure <\/th> <\/tr> <\/thead>
0.00 <\/td> 0.00 <\/td> <\/tr>\n
20.00 <\/td> 0.00 <\/td> <\/tr>\n
40.00 <\/td> 0.01 <\/td> <\/tr>\n
60.00 <\/td> 0.03 <\/td> <\/tr>\n
80.00 <\/td> 0.09 <\/td> <\/tr>\n
100.00 <\/td> 0.27 <\/td> <\/tr>\n
120.00 <\/td> 0.75 <\/td> <\/tr>\n
140.00 <\/td> 1.85 <\/td> <\/tr>\n
160.00 <\/td> 4.20 <\/td> <\/tr>\n
180.00 <\/td> 8.80 <\/td> <\/tr>\n
200.00 <\/td> 17.30 <\/td> <\/tr>\n
220.00 <\/td> 32.10 <\/td> <\/tr>\n
240.00 <\/td> 57.00 <\/td> <\/tr>\n
260.00 <\/td> 96.00 <\/td> <\/tr>\n
280.00 <\/td> 157.00 <\/td> <\/tr>\n
300.00 <\/td> 247.00 <\/td> <\/tr>\n
320.00 <\/td> 376.00 <\/td> <\/tr>\n
340.00 <\/td> 558.00 <\/td> <\/tr>\n
360.00 <\/td> 806.00 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/010-download/tests/mytest3-expected-mac/005.png b/010-download/tests/mytest3-expected-mac/005.png new file mode 100644 index 00000000..fa81be31 Binary files /dev/null and b/010-download/tests/mytest3-expected-mac/005.png differ diff --git a/010-download/tests/mytest3-expected-mac/006.json b/010-download/tests/mytest3-expected-mac/006.json new file mode 100644 index 00000000..befc3620 --- /dev/null +++ b/010-download/tests/mytest3-expected-mac/006.json @@ -0,0 +1,11 @@ +{ + "input": { + "dataset": "cars" + }, + "output": { + "table": "\n\n
speed <\/th> dist <\/th> <\/tr> <\/thead>
4.00 <\/td> 2.00 <\/td> <\/tr>\n
4.00 <\/td> 10.00 <\/td> <\/tr>\n
7.00 <\/td> 4.00 <\/td> <\/tr>\n
7.00 <\/td> 22.00 <\/td> <\/tr>\n
8.00 <\/td> 16.00 <\/td> <\/tr>\n
9.00 <\/td> 10.00 <\/td> <\/tr>\n
10.00 <\/td> 18.00 <\/td> <\/tr>\n
10.00 <\/td> 26.00 <\/td> <\/tr>\n
10.00 <\/td> 34.00 <\/td> <\/tr>\n
11.00 <\/td> 17.00 <\/td> <\/tr>\n
11.00 <\/td> 28.00 <\/td> <\/tr>\n
12.00 <\/td> 14.00 <\/td> <\/tr>\n
12.00 <\/td> 20.00 <\/td> <\/tr>\n
12.00 <\/td> 24.00 <\/td> <\/tr>\n
12.00 <\/td> 28.00 <\/td> <\/tr>\n
13.00 <\/td> 26.00 <\/td> <\/tr>\n
13.00 <\/td> 34.00 <\/td> <\/tr>\n
13.00 <\/td> 34.00 <\/td> <\/tr>\n
13.00 <\/td> 46.00 <\/td> <\/tr>\n
14.00 <\/td> 26.00 <\/td> <\/tr>\n
14.00 <\/td> 36.00 <\/td> <\/tr>\n
14.00 <\/td> 60.00 <\/td> <\/tr>\n
14.00 <\/td> 80.00 <\/td> <\/tr>\n
15.00 <\/td> 20.00 <\/td> <\/tr>\n
15.00 <\/td> 26.00 <\/td> <\/tr>\n
15.00 <\/td> 54.00 <\/td> <\/tr>\n
16.00 <\/td> 32.00 <\/td> <\/tr>\n
16.00 <\/td> 40.00 <\/td> <\/tr>\n
17.00 <\/td> 32.00 <\/td> <\/tr>\n
17.00 <\/td> 40.00 <\/td> <\/tr>\n
17.00 <\/td> 50.00 <\/td> <\/tr>\n
18.00 <\/td> 42.00 <\/td> <\/tr>\n
18.00 <\/td> 56.00 <\/td> <\/tr>\n
18.00 <\/td> 76.00 <\/td> <\/tr>\n
18.00 <\/td> 84.00 <\/td> <\/tr>\n
19.00 <\/td> 36.00 <\/td> <\/tr>\n
19.00 <\/td> 46.00 <\/td> <\/tr>\n
19.00 <\/td> 68.00 <\/td> <\/tr>\n
20.00 <\/td> 32.00 <\/td> <\/tr>\n
20.00 <\/td> 48.00 <\/td> <\/tr>\n
20.00 <\/td> 52.00 <\/td> <\/tr>\n
20.00 <\/td> 56.00 <\/td> <\/tr>\n
20.00 <\/td> 64.00 <\/td> <\/tr>\n
22.00 <\/td> 66.00 <\/td> <\/tr>\n
23.00 <\/td> 54.00 <\/td> <\/tr>\n
24.00 <\/td> 70.00 <\/td> <\/tr>\n
24.00 <\/td> 92.00 <\/td> <\/tr>\n
24.00 <\/td> 93.00 <\/td> <\/tr>\n
24.00 <\/td> 120.00 <\/td> <\/tr>\n
25.00 <\/td> 85.00 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/010-download/tests/mytest3-expected-mac/006.png b/010-download/tests/mytest3-expected-mac/006.png new file mode 100644 index 00000000..ab2c42a7 Binary files /dev/null and b/010-download/tests/mytest3-expected-mac/006.png differ diff --git a/010-download/tests/mytest3-expected-mac/007.download b/010-download/tests/mytest3-expected-mac/007.download new file mode 100644 index 00000000..5d0acdb9 --- /dev/null +++ b/010-download/tests/mytest3-expected-mac/007.download @@ -0,0 +1,51 @@ +"speed","dist" +4,2 +4,10 +7,4 +7,22 +8,16 +9,10 +10,18 +10,26 +10,34 +11,17 +11,28 +12,14 +12,20 +12,24 +12,28 +13,26 +13,34 +13,34 +13,46 +14,26 +14,36 +14,60 +14,80 +15,20 +15,26 +15,54 +16,32 +16,40 +17,32 +17,40 +17,50 +18,42 +18,56 +18,76 +18,84 +19,36 +19,46 +19,68 +20,32 +20,48 +20,52 +20,56 +20,64 +22,66 +23,54 +24,70 +24,92 +24,93 +24,120 +25,85 diff --git a/010-download/tests/mytest3-expected/001.json b/010-download/tests/mytest3-expected/001.json new file mode 100644 index 00000000..b7dad789 --- /dev/null +++ b/010-download/tests/mytest3-expected/001.json @@ -0,0 +1,11 @@ +{ + "input": { + "dataset": "rock" + }, + "output": { + "table": "\n\n
area <\/th> peri <\/th> shape <\/th> perm <\/th> <\/tr> <\/thead>
4990 <\/td> 2791.90 <\/td> 0.09 <\/td> 6.30 <\/td> <\/tr>\n
7002 <\/td> 3892.60 <\/td> 0.15 <\/td> 6.30 <\/td> <\/tr>\n
7558 <\/td> 3930.66 <\/td> 0.18 <\/td> 6.30 <\/td> <\/tr>\n
7352 <\/td> 3869.32 <\/td> 0.12 <\/td> 6.30 <\/td> <\/tr>\n
7943 <\/td> 3948.54 <\/td> 0.12 <\/td> 17.10 <\/td> <\/tr>\n
7979 <\/td> 4010.15 <\/td> 0.17 <\/td> 17.10 <\/td> <\/tr>\n
9333 <\/td> 4345.75 <\/td> 0.19 <\/td> 17.10 <\/td> <\/tr>\n
8209 <\/td> 4344.75 <\/td> 0.16 <\/td> 17.10 <\/td> <\/tr>\n
8393 <\/td> 3682.04 <\/td> 0.20 <\/td> 119.00 <\/td> <\/tr>\n
6425 <\/td> 3098.65 <\/td> 0.16 <\/td> 119.00 <\/td> <\/tr>\n
9364 <\/td> 4480.05 <\/td> 0.15 <\/td> 119.00 <\/td> <\/tr>\n
8624 <\/td> 3986.24 <\/td> 0.15 <\/td> 119.00 <\/td> <\/tr>\n
10651 <\/td> 4036.54 <\/td> 0.23 <\/td> 82.40 <\/td> <\/tr>\n
8868 <\/td> 3518.04 <\/td> 0.23 <\/td> 82.40 <\/td> <\/tr>\n
9417 <\/td> 3999.37 <\/td> 0.17 <\/td> 82.40 <\/td> <\/tr>\n
8874 <\/td> 3629.07 <\/td> 0.15 <\/td> 82.40 <\/td> <\/tr>\n
10962 <\/td> 4608.66 <\/td> 0.20 <\/td> 58.60 <\/td> <\/tr>\n
10743 <\/td> 4787.62 <\/td> 0.26 <\/td> 58.60 <\/td> <\/tr>\n
11878 <\/td> 4864.22 <\/td> 0.20 <\/td> 58.60 <\/td> <\/tr>\n
9867 <\/td> 4479.41 <\/td> 0.14 <\/td> 58.60 <\/td> <\/tr>\n
7838 <\/td> 3428.74 <\/td> 0.11 <\/td> 142.00 <\/td> <\/tr>\n
11876 <\/td> 4353.14 <\/td> 0.29 <\/td> 142.00 <\/td> <\/tr>\n
12212 <\/td> 4697.65 <\/td> 0.24 <\/td> 142.00 <\/td> <\/tr>\n
8233 <\/td> 3518.44 <\/td> 0.16 <\/td> 142.00 <\/td> <\/tr>\n
6360 <\/td> 1977.39 <\/td> 0.28 <\/td> 740.00 <\/td> <\/tr>\n
4193 <\/td> 1379.35 <\/td> 0.18 <\/td> 740.00 <\/td> <\/tr>\n
7416 <\/td> 1916.24 <\/td> 0.19 <\/td> 740.00 <\/td> <\/tr>\n
5246 <\/td> 1585.42 <\/td> 0.13 <\/td> 740.00 <\/td> <\/tr>\n
6509 <\/td> 1851.21 <\/td> 0.23 <\/td> 890.00 <\/td> <\/tr>\n
4895 <\/td> 1239.66 <\/td> 0.34 <\/td> 890.00 <\/td> <\/tr>\n
6775 <\/td> 1728.14 <\/td> 0.31 <\/td> 890.00 <\/td> <\/tr>\n
7894 <\/td> 1461.06 <\/td> 0.28 <\/td> 890.00 <\/td> <\/tr>\n
5980 <\/td> 1426.76 <\/td> 0.20 <\/td> 950.00 <\/td> <\/tr>\n
5318 <\/td> 990.39 <\/td> 0.33 <\/td> 950.00 <\/td> <\/tr>\n
7392 <\/td> 1350.76 <\/td> 0.15 <\/td> 950.00 <\/td> <\/tr>\n
7894 <\/td> 1461.06 <\/td> 0.28 <\/td> 950.00 <\/td> <\/tr>\n
3469 <\/td> 1376.70 <\/td> 0.18 <\/td> 100.00 <\/td> <\/tr>\n
1468 <\/td> 476.32 <\/td> 0.44 <\/td> 100.00 <\/td> <\/tr>\n
3524 <\/td> 1189.46 <\/td> 0.16 <\/td> 100.00 <\/td> <\/tr>\n
5267 <\/td> 1644.96 <\/td> 0.25 <\/td> 100.00 <\/td> <\/tr>\n
5048 <\/td> 941.54 <\/td> 0.33 <\/td> 1300.00 <\/td> <\/tr>\n
1016 <\/td> 308.64 <\/td> 0.23 <\/td> 1300.00 <\/td> <\/tr>\n
5605 <\/td> 1145.69 <\/td> 0.46 <\/td> 1300.00 <\/td> <\/tr>\n
8793 <\/td> 2280.49 <\/td> 0.42 <\/td> 1300.00 <\/td> <\/tr>\n
3475 <\/td> 1174.11 <\/td> 0.20 <\/td> 580.00 <\/td> <\/tr>\n
1651 <\/td> 597.81 <\/td> 0.26 <\/td> 580.00 <\/td> <\/tr>\n
5514 <\/td> 1455.88 <\/td> 0.18 <\/td> 580.00 <\/td> <\/tr>\n
9718 <\/td> 1485.58 <\/td> 0.20 <\/td> 580.00 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/010-download/tests/mytest3-expected/001.png b/010-download/tests/mytest3-expected/001.png new file mode 100644 index 00000000..c81ba800 Binary files /dev/null and b/010-download/tests/mytest3-expected/001.png differ diff --git a/010-download/tests/mytest3-expected/002.download b/010-download/tests/mytest3-expected/002.download new file mode 100644 index 00000000..a5649077 --- /dev/null +++ b/010-download/tests/mytest3-expected/002.download @@ -0,0 +1,49 @@ +"area","peri","shape","perm" +4990,2791.9,0.0903296,6.3 +7002,3892.6,0.148622,6.3 +7558,3930.66,0.183312,6.3 +7352,3869.32,0.117063,6.3 +7943,3948.54,0.122417,17.1 +7979,4010.15,0.167045,17.1 +9333,4345.75,0.189651,17.1 +8209,4344.75,0.164127,17.1 +8393,3682.04,0.203654,119 +6425,3098.65,0.162394,119 +9364,4480.05,0.150944,119 +8624,3986.24,0.148141,119 +10651,4036.54,0.228595,82.4 +8868,3518.04,0.231623,82.4 +9417,3999.37,0.172567,82.4 +8874,3629.07,0.153481,82.4 +10962,4608.66,0.204314,58.6 +10743,4787.62,0.262727,58.6 +11878,4864.22,0.200071,58.6 +9867,4479.41,0.14481,58.6 +7838,3428.74,0.113852,142 +11876,4353.14,0.291029,142 +12212,4697.65,0.240077,142 +8233,3518.44,0.161865,142 +6360,1977.39,0.280887,740 +4193,1379.35,0.179455,740 +7416,1916.24,0.191802,740 +5246,1585.42,0.133083,740 +6509,1851.21,0.225214,890 +4895,1239.66,0.341273,890 +6775,1728.14,0.311646,890 +7894,1461.06,0.276016,890 +5980,1426.76,0.197653,950 +5318,990.388,0.326635,950 +7392,1350.76,0.154192,950 +7894,1461.06,0.276016,950 +3469,1376.7,0.176969,100 +1468,476.322,0.438712,100 +3524,1189.46,0.163586,100 +5267,1644.96,0.253832,100 +5048,941.543,0.328641,1300 +1016,308.642,0.230081,1300 +5605,1145.69,0.464125,1300 +8793,2280.49,0.420477,1300 +3475,1174.11,0.200744,580 +1651,597.808,0.262651,580 +5514,1455.88,0.182453,580 +9718,1485.58,0.200447,580 diff --git a/010-download/tests/mytest3-expected/003.json b/010-download/tests/mytest3-expected/003.json new file mode 100644 index 00000000..d20d14eb --- /dev/null +++ b/010-download/tests/mytest3-expected/003.json @@ -0,0 +1,11 @@ +{ + "input": { + "dataset": "pressure" + }, + "output": { + "table": "\n\n
temperature <\/th> pressure <\/th> <\/tr> <\/thead>
0.00 <\/td> 0.00 <\/td> <\/tr>\n
20.00 <\/td> 0.00 <\/td> <\/tr>\n
40.00 <\/td> 0.01 <\/td> <\/tr>\n
60.00 <\/td> 0.03 <\/td> <\/tr>\n
80.00 <\/td> 0.09 <\/td> <\/tr>\n
100.00 <\/td> 0.27 <\/td> <\/tr>\n
120.00 <\/td> 0.75 <\/td> <\/tr>\n
140.00 <\/td> 1.85 <\/td> <\/tr>\n
160.00 <\/td> 4.20 <\/td> <\/tr>\n
180.00 <\/td> 8.80 <\/td> <\/tr>\n
200.00 <\/td> 17.30 <\/td> <\/tr>\n
220.00 <\/td> 32.10 <\/td> <\/tr>\n
240.00 <\/td> 57.00 <\/td> <\/tr>\n
260.00 <\/td> 96.00 <\/td> <\/tr>\n
280.00 <\/td> 157.00 <\/td> <\/tr>\n
300.00 <\/td> 247.00 <\/td> <\/tr>\n
320.00 <\/td> 376.00 <\/td> <\/tr>\n
340.00 <\/td> 558.00 <\/td> <\/tr>\n
360.00 <\/td> 806.00 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/010-download/tests/mytest3-expected/003.png b/010-download/tests/mytest3-expected/003.png new file mode 100644 index 00000000..64747950 Binary files /dev/null and b/010-download/tests/mytest3-expected/003.png differ diff --git a/010-download/tests/mytest3-expected/004.download b/010-download/tests/mytest3-expected/004.download new file mode 100644 index 00000000..2a6bb442 --- /dev/null +++ b/010-download/tests/mytest3-expected/004.download @@ -0,0 +1,20 @@ +"temperature","pressure" +0,2e-04 +20,0.0012 +40,0.006 +60,0.03 +80,0.09 +100,0.27 +120,0.75 +140,1.85 +160,4.2 +180,8.8 +200,17.3 +220,32.1 +240,57 +260,96 +280,157 +300,247 +320,376 +340,558 +360,806 diff --git a/010-download/tests/mytest3-expected/005.json b/010-download/tests/mytest3-expected/005.json new file mode 100644 index 00000000..d20d14eb --- /dev/null +++ b/010-download/tests/mytest3-expected/005.json @@ -0,0 +1,11 @@ +{ + "input": { + "dataset": "pressure" + }, + "output": { + "table": "\n\n
temperature <\/th> pressure <\/th> <\/tr> <\/thead>
0.00 <\/td> 0.00 <\/td> <\/tr>\n
20.00 <\/td> 0.00 <\/td> <\/tr>\n
40.00 <\/td> 0.01 <\/td> <\/tr>\n
60.00 <\/td> 0.03 <\/td> <\/tr>\n
80.00 <\/td> 0.09 <\/td> <\/tr>\n
100.00 <\/td> 0.27 <\/td> <\/tr>\n
120.00 <\/td> 0.75 <\/td> <\/tr>\n
140.00 <\/td> 1.85 <\/td> <\/tr>\n
160.00 <\/td> 4.20 <\/td> <\/tr>\n
180.00 <\/td> 8.80 <\/td> <\/tr>\n
200.00 <\/td> 17.30 <\/td> <\/tr>\n
220.00 <\/td> 32.10 <\/td> <\/tr>\n
240.00 <\/td> 57.00 <\/td> <\/tr>\n
260.00 <\/td> 96.00 <\/td> <\/tr>\n
280.00 <\/td> 157.00 <\/td> <\/tr>\n
300.00 <\/td> 247.00 <\/td> <\/tr>\n
320.00 <\/td> 376.00 <\/td> <\/tr>\n
340.00 <\/td> 558.00 <\/td> <\/tr>\n
360.00 <\/td> 806.00 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/010-download/tests/mytest3-expected/005.png b/010-download/tests/mytest3-expected/005.png new file mode 100644 index 00000000..0f7807c1 Binary files /dev/null and b/010-download/tests/mytest3-expected/005.png differ diff --git a/010-download/tests/mytest3-expected/006.json b/010-download/tests/mytest3-expected/006.json new file mode 100644 index 00000000..befc3620 --- /dev/null +++ b/010-download/tests/mytest3-expected/006.json @@ -0,0 +1,11 @@ +{ + "input": { + "dataset": "cars" + }, + "output": { + "table": "\n\n
speed <\/th> dist <\/th> <\/tr> <\/thead>
4.00 <\/td> 2.00 <\/td> <\/tr>\n
4.00 <\/td> 10.00 <\/td> <\/tr>\n
7.00 <\/td> 4.00 <\/td> <\/tr>\n
7.00 <\/td> 22.00 <\/td> <\/tr>\n
8.00 <\/td> 16.00 <\/td> <\/tr>\n
9.00 <\/td> 10.00 <\/td> <\/tr>\n
10.00 <\/td> 18.00 <\/td> <\/tr>\n
10.00 <\/td> 26.00 <\/td> <\/tr>\n
10.00 <\/td> 34.00 <\/td> <\/tr>\n
11.00 <\/td> 17.00 <\/td> <\/tr>\n
11.00 <\/td> 28.00 <\/td> <\/tr>\n
12.00 <\/td> 14.00 <\/td> <\/tr>\n
12.00 <\/td> 20.00 <\/td> <\/tr>\n
12.00 <\/td> 24.00 <\/td> <\/tr>\n
12.00 <\/td> 28.00 <\/td> <\/tr>\n
13.00 <\/td> 26.00 <\/td> <\/tr>\n
13.00 <\/td> 34.00 <\/td> <\/tr>\n
13.00 <\/td> 34.00 <\/td> <\/tr>\n
13.00 <\/td> 46.00 <\/td> <\/tr>\n
14.00 <\/td> 26.00 <\/td> <\/tr>\n
14.00 <\/td> 36.00 <\/td> <\/tr>\n
14.00 <\/td> 60.00 <\/td> <\/tr>\n
14.00 <\/td> 80.00 <\/td> <\/tr>\n
15.00 <\/td> 20.00 <\/td> <\/tr>\n
15.00 <\/td> 26.00 <\/td> <\/tr>\n
15.00 <\/td> 54.00 <\/td> <\/tr>\n
16.00 <\/td> 32.00 <\/td> <\/tr>\n
16.00 <\/td> 40.00 <\/td> <\/tr>\n
17.00 <\/td> 32.00 <\/td> <\/tr>\n
17.00 <\/td> 40.00 <\/td> <\/tr>\n
17.00 <\/td> 50.00 <\/td> <\/tr>\n
18.00 <\/td> 42.00 <\/td> <\/tr>\n
18.00 <\/td> 56.00 <\/td> <\/tr>\n
18.00 <\/td> 76.00 <\/td> <\/tr>\n
18.00 <\/td> 84.00 <\/td> <\/tr>\n
19.00 <\/td> 36.00 <\/td> <\/tr>\n
19.00 <\/td> 46.00 <\/td> <\/tr>\n
19.00 <\/td> 68.00 <\/td> <\/tr>\n
20.00 <\/td> 32.00 <\/td> <\/tr>\n
20.00 <\/td> 48.00 <\/td> <\/tr>\n
20.00 <\/td> 52.00 <\/td> <\/tr>\n
20.00 <\/td> 56.00 <\/td> <\/tr>\n
20.00 <\/td> 64.00 <\/td> <\/tr>\n
22.00 <\/td> 66.00 <\/td> <\/tr>\n
23.00 <\/td> 54.00 <\/td> <\/tr>\n
24.00 <\/td> 70.00 <\/td> <\/tr>\n
24.00 <\/td> 92.00 <\/td> <\/tr>\n
24.00 <\/td> 93.00 <\/td> <\/tr>\n
24.00 <\/td> 120.00 <\/td> <\/tr>\n
25.00 <\/td> 85.00 <\/td> <\/tr>\n <\/tbody> <\/table>" + }, + "export": { + + } +} diff --git a/010-download/tests/mytest3-expected/006.png b/010-download/tests/mytest3-expected/006.png new file mode 100644 index 00000000..ab2c42a7 Binary files /dev/null and b/010-download/tests/mytest3-expected/006.png differ diff --git a/010-download/tests/mytest3-expected/007.download b/010-download/tests/mytest3-expected/007.download new file mode 100644 index 00000000..5d0acdb9 --- /dev/null +++ b/010-download/tests/mytest3-expected/007.download @@ -0,0 +1,51 @@ +"speed","dist" +4,2 +4,10 +7,4 +7,22 +8,16 +9,10 +10,18 +10,26 +10,34 +11,17 +11,28 +12,14 +12,20 +12,24 +12,28 +13,26 +13,34 +13,34 +13,46 +14,26 +14,36 +14,60 +14,80 +15,20 +15,26 +15,54 +16,32 +16,40 +17,32 +17,40 +17,50 +18,42 +18,56 +18,76 +18,84 +19,36 +19,46 +19,68 +20,32 +20,48 +20,52 +20,56 +20,64 +22,66 +23,54 +24,70 +24,92 +24,93 +24,120 +25,85 diff --git a/010-download/tests/mytest3.R b/010-download/tests/mytest3.R new file mode 100644 index 00000000..ad85160f --- /dev/null +++ b/010-download/tests/mytest3.R @@ -0,0 +1,12 @@ +app <- ShinyDriver$new("../", seed = 1000) +app$snapshotInit("mytest3") + +app$snapshot() +app$snapshotDownload("downloadData") +app$setInputs(dataset = "pressure") +app$snapshot() +app$snapshotDownload("downloadData") +app$snapshot() +app$setInputs(dataset = "cars") +app$snapshot() +app$snapshotDownload("downloadData") diff --git a/011-timer/tests/mytest-expected-mac/001.json b/011-timer/tests/mytest-expected-mac/001.json new file mode 100644 index 00000000..43c89dc1 --- /dev/null +++ b/011-timer/tests/mytest-expected-mac/001.json @@ -0,0 +1,11 @@ +{ + "input": { + + }, + "output": { + "currentTime": "The current time is 2019-12-16 15:15:56" + }, + "export": { + + } +} diff --git a/011-timer/tests/mytest-expected-mac/001.png b/011-timer/tests/mytest-expected-mac/001.png new file mode 100644 index 00000000..75d20b31 Binary files /dev/null and b/011-timer/tests/mytest-expected-mac/001.png differ diff --git a/011-timer/tests/mytest-expected/001.json b/011-timer/tests/mytest-expected/001.json new file mode 100644 index 00000000..645a2b40 --- /dev/null +++ b/011-timer/tests/mytest-expected/001.json @@ -0,0 +1,11 @@ +{ + "input": { + + }, + "output": { + "currentTime": "The current time is 2018-04-12 15:19:42" + }, + "export": { + + } +} diff --git a/011-timer/tests/mytest-expected/001.png b/011-timer/tests/mytest-expected/001.png new file mode 100644 index 00000000..c11651e2 Binary files /dev/null and b/011-timer/tests/mytest-expected/001.png differ diff --git a/011-timer/tests/mytest.R b/011-timer/tests/mytest.R new file mode 100644 index 00000000..7c1e03c6 --- /dev/null +++ b/011-timer/tests/mytest.R @@ -0,0 +1,4 @@ +app <- ShinyDriver$new("../", seed = 100,shinyOptions = list(display.mode = "normal")) +app$snapshotInit("mytest") + +app$snapshot() diff --git a/012-datatables/tests/mytest-expected-mac/001.json b/012-datatables/tests/mytest-expected-mac/001.json new file mode 100644 index 00000000..2fa6b2b4 --- /dev/null +++ b/012-datatables/tests/mytest-expected-mac/001.json @@ -0,0 +1,1137 @@ +{ + "input": { + "dataset": "diamonds", + "mytable1_cell_clicked": { + + }, + "mytable1_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150, + 151, + 152, + 153, + 154, + 155, + 156, + 157, + 158, + 159, + 160, + 161, + 162, + 163, + 164, + 165, + 166, + 167, + 168, + 169, + 170, + 171, + 172, + 173, + 174, + 175, + 176, + 177, + 178, + 179, + 180, + 181, + 182, + 183, + 184, + 185, + 186, + 187, + 188, + 189, + 190, + 191, + 192, + 193, + 194, + 195, + 196, + 197, + 198, + 199, + 200, + 201, + 202, + 203, + 204, + 205, + 206, + 207, + 208, + 209, + 210, + 211, + 212, + 213, + 214, + 215, + 216, + 217, + 218, + 219, + 220, + 221, + 222, + 223, + 224, + 225, + 226, + 227, + 228, + 229, + 230, + 231, + 232, + 233, + 234, + 235, + 236, + 237, + 238, + 239, + 240, + 241, + 242, + 243, + 244, + 245, + 246, + 247, + 248, + 249, + 250, + 251, + 252, + 253, + 254, + 255, + 256, + 257, + 258, + 259, + 260, + 261, + 262, + 263, + 264, + 265, + 266, + 267, + 268, + 269, + 270, + 271, + 272, + 273, + 274, + 275, + 276, + 277, + 278, + 279, + 280, + 281, + 282, + 283, + 284, + 285, + 286, + 287, + 288, + 289, + 290, + 291, + 292, + 293, + 294, + 295, + 296, + 297, + 298, + 299, + 300, + 301, + 302, + 303, + 304, + 305, + 306, + 307, + 308, + 309, + 310, + 311, + 312, + 313, + 314, + 315, + 316, + 317, + 318, + 319, + 320, + 321, + 322, + 323, + 324, + 325, + 326, + 327, + 328, + 329, + 330, + 331, + 332, + 333, + 334, + 335, + 336, + 337, + 338, + 339, + 340, + 341, + 342, + 343, + 344, + 345, + 346, + 347, + 348, + 349, + 350, + 351, + 352, + 353, + 354, + 355, + 356, + 357, + 358, + 359, + 360, + 361, + 362, + 363, + 364, + 365, + 366, + 367, + 368, + 369, + 370, + 371, + 372, + 373, + 374, + 375, + 376, + 377, + 378, + 379, + 380, + 381, + 382, + 383, + 384, + 385, + 386, + 387, + 388, + 389, + 390, + 391, + 392, + 393, + 394, + 395, + 396, + 397, + 398, + 399, + 400, + 401, + 402, + 403, + 404, + 405, + 406, + 407, + 408, + 409, + 410, + 411, + 412, + 413, + 414, + 415, + 416, + 417, + 418, + 419, + 420, + 421, + 422, + 423, + 424, + 425, + 426, + 427, + 428, + 429, + 430, + 431, + 432, + 433, + 434, + 435, + 436, + 437, + 438, + 439, + 440, + 441, + 442, + 443, + 444, + 445, + 446, + 447, + 448, + 449, + 450, + 451, + 452, + 453, + 454, + 455, + 456, + 457, + 458, + 459, + 460, + 461, + 462, + 463, + 464, + 465, + 466, + 467, + 468, + 469, + 470, + 471, + 472, + 473, + 474, + 475, + 476, + 477, + 478, + 479, + 480, + 481, + 482, + 483, + 484, + 485, + 486, + 487, + 488, + 489, + 490, + 491, + 492, + 493, + 494, + 495, + 496, + 497, + 498, + 499, + 500, + 501, + 502, + 503, + 504, + 505, + 506, + 507, + 508, + 509, + 510, + 511, + 512, + 513, + 514, + 515, + 516, + 517, + 518, + 519, + 520, + 521, + 522, + 523, + 524, + 525, + 526, + 527, + 528, + 529, + 530, + 531, + 532, + 533, + 534, + 535, + 536, + 537, + 538, + 539, + 540, + 541, + 542, + 543, + 544, + 545, + 546, + 547, + 548, + 549, + 550, + 551, + 552, + 553, + 554, + 555, + 556, + 557, + 558, + 559, + 560, + 561, + 562, + 563, + 564, + 565, + 566, + 567, + 568, + 569, + 570, + 571, + 572, + 573, + 574, + 575, + 576, + 577, + 578, + 579, + 580, + 581, + 582, + 583, + 584, + 585, + 586, + 587, + 588, + 589, + 590, + 591, + 592, + 593, + 594, + 595, + 596, + 597, + 598, + 599, + 600, + 601, + 602, + 603, + 604, + 605, + 606, + 607, + 608, + 609, + 610, + 611, + 612, + 613, + 614, + 615, + 616, + 617, + 618, + 619, + 620, + 621, + 622, + 623, + 624, + 625, + 626, + 627, + 628, + 629, + 630, + 631, + 632, + 633, + 634, + 635, + 636, + 637, + 638, + 639, + 640, + 641, + 642, + 643, + 644, + 645, + 646, + 647, + 648, + 649, + 650, + 651, + 652, + 653, + 654, + 655, + 656, + 657, + 658, + 659, + 660, + 661, + 662, + 663, + 664, + 665, + 666, + 667, + 668, + 669, + 670, + 671, + 672, + 673, + 674, + 675, + 676, + 677, + 678, + 679, + 680, + 681, + 682, + 683, + 684, + 685, + 686, + 687, + 688, + 689, + 690, + 691, + 692, + 693, + 694, + 695, + 696, + 697, + 698, + 699, + 700, + 701, + 702, + 703, + 704, + 705, + 706, + 707, + 708, + 709, + 710, + 711, + 712, + 713, + 714, + 715, + 716, + 717, + 718, + 719, + 720, + 721, + 722, + 723, + 724, + 725, + 726, + 727, + 728, + 729, + 730, + 731, + 732, + 733, + 734, + 735, + 736, + 737, + 738, + 739, + 740, + 741, + 742, + 743, + 744, + 745, + 746, + 747, + 748, + 749, + 750, + 751, + 752, + 753, + 754, + 755, + 756, + 757, + 758, + 759, + 760, + 761, + 762, + 763, + 764, + 765, + 766, + 767, + 768, + 769, + 770, + 771, + 772, + 773, + 774, + 775, + 776, + 777, + 778, + 779, + 780, + 781, + 782, + 783, + 784, + 785, + 786, + 787, + 788, + 789, + 790, + 791, + 792, + 793, + 794, + 795, + 796, + 797, + 798, + 799, + 800, + 801, + 802, + 803, + 804, + 805, + 806, + 807, + 808, + 809, + 810, + 811, + 812, + 813, + 814, + 815, + 816, + 817, + 818, + 819, + 820, + 821, + 822, + 823, + 824, + 825, + 826, + 827, + 828, + 829, + 830, + 831, + 832, + 833, + 834, + 835, + 836, + 837, + 838, + 839, + 840, + 841, + 842, + 843, + 844, + 845, + 846, + 847, + 848, + 849, + 850, + 851, + 852, + 853, + 854, + 855, + 856, + 857, + 858, + 859, + 860, + 861, + 862, + 863, + 864, + 865, + 866, + 867, + 868, + 869, + 870, + 871, + 872, + 873, + 874, + 875, + 876, + 877, + 878, + 879, + 880, + 881, + 882, + 883, + 884, + 885, + 886, + 887, + 888, + 889, + 890, + 891, + 892, + 893, + 894, + 895, + 896, + 897, + 898, + 899, + 900, + 901, + 902, + 903, + 904, + 905, + 906, + 907, + 908, + 909, + 910, + 911, + 912, + 913, + 914, + 915, + 916, + 917, + 918, + 919, + 920, + 921, + 922, + 923, + 924, + 925, + 926, + 927, + 928, + 929, + 930, + 931, + 932, + 933, + 934, + 935, + 936, + 937, + 938, + 939, + 940, + 941, + 942, + 943, + 944, + 945, + 946, + 947, + 948, + 949, + 950, + 951, + 952, + 953, + 954, + 955, + 956, + 957, + 958, + 959, + 960, + 961, + 962, + 963, + 964, + 965, + 966, + 967, + 968, + 969, + 970, + 971, + 972, + 973, + 974, + 975, + 976, + 977, + 978, + 979, + 980, + 981, + 982, + 983, + 984, + 985, + 986, + 987, + 988, + 989, + 990, + 991, + 992, + 993, + 994, + 995, + 996, + 997, + 998, + 999, + 1000 + ], + "mytable1_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10 + ], + "mytable1_rows_selected": null, + "mytable1_search": "", + "mytable1_state": null, + "show_vars": [ + "carat", + "cut", + "color", + "clarity", + "depth", + "table", + "price", + "x", + "y", + "z" + ] + }, + "output": { + "mytable1": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n carat<\/th>\n cut<\/th>\n color<\/th>\n clarity<\/th>\n depth<\/th>\n table<\/th>\n price<\/th>\n x<\/th>\n y<\/th>\n z<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 5, + 6, + 7, + 8, + 9, + 10 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "orderClasses": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.16", + "src": { + "href": "dt-core-1.10.16" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + } + }, + "export": { + + } +} diff --git a/012-datatables/tests/mytest-expected-mac/001.png b/012-datatables/tests/mytest-expected-mac/001.png new file mode 100644 index 00000000..45a68799 Binary files /dev/null and b/012-datatables/tests/mytest-expected-mac/001.png differ diff --git a/012-datatables/tests/mytest-expected-mac/002.json b/012-datatables/tests/mytest-expected-mac/002.json new file mode 100644 index 00000000..60b462a8 --- /dev/null +++ b/012-datatables/tests/mytest-expected-mac/002.json @@ -0,0 +1,1288 @@ +{ + "input": { + "dataset": "mtcars", + "mytable1_cell_clicked": { + + }, + "mytable1_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150, + 151, + 152, + 153, + 154, + 155, + 156, + 157, + 158, + 159, + 160, + 161, + 162, + 163, + 164, + 165, + 166, + 167, + 168, + 169, + 170, + 171, + 172, + 173, + 174, + 175, + 176, + 177, + 178, + 179, + 180, + 181, + 182, + 183, + 184, + 185, + 186, + 187, + 188, + 189, + 190, + 191, + 192, + 193, + 194, + 195, + 196, + 197, + 198, + 199, + 200, + 201, + 202, + 203, + 204, + 205, + 206, + 207, + 208, + 209, + 210, + 211, + 212, + 213, + 214, + 215, + 216, + 217, + 218, + 219, + 220, + 221, + 222, + 223, + 224, + 225, + 226, + 227, + 228, + 229, + 230, + 231, + 232, + 233, + 234, + 235, + 236, + 237, + 238, + 239, + 240, + 241, + 242, + 243, + 244, + 245, + 246, + 247, + 248, + 249, + 250, + 251, + 252, + 253, + 254, + 255, + 256, + 257, + 258, + 259, + 260, + 261, + 262, + 263, + 264, + 265, + 266, + 267, + 268, + 269, + 270, + 271, + 272, + 273, + 274, + 275, + 276, + 277, + 278, + 279, + 280, + 281, + 282, + 283, + 284, + 285, + 286, + 287, + 288, + 289, + 290, + 291, + 292, + 293, + 294, + 295, + 296, + 297, + 298, + 299, + 300, + 301, + 302, + 303, + 304, + 305, + 306, + 307, + 308, + 309, + 310, + 311, + 312, + 313, + 314, + 315, + 316, + 317, + 318, + 319, + 320, + 321, + 322, + 323, + 324, + 325, + 326, + 327, + 328, + 329, + 330, + 331, + 332, + 333, + 334, + 335, + 336, + 337, + 338, + 339, + 340, + 341, + 342, + 343, + 344, + 345, + 346, + 347, + 348, + 349, + 350, + 351, + 352, + 353, + 354, + 355, + 356, + 357, + 358, + 359, + 360, + 361, + 362, + 363, + 364, + 365, + 366, + 367, + 368, + 369, + 370, + 371, + 372, + 373, + 374, + 375, + 376, + 377, + 378, + 379, + 380, + 381, + 382, + 383, + 384, + 385, + 386, + 387, + 388, + 389, + 390, + 391, + 392, + 393, + 394, + 395, + 396, + 397, + 398, + 399, + 400, + 401, + 402, + 403, + 404, + 405, + 406, + 407, + 408, + 409, + 410, + 411, + 412, + 413, + 414, + 415, + 416, + 417, + 418, + 419, + 420, + 421, + 422, + 423, + 424, + 425, + 426, + 427, + 428, + 429, + 430, + 431, + 432, + 433, + 434, + 435, + 436, + 437, + 438, + 439, + 440, + 441, + 442, + 443, + 444, + 445, + 446, + 447, + 448, + 449, + 450, + 451, + 452, + 453, + 454, + 455, + 456, + 457, + 458, + 459, + 460, + 461, + 462, + 463, + 464, + 465, + 466, + 467, + 468, + 469, + 470, + 471, + 472, + 473, + 474, + 475, + 476, + 477, + 478, + 479, + 480, + 481, + 482, + 483, + 484, + 485, + 486, + 487, + 488, + 489, + 490, + 491, + 492, + 493, + 494, + 495, + 496, + 497, + 498, + 499, + 500, + 501, + 502, + 503, + 504, + 505, + 506, + 507, + 508, + 509, + 510, + 511, + 512, + 513, + 514, + 515, + 516, + 517, + 518, + 519, + 520, + 521, + 522, + 523, + 524, + 525, + 526, + 527, + 528, + 529, + 530, + 531, + 532, + 533, + 534, + 535, + 536, + 537, + 538, + 539, + 540, + 541, + 542, + 543, + 544, + 545, + 546, + 547, + 548, + 549, + 550, + 551, + 552, + 553, + 554, + 555, + 556, + 557, + 558, + 559, + 560, + 561, + 562, + 563, + 564, + 565, + 566, + 567, + 568, + 569, + 570, + 571, + 572, + 573, + 574, + 575, + 576, + 577, + 578, + 579, + 580, + 581, + 582, + 583, + 584, + 585, + 586, + 587, + 588, + 589, + 590, + 591, + 592, + 593, + 594, + 595, + 596, + 597, + 598, + 599, + 600, + 601, + 602, + 603, + 604, + 605, + 606, + 607, + 608, + 609, + 610, + 611, + 612, + 613, + 614, + 615, + 616, + 617, + 618, + 619, + 620, + 621, + 622, + 623, + 624, + 625, + 626, + 627, + 628, + 629, + 630, + 631, + 632, + 633, + 634, + 635, + 636, + 637, + 638, + 639, + 640, + 641, + 642, + 643, + 644, + 645, + 646, + 647, + 648, + 649, + 650, + 651, + 652, + 653, + 654, + 655, + 656, + 657, + 658, + 659, + 660, + 661, + 662, + 663, + 664, + 665, + 666, + 667, + 668, + 669, + 670, + 671, + 672, + 673, + 674, + 675, + 676, + 677, + 678, + 679, + 680, + 681, + 682, + 683, + 684, + 685, + 686, + 687, + 688, + 689, + 690, + 691, + 692, + 693, + 694, + 695, + 696, + 697, + 698, + 699, + 700, + 701, + 702, + 703, + 704, + 705, + 706, + 707, + 708, + 709, + 710, + 711, + 712, + 713, + 714, + 715, + 716, + 717, + 718, + 719, + 720, + 721, + 722, + 723, + 724, + 725, + 726, + 727, + 728, + 729, + 730, + 731, + 732, + 733, + 734, + 735, + 736, + 737, + 738, + 739, + 740, + 741, + 742, + 743, + 744, + 745, + 746, + 747, + 748, + 749, + 750, + 751, + 752, + 753, + 754, + 755, + 756, + 757, + 758, + 759, + 760, + 761, + 762, + 763, + 764, + 765, + 766, + 767, + 768, + 769, + 770, + 771, + 772, + 773, + 774, + 775, + 776, + 777, + 778, + 779, + 780, + 781, + 782, + 783, + 784, + 785, + 786, + 787, + 788, + 789, + 790, + 791, + 792, + 793, + 794, + 795, + 796, + 797, + 798, + 799, + 800, + 801, + 802, + 803, + 804, + 805, + 806, + 807, + 808, + 809, + 810, + 811, + 812, + 813, + 814, + 815, + 816, + 817, + 818, + 819, + 820, + 821, + 822, + 823, + 824, + 825, + 826, + 827, + 828, + 829, + 830, + 831, + 832, + 833, + 834, + 835, + 836, + 837, + 838, + 839, + 840, + 841, + 842, + 843, + 844, + 845, + 846, + 847, + 848, + 849, + 850, + 851, + 852, + 853, + 854, + 855, + 856, + 857, + 858, + 859, + 860, + 861, + 862, + 863, + 864, + 865, + 866, + 867, + 868, + 869, + 870, + 871, + 872, + 873, + 874, + 875, + 876, + 877, + 878, + 879, + 880, + 881, + 882, + 883, + 884, + 885, + 886, + 887, + 888, + 889, + 890, + 891, + 892, + 893, + 894, + 895, + 896, + 897, + 898, + 899, + 900, + 901, + 902, + 903, + 904, + 905, + 906, + 907, + 908, + 909, + 910, + 911, + 912, + 913, + 914, + 915, + 916, + 917, + 918, + 919, + 920, + 921, + 922, + 923, + 924, + 925, + 926, + 927, + 928, + 929, + 930, + 931, + 932, + 933, + 934, + 935, + 936, + 937, + 938, + 939, + 940, + 941, + 942, + 943, + 944, + 945, + 946, + 947, + 948, + 949, + 950, + 951, + 952, + 953, + 954, + 955, + 956, + 957, + 958, + 959, + 960, + 961, + 962, + 963, + 964, + 965, + 966, + 967, + 968, + 969, + 970, + 971, + 972, + 973, + 974, + 975, + 976, + 977, + 978, + 979, + 980, + 981, + 982, + 983, + 984, + 985, + 986, + 987, + 988, + 989, + 990, + 991, + 992, + 993, + 994, + 995, + 996, + 997, + 998, + 999, + 1000 + ], + "mytable1_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10 + ], + "mytable1_rows_selected": null, + "mytable1_search": "", + "mytable1_state": null, + "mytable2_cell_clicked": { + + }, + "mytable2_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32 + ], + "mytable2_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10 + ], + "mytable2_rows_selected": null, + "mytable2_search": "", + "mytable2_state": null, + "show_vars": [ + "carat", + "cut", + "color", + "clarity", + "depth", + "table", + "price", + "x", + "y", + "z" + ] + }, + "output": { + "mytable1": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n carat<\/th>\n cut<\/th>\n color<\/th>\n clarity<\/th>\n depth<\/th>\n table<\/th>\n price<\/th>\n x<\/th>\n y<\/th>\n z<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 5, + 6, + 7, + 8, + 9, + 10 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "orderClasses": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.16", + "src": { + "href": "dt-core-1.10.16" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + }, + "mytable2": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n mpg<\/th>\n cyl<\/th>\n disp<\/th>\n hp<\/th>\n drat<\/th>\n wt<\/th>\n qsec<\/th>\n vs<\/th>\n am<\/th>\n gear<\/th>\n carb<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "orderClasses": true, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.16", + "src": { + "href": "dt-core-1.10.16" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + } + }, + "export": { + + } +} diff --git a/012-datatables/tests/mytest-expected-mac/002.png b/012-datatables/tests/mytest-expected-mac/002.png new file mode 100644 index 00000000..8d035a1d Binary files /dev/null and b/012-datatables/tests/mytest-expected-mac/002.png differ diff --git a/012-datatables/tests/mytest-expected-mac/003.json b/012-datatables/tests/mytest-expected-mac/003.json new file mode 100644 index 00000000..3e87a771 --- /dev/null +++ b/012-datatables/tests/mytest-expected-mac/003.json @@ -0,0 +1,1551 @@ +{ + "input": { + "dataset": "iris", + "mytable1_cell_clicked": { + + }, + "mytable1_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150, + 151, + 152, + 153, + 154, + 155, + 156, + 157, + 158, + 159, + 160, + 161, + 162, + 163, + 164, + 165, + 166, + 167, + 168, + 169, + 170, + 171, + 172, + 173, + 174, + 175, + 176, + 177, + 178, + 179, + 180, + 181, + 182, + 183, + 184, + 185, + 186, + 187, + 188, + 189, + 190, + 191, + 192, + 193, + 194, + 195, + 196, + 197, + 198, + 199, + 200, + 201, + 202, + 203, + 204, + 205, + 206, + 207, + 208, + 209, + 210, + 211, + 212, + 213, + 214, + 215, + 216, + 217, + 218, + 219, + 220, + 221, + 222, + 223, + 224, + 225, + 226, + 227, + 228, + 229, + 230, + 231, + 232, + 233, + 234, + 235, + 236, + 237, + 238, + 239, + 240, + 241, + 242, + 243, + 244, + 245, + 246, + 247, + 248, + 249, + 250, + 251, + 252, + 253, + 254, + 255, + 256, + 257, + 258, + 259, + 260, + 261, + 262, + 263, + 264, + 265, + 266, + 267, + 268, + 269, + 270, + 271, + 272, + 273, + 274, + 275, + 276, + 277, + 278, + 279, + 280, + 281, + 282, + 283, + 284, + 285, + 286, + 287, + 288, + 289, + 290, + 291, + 292, + 293, + 294, + 295, + 296, + 297, + 298, + 299, + 300, + 301, + 302, + 303, + 304, + 305, + 306, + 307, + 308, + 309, + 310, + 311, + 312, + 313, + 314, + 315, + 316, + 317, + 318, + 319, + 320, + 321, + 322, + 323, + 324, + 325, + 326, + 327, + 328, + 329, + 330, + 331, + 332, + 333, + 334, + 335, + 336, + 337, + 338, + 339, + 340, + 341, + 342, + 343, + 344, + 345, + 346, + 347, + 348, + 349, + 350, + 351, + 352, + 353, + 354, + 355, + 356, + 357, + 358, + 359, + 360, + 361, + 362, + 363, + 364, + 365, + 366, + 367, + 368, + 369, + 370, + 371, + 372, + 373, + 374, + 375, + 376, + 377, + 378, + 379, + 380, + 381, + 382, + 383, + 384, + 385, + 386, + 387, + 388, + 389, + 390, + 391, + 392, + 393, + 394, + 395, + 396, + 397, + 398, + 399, + 400, + 401, + 402, + 403, + 404, + 405, + 406, + 407, + 408, + 409, + 410, + 411, + 412, + 413, + 414, + 415, + 416, + 417, + 418, + 419, + 420, + 421, + 422, + 423, + 424, + 425, + 426, + 427, + 428, + 429, + 430, + 431, + 432, + 433, + 434, + 435, + 436, + 437, + 438, + 439, + 440, + 441, + 442, + 443, + 444, + 445, + 446, + 447, + 448, + 449, + 450, + 451, + 452, + 453, + 454, + 455, + 456, + 457, + 458, + 459, + 460, + 461, + 462, + 463, + 464, + 465, + 466, + 467, + 468, + 469, + 470, + 471, + 472, + 473, + 474, + 475, + 476, + 477, + 478, + 479, + 480, + 481, + 482, + 483, + 484, + 485, + 486, + 487, + 488, + 489, + 490, + 491, + 492, + 493, + 494, + 495, + 496, + 497, + 498, + 499, + 500, + 501, + 502, + 503, + 504, + 505, + 506, + 507, + 508, + 509, + 510, + 511, + 512, + 513, + 514, + 515, + 516, + 517, + 518, + 519, + 520, + 521, + 522, + 523, + 524, + 525, + 526, + 527, + 528, + 529, + 530, + 531, + 532, + 533, + 534, + 535, + 536, + 537, + 538, + 539, + 540, + 541, + 542, + 543, + 544, + 545, + 546, + 547, + 548, + 549, + 550, + 551, + 552, + 553, + 554, + 555, + 556, + 557, + 558, + 559, + 560, + 561, + 562, + 563, + 564, + 565, + 566, + 567, + 568, + 569, + 570, + 571, + 572, + 573, + 574, + 575, + 576, + 577, + 578, + 579, + 580, + 581, + 582, + 583, + 584, + 585, + 586, + 587, + 588, + 589, + 590, + 591, + 592, + 593, + 594, + 595, + 596, + 597, + 598, + 599, + 600, + 601, + 602, + 603, + 604, + 605, + 606, + 607, + 608, + 609, + 610, + 611, + 612, + 613, + 614, + 615, + 616, + 617, + 618, + 619, + 620, + 621, + 622, + 623, + 624, + 625, + 626, + 627, + 628, + 629, + 630, + 631, + 632, + 633, + 634, + 635, + 636, + 637, + 638, + 639, + 640, + 641, + 642, + 643, + 644, + 645, + 646, + 647, + 648, + 649, + 650, + 651, + 652, + 653, + 654, + 655, + 656, + 657, + 658, + 659, + 660, + 661, + 662, + 663, + 664, + 665, + 666, + 667, + 668, + 669, + 670, + 671, + 672, + 673, + 674, + 675, + 676, + 677, + 678, + 679, + 680, + 681, + 682, + 683, + 684, + 685, + 686, + 687, + 688, + 689, + 690, + 691, + 692, + 693, + 694, + 695, + 696, + 697, + 698, + 699, + 700, + 701, + 702, + 703, + 704, + 705, + 706, + 707, + 708, + 709, + 710, + 711, + 712, + 713, + 714, + 715, + 716, + 717, + 718, + 719, + 720, + 721, + 722, + 723, + 724, + 725, + 726, + 727, + 728, + 729, + 730, + 731, + 732, + 733, + 734, + 735, + 736, + 737, + 738, + 739, + 740, + 741, + 742, + 743, + 744, + 745, + 746, + 747, + 748, + 749, + 750, + 751, + 752, + 753, + 754, + 755, + 756, + 757, + 758, + 759, + 760, + 761, + 762, + 763, + 764, + 765, + 766, + 767, + 768, + 769, + 770, + 771, + 772, + 773, + 774, + 775, + 776, + 777, + 778, + 779, + 780, + 781, + 782, + 783, + 784, + 785, + 786, + 787, + 788, + 789, + 790, + 791, + 792, + 793, + 794, + 795, + 796, + 797, + 798, + 799, + 800, + 801, + 802, + 803, + 804, + 805, + 806, + 807, + 808, + 809, + 810, + 811, + 812, + 813, + 814, + 815, + 816, + 817, + 818, + 819, + 820, + 821, + 822, + 823, + 824, + 825, + 826, + 827, + 828, + 829, + 830, + 831, + 832, + 833, + 834, + 835, + 836, + 837, + 838, + 839, + 840, + 841, + 842, + 843, + 844, + 845, + 846, + 847, + 848, + 849, + 850, + 851, + 852, + 853, + 854, + 855, + 856, + 857, + 858, + 859, + 860, + 861, + 862, + 863, + 864, + 865, + 866, + 867, + 868, + 869, + 870, + 871, + 872, + 873, + 874, + 875, + 876, + 877, + 878, + 879, + 880, + 881, + 882, + 883, + 884, + 885, + 886, + 887, + 888, + 889, + 890, + 891, + 892, + 893, + 894, + 895, + 896, + 897, + 898, + 899, + 900, + 901, + 902, + 903, + 904, + 905, + 906, + 907, + 908, + 909, + 910, + 911, + 912, + 913, + 914, + 915, + 916, + 917, + 918, + 919, + 920, + 921, + 922, + 923, + 924, + 925, + 926, + 927, + 928, + 929, + 930, + 931, + 932, + 933, + 934, + 935, + 936, + 937, + 938, + 939, + 940, + 941, + 942, + 943, + 944, + 945, + 946, + 947, + 948, + 949, + 950, + 951, + 952, + 953, + 954, + 955, + 956, + 957, + 958, + 959, + 960, + 961, + 962, + 963, + 964, + 965, + 966, + 967, + 968, + 969, + 970, + 971, + 972, + 973, + 974, + 975, + 976, + 977, + 978, + 979, + 980, + 981, + 982, + 983, + 984, + 985, + 986, + 987, + 988, + 989, + 990, + 991, + 992, + 993, + 994, + 995, + 996, + 997, + 998, + 999, + 1000 + ], + "mytable1_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10 + ], + "mytable1_rows_selected": null, + "mytable1_search": "", + "mytable1_state": null, + "mytable2_cell_clicked": { + + }, + "mytable2_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32 + ], + "mytable2_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10 + ], + "mytable2_rows_selected": null, + "mytable2_search": "", + "mytable2_state": null, + "mytable3_cell_clicked": { + + }, + "mytable3_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150 + ], + "mytable3_rows_current": [ + 1, + 2, + 3, + 4, + 5 + ], + "mytable3_rows_selected": null, + "mytable3_search": "", + "mytable3_state": null, + "show_vars": [ + "carat", + "cut", + "color", + "clarity", + "depth", + "table", + "price", + "x", + "y", + "z" + ] + }, + "output": { + "mytable1": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n carat<\/th>\n cut<\/th>\n color<\/th>\n clarity<\/th>\n depth<\/th>\n table<\/th>\n price<\/th>\n x<\/th>\n y<\/th>\n z<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 5, + 6, + 7, + 8, + 9, + 10 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "orderClasses": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.16", + "src": { + "href": "dt-core-1.10.16" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + }, + "mytable2": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n mpg<\/th>\n cyl<\/th>\n disp<\/th>\n hp<\/th>\n drat<\/th>\n wt<\/th>\n qsec<\/th>\n vs<\/th>\n am<\/th>\n gear<\/th>\n carb<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "orderClasses": true, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.16", + "src": { + "href": "dt-core-1.10.16" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + }, + "mytable3": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n Sepal.Length<\/th>\n Sepal.Width<\/th>\n Petal.Length<\/th>\n Petal.Width<\/th>\n Species<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "lengthMenu": [ + 5, + 30, + 50 + ], + "pageLength": 5, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "orderClasses": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.16", + "src": { + "href": "dt-core-1.10.16" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + } + }, + "export": { + + } +} diff --git a/012-datatables/tests/mytest-expected-mac/003.png b/012-datatables/tests/mytest-expected-mac/003.png new file mode 100644 index 00000000..a7a0efa5 Binary files /dev/null and b/012-datatables/tests/mytest-expected-mac/003.png differ diff --git a/012-datatables/tests/mytest-expected-mac/004.json b/012-datatables/tests/mytest-expected-mac/004.json new file mode 100644 index 00000000..13455db7 --- /dev/null +++ b/012-datatables/tests/mytest-expected-mac/004.json @@ -0,0 +1,1547 @@ +{ + "input": { + "dataset": "diamonds", + "mytable1_cell_clicked": { + + }, + "mytable1_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150, + 151, + 152, + 153, + 154, + 155, + 156, + 157, + 158, + 159, + 160, + 161, + 162, + 163, + 164, + 165, + 166, + 167, + 168, + 169, + 170, + 171, + 172, + 173, + 174, + 175, + 176, + 177, + 178, + 179, + 180, + 181, + 182, + 183, + 184, + 185, + 186, + 187, + 188, + 189, + 190, + 191, + 192, + 193, + 194, + 195, + 196, + 197, + 198, + 199, + 200, + 201, + 202, + 203, + 204, + 205, + 206, + 207, + 208, + 209, + 210, + 211, + 212, + 213, + 214, + 215, + 216, + 217, + 218, + 219, + 220, + 221, + 222, + 223, + 224, + 225, + 226, + 227, + 228, + 229, + 230, + 231, + 232, + 233, + 234, + 235, + 236, + 237, + 238, + 239, + 240, + 241, + 242, + 243, + 244, + 245, + 246, + 247, + 248, + 249, + 250, + 251, + 252, + 253, + 254, + 255, + 256, + 257, + 258, + 259, + 260, + 261, + 262, + 263, + 264, + 265, + 266, + 267, + 268, + 269, + 270, + 271, + 272, + 273, + 274, + 275, + 276, + 277, + 278, + 279, + 280, + 281, + 282, + 283, + 284, + 285, + 286, + 287, + 288, + 289, + 290, + 291, + 292, + 293, + 294, + 295, + 296, + 297, + 298, + 299, + 300, + 301, + 302, + 303, + 304, + 305, + 306, + 307, + 308, + 309, + 310, + 311, + 312, + 313, + 314, + 315, + 316, + 317, + 318, + 319, + 320, + 321, + 322, + 323, + 324, + 325, + 326, + 327, + 328, + 329, + 330, + 331, + 332, + 333, + 334, + 335, + 336, + 337, + 338, + 339, + 340, + 341, + 342, + 343, + 344, + 345, + 346, + 347, + 348, + 349, + 350, + 351, + 352, + 353, + 354, + 355, + 356, + 357, + 358, + 359, + 360, + 361, + 362, + 363, + 364, + 365, + 366, + 367, + 368, + 369, + 370, + 371, + 372, + 373, + 374, + 375, + 376, + 377, + 378, + 379, + 380, + 381, + 382, + 383, + 384, + 385, + 386, + 387, + 388, + 389, + 390, + 391, + 392, + 393, + 394, + 395, + 396, + 397, + 398, + 399, + 400, + 401, + 402, + 403, + 404, + 405, + 406, + 407, + 408, + 409, + 410, + 411, + 412, + 413, + 414, + 415, + 416, + 417, + 418, + 419, + 420, + 421, + 422, + 423, + 424, + 425, + 426, + 427, + 428, + 429, + 430, + 431, + 432, + 433, + 434, + 435, + 436, + 437, + 438, + 439, + 440, + 441, + 442, + 443, + 444, + 445, + 446, + 447, + 448, + 449, + 450, + 451, + 452, + 453, + 454, + 455, + 456, + 457, + 458, + 459, + 460, + 461, + 462, + 463, + 464, + 465, + 466, + 467, + 468, + 469, + 470, + 471, + 472, + 473, + 474, + 475, + 476, + 477, + 478, + 479, + 480, + 481, + 482, + 483, + 484, + 485, + 486, + 487, + 488, + 489, + 490, + 491, + 492, + 493, + 494, + 495, + 496, + 497, + 498, + 499, + 500, + 501, + 502, + 503, + 504, + 505, + 506, + 507, + 508, + 509, + 510, + 511, + 512, + 513, + 514, + 515, + 516, + 517, + 518, + 519, + 520, + 521, + 522, + 523, + 524, + 525, + 526, + 527, + 528, + 529, + 530, + 531, + 532, + 533, + 534, + 535, + 536, + 537, + 538, + 539, + 540, + 541, + 542, + 543, + 544, + 545, + 546, + 547, + 548, + 549, + 550, + 551, + 552, + 553, + 554, + 555, + 556, + 557, + 558, + 559, + 560, + 561, + 562, + 563, + 564, + 565, + 566, + 567, + 568, + 569, + 570, + 571, + 572, + 573, + 574, + 575, + 576, + 577, + 578, + 579, + 580, + 581, + 582, + 583, + 584, + 585, + 586, + 587, + 588, + 589, + 590, + 591, + 592, + 593, + 594, + 595, + 596, + 597, + 598, + 599, + 600, + 601, + 602, + 603, + 604, + 605, + 606, + 607, + 608, + 609, + 610, + 611, + 612, + 613, + 614, + 615, + 616, + 617, + 618, + 619, + 620, + 621, + 622, + 623, + 624, + 625, + 626, + 627, + 628, + 629, + 630, + 631, + 632, + 633, + 634, + 635, + 636, + 637, + 638, + 639, + 640, + 641, + 642, + 643, + 644, + 645, + 646, + 647, + 648, + 649, + 650, + 651, + 652, + 653, + 654, + 655, + 656, + 657, + 658, + 659, + 660, + 661, + 662, + 663, + 664, + 665, + 666, + 667, + 668, + 669, + 670, + 671, + 672, + 673, + 674, + 675, + 676, + 677, + 678, + 679, + 680, + 681, + 682, + 683, + 684, + 685, + 686, + 687, + 688, + 689, + 690, + 691, + 692, + 693, + 694, + 695, + 696, + 697, + 698, + 699, + 700, + 701, + 702, + 703, + 704, + 705, + 706, + 707, + 708, + 709, + 710, + 711, + 712, + 713, + 714, + 715, + 716, + 717, + 718, + 719, + 720, + 721, + 722, + 723, + 724, + 725, + 726, + 727, + 728, + 729, + 730, + 731, + 732, + 733, + 734, + 735, + 736, + 737, + 738, + 739, + 740, + 741, + 742, + 743, + 744, + 745, + 746, + 747, + 748, + 749, + 750, + 751, + 752, + 753, + 754, + 755, + 756, + 757, + 758, + 759, + 760, + 761, + 762, + 763, + 764, + 765, + 766, + 767, + 768, + 769, + 770, + 771, + 772, + 773, + 774, + 775, + 776, + 777, + 778, + 779, + 780, + 781, + 782, + 783, + 784, + 785, + 786, + 787, + 788, + 789, + 790, + 791, + 792, + 793, + 794, + 795, + 796, + 797, + 798, + 799, + 800, + 801, + 802, + 803, + 804, + 805, + 806, + 807, + 808, + 809, + 810, + 811, + 812, + 813, + 814, + 815, + 816, + 817, + 818, + 819, + 820, + 821, + 822, + 823, + 824, + 825, + 826, + 827, + 828, + 829, + 830, + 831, + 832, + 833, + 834, + 835, + 836, + 837, + 838, + 839, + 840, + 841, + 842, + 843, + 844, + 845, + 846, + 847, + 848, + 849, + 850, + 851, + 852, + 853, + 854, + 855, + 856, + 857, + 858, + 859, + 860, + 861, + 862, + 863, + 864, + 865, + 866, + 867, + 868, + 869, + 870, + 871, + 872, + 873, + 874, + 875, + 876, + 877, + 878, + 879, + 880, + 881, + 882, + 883, + 884, + 885, + 886, + 887, + 888, + 889, + 890, + 891, + 892, + 893, + 894, + 895, + 896, + 897, + 898, + 899, + 900, + 901, + 902, + 903, + 904, + 905, + 906, + 907, + 908, + 909, + 910, + 911, + 912, + 913, + 914, + 915, + 916, + 917, + 918, + 919, + 920, + 921, + 922, + 923, + 924, + 925, + 926, + 927, + 928, + 929, + 930, + 931, + 932, + 933, + 934, + 935, + 936, + 937, + 938, + 939, + 940, + 941, + 942, + 943, + 944, + 945, + 946, + 947, + 948, + 949, + 950, + 951, + 952, + 953, + 954, + 955, + 956, + 957, + 958, + 959, + 960, + 961, + 962, + 963, + 964, + 965, + 966, + 967, + 968, + 969, + 970, + 971, + 972, + 973, + 974, + 975, + 976, + 977, + 978, + 979, + 980, + 981, + 982, + 983, + 984, + 985, + 986, + 987, + 988, + 989, + 990, + 991, + 992, + 993, + 994, + 995, + 996, + 997, + 998, + 999, + 1000 + ], + "mytable1_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10 + ], + "mytable1_rows_selected": null, + "mytable1_search": "", + "mytable1_state": null, + "mytable2_cell_clicked": { + + }, + "mytable2_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32 + ], + "mytable2_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10 + ], + "mytable2_rows_selected": null, + "mytable2_search": "", + "mytable2_state": null, + "mytable3_cell_clicked": { + + }, + "mytable3_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150 + ], + "mytable3_rows_current": [ + 1, + 2, + 3, + 4, + 5 + ], + "mytable3_rows_selected": null, + "mytable3_search": "", + "mytable3_state": null, + "show_vars": [ + "carat", + "cut", + "color", + "clarity", + "price", + "x", + "y", + "z" + ] + }, + "output": { + "mytable1": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n carat<\/th>\n cut<\/th>\n color<\/th>\n clarity<\/th>\n price<\/th>\n x<\/th>\n y<\/th>\n z<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 5, + 6, + 7, + 8 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "orderClasses": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.16", + "src": { + "href": "dt-core-1.10.16" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + }, + "mytable2": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n mpg<\/th>\n cyl<\/th>\n disp<\/th>\n hp<\/th>\n drat<\/th>\n wt<\/th>\n qsec<\/th>\n vs<\/th>\n am<\/th>\n gear<\/th>\n carb<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "orderClasses": true, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.16", + "src": { + "href": "dt-core-1.10.16" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + }, + "mytable3": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n Sepal.Length<\/th>\n Sepal.Width<\/th>\n Petal.Length<\/th>\n Petal.Width<\/th>\n Species<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "lengthMenu": [ + 5, + 30, + 50 + ], + "pageLength": 5, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "orderClasses": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.16", + "src": { + "href": "dt-core-1.10.16" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + } + }, + "export": { + + } +} diff --git a/012-datatables/tests/mytest-expected-mac/004.png b/012-datatables/tests/mytest-expected-mac/004.png new file mode 100644 index 00000000..56fba84d Binary files /dev/null and b/012-datatables/tests/mytest-expected-mac/004.png differ diff --git a/012-datatables/tests/mytest-expected-mac/005.json b/012-datatables/tests/mytest-expected-mac/005.json new file mode 100644 index 00000000..94decccf --- /dev/null +++ b/012-datatables/tests/mytest-expected-mac/005.json @@ -0,0 +1,1544 @@ +{ + "input": { + "dataset": "diamonds", + "mytable1_cell_clicked": { + + }, + "mytable1_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150, + 151, + 152, + 153, + 154, + 155, + 156, + 157, + 158, + 159, + 160, + 161, + 162, + 163, + 164, + 165, + 166, + 167, + 168, + 169, + 170, + 171, + 172, + 173, + 174, + 175, + 176, + 177, + 178, + 179, + 180, + 181, + 182, + 183, + 184, + 185, + 186, + 187, + 188, + 189, + 190, + 191, + 192, + 193, + 194, + 195, + 196, + 197, + 198, + 199, + 200, + 201, + 202, + 203, + 204, + 205, + 206, + 207, + 208, + 209, + 210, + 211, + 212, + 213, + 214, + 215, + 216, + 217, + 218, + 219, + 220, + 221, + 222, + 223, + 224, + 225, + 226, + 227, + 228, + 229, + 230, + 231, + 232, + 233, + 234, + 235, + 236, + 237, + 238, + 239, + 240, + 241, + 242, + 243, + 244, + 245, + 246, + 247, + 248, + 249, + 250, + 251, + 252, + 253, + 254, + 255, + 256, + 257, + 258, + 259, + 260, + 261, + 262, + 263, + 264, + 265, + 266, + 267, + 268, + 269, + 270, + 271, + 272, + 273, + 274, + 275, + 276, + 277, + 278, + 279, + 280, + 281, + 282, + 283, + 284, + 285, + 286, + 287, + 288, + 289, + 290, + 291, + 292, + 293, + 294, + 295, + 296, + 297, + 298, + 299, + 300, + 301, + 302, + 303, + 304, + 305, + 306, + 307, + 308, + 309, + 310, + 311, + 312, + 313, + 314, + 315, + 316, + 317, + 318, + 319, + 320, + 321, + 322, + 323, + 324, + 325, + 326, + 327, + 328, + 329, + 330, + 331, + 332, + 333, + 334, + 335, + 336, + 337, + 338, + 339, + 340, + 341, + 342, + 343, + 344, + 345, + 346, + 347, + 348, + 349, + 350, + 351, + 352, + 353, + 354, + 355, + 356, + 357, + 358, + 359, + 360, + 361, + 362, + 363, + 364, + 365, + 366, + 367, + 368, + 369, + 370, + 371, + 372, + 373, + 374, + 375, + 376, + 377, + 378, + 379, + 380, + 381, + 382, + 383, + 384, + 385, + 386, + 387, + 388, + 389, + 390, + 391, + 392, + 393, + 394, + 395, + 396, + 397, + 398, + 399, + 400, + 401, + 402, + 403, + 404, + 405, + 406, + 407, + 408, + 409, + 410, + 411, + 412, + 413, + 414, + 415, + 416, + 417, + 418, + 419, + 420, + 421, + 422, + 423, + 424, + 425, + 426, + 427, + 428, + 429, + 430, + 431, + 432, + 433, + 434, + 435, + 436, + 437, + 438, + 439, + 440, + 441, + 442, + 443, + 444, + 445, + 446, + 447, + 448, + 449, + 450, + 451, + 452, + 453, + 454, + 455, + 456, + 457, + 458, + 459, + 460, + 461, + 462, + 463, + 464, + 465, + 466, + 467, + 468, + 469, + 470, + 471, + 472, + 473, + 474, + 475, + 476, + 477, + 478, + 479, + 480, + 481, + 482, + 483, + 484, + 485, + 486, + 487, + 488, + 489, + 490, + 491, + 492, + 493, + 494, + 495, + 496, + 497, + 498, + 499, + 500, + 501, + 502, + 503, + 504, + 505, + 506, + 507, + 508, + 509, + 510, + 511, + 512, + 513, + 514, + 515, + 516, + 517, + 518, + 519, + 520, + 521, + 522, + 523, + 524, + 525, + 526, + 527, + 528, + 529, + 530, + 531, + 532, + 533, + 534, + 535, + 536, + 537, + 538, + 539, + 540, + 541, + 542, + 543, + 544, + 545, + 546, + 547, + 548, + 549, + 550, + 551, + 552, + 553, + 554, + 555, + 556, + 557, + 558, + 559, + 560, + 561, + 562, + 563, + 564, + 565, + 566, + 567, + 568, + 569, + 570, + 571, + 572, + 573, + 574, + 575, + 576, + 577, + 578, + 579, + 580, + 581, + 582, + 583, + 584, + 585, + 586, + 587, + 588, + 589, + 590, + 591, + 592, + 593, + 594, + 595, + 596, + 597, + 598, + 599, + 600, + 601, + 602, + 603, + 604, + 605, + 606, + 607, + 608, + 609, + 610, + 611, + 612, + 613, + 614, + 615, + 616, + 617, + 618, + 619, + 620, + 621, + 622, + 623, + 624, + 625, + 626, + 627, + 628, + 629, + 630, + 631, + 632, + 633, + 634, + 635, + 636, + 637, + 638, + 639, + 640, + 641, + 642, + 643, + 644, + 645, + 646, + 647, + 648, + 649, + 650, + 651, + 652, + 653, + 654, + 655, + 656, + 657, + 658, + 659, + 660, + 661, + 662, + 663, + 664, + 665, + 666, + 667, + 668, + 669, + 670, + 671, + 672, + 673, + 674, + 675, + 676, + 677, + 678, + 679, + 680, + 681, + 682, + 683, + 684, + 685, + 686, + 687, + 688, + 689, + 690, + 691, + 692, + 693, + 694, + 695, + 696, + 697, + 698, + 699, + 700, + 701, + 702, + 703, + 704, + 705, + 706, + 707, + 708, + 709, + 710, + 711, + 712, + 713, + 714, + 715, + 716, + 717, + 718, + 719, + 720, + 721, + 722, + 723, + 724, + 725, + 726, + 727, + 728, + 729, + 730, + 731, + 732, + 733, + 734, + 735, + 736, + 737, + 738, + 739, + 740, + 741, + 742, + 743, + 744, + 745, + 746, + 747, + 748, + 749, + 750, + 751, + 752, + 753, + 754, + 755, + 756, + 757, + 758, + 759, + 760, + 761, + 762, + 763, + 764, + 765, + 766, + 767, + 768, + 769, + 770, + 771, + 772, + 773, + 774, + 775, + 776, + 777, + 778, + 779, + 780, + 781, + 782, + 783, + 784, + 785, + 786, + 787, + 788, + 789, + 790, + 791, + 792, + 793, + 794, + 795, + 796, + 797, + 798, + 799, + 800, + 801, + 802, + 803, + 804, + 805, + 806, + 807, + 808, + 809, + 810, + 811, + 812, + 813, + 814, + 815, + 816, + 817, + 818, + 819, + 820, + 821, + 822, + 823, + 824, + 825, + 826, + 827, + 828, + 829, + 830, + 831, + 832, + 833, + 834, + 835, + 836, + 837, + 838, + 839, + 840, + 841, + 842, + 843, + 844, + 845, + 846, + 847, + 848, + 849, + 850, + 851, + 852, + 853, + 854, + 855, + 856, + 857, + 858, + 859, + 860, + 861, + 862, + 863, + 864, + 865, + 866, + 867, + 868, + 869, + 870, + 871, + 872, + 873, + 874, + 875, + 876, + 877, + 878, + 879, + 880, + 881, + 882, + 883, + 884, + 885, + 886, + 887, + 888, + 889, + 890, + 891, + 892, + 893, + 894, + 895, + 896, + 897, + 898, + 899, + 900, + 901, + 902, + 903, + 904, + 905, + 906, + 907, + 908, + 909, + 910, + 911, + 912, + 913, + 914, + 915, + 916, + 917, + 918, + 919, + 920, + 921, + 922, + 923, + 924, + 925, + 926, + 927, + 928, + 929, + 930, + 931, + 932, + 933, + 934, + 935, + 936, + 937, + 938, + 939, + 940, + 941, + 942, + 943, + 944, + 945, + 946, + 947, + 948, + 949, + 950, + 951, + 952, + 953, + 954, + 955, + 956, + 957, + 958, + 959, + 960, + 961, + 962, + 963, + 964, + 965, + 966, + 967, + 968, + 969, + 970, + 971, + 972, + 973, + 974, + 975, + 976, + 977, + 978, + 979, + 980, + 981, + 982, + 983, + 984, + 985, + 986, + 987, + 988, + 989, + 990, + 991, + 992, + 993, + 994, + 995, + 996, + 997, + 998, + 999, + 1000 + ], + "mytable1_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10 + ], + "mytable1_rows_selected": null, + "mytable1_search": "", + "mytable1_state": null, + "mytable2_cell_clicked": { + + }, + "mytable2_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32 + ], + "mytable2_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10 + ], + "mytable2_rows_selected": null, + "mytable2_search": "", + "mytable2_state": null, + "mytable3_cell_clicked": { + + }, + "mytable3_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150 + ], + "mytable3_rows_current": [ + 1, + 2, + 3, + 4, + 5 + ], + "mytable3_rows_selected": null, + "mytable3_search": "", + "mytable3_state": null, + "show_vars": [ + "carat", + "color", + "clarity", + "price", + "y", + "z" + ] + }, + "output": { + "mytable1": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n carat<\/th>\n color<\/th>\n clarity<\/th>\n price<\/th>\n y<\/th>\n z<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 4, + 5, + 6 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "orderClasses": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.16", + "src": { + "href": "dt-core-1.10.16" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + }, + "mytable2": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n mpg<\/th>\n cyl<\/th>\n disp<\/th>\n hp<\/th>\n drat<\/th>\n wt<\/th>\n qsec<\/th>\n vs<\/th>\n am<\/th>\n gear<\/th>\n carb<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "orderClasses": true, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.16", + "src": { + "href": "dt-core-1.10.16" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + }, + "mytable3": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n Sepal.Length<\/th>\n Sepal.Width<\/th>\n Petal.Length<\/th>\n Petal.Width<\/th>\n Species<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "lengthMenu": [ + 5, + 30, + 50 + ], + "pageLength": 5, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "orderClasses": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.16", + "src": { + "href": "dt-core-1.10.16" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + } + }, + "export": { + + } +} diff --git a/012-datatables/tests/mytest-expected-mac/005.png b/012-datatables/tests/mytest-expected-mac/005.png new file mode 100644 index 00000000..85ecf6a5 Binary files /dev/null and b/012-datatables/tests/mytest-expected-mac/005.png differ diff --git a/012-datatables/tests/mytest-expected-mac/006.json b/012-datatables/tests/mytest-expected-mac/006.json new file mode 100644 index 00000000..4edb63b5 --- /dev/null +++ b/012-datatables/tests/mytest-expected-mac/006.json @@ -0,0 +1,1450 @@ +{ + "input": { + "dataset": "diamonds", + "mytable1_cell_clicked": { + + }, + "mytable1_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150, + 151, + 152, + 153, + 154, + 155, + 156, + 157, + 158, + 159, + 160, + 161, + 162, + 163, + 164, + 165, + 166, + 167, + 168, + 169, + 170, + 171, + 172, + 173, + 174, + 175, + 176, + 177, + 178, + 179, + 180, + 181, + 182, + 183, + 184, + 185, + 186, + 187, + 188, + 189, + 190, + 191, + 192, + 193, + 194, + 195, + 196, + 197, + 198, + 199, + 200, + 201, + 202, + 203, + 204, + 205, + 206, + 207, + 208, + 209, + 210, + 211, + 212, + 213, + 214, + 215, + 216, + 217, + 218, + 219, + 220, + 221, + 222, + 223, + 224, + 225, + 226, + 227, + 228, + 229, + 230, + 231, + 232, + 233, + 234, + 235, + 236, + 237, + 238, + 239, + 240, + 241, + 242, + 243, + 244, + 245, + 246, + 247, + 248, + 249, + 250, + 251, + 252, + 253, + 254, + 255, + 256, + 257, + 258, + 259, + 260, + 261, + 262, + 263, + 264, + 265, + 266, + 267, + 268, + 269, + 270, + 271, + 272, + 273, + 274, + 275, + 276, + 277, + 278, + 279, + 280, + 281, + 282, + 283, + 284, + 285, + 286, + 287, + 288, + 289, + 290, + 291, + 292, + 293, + 294, + 295, + 296, + 297, + 298, + 299, + 300, + 301, + 302, + 303, + 304, + 305, + 306, + 307, + 308, + 309, + 310, + 311, + 312, + 313, + 314, + 315, + 316, + 317, + 318, + 319, + 320, + 321, + 322, + 323, + 324, + 325, + 326, + 327, + 328, + 329, + 330, + 331, + 332, + 333, + 334, + 335, + 336, + 337, + 338, + 339, + 340, + 341, + 342, + 343, + 344, + 345, + 346, + 347, + 348, + 349, + 350, + 351, + 352, + 353, + 354, + 355, + 356, + 357, + 358, + 359, + 360, + 361, + 362, + 363, + 364, + 365, + 366, + 367, + 368, + 369, + 370, + 371, + 372, + 373, + 374, + 375, + 376, + 377, + 378, + 379, + 380, + 381, + 382, + 383, + 384, + 385, + 386, + 387, + 388, + 389, + 390, + 391, + 392, + 393, + 394, + 395, + 396, + 397, + 398, + 399, + 400, + 401, + 402, + 403, + 404, + 405, + 406, + 407, + 408, + 409, + 410, + 411, + 412, + 413, + 414, + 415, + 416, + 417, + 418, + 419, + 420, + 421, + 422, + 423, + 424, + 425, + 426, + 427, + 428, + 429, + 430, + 431, + 432, + 433, + 434, + 435, + 436, + 437, + 438, + 439, + 440, + 441, + 442, + 443, + 444, + 445, + 446, + 447, + 448, + 449, + 450, + 451, + 452, + 453, + 454, + 455, + 456, + 457, + 458, + 459, + 460, + 461, + 462, + 463, + 464, + 465, + 466, + 467, + 468, + 469, + 470, + 471, + 472, + 473, + 474, + 475, + 476, + 477, + 478, + 479, + 480, + 481, + 482, + 483, + 484, + 485, + 486, + 487, + 488, + 489, + 490, + 491, + 492, + 493, + 494, + 495, + 496, + 497, + 498, + 499, + 500, + 501, + 502, + 503, + 504, + 505, + 506, + 507, + 508, + 509, + 510, + 511, + 512, + 513, + 514, + 515, + 516, + 517, + 518, + 519, + 520, + 521, + 522, + 523, + 524, + 525, + 526, + 527, + 528, + 529, + 530, + 531, + 532, + 533, + 534, + 535, + 536, + 537, + 538, + 539, + 540, + 541, + 542, + 543, + 544, + 545, + 546, + 547, + 548, + 549, + 550, + 551, + 552, + 553, + 554, + 555, + 556, + 557, + 558, + 559, + 560, + 561, + 562, + 563, + 564, + 565, + 566, + 567, + 568, + 569, + 570, + 571, + 572, + 573, + 574, + 575, + 576, + 577, + 578, + 579, + 580, + 581, + 582, + 583, + 584, + 585, + 586, + 587, + 588, + 589, + 590, + 591, + 592, + 593, + 594, + 595, + 596, + 597, + 598, + 599, + 600, + 601, + 602, + 603, + 604, + 605, + 606, + 607, + 608, + 609, + 610, + 611, + 612, + 613, + 614, + 615, + 616, + 617, + 618, + 619, + 620, + 621, + 622, + 623, + 624, + 625, + 626, + 627, + 628, + 629, + 630, + 631, + 632, + 633, + 634, + 635, + 636, + 637, + 638, + 639, + 640, + 641, + 642, + 643, + 644, + 645, + 646, + 647, + 648, + 649, + 650, + 651, + 652, + 653, + 654, + 655, + 656, + 657, + 658, + 659, + 660, + 661, + 662, + 663, + 664, + 665, + 666, + 667, + 668, + 669, + 670, + 671, + 672, + 673, + 674, + 675, + 676, + 677, + 678, + 679, + 680, + 681, + 682, + 683, + 684, + 685, + 686, + 687, + 688, + 689, + 690, + 691, + 692, + 693, + 694, + 695, + 696, + 697, + 698, + 699, + 700, + 701, + 702, + 703, + 704, + 705, + 706, + 707, + 708, + 709, + 710, + 711, + 712, + 713, + 714, + 715, + 716, + 717, + 718, + 719, + 720, + 721, + 722, + 723, + 724, + 725, + 726, + 727, + 728, + 729, + 730, + 731, + 732, + 733, + 734, + 735, + 736, + 737, + 738, + 739, + 740, + 741, + 742, + 743, + 744, + 745, + 746, + 747, + 748, + 749, + 750, + 751, + 752, + 753, + 754, + 755, + 756, + 757, + 758, + 759, + 760, + 761, + 762, + 763, + 764, + 765, + 766, + 767, + 768, + 769, + 770, + 771, + 772, + 773, + 774, + 775, + 776, + 777, + 778, + 779, + 780, + 781, + 782, + 783, + 784, + 785, + 786, + 787, + 788, + 789, + 790, + 791, + 792, + 793, + 794, + 795, + 796, + 797, + 798, + 799, + 800, + 801, + 802, + 803, + 804, + 805, + 806, + 807, + 808, + 809, + 810, + 811, + 812, + 813, + 814, + 815, + 816, + 817, + 818, + 819, + 820, + 821, + 822, + 823, + 824, + 825, + 826, + 827, + 828, + 829, + 830, + 831, + 832, + 833, + 834, + 835, + 836, + 837, + 838, + 839, + 840, + 841, + 842, + 843, + 844, + 845, + 846, + 847, + 848, + 849, + 850, + 851, + 852, + 853, + 854, + 855, + 856, + 857, + 858, + 859, + 860, + 861, + 862, + 863, + 864, + 865, + 866, + 867, + 868, + 869, + 870, + 871, + 872, + 873, + 874, + 875, + 876, + 877, + 878, + 879, + 880, + 881, + 882, + 883, + 884, + 885, + 886, + 887, + 888, + 889, + 890, + 891, + 892, + 893, + 894, + 895, + 896, + 897, + 898, + 899, + 900, + 901, + 902, + 903, + 904, + 905, + 906, + 907, + 908, + 909, + 910, + 911, + 912, + 913, + 914, + 915, + 916, + 917, + 918, + 919, + 920, + 921, + 922, + 923, + 924, + 925, + 926, + 927, + 928, + 929, + 930, + 931, + 932, + 933, + 934, + 935, + 936, + 937, + 938, + 939, + 940, + 941, + 942, + 943, + 944, + 945, + 946, + 947, + 948, + 949, + 950, + 951, + 952, + 953, + 954, + 955, + 956, + 957, + 958, + 959, + 960, + 961, + 962, + 963, + 964, + 965, + 966, + 967, + 968, + 969, + 970, + 971, + 972, + 973, + 974, + 975, + 976, + 977, + 978, + 979, + 980, + 981, + 982, + 983, + 984, + 985, + 986, + 987, + 988, + 989, + 990, + 991, + 992, + 993, + 994, + 995, + 996, + 997, + 998, + 999, + 1000 + ], + "mytable1_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10 + ], + "mytable1_rows_selected": null, + "mytable1_search": "", + "mytable1_state": null, + "mytable2_cell_clicked": { + + }, + "mytable2_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32 + ], + "mytable2_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10 + ], + "mytable2_rows_selected": null, + "mytable2_search": "", + "mytable2_state": null, + "mytable3_cell_clicked": { + + }, + "mytable3_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150 + ], + "mytable3_rows_current": [ + 1, + 2, + 3, + 4, + 5 + ], + "mytable3_rows_selected": null, + "mytable3_search": "", + "mytable3_state": null, + "show_vars": null + }, + "output": { + "mytable1": [ + "Can't subset with `[` using an object of class NULL.", + "NULL", + "rlang_error" + ], + "mytable2": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n mpg<\/th>\n cyl<\/th>\n disp<\/th>\n hp<\/th>\n drat<\/th>\n wt<\/th>\n qsec<\/th>\n vs<\/th>\n am<\/th>\n gear<\/th>\n carb<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "orderClasses": true, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.16", + "src": { + "href": "dt-core-1.10.16" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + }, + "mytable3": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n Sepal.Length<\/th>\n Sepal.Width<\/th>\n Petal.Length<\/th>\n Petal.Width<\/th>\n Species<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "lengthMenu": [ + 5, + 30, + 50 + ], + "pageLength": 5, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "orderClasses": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.16", + "src": { + "href": "dt-core-1.10.16" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + } + }, + "export": { + + } +} diff --git a/012-datatables/tests/mytest-expected-mac/006.png b/012-datatables/tests/mytest-expected-mac/006.png new file mode 100644 index 00000000..61f862eb Binary files /dev/null and b/012-datatables/tests/mytest-expected-mac/006.png differ diff --git a/012-datatables/tests/mytest-expected-mac/007.json b/012-datatables/tests/mytest-expected-mac/007.json new file mode 100644 index 00000000..6cbef33d --- /dev/null +++ b/012-datatables/tests/mytest-expected-mac/007.json @@ -0,0 +1,1450 @@ +{ + "input": { + "dataset": "mtcars", + "mytable1_cell_clicked": { + + }, + "mytable1_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150, + 151, + 152, + 153, + 154, + 155, + 156, + 157, + 158, + 159, + 160, + 161, + 162, + 163, + 164, + 165, + 166, + 167, + 168, + 169, + 170, + 171, + 172, + 173, + 174, + 175, + 176, + 177, + 178, + 179, + 180, + 181, + 182, + 183, + 184, + 185, + 186, + 187, + 188, + 189, + 190, + 191, + 192, + 193, + 194, + 195, + 196, + 197, + 198, + 199, + 200, + 201, + 202, + 203, + 204, + 205, + 206, + 207, + 208, + 209, + 210, + 211, + 212, + 213, + 214, + 215, + 216, + 217, + 218, + 219, + 220, + 221, + 222, + 223, + 224, + 225, + 226, + 227, + 228, + 229, + 230, + 231, + 232, + 233, + 234, + 235, + 236, + 237, + 238, + 239, + 240, + 241, + 242, + 243, + 244, + 245, + 246, + 247, + 248, + 249, + 250, + 251, + 252, + 253, + 254, + 255, + 256, + 257, + 258, + 259, + 260, + 261, + 262, + 263, + 264, + 265, + 266, + 267, + 268, + 269, + 270, + 271, + 272, + 273, + 274, + 275, + 276, + 277, + 278, + 279, + 280, + 281, + 282, + 283, + 284, + 285, + 286, + 287, + 288, + 289, + 290, + 291, + 292, + 293, + 294, + 295, + 296, + 297, + 298, + 299, + 300, + 301, + 302, + 303, + 304, + 305, + 306, + 307, + 308, + 309, + 310, + 311, + 312, + 313, + 314, + 315, + 316, + 317, + 318, + 319, + 320, + 321, + 322, + 323, + 324, + 325, + 326, + 327, + 328, + 329, + 330, + 331, + 332, + 333, + 334, + 335, + 336, + 337, + 338, + 339, + 340, + 341, + 342, + 343, + 344, + 345, + 346, + 347, + 348, + 349, + 350, + 351, + 352, + 353, + 354, + 355, + 356, + 357, + 358, + 359, + 360, + 361, + 362, + 363, + 364, + 365, + 366, + 367, + 368, + 369, + 370, + 371, + 372, + 373, + 374, + 375, + 376, + 377, + 378, + 379, + 380, + 381, + 382, + 383, + 384, + 385, + 386, + 387, + 388, + 389, + 390, + 391, + 392, + 393, + 394, + 395, + 396, + 397, + 398, + 399, + 400, + 401, + 402, + 403, + 404, + 405, + 406, + 407, + 408, + 409, + 410, + 411, + 412, + 413, + 414, + 415, + 416, + 417, + 418, + 419, + 420, + 421, + 422, + 423, + 424, + 425, + 426, + 427, + 428, + 429, + 430, + 431, + 432, + 433, + 434, + 435, + 436, + 437, + 438, + 439, + 440, + 441, + 442, + 443, + 444, + 445, + 446, + 447, + 448, + 449, + 450, + 451, + 452, + 453, + 454, + 455, + 456, + 457, + 458, + 459, + 460, + 461, + 462, + 463, + 464, + 465, + 466, + 467, + 468, + 469, + 470, + 471, + 472, + 473, + 474, + 475, + 476, + 477, + 478, + 479, + 480, + 481, + 482, + 483, + 484, + 485, + 486, + 487, + 488, + 489, + 490, + 491, + 492, + 493, + 494, + 495, + 496, + 497, + 498, + 499, + 500, + 501, + 502, + 503, + 504, + 505, + 506, + 507, + 508, + 509, + 510, + 511, + 512, + 513, + 514, + 515, + 516, + 517, + 518, + 519, + 520, + 521, + 522, + 523, + 524, + 525, + 526, + 527, + 528, + 529, + 530, + 531, + 532, + 533, + 534, + 535, + 536, + 537, + 538, + 539, + 540, + 541, + 542, + 543, + 544, + 545, + 546, + 547, + 548, + 549, + 550, + 551, + 552, + 553, + 554, + 555, + 556, + 557, + 558, + 559, + 560, + 561, + 562, + 563, + 564, + 565, + 566, + 567, + 568, + 569, + 570, + 571, + 572, + 573, + 574, + 575, + 576, + 577, + 578, + 579, + 580, + 581, + 582, + 583, + 584, + 585, + 586, + 587, + 588, + 589, + 590, + 591, + 592, + 593, + 594, + 595, + 596, + 597, + 598, + 599, + 600, + 601, + 602, + 603, + 604, + 605, + 606, + 607, + 608, + 609, + 610, + 611, + 612, + 613, + 614, + 615, + 616, + 617, + 618, + 619, + 620, + 621, + 622, + 623, + 624, + 625, + 626, + 627, + 628, + 629, + 630, + 631, + 632, + 633, + 634, + 635, + 636, + 637, + 638, + 639, + 640, + 641, + 642, + 643, + 644, + 645, + 646, + 647, + 648, + 649, + 650, + 651, + 652, + 653, + 654, + 655, + 656, + 657, + 658, + 659, + 660, + 661, + 662, + 663, + 664, + 665, + 666, + 667, + 668, + 669, + 670, + 671, + 672, + 673, + 674, + 675, + 676, + 677, + 678, + 679, + 680, + 681, + 682, + 683, + 684, + 685, + 686, + 687, + 688, + 689, + 690, + 691, + 692, + 693, + 694, + 695, + 696, + 697, + 698, + 699, + 700, + 701, + 702, + 703, + 704, + 705, + 706, + 707, + 708, + 709, + 710, + 711, + 712, + 713, + 714, + 715, + 716, + 717, + 718, + 719, + 720, + 721, + 722, + 723, + 724, + 725, + 726, + 727, + 728, + 729, + 730, + 731, + 732, + 733, + 734, + 735, + 736, + 737, + 738, + 739, + 740, + 741, + 742, + 743, + 744, + 745, + 746, + 747, + 748, + 749, + 750, + 751, + 752, + 753, + 754, + 755, + 756, + 757, + 758, + 759, + 760, + 761, + 762, + 763, + 764, + 765, + 766, + 767, + 768, + 769, + 770, + 771, + 772, + 773, + 774, + 775, + 776, + 777, + 778, + 779, + 780, + 781, + 782, + 783, + 784, + 785, + 786, + 787, + 788, + 789, + 790, + 791, + 792, + 793, + 794, + 795, + 796, + 797, + 798, + 799, + 800, + 801, + 802, + 803, + 804, + 805, + 806, + 807, + 808, + 809, + 810, + 811, + 812, + 813, + 814, + 815, + 816, + 817, + 818, + 819, + 820, + 821, + 822, + 823, + 824, + 825, + 826, + 827, + 828, + 829, + 830, + 831, + 832, + 833, + 834, + 835, + 836, + 837, + 838, + 839, + 840, + 841, + 842, + 843, + 844, + 845, + 846, + 847, + 848, + 849, + 850, + 851, + 852, + 853, + 854, + 855, + 856, + 857, + 858, + 859, + 860, + 861, + 862, + 863, + 864, + 865, + 866, + 867, + 868, + 869, + 870, + 871, + 872, + 873, + 874, + 875, + 876, + 877, + 878, + 879, + 880, + 881, + 882, + 883, + 884, + 885, + 886, + 887, + 888, + 889, + 890, + 891, + 892, + 893, + 894, + 895, + 896, + 897, + 898, + 899, + 900, + 901, + 902, + 903, + 904, + 905, + 906, + 907, + 908, + 909, + 910, + 911, + 912, + 913, + 914, + 915, + 916, + 917, + 918, + 919, + 920, + 921, + 922, + 923, + 924, + 925, + 926, + 927, + 928, + 929, + 930, + 931, + 932, + 933, + 934, + 935, + 936, + 937, + 938, + 939, + 940, + 941, + 942, + 943, + 944, + 945, + 946, + 947, + 948, + 949, + 950, + 951, + 952, + 953, + 954, + 955, + 956, + 957, + 958, + 959, + 960, + 961, + 962, + 963, + 964, + 965, + 966, + 967, + 968, + 969, + 970, + 971, + 972, + 973, + 974, + 975, + 976, + 977, + 978, + 979, + 980, + 981, + 982, + 983, + 984, + 985, + 986, + 987, + 988, + 989, + 990, + 991, + 992, + 993, + 994, + 995, + 996, + 997, + 998, + 999, + 1000 + ], + "mytable1_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10 + ], + "mytable1_rows_selected": null, + "mytable1_search": "", + "mytable1_state": null, + "mytable2_cell_clicked": { + + }, + "mytable2_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32 + ], + "mytable2_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10 + ], + "mytable2_rows_selected": null, + "mytable2_search": "", + "mytable2_state": null, + "mytable3_cell_clicked": { + + }, + "mytable3_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150 + ], + "mytable3_rows_current": [ + 1, + 2, + 3, + 4, + 5 + ], + "mytable3_rows_selected": null, + "mytable3_search": "", + "mytable3_state": null, + "show_vars": null + }, + "output": { + "mytable1": [ + "Can't subset with `[` using an object of class NULL.", + "NULL", + "rlang_error" + ], + "mytable2": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n mpg<\/th>\n cyl<\/th>\n disp<\/th>\n hp<\/th>\n drat<\/th>\n wt<\/th>\n qsec<\/th>\n vs<\/th>\n am<\/th>\n gear<\/th>\n carb<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "orderClasses": true, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.16", + "src": { + "href": "dt-core-1.10.16" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + }, + "mytable3": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n Sepal.Length<\/th>\n Sepal.Width<\/th>\n Petal.Length<\/th>\n Petal.Width<\/th>\n Species<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "lengthMenu": [ + 5, + 30, + 50 + ], + "pageLength": 5, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "orderClasses": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.16", + "src": { + "href": "dt-core-1.10.16" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + } + }, + "export": { + + } +} diff --git a/012-datatables/tests/mytest-expected-mac/007.png b/012-datatables/tests/mytest-expected-mac/007.png new file mode 100644 index 00000000..8d035a1d Binary files /dev/null and b/012-datatables/tests/mytest-expected-mac/007.png differ diff --git a/012-datatables/tests/mytest-expected-mac/008.json b/012-datatables/tests/mytest-expected-mac/008.json new file mode 100644 index 00000000..6cbef33d --- /dev/null +++ b/012-datatables/tests/mytest-expected-mac/008.json @@ -0,0 +1,1450 @@ +{ + "input": { + "dataset": "mtcars", + "mytable1_cell_clicked": { + + }, + "mytable1_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150, + 151, + 152, + 153, + 154, + 155, + 156, + 157, + 158, + 159, + 160, + 161, + 162, + 163, + 164, + 165, + 166, + 167, + 168, + 169, + 170, + 171, + 172, + 173, + 174, + 175, + 176, + 177, + 178, + 179, + 180, + 181, + 182, + 183, + 184, + 185, + 186, + 187, + 188, + 189, + 190, + 191, + 192, + 193, + 194, + 195, + 196, + 197, + 198, + 199, + 200, + 201, + 202, + 203, + 204, + 205, + 206, + 207, + 208, + 209, + 210, + 211, + 212, + 213, + 214, + 215, + 216, + 217, + 218, + 219, + 220, + 221, + 222, + 223, + 224, + 225, + 226, + 227, + 228, + 229, + 230, + 231, + 232, + 233, + 234, + 235, + 236, + 237, + 238, + 239, + 240, + 241, + 242, + 243, + 244, + 245, + 246, + 247, + 248, + 249, + 250, + 251, + 252, + 253, + 254, + 255, + 256, + 257, + 258, + 259, + 260, + 261, + 262, + 263, + 264, + 265, + 266, + 267, + 268, + 269, + 270, + 271, + 272, + 273, + 274, + 275, + 276, + 277, + 278, + 279, + 280, + 281, + 282, + 283, + 284, + 285, + 286, + 287, + 288, + 289, + 290, + 291, + 292, + 293, + 294, + 295, + 296, + 297, + 298, + 299, + 300, + 301, + 302, + 303, + 304, + 305, + 306, + 307, + 308, + 309, + 310, + 311, + 312, + 313, + 314, + 315, + 316, + 317, + 318, + 319, + 320, + 321, + 322, + 323, + 324, + 325, + 326, + 327, + 328, + 329, + 330, + 331, + 332, + 333, + 334, + 335, + 336, + 337, + 338, + 339, + 340, + 341, + 342, + 343, + 344, + 345, + 346, + 347, + 348, + 349, + 350, + 351, + 352, + 353, + 354, + 355, + 356, + 357, + 358, + 359, + 360, + 361, + 362, + 363, + 364, + 365, + 366, + 367, + 368, + 369, + 370, + 371, + 372, + 373, + 374, + 375, + 376, + 377, + 378, + 379, + 380, + 381, + 382, + 383, + 384, + 385, + 386, + 387, + 388, + 389, + 390, + 391, + 392, + 393, + 394, + 395, + 396, + 397, + 398, + 399, + 400, + 401, + 402, + 403, + 404, + 405, + 406, + 407, + 408, + 409, + 410, + 411, + 412, + 413, + 414, + 415, + 416, + 417, + 418, + 419, + 420, + 421, + 422, + 423, + 424, + 425, + 426, + 427, + 428, + 429, + 430, + 431, + 432, + 433, + 434, + 435, + 436, + 437, + 438, + 439, + 440, + 441, + 442, + 443, + 444, + 445, + 446, + 447, + 448, + 449, + 450, + 451, + 452, + 453, + 454, + 455, + 456, + 457, + 458, + 459, + 460, + 461, + 462, + 463, + 464, + 465, + 466, + 467, + 468, + 469, + 470, + 471, + 472, + 473, + 474, + 475, + 476, + 477, + 478, + 479, + 480, + 481, + 482, + 483, + 484, + 485, + 486, + 487, + 488, + 489, + 490, + 491, + 492, + 493, + 494, + 495, + 496, + 497, + 498, + 499, + 500, + 501, + 502, + 503, + 504, + 505, + 506, + 507, + 508, + 509, + 510, + 511, + 512, + 513, + 514, + 515, + 516, + 517, + 518, + 519, + 520, + 521, + 522, + 523, + 524, + 525, + 526, + 527, + 528, + 529, + 530, + 531, + 532, + 533, + 534, + 535, + 536, + 537, + 538, + 539, + 540, + 541, + 542, + 543, + 544, + 545, + 546, + 547, + 548, + 549, + 550, + 551, + 552, + 553, + 554, + 555, + 556, + 557, + 558, + 559, + 560, + 561, + 562, + 563, + 564, + 565, + 566, + 567, + 568, + 569, + 570, + 571, + 572, + 573, + 574, + 575, + 576, + 577, + 578, + 579, + 580, + 581, + 582, + 583, + 584, + 585, + 586, + 587, + 588, + 589, + 590, + 591, + 592, + 593, + 594, + 595, + 596, + 597, + 598, + 599, + 600, + 601, + 602, + 603, + 604, + 605, + 606, + 607, + 608, + 609, + 610, + 611, + 612, + 613, + 614, + 615, + 616, + 617, + 618, + 619, + 620, + 621, + 622, + 623, + 624, + 625, + 626, + 627, + 628, + 629, + 630, + 631, + 632, + 633, + 634, + 635, + 636, + 637, + 638, + 639, + 640, + 641, + 642, + 643, + 644, + 645, + 646, + 647, + 648, + 649, + 650, + 651, + 652, + 653, + 654, + 655, + 656, + 657, + 658, + 659, + 660, + 661, + 662, + 663, + 664, + 665, + 666, + 667, + 668, + 669, + 670, + 671, + 672, + 673, + 674, + 675, + 676, + 677, + 678, + 679, + 680, + 681, + 682, + 683, + 684, + 685, + 686, + 687, + 688, + 689, + 690, + 691, + 692, + 693, + 694, + 695, + 696, + 697, + 698, + 699, + 700, + 701, + 702, + 703, + 704, + 705, + 706, + 707, + 708, + 709, + 710, + 711, + 712, + 713, + 714, + 715, + 716, + 717, + 718, + 719, + 720, + 721, + 722, + 723, + 724, + 725, + 726, + 727, + 728, + 729, + 730, + 731, + 732, + 733, + 734, + 735, + 736, + 737, + 738, + 739, + 740, + 741, + 742, + 743, + 744, + 745, + 746, + 747, + 748, + 749, + 750, + 751, + 752, + 753, + 754, + 755, + 756, + 757, + 758, + 759, + 760, + 761, + 762, + 763, + 764, + 765, + 766, + 767, + 768, + 769, + 770, + 771, + 772, + 773, + 774, + 775, + 776, + 777, + 778, + 779, + 780, + 781, + 782, + 783, + 784, + 785, + 786, + 787, + 788, + 789, + 790, + 791, + 792, + 793, + 794, + 795, + 796, + 797, + 798, + 799, + 800, + 801, + 802, + 803, + 804, + 805, + 806, + 807, + 808, + 809, + 810, + 811, + 812, + 813, + 814, + 815, + 816, + 817, + 818, + 819, + 820, + 821, + 822, + 823, + 824, + 825, + 826, + 827, + 828, + 829, + 830, + 831, + 832, + 833, + 834, + 835, + 836, + 837, + 838, + 839, + 840, + 841, + 842, + 843, + 844, + 845, + 846, + 847, + 848, + 849, + 850, + 851, + 852, + 853, + 854, + 855, + 856, + 857, + 858, + 859, + 860, + 861, + 862, + 863, + 864, + 865, + 866, + 867, + 868, + 869, + 870, + 871, + 872, + 873, + 874, + 875, + 876, + 877, + 878, + 879, + 880, + 881, + 882, + 883, + 884, + 885, + 886, + 887, + 888, + 889, + 890, + 891, + 892, + 893, + 894, + 895, + 896, + 897, + 898, + 899, + 900, + 901, + 902, + 903, + 904, + 905, + 906, + 907, + 908, + 909, + 910, + 911, + 912, + 913, + 914, + 915, + 916, + 917, + 918, + 919, + 920, + 921, + 922, + 923, + 924, + 925, + 926, + 927, + 928, + 929, + 930, + 931, + 932, + 933, + 934, + 935, + 936, + 937, + 938, + 939, + 940, + 941, + 942, + 943, + 944, + 945, + 946, + 947, + 948, + 949, + 950, + 951, + 952, + 953, + 954, + 955, + 956, + 957, + 958, + 959, + 960, + 961, + 962, + 963, + 964, + 965, + 966, + 967, + 968, + 969, + 970, + 971, + 972, + 973, + 974, + 975, + 976, + 977, + 978, + 979, + 980, + 981, + 982, + 983, + 984, + 985, + 986, + 987, + 988, + 989, + 990, + 991, + 992, + 993, + 994, + 995, + 996, + 997, + 998, + 999, + 1000 + ], + "mytable1_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10 + ], + "mytable1_rows_selected": null, + "mytable1_search": "", + "mytable1_state": null, + "mytable2_cell_clicked": { + + }, + "mytable2_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32 + ], + "mytable2_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10 + ], + "mytable2_rows_selected": null, + "mytable2_search": "", + "mytable2_state": null, + "mytable3_cell_clicked": { + + }, + "mytable3_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150 + ], + "mytable3_rows_current": [ + 1, + 2, + 3, + 4, + 5 + ], + "mytable3_rows_selected": null, + "mytable3_search": "", + "mytable3_state": null, + "show_vars": null + }, + "output": { + "mytable1": [ + "Can't subset with `[` using an object of class NULL.", + "NULL", + "rlang_error" + ], + "mytable2": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n mpg<\/th>\n cyl<\/th>\n disp<\/th>\n hp<\/th>\n drat<\/th>\n wt<\/th>\n qsec<\/th>\n vs<\/th>\n am<\/th>\n gear<\/th>\n carb<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "orderClasses": true, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.16", + "src": { + "href": "dt-core-1.10.16" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + }, + "mytable3": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n Sepal.Length<\/th>\n Sepal.Width<\/th>\n Petal.Length<\/th>\n Petal.Width<\/th>\n Species<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "lengthMenu": [ + 5, + 30, + 50 + ], + "pageLength": 5, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "orderClasses": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.16", + "src": { + "href": "dt-core-1.10.16" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + } + }, + "export": { + + } +} diff --git a/012-datatables/tests/mytest-expected-mac/008.png b/012-datatables/tests/mytest-expected-mac/008.png new file mode 100644 index 00000000..8d035a1d Binary files /dev/null and b/012-datatables/tests/mytest-expected-mac/008.png differ diff --git a/012-datatables/tests/mytest-expected-mac/009.json b/012-datatables/tests/mytest-expected-mac/009.json new file mode 100644 index 00000000..6cbef33d --- /dev/null +++ b/012-datatables/tests/mytest-expected-mac/009.json @@ -0,0 +1,1450 @@ +{ + "input": { + "dataset": "mtcars", + "mytable1_cell_clicked": { + + }, + "mytable1_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150, + 151, + 152, + 153, + 154, + 155, + 156, + 157, + 158, + 159, + 160, + 161, + 162, + 163, + 164, + 165, + 166, + 167, + 168, + 169, + 170, + 171, + 172, + 173, + 174, + 175, + 176, + 177, + 178, + 179, + 180, + 181, + 182, + 183, + 184, + 185, + 186, + 187, + 188, + 189, + 190, + 191, + 192, + 193, + 194, + 195, + 196, + 197, + 198, + 199, + 200, + 201, + 202, + 203, + 204, + 205, + 206, + 207, + 208, + 209, + 210, + 211, + 212, + 213, + 214, + 215, + 216, + 217, + 218, + 219, + 220, + 221, + 222, + 223, + 224, + 225, + 226, + 227, + 228, + 229, + 230, + 231, + 232, + 233, + 234, + 235, + 236, + 237, + 238, + 239, + 240, + 241, + 242, + 243, + 244, + 245, + 246, + 247, + 248, + 249, + 250, + 251, + 252, + 253, + 254, + 255, + 256, + 257, + 258, + 259, + 260, + 261, + 262, + 263, + 264, + 265, + 266, + 267, + 268, + 269, + 270, + 271, + 272, + 273, + 274, + 275, + 276, + 277, + 278, + 279, + 280, + 281, + 282, + 283, + 284, + 285, + 286, + 287, + 288, + 289, + 290, + 291, + 292, + 293, + 294, + 295, + 296, + 297, + 298, + 299, + 300, + 301, + 302, + 303, + 304, + 305, + 306, + 307, + 308, + 309, + 310, + 311, + 312, + 313, + 314, + 315, + 316, + 317, + 318, + 319, + 320, + 321, + 322, + 323, + 324, + 325, + 326, + 327, + 328, + 329, + 330, + 331, + 332, + 333, + 334, + 335, + 336, + 337, + 338, + 339, + 340, + 341, + 342, + 343, + 344, + 345, + 346, + 347, + 348, + 349, + 350, + 351, + 352, + 353, + 354, + 355, + 356, + 357, + 358, + 359, + 360, + 361, + 362, + 363, + 364, + 365, + 366, + 367, + 368, + 369, + 370, + 371, + 372, + 373, + 374, + 375, + 376, + 377, + 378, + 379, + 380, + 381, + 382, + 383, + 384, + 385, + 386, + 387, + 388, + 389, + 390, + 391, + 392, + 393, + 394, + 395, + 396, + 397, + 398, + 399, + 400, + 401, + 402, + 403, + 404, + 405, + 406, + 407, + 408, + 409, + 410, + 411, + 412, + 413, + 414, + 415, + 416, + 417, + 418, + 419, + 420, + 421, + 422, + 423, + 424, + 425, + 426, + 427, + 428, + 429, + 430, + 431, + 432, + 433, + 434, + 435, + 436, + 437, + 438, + 439, + 440, + 441, + 442, + 443, + 444, + 445, + 446, + 447, + 448, + 449, + 450, + 451, + 452, + 453, + 454, + 455, + 456, + 457, + 458, + 459, + 460, + 461, + 462, + 463, + 464, + 465, + 466, + 467, + 468, + 469, + 470, + 471, + 472, + 473, + 474, + 475, + 476, + 477, + 478, + 479, + 480, + 481, + 482, + 483, + 484, + 485, + 486, + 487, + 488, + 489, + 490, + 491, + 492, + 493, + 494, + 495, + 496, + 497, + 498, + 499, + 500, + 501, + 502, + 503, + 504, + 505, + 506, + 507, + 508, + 509, + 510, + 511, + 512, + 513, + 514, + 515, + 516, + 517, + 518, + 519, + 520, + 521, + 522, + 523, + 524, + 525, + 526, + 527, + 528, + 529, + 530, + 531, + 532, + 533, + 534, + 535, + 536, + 537, + 538, + 539, + 540, + 541, + 542, + 543, + 544, + 545, + 546, + 547, + 548, + 549, + 550, + 551, + 552, + 553, + 554, + 555, + 556, + 557, + 558, + 559, + 560, + 561, + 562, + 563, + 564, + 565, + 566, + 567, + 568, + 569, + 570, + 571, + 572, + 573, + 574, + 575, + 576, + 577, + 578, + 579, + 580, + 581, + 582, + 583, + 584, + 585, + 586, + 587, + 588, + 589, + 590, + 591, + 592, + 593, + 594, + 595, + 596, + 597, + 598, + 599, + 600, + 601, + 602, + 603, + 604, + 605, + 606, + 607, + 608, + 609, + 610, + 611, + 612, + 613, + 614, + 615, + 616, + 617, + 618, + 619, + 620, + 621, + 622, + 623, + 624, + 625, + 626, + 627, + 628, + 629, + 630, + 631, + 632, + 633, + 634, + 635, + 636, + 637, + 638, + 639, + 640, + 641, + 642, + 643, + 644, + 645, + 646, + 647, + 648, + 649, + 650, + 651, + 652, + 653, + 654, + 655, + 656, + 657, + 658, + 659, + 660, + 661, + 662, + 663, + 664, + 665, + 666, + 667, + 668, + 669, + 670, + 671, + 672, + 673, + 674, + 675, + 676, + 677, + 678, + 679, + 680, + 681, + 682, + 683, + 684, + 685, + 686, + 687, + 688, + 689, + 690, + 691, + 692, + 693, + 694, + 695, + 696, + 697, + 698, + 699, + 700, + 701, + 702, + 703, + 704, + 705, + 706, + 707, + 708, + 709, + 710, + 711, + 712, + 713, + 714, + 715, + 716, + 717, + 718, + 719, + 720, + 721, + 722, + 723, + 724, + 725, + 726, + 727, + 728, + 729, + 730, + 731, + 732, + 733, + 734, + 735, + 736, + 737, + 738, + 739, + 740, + 741, + 742, + 743, + 744, + 745, + 746, + 747, + 748, + 749, + 750, + 751, + 752, + 753, + 754, + 755, + 756, + 757, + 758, + 759, + 760, + 761, + 762, + 763, + 764, + 765, + 766, + 767, + 768, + 769, + 770, + 771, + 772, + 773, + 774, + 775, + 776, + 777, + 778, + 779, + 780, + 781, + 782, + 783, + 784, + 785, + 786, + 787, + 788, + 789, + 790, + 791, + 792, + 793, + 794, + 795, + 796, + 797, + 798, + 799, + 800, + 801, + 802, + 803, + 804, + 805, + 806, + 807, + 808, + 809, + 810, + 811, + 812, + 813, + 814, + 815, + 816, + 817, + 818, + 819, + 820, + 821, + 822, + 823, + 824, + 825, + 826, + 827, + 828, + 829, + 830, + 831, + 832, + 833, + 834, + 835, + 836, + 837, + 838, + 839, + 840, + 841, + 842, + 843, + 844, + 845, + 846, + 847, + 848, + 849, + 850, + 851, + 852, + 853, + 854, + 855, + 856, + 857, + 858, + 859, + 860, + 861, + 862, + 863, + 864, + 865, + 866, + 867, + 868, + 869, + 870, + 871, + 872, + 873, + 874, + 875, + 876, + 877, + 878, + 879, + 880, + 881, + 882, + 883, + 884, + 885, + 886, + 887, + 888, + 889, + 890, + 891, + 892, + 893, + 894, + 895, + 896, + 897, + 898, + 899, + 900, + 901, + 902, + 903, + 904, + 905, + 906, + 907, + 908, + 909, + 910, + 911, + 912, + 913, + 914, + 915, + 916, + 917, + 918, + 919, + 920, + 921, + 922, + 923, + 924, + 925, + 926, + 927, + 928, + 929, + 930, + 931, + 932, + 933, + 934, + 935, + 936, + 937, + 938, + 939, + 940, + 941, + 942, + 943, + 944, + 945, + 946, + 947, + 948, + 949, + 950, + 951, + 952, + 953, + 954, + 955, + 956, + 957, + 958, + 959, + 960, + 961, + 962, + 963, + 964, + 965, + 966, + 967, + 968, + 969, + 970, + 971, + 972, + 973, + 974, + 975, + 976, + 977, + 978, + 979, + 980, + 981, + 982, + 983, + 984, + 985, + 986, + 987, + 988, + 989, + 990, + 991, + 992, + 993, + 994, + 995, + 996, + 997, + 998, + 999, + 1000 + ], + "mytable1_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10 + ], + "mytable1_rows_selected": null, + "mytable1_search": "", + "mytable1_state": null, + "mytable2_cell_clicked": { + + }, + "mytable2_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32 + ], + "mytable2_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10 + ], + "mytable2_rows_selected": null, + "mytable2_search": "", + "mytable2_state": null, + "mytable3_cell_clicked": { + + }, + "mytable3_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150 + ], + "mytable3_rows_current": [ + 1, + 2, + 3, + 4, + 5 + ], + "mytable3_rows_selected": null, + "mytable3_search": "", + "mytable3_state": null, + "show_vars": null + }, + "output": { + "mytable1": [ + "Can't subset with `[` using an object of class NULL.", + "NULL", + "rlang_error" + ], + "mytable2": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n mpg<\/th>\n cyl<\/th>\n disp<\/th>\n hp<\/th>\n drat<\/th>\n wt<\/th>\n qsec<\/th>\n vs<\/th>\n am<\/th>\n gear<\/th>\n carb<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "orderClasses": true, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.16", + "src": { + "href": "dt-core-1.10.16" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + }, + "mytable3": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n Sepal.Length<\/th>\n Sepal.Width<\/th>\n Petal.Length<\/th>\n Petal.Width<\/th>\n Species<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "lengthMenu": [ + 5, + 30, + 50 + ], + "pageLength": 5, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "orderClasses": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.16", + "src": { + "href": "dt-core-1.10.16" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + } + }, + "export": { + + } +} diff --git a/012-datatables/tests/mytest-expected-mac/009.png b/012-datatables/tests/mytest-expected-mac/009.png new file mode 100644 index 00000000..8d035a1d Binary files /dev/null and b/012-datatables/tests/mytest-expected-mac/009.png differ diff --git a/012-datatables/tests/mytest-expected-mac/010.json b/012-datatables/tests/mytest-expected-mac/010.json new file mode 100644 index 00000000..6cbef33d --- /dev/null +++ b/012-datatables/tests/mytest-expected-mac/010.json @@ -0,0 +1,1450 @@ +{ + "input": { + "dataset": "mtcars", + "mytable1_cell_clicked": { + + }, + "mytable1_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150, + 151, + 152, + 153, + 154, + 155, + 156, + 157, + 158, + 159, + 160, + 161, + 162, + 163, + 164, + 165, + 166, + 167, + 168, + 169, + 170, + 171, + 172, + 173, + 174, + 175, + 176, + 177, + 178, + 179, + 180, + 181, + 182, + 183, + 184, + 185, + 186, + 187, + 188, + 189, + 190, + 191, + 192, + 193, + 194, + 195, + 196, + 197, + 198, + 199, + 200, + 201, + 202, + 203, + 204, + 205, + 206, + 207, + 208, + 209, + 210, + 211, + 212, + 213, + 214, + 215, + 216, + 217, + 218, + 219, + 220, + 221, + 222, + 223, + 224, + 225, + 226, + 227, + 228, + 229, + 230, + 231, + 232, + 233, + 234, + 235, + 236, + 237, + 238, + 239, + 240, + 241, + 242, + 243, + 244, + 245, + 246, + 247, + 248, + 249, + 250, + 251, + 252, + 253, + 254, + 255, + 256, + 257, + 258, + 259, + 260, + 261, + 262, + 263, + 264, + 265, + 266, + 267, + 268, + 269, + 270, + 271, + 272, + 273, + 274, + 275, + 276, + 277, + 278, + 279, + 280, + 281, + 282, + 283, + 284, + 285, + 286, + 287, + 288, + 289, + 290, + 291, + 292, + 293, + 294, + 295, + 296, + 297, + 298, + 299, + 300, + 301, + 302, + 303, + 304, + 305, + 306, + 307, + 308, + 309, + 310, + 311, + 312, + 313, + 314, + 315, + 316, + 317, + 318, + 319, + 320, + 321, + 322, + 323, + 324, + 325, + 326, + 327, + 328, + 329, + 330, + 331, + 332, + 333, + 334, + 335, + 336, + 337, + 338, + 339, + 340, + 341, + 342, + 343, + 344, + 345, + 346, + 347, + 348, + 349, + 350, + 351, + 352, + 353, + 354, + 355, + 356, + 357, + 358, + 359, + 360, + 361, + 362, + 363, + 364, + 365, + 366, + 367, + 368, + 369, + 370, + 371, + 372, + 373, + 374, + 375, + 376, + 377, + 378, + 379, + 380, + 381, + 382, + 383, + 384, + 385, + 386, + 387, + 388, + 389, + 390, + 391, + 392, + 393, + 394, + 395, + 396, + 397, + 398, + 399, + 400, + 401, + 402, + 403, + 404, + 405, + 406, + 407, + 408, + 409, + 410, + 411, + 412, + 413, + 414, + 415, + 416, + 417, + 418, + 419, + 420, + 421, + 422, + 423, + 424, + 425, + 426, + 427, + 428, + 429, + 430, + 431, + 432, + 433, + 434, + 435, + 436, + 437, + 438, + 439, + 440, + 441, + 442, + 443, + 444, + 445, + 446, + 447, + 448, + 449, + 450, + 451, + 452, + 453, + 454, + 455, + 456, + 457, + 458, + 459, + 460, + 461, + 462, + 463, + 464, + 465, + 466, + 467, + 468, + 469, + 470, + 471, + 472, + 473, + 474, + 475, + 476, + 477, + 478, + 479, + 480, + 481, + 482, + 483, + 484, + 485, + 486, + 487, + 488, + 489, + 490, + 491, + 492, + 493, + 494, + 495, + 496, + 497, + 498, + 499, + 500, + 501, + 502, + 503, + 504, + 505, + 506, + 507, + 508, + 509, + 510, + 511, + 512, + 513, + 514, + 515, + 516, + 517, + 518, + 519, + 520, + 521, + 522, + 523, + 524, + 525, + 526, + 527, + 528, + 529, + 530, + 531, + 532, + 533, + 534, + 535, + 536, + 537, + 538, + 539, + 540, + 541, + 542, + 543, + 544, + 545, + 546, + 547, + 548, + 549, + 550, + 551, + 552, + 553, + 554, + 555, + 556, + 557, + 558, + 559, + 560, + 561, + 562, + 563, + 564, + 565, + 566, + 567, + 568, + 569, + 570, + 571, + 572, + 573, + 574, + 575, + 576, + 577, + 578, + 579, + 580, + 581, + 582, + 583, + 584, + 585, + 586, + 587, + 588, + 589, + 590, + 591, + 592, + 593, + 594, + 595, + 596, + 597, + 598, + 599, + 600, + 601, + 602, + 603, + 604, + 605, + 606, + 607, + 608, + 609, + 610, + 611, + 612, + 613, + 614, + 615, + 616, + 617, + 618, + 619, + 620, + 621, + 622, + 623, + 624, + 625, + 626, + 627, + 628, + 629, + 630, + 631, + 632, + 633, + 634, + 635, + 636, + 637, + 638, + 639, + 640, + 641, + 642, + 643, + 644, + 645, + 646, + 647, + 648, + 649, + 650, + 651, + 652, + 653, + 654, + 655, + 656, + 657, + 658, + 659, + 660, + 661, + 662, + 663, + 664, + 665, + 666, + 667, + 668, + 669, + 670, + 671, + 672, + 673, + 674, + 675, + 676, + 677, + 678, + 679, + 680, + 681, + 682, + 683, + 684, + 685, + 686, + 687, + 688, + 689, + 690, + 691, + 692, + 693, + 694, + 695, + 696, + 697, + 698, + 699, + 700, + 701, + 702, + 703, + 704, + 705, + 706, + 707, + 708, + 709, + 710, + 711, + 712, + 713, + 714, + 715, + 716, + 717, + 718, + 719, + 720, + 721, + 722, + 723, + 724, + 725, + 726, + 727, + 728, + 729, + 730, + 731, + 732, + 733, + 734, + 735, + 736, + 737, + 738, + 739, + 740, + 741, + 742, + 743, + 744, + 745, + 746, + 747, + 748, + 749, + 750, + 751, + 752, + 753, + 754, + 755, + 756, + 757, + 758, + 759, + 760, + 761, + 762, + 763, + 764, + 765, + 766, + 767, + 768, + 769, + 770, + 771, + 772, + 773, + 774, + 775, + 776, + 777, + 778, + 779, + 780, + 781, + 782, + 783, + 784, + 785, + 786, + 787, + 788, + 789, + 790, + 791, + 792, + 793, + 794, + 795, + 796, + 797, + 798, + 799, + 800, + 801, + 802, + 803, + 804, + 805, + 806, + 807, + 808, + 809, + 810, + 811, + 812, + 813, + 814, + 815, + 816, + 817, + 818, + 819, + 820, + 821, + 822, + 823, + 824, + 825, + 826, + 827, + 828, + 829, + 830, + 831, + 832, + 833, + 834, + 835, + 836, + 837, + 838, + 839, + 840, + 841, + 842, + 843, + 844, + 845, + 846, + 847, + 848, + 849, + 850, + 851, + 852, + 853, + 854, + 855, + 856, + 857, + 858, + 859, + 860, + 861, + 862, + 863, + 864, + 865, + 866, + 867, + 868, + 869, + 870, + 871, + 872, + 873, + 874, + 875, + 876, + 877, + 878, + 879, + 880, + 881, + 882, + 883, + 884, + 885, + 886, + 887, + 888, + 889, + 890, + 891, + 892, + 893, + 894, + 895, + 896, + 897, + 898, + 899, + 900, + 901, + 902, + 903, + 904, + 905, + 906, + 907, + 908, + 909, + 910, + 911, + 912, + 913, + 914, + 915, + 916, + 917, + 918, + 919, + 920, + 921, + 922, + 923, + 924, + 925, + 926, + 927, + 928, + 929, + 930, + 931, + 932, + 933, + 934, + 935, + 936, + 937, + 938, + 939, + 940, + 941, + 942, + 943, + 944, + 945, + 946, + 947, + 948, + 949, + 950, + 951, + 952, + 953, + 954, + 955, + 956, + 957, + 958, + 959, + 960, + 961, + 962, + 963, + 964, + 965, + 966, + 967, + 968, + 969, + 970, + 971, + 972, + 973, + 974, + 975, + 976, + 977, + 978, + 979, + 980, + 981, + 982, + 983, + 984, + 985, + 986, + 987, + 988, + 989, + 990, + 991, + 992, + 993, + 994, + 995, + 996, + 997, + 998, + 999, + 1000 + ], + "mytable1_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10 + ], + "mytable1_rows_selected": null, + "mytable1_search": "", + "mytable1_state": null, + "mytable2_cell_clicked": { + + }, + "mytable2_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32 + ], + "mytable2_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10 + ], + "mytable2_rows_selected": null, + "mytable2_search": "", + "mytable2_state": null, + "mytable3_cell_clicked": { + + }, + "mytable3_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150 + ], + "mytable3_rows_current": [ + 1, + 2, + 3, + 4, + 5 + ], + "mytable3_rows_selected": null, + "mytable3_search": "", + "mytable3_state": null, + "show_vars": null + }, + "output": { + "mytable1": [ + "Can't subset with `[` using an object of class NULL.", + "NULL", + "rlang_error" + ], + "mytable2": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n mpg<\/th>\n cyl<\/th>\n disp<\/th>\n hp<\/th>\n drat<\/th>\n wt<\/th>\n qsec<\/th>\n vs<\/th>\n am<\/th>\n gear<\/th>\n carb<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "orderClasses": true, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.16", + "src": { + "href": "dt-core-1.10.16" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + }, + "mytable3": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n Sepal.Length<\/th>\n Sepal.Width<\/th>\n Petal.Length<\/th>\n Petal.Width<\/th>\n Species<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "lengthMenu": [ + 5, + 30, + 50 + ], + "pageLength": 5, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "orderClasses": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.16", + "src": { + "href": "dt-core-1.10.16" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + } + }, + "export": { + + } +} diff --git a/012-datatables/tests/mytest-expected-mac/010.png b/012-datatables/tests/mytest-expected-mac/010.png new file mode 100644 index 00000000..8d035a1d Binary files /dev/null and b/012-datatables/tests/mytest-expected-mac/010.png differ diff --git a/012-datatables/tests/mytest-expected-mac/011.json b/012-datatables/tests/mytest-expected-mac/011.json new file mode 100644 index 00000000..4dcf012d --- /dev/null +++ b/012-datatables/tests/mytest-expected-mac/011.json @@ -0,0 +1,1450 @@ +{ + "input": { + "dataset": "iris", + "mytable1_cell_clicked": { + + }, + "mytable1_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150, + 151, + 152, + 153, + 154, + 155, + 156, + 157, + 158, + 159, + 160, + 161, + 162, + 163, + 164, + 165, + 166, + 167, + 168, + 169, + 170, + 171, + 172, + 173, + 174, + 175, + 176, + 177, + 178, + 179, + 180, + 181, + 182, + 183, + 184, + 185, + 186, + 187, + 188, + 189, + 190, + 191, + 192, + 193, + 194, + 195, + 196, + 197, + 198, + 199, + 200, + 201, + 202, + 203, + 204, + 205, + 206, + 207, + 208, + 209, + 210, + 211, + 212, + 213, + 214, + 215, + 216, + 217, + 218, + 219, + 220, + 221, + 222, + 223, + 224, + 225, + 226, + 227, + 228, + 229, + 230, + 231, + 232, + 233, + 234, + 235, + 236, + 237, + 238, + 239, + 240, + 241, + 242, + 243, + 244, + 245, + 246, + 247, + 248, + 249, + 250, + 251, + 252, + 253, + 254, + 255, + 256, + 257, + 258, + 259, + 260, + 261, + 262, + 263, + 264, + 265, + 266, + 267, + 268, + 269, + 270, + 271, + 272, + 273, + 274, + 275, + 276, + 277, + 278, + 279, + 280, + 281, + 282, + 283, + 284, + 285, + 286, + 287, + 288, + 289, + 290, + 291, + 292, + 293, + 294, + 295, + 296, + 297, + 298, + 299, + 300, + 301, + 302, + 303, + 304, + 305, + 306, + 307, + 308, + 309, + 310, + 311, + 312, + 313, + 314, + 315, + 316, + 317, + 318, + 319, + 320, + 321, + 322, + 323, + 324, + 325, + 326, + 327, + 328, + 329, + 330, + 331, + 332, + 333, + 334, + 335, + 336, + 337, + 338, + 339, + 340, + 341, + 342, + 343, + 344, + 345, + 346, + 347, + 348, + 349, + 350, + 351, + 352, + 353, + 354, + 355, + 356, + 357, + 358, + 359, + 360, + 361, + 362, + 363, + 364, + 365, + 366, + 367, + 368, + 369, + 370, + 371, + 372, + 373, + 374, + 375, + 376, + 377, + 378, + 379, + 380, + 381, + 382, + 383, + 384, + 385, + 386, + 387, + 388, + 389, + 390, + 391, + 392, + 393, + 394, + 395, + 396, + 397, + 398, + 399, + 400, + 401, + 402, + 403, + 404, + 405, + 406, + 407, + 408, + 409, + 410, + 411, + 412, + 413, + 414, + 415, + 416, + 417, + 418, + 419, + 420, + 421, + 422, + 423, + 424, + 425, + 426, + 427, + 428, + 429, + 430, + 431, + 432, + 433, + 434, + 435, + 436, + 437, + 438, + 439, + 440, + 441, + 442, + 443, + 444, + 445, + 446, + 447, + 448, + 449, + 450, + 451, + 452, + 453, + 454, + 455, + 456, + 457, + 458, + 459, + 460, + 461, + 462, + 463, + 464, + 465, + 466, + 467, + 468, + 469, + 470, + 471, + 472, + 473, + 474, + 475, + 476, + 477, + 478, + 479, + 480, + 481, + 482, + 483, + 484, + 485, + 486, + 487, + 488, + 489, + 490, + 491, + 492, + 493, + 494, + 495, + 496, + 497, + 498, + 499, + 500, + 501, + 502, + 503, + 504, + 505, + 506, + 507, + 508, + 509, + 510, + 511, + 512, + 513, + 514, + 515, + 516, + 517, + 518, + 519, + 520, + 521, + 522, + 523, + 524, + 525, + 526, + 527, + 528, + 529, + 530, + 531, + 532, + 533, + 534, + 535, + 536, + 537, + 538, + 539, + 540, + 541, + 542, + 543, + 544, + 545, + 546, + 547, + 548, + 549, + 550, + 551, + 552, + 553, + 554, + 555, + 556, + 557, + 558, + 559, + 560, + 561, + 562, + 563, + 564, + 565, + 566, + 567, + 568, + 569, + 570, + 571, + 572, + 573, + 574, + 575, + 576, + 577, + 578, + 579, + 580, + 581, + 582, + 583, + 584, + 585, + 586, + 587, + 588, + 589, + 590, + 591, + 592, + 593, + 594, + 595, + 596, + 597, + 598, + 599, + 600, + 601, + 602, + 603, + 604, + 605, + 606, + 607, + 608, + 609, + 610, + 611, + 612, + 613, + 614, + 615, + 616, + 617, + 618, + 619, + 620, + 621, + 622, + 623, + 624, + 625, + 626, + 627, + 628, + 629, + 630, + 631, + 632, + 633, + 634, + 635, + 636, + 637, + 638, + 639, + 640, + 641, + 642, + 643, + 644, + 645, + 646, + 647, + 648, + 649, + 650, + 651, + 652, + 653, + 654, + 655, + 656, + 657, + 658, + 659, + 660, + 661, + 662, + 663, + 664, + 665, + 666, + 667, + 668, + 669, + 670, + 671, + 672, + 673, + 674, + 675, + 676, + 677, + 678, + 679, + 680, + 681, + 682, + 683, + 684, + 685, + 686, + 687, + 688, + 689, + 690, + 691, + 692, + 693, + 694, + 695, + 696, + 697, + 698, + 699, + 700, + 701, + 702, + 703, + 704, + 705, + 706, + 707, + 708, + 709, + 710, + 711, + 712, + 713, + 714, + 715, + 716, + 717, + 718, + 719, + 720, + 721, + 722, + 723, + 724, + 725, + 726, + 727, + 728, + 729, + 730, + 731, + 732, + 733, + 734, + 735, + 736, + 737, + 738, + 739, + 740, + 741, + 742, + 743, + 744, + 745, + 746, + 747, + 748, + 749, + 750, + 751, + 752, + 753, + 754, + 755, + 756, + 757, + 758, + 759, + 760, + 761, + 762, + 763, + 764, + 765, + 766, + 767, + 768, + 769, + 770, + 771, + 772, + 773, + 774, + 775, + 776, + 777, + 778, + 779, + 780, + 781, + 782, + 783, + 784, + 785, + 786, + 787, + 788, + 789, + 790, + 791, + 792, + 793, + 794, + 795, + 796, + 797, + 798, + 799, + 800, + 801, + 802, + 803, + 804, + 805, + 806, + 807, + 808, + 809, + 810, + 811, + 812, + 813, + 814, + 815, + 816, + 817, + 818, + 819, + 820, + 821, + 822, + 823, + 824, + 825, + 826, + 827, + 828, + 829, + 830, + 831, + 832, + 833, + 834, + 835, + 836, + 837, + 838, + 839, + 840, + 841, + 842, + 843, + 844, + 845, + 846, + 847, + 848, + 849, + 850, + 851, + 852, + 853, + 854, + 855, + 856, + 857, + 858, + 859, + 860, + 861, + 862, + 863, + 864, + 865, + 866, + 867, + 868, + 869, + 870, + 871, + 872, + 873, + 874, + 875, + 876, + 877, + 878, + 879, + 880, + 881, + 882, + 883, + 884, + 885, + 886, + 887, + 888, + 889, + 890, + 891, + 892, + 893, + 894, + 895, + 896, + 897, + 898, + 899, + 900, + 901, + 902, + 903, + 904, + 905, + 906, + 907, + 908, + 909, + 910, + 911, + 912, + 913, + 914, + 915, + 916, + 917, + 918, + 919, + 920, + 921, + 922, + 923, + 924, + 925, + 926, + 927, + 928, + 929, + 930, + 931, + 932, + 933, + 934, + 935, + 936, + 937, + 938, + 939, + 940, + 941, + 942, + 943, + 944, + 945, + 946, + 947, + 948, + 949, + 950, + 951, + 952, + 953, + 954, + 955, + 956, + 957, + 958, + 959, + 960, + 961, + 962, + 963, + 964, + 965, + 966, + 967, + 968, + 969, + 970, + 971, + 972, + 973, + 974, + 975, + 976, + 977, + 978, + 979, + 980, + 981, + 982, + 983, + 984, + 985, + 986, + 987, + 988, + 989, + 990, + 991, + 992, + 993, + 994, + 995, + 996, + 997, + 998, + 999, + 1000 + ], + "mytable1_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10 + ], + "mytable1_rows_selected": null, + "mytable1_search": "", + "mytable1_state": null, + "mytable2_cell_clicked": { + + }, + "mytable2_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32 + ], + "mytable2_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10 + ], + "mytable2_rows_selected": null, + "mytable2_search": "", + "mytable2_state": null, + "mytable3_cell_clicked": { + + }, + "mytable3_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150 + ], + "mytable3_rows_current": [ + 1, + 2, + 3, + 4, + 5 + ], + "mytable3_rows_selected": null, + "mytable3_search": "", + "mytable3_state": null, + "show_vars": null + }, + "output": { + "mytable1": [ + "Can't subset with `[` using an object of class NULL.", + "NULL", + "rlang_error" + ], + "mytable2": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n mpg<\/th>\n cyl<\/th>\n disp<\/th>\n hp<\/th>\n drat<\/th>\n wt<\/th>\n qsec<\/th>\n vs<\/th>\n am<\/th>\n gear<\/th>\n carb<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "orderClasses": true, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.16", + "src": { + "href": "dt-core-1.10.16" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + }, + "mytable3": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n Sepal.Length<\/th>\n Sepal.Width<\/th>\n Petal.Length<\/th>\n Petal.Width<\/th>\n Species<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "lengthMenu": [ + 5, + 30, + 50 + ], + "pageLength": 5, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "orderClasses": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.16", + "src": { + "href": "dt-core-1.10.16" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + } + }, + "export": { + + } +} diff --git a/012-datatables/tests/mytest-expected-mac/011.png b/012-datatables/tests/mytest-expected-mac/011.png new file mode 100644 index 00000000..a7a0efa5 Binary files /dev/null and b/012-datatables/tests/mytest-expected-mac/011.png differ diff --git a/012-datatables/tests/mytest-expected/001.json b/012-datatables/tests/mytest-expected/001.json new file mode 100644 index 00000000..b79437b9 --- /dev/null +++ b/012-datatables/tests/mytest-expected/001.json @@ -0,0 +1,1137 @@ +{ + "input": { + "dataset": "diamonds", + "mytable1_cell_clicked": { + + }, + "mytable1_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150, + 151, + 152, + 153, + 154, + 155, + 156, + 157, + 158, + 159, + 160, + 161, + 162, + 163, + 164, + 165, + 166, + 167, + 168, + 169, + 170, + 171, + 172, + 173, + 174, + 175, + 176, + 177, + 178, + 179, + 180, + 181, + 182, + 183, + 184, + 185, + 186, + 187, + 188, + 189, + 190, + 191, + 192, + 193, + 194, + 195, + 196, + 197, + 198, + 199, + 200, + 201, + 202, + 203, + 204, + 205, + 206, + 207, + 208, + 209, + 210, + 211, + 212, + 213, + 214, + 215, + 216, + 217, + 218, + 219, + 220, + 221, + 222, + 223, + 224, + 225, + 226, + 227, + 228, + 229, + 230, + 231, + 232, + 233, + 234, + 235, + 236, + 237, + 238, + 239, + 240, + 241, + 242, + 243, + 244, + 245, + 246, + 247, + 248, + 249, + 250, + 251, + 252, + 253, + 254, + 255, + 256, + 257, + 258, + 259, + 260, + 261, + 262, + 263, + 264, + 265, + 266, + 267, + 268, + 269, + 270, + 271, + 272, + 273, + 274, + 275, + 276, + 277, + 278, + 279, + 280, + 281, + 282, + 283, + 284, + 285, + 286, + 287, + 288, + 289, + 290, + 291, + 292, + 293, + 294, + 295, + 296, + 297, + 298, + 299, + 300, + 301, + 302, + 303, + 304, + 305, + 306, + 307, + 308, + 309, + 310, + 311, + 312, + 313, + 314, + 315, + 316, + 317, + 318, + 319, + 320, + 321, + 322, + 323, + 324, + 325, + 326, + 327, + 328, + 329, + 330, + 331, + 332, + 333, + 334, + 335, + 336, + 337, + 338, + 339, + 340, + 341, + 342, + 343, + 344, + 345, + 346, + 347, + 348, + 349, + 350, + 351, + 352, + 353, + 354, + 355, + 356, + 357, + 358, + 359, + 360, + 361, + 362, + 363, + 364, + 365, + 366, + 367, + 368, + 369, + 370, + 371, + 372, + 373, + 374, + 375, + 376, + 377, + 378, + 379, + 380, + 381, + 382, + 383, + 384, + 385, + 386, + 387, + 388, + 389, + 390, + 391, + 392, + 393, + 394, + 395, + 396, + 397, + 398, + 399, + 400, + 401, + 402, + 403, + 404, + 405, + 406, + 407, + 408, + 409, + 410, + 411, + 412, + 413, + 414, + 415, + 416, + 417, + 418, + 419, + 420, + 421, + 422, + 423, + 424, + 425, + 426, + 427, + 428, + 429, + 430, + 431, + 432, + 433, + 434, + 435, + 436, + 437, + 438, + 439, + 440, + 441, + 442, + 443, + 444, + 445, + 446, + 447, + 448, + 449, + 450, + 451, + 452, + 453, + 454, + 455, + 456, + 457, + 458, + 459, + 460, + 461, + 462, + 463, + 464, + 465, + 466, + 467, + 468, + 469, + 470, + 471, + 472, + 473, + 474, + 475, + 476, + 477, + 478, + 479, + 480, + 481, + 482, + 483, + 484, + 485, + 486, + 487, + 488, + 489, + 490, + 491, + 492, + 493, + 494, + 495, + 496, + 497, + 498, + 499, + 500, + 501, + 502, + 503, + 504, + 505, + 506, + 507, + 508, + 509, + 510, + 511, + 512, + 513, + 514, + 515, + 516, + 517, + 518, + 519, + 520, + 521, + 522, + 523, + 524, + 525, + 526, + 527, + 528, + 529, + 530, + 531, + 532, + 533, + 534, + 535, + 536, + 537, + 538, + 539, + 540, + 541, + 542, + 543, + 544, + 545, + 546, + 547, + 548, + 549, + 550, + 551, + 552, + 553, + 554, + 555, + 556, + 557, + 558, + 559, + 560, + 561, + 562, + 563, + 564, + 565, + 566, + 567, + 568, + 569, + 570, + 571, + 572, + 573, + 574, + 575, + 576, + 577, + 578, + 579, + 580, + 581, + 582, + 583, + 584, + 585, + 586, + 587, + 588, + 589, + 590, + 591, + 592, + 593, + 594, + 595, + 596, + 597, + 598, + 599, + 600, + 601, + 602, + 603, + 604, + 605, + 606, + 607, + 608, + 609, + 610, + 611, + 612, + 613, + 614, + 615, + 616, + 617, + 618, + 619, + 620, + 621, + 622, + 623, + 624, + 625, + 626, + 627, + 628, + 629, + 630, + 631, + 632, + 633, + 634, + 635, + 636, + 637, + 638, + 639, + 640, + 641, + 642, + 643, + 644, + 645, + 646, + 647, + 648, + 649, + 650, + 651, + 652, + 653, + 654, + 655, + 656, + 657, + 658, + 659, + 660, + 661, + 662, + 663, + 664, + 665, + 666, + 667, + 668, + 669, + 670, + 671, + 672, + 673, + 674, + 675, + 676, + 677, + 678, + 679, + 680, + 681, + 682, + 683, + 684, + 685, + 686, + 687, + 688, + 689, + 690, + 691, + 692, + 693, + 694, + 695, + 696, + 697, + 698, + 699, + 700, + 701, + 702, + 703, + 704, + 705, + 706, + 707, + 708, + 709, + 710, + 711, + 712, + 713, + 714, + 715, + 716, + 717, + 718, + 719, + 720, + 721, + 722, + 723, + 724, + 725, + 726, + 727, + 728, + 729, + 730, + 731, + 732, + 733, + 734, + 735, + 736, + 737, + 738, + 739, + 740, + 741, + 742, + 743, + 744, + 745, + 746, + 747, + 748, + 749, + 750, + 751, + 752, + 753, + 754, + 755, + 756, + 757, + 758, + 759, + 760, + 761, + 762, + 763, + 764, + 765, + 766, + 767, + 768, + 769, + 770, + 771, + 772, + 773, + 774, + 775, + 776, + 777, + 778, + 779, + 780, + 781, + 782, + 783, + 784, + 785, + 786, + 787, + 788, + 789, + 790, + 791, + 792, + 793, + 794, + 795, + 796, + 797, + 798, + 799, + 800, + 801, + 802, + 803, + 804, + 805, + 806, + 807, + 808, + 809, + 810, + 811, + 812, + 813, + 814, + 815, + 816, + 817, + 818, + 819, + 820, + 821, + 822, + 823, + 824, + 825, + 826, + 827, + 828, + 829, + 830, + 831, + 832, + 833, + 834, + 835, + 836, + 837, + 838, + 839, + 840, + 841, + 842, + 843, + 844, + 845, + 846, + 847, + 848, + 849, + 850, + 851, + 852, + 853, + 854, + 855, + 856, + 857, + 858, + 859, + 860, + 861, + 862, + 863, + 864, + 865, + 866, + 867, + 868, + 869, + 870, + 871, + 872, + 873, + 874, + 875, + 876, + 877, + 878, + 879, + 880, + 881, + 882, + 883, + 884, + 885, + 886, + 887, + 888, + 889, + 890, + 891, + 892, + 893, + 894, + 895, + 896, + 897, + 898, + 899, + 900, + 901, + 902, + 903, + 904, + 905, + 906, + 907, + 908, + 909, + 910, + 911, + 912, + 913, + 914, + 915, + 916, + 917, + 918, + 919, + 920, + 921, + 922, + 923, + 924, + 925, + 926, + 927, + 928, + 929, + 930, + 931, + 932, + 933, + 934, + 935, + 936, + 937, + 938, + 939, + 940, + 941, + 942, + 943, + 944, + 945, + 946, + 947, + 948, + 949, + 950, + 951, + 952, + 953, + 954, + 955, + 956, + 957, + 958, + 959, + 960, + 961, + 962, + 963, + 964, + 965, + 966, + 967, + 968, + 969, + 970, + 971, + 972, + 973, + 974, + 975, + 976, + 977, + 978, + 979, + 980, + 981, + 982, + 983, + 984, + 985, + 986, + 987, + 988, + 989, + 990, + 991, + 992, + 993, + 994, + 995, + 996, + 997, + 998, + 999, + 1000 + ], + "mytable1_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10 + ], + "mytable1_rows_selected": null, + "mytable1_search": "", + "mytable1_state": null, + "show_vars": [ + "carat", + "cut", + "color", + "clarity", + "depth", + "table", + "price", + "x", + "y", + "z" + ] + }, + "output": { + "mytable1": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n carat<\/th>\n cut<\/th>\n color<\/th>\n clarity<\/th>\n depth<\/th>\n table<\/th>\n price<\/th>\n x<\/th>\n y<\/th>\n z<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 5, + 6, + 7, + 8, + 9, + 10 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "orderClasses": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.19", + "src": { + "href": "dt-core-1.10.19" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + } + }, + "export": { + + } +} diff --git a/012-datatables/tests/mytest-expected/001.png b/012-datatables/tests/mytest-expected/001.png new file mode 100644 index 00000000..d48f2fec Binary files /dev/null and b/012-datatables/tests/mytest-expected/001.png differ diff --git a/012-datatables/tests/mytest-expected/002.json b/012-datatables/tests/mytest-expected/002.json new file mode 100644 index 00000000..5fea5d1f --- /dev/null +++ b/012-datatables/tests/mytest-expected/002.json @@ -0,0 +1,1288 @@ +{ + "input": { + "dataset": "mtcars", + "mytable1_cell_clicked": { + + }, + "mytable1_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150, + 151, + 152, + 153, + 154, + 155, + 156, + 157, + 158, + 159, + 160, + 161, + 162, + 163, + 164, + 165, + 166, + 167, + 168, + 169, + 170, + 171, + 172, + 173, + 174, + 175, + 176, + 177, + 178, + 179, + 180, + 181, + 182, + 183, + 184, + 185, + 186, + 187, + 188, + 189, + 190, + 191, + 192, + 193, + 194, + 195, + 196, + 197, + 198, + 199, + 200, + 201, + 202, + 203, + 204, + 205, + 206, + 207, + 208, + 209, + 210, + 211, + 212, + 213, + 214, + 215, + 216, + 217, + 218, + 219, + 220, + 221, + 222, + 223, + 224, + 225, + 226, + 227, + 228, + 229, + 230, + 231, + 232, + 233, + 234, + 235, + 236, + 237, + 238, + 239, + 240, + 241, + 242, + 243, + 244, + 245, + 246, + 247, + 248, + 249, + 250, + 251, + 252, + 253, + 254, + 255, + 256, + 257, + 258, + 259, + 260, + 261, + 262, + 263, + 264, + 265, + 266, + 267, + 268, + 269, + 270, + 271, + 272, + 273, + 274, + 275, + 276, + 277, + 278, + 279, + 280, + 281, + 282, + 283, + 284, + 285, + 286, + 287, + 288, + 289, + 290, + 291, + 292, + 293, + 294, + 295, + 296, + 297, + 298, + 299, + 300, + 301, + 302, + 303, + 304, + 305, + 306, + 307, + 308, + 309, + 310, + 311, + 312, + 313, + 314, + 315, + 316, + 317, + 318, + 319, + 320, + 321, + 322, + 323, + 324, + 325, + 326, + 327, + 328, + 329, + 330, + 331, + 332, + 333, + 334, + 335, + 336, + 337, + 338, + 339, + 340, + 341, + 342, + 343, + 344, + 345, + 346, + 347, + 348, + 349, + 350, + 351, + 352, + 353, + 354, + 355, + 356, + 357, + 358, + 359, + 360, + 361, + 362, + 363, + 364, + 365, + 366, + 367, + 368, + 369, + 370, + 371, + 372, + 373, + 374, + 375, + 376, + 377, + 378, + 379, + 380, + 381, + 382, + 383, + 384, + 385, + 386, + 387, + 388, + 389, + 390, + 391, + 392, + 393, + 394, + 395, + 396, + 397, + 398, + 399, + 400, + 401, + 402, + 403, + 404, + 405, + 406, + 407, + 408, + 409, + 410, + 411, + 412, + 413, + 414, + 415, + 416, + 417, + 418, + 419, + 420, + 421, + 422, + 423, + 424, + 425, + 426, + 427, + 428, + 429, + 430, + 431, + 432, + 433, + 434, + 435, + 436, + 437, + 438, + 439, + 440, + 441, + 442, + 443, + 444, + 445, + 446, + 447, + 448, + 449, + 450, + 451, + 452, + 453, + 454, + 455, + 456, + 457, + 458, + 459, + 460, + 461, + 462, + 463, + 464, + 465, + 466, + 467, + 468, + 469, + 470, + 471, + 472, + 473, + 474, + 475, + 476, + 477, + 478, + 479, + 480, + 481, + 482, + 483, + 484, + 485, + 486, + 487, + 488, + 489, + 490, + 491, + 492, + 493, + 494, + 495, + 496, + 497, + 498, + 499, + 500, + 501, + 502, + 503, + 504, + 505, + 506, + 507, + 508, + 509, + 510, + 511, + 512, + 513, + 514, + 515, + 516, + 517, + 518, + 519, + 520, + 521, + 522, + 523, + 524, + 525, + 526, + 527, + 528, + 529, + 530, + 531, + 532, + 533, + 534, + 535, + 536, + 537, + 538, + 539, + 540, + 541, + 542, + 543, + 544, + 545, + 546, + 547, + 548, + 549, + 550, + 551, + 552, + 553, + 554, + 555, + 556, + 557, + 558, + 559, + 560, + 561, + 562, + 563, + 564, + 565, + 566, + 567, + 568, + 569, + 570, + 571, + 572, + 573, + 574, + 575, + 576, + 577, + 578, + 579, + 580, + 581, + 582, + 583, + 584, + 585, + 586, + 587, + 588, + 589, + 590, + 591, + 592, + 593, + 594, + 595, + 596, + 597, + 598, + 599, + 600, + 601, + 602, + 603, + 604, + 605, + 606, + 607, + 608, + 609, + 610, + 611, + 612, + 613, + 614, + 615, + 616, + 617, + 618, + 619, + 620, + 621, + 622, + 623, + 624, + 625, + 626, + 627, + 628, + 629, + 630, + 631, + 632, + 633, + 634, + 635, + 636, + 637, + 638, + 639, + 640, + 641, + 642, + 643, + 644, + 645, + 646, + 647, + 648, + 649, + 650, + 651, + 652, + 653, + 654, + 655, + 656, + 657, + 658, + 659, + 660, + 661, + 662, + 663, + 664, + 665, + 666, + 667, + 668, + 669, + 670, + 671, + 672, + 673, + 674, + 675, + 676, + 677, + 678, + 679, + 680, + 681, + 682, + 683, + 684, + 685, + 686, + 687, + 688, + 689, + 690, + 691, + 692, + 693, + 694, + 695, + 696, + 697, + 698, + 699, + 700, + 701, + 702, + 703, + 704, + 705, + 706, + 707, + 708, + 709, + 710, + 711, + 712, + 713, + 714, + 715, + 716, + 717, + 718, + 719, + 720, + 721, + 722, + 723, + 724, + 725, + 726, + 727, + 728, + 729, + 730, + 731, + 732, + 733, + 734, + 735, + 736, + 737, + 738, + 739, + 740, + 741, + 742, + 743, + 744, + 745, + 746, + 747, + 748, + 749, + 750, + 751, + 752, + 753, + 754, + 755, + 756, + 757, + 758, + 759, + 760, + 761, + 762, + 763, + 764, + 765, + 766, + 767, + 768, + 769, + 770, + 771, + 772, + 773, + 774, + 775, + 776, + 777, + 778, + 779, + 780, + 781, + 782, + 783, + 784, + 785, + 786, + 787, + 788, + 789, + 790, + 791, + 792, + 793, + 794, + 795, + 796, + 797, + 798, + 799, + 800, + 801, + 802, + 803, + 804, + 805, + 806, + 807, + 808, + 809, + 810, + 811, + 812, + 813, + 814, + 815, + 816, + 817, + 818, + 819, + 820, + 821, + 822, + 823, + 824, + 825, + 826, + 827, + 828, + 829, + 830, + 831, + 832, + 833, + 834, + 835, + 836, + 837, + 838, + 839, + 840, + 841, + 842, + 843, + 844, + 845, + 846, + 847, + 848, + 849, + 850, + 851, + 852, + 853, + 854, + 855, + 856, + 857, + 858, + 859, + 860, + 861, + 862, + 863, + 864, + 865, + 866, + 867, + 868, + 869, + 870, + 871, + 872, + 873, + 874, + 875, + 876, + 877, + 878, + 879, + 880, + 881, + 882, + 883, + 884, + 885, + 886, + 887, + 888, + 889, + 890, + 891, + 892, + 893, + 894, + 895, + 896, + 897, + 898, + 899, + 900, + 901, + 902, + 903, + 904, + 905, + 906, + 907, + 908, + 909, + 910, + 911, + 912, + 913, + 914, + 915, + 916, + 917, + 918, + 919, + 920, + 921, + 922, + 923, + 924, + 925, + 926, + 927, + 928, + 929, + 930, + 931, + 932, + 933, + 934, + 935, + 936, + 937, + 938, + 939, + 940, + 941, + 942, + 943, + 944, + 945, + 946, + 947, + 948, + 949, + 950, + 951, + 952, + 953, + 954, + 955, + 956, + 957, + 958, + 959, + 960, + 961, + 962, + 963, + 964, + 965, + 966, + 967, + 968, + 969, + 970, + 971, + 972, + 973, + 974, + 975, + 976, + 977, + 978, + 979, + 980, + 981, + 982, + 983, + 984, + 985, + 986, + 987, + 988, + 989, + 990, + 991, + 992, + 993, + 994, + 995, + 996, + 997, + 998, + 999, + 1000 + ], + "mytable1_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10 + ], + "mytable1_rows_selected": null, + "mytable1_search": "", + "mytable1_state": null, + "mytable2_cell_clicked": { + + }, + "mytable2_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32 + ], + "mytable2_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10 + ], + "mytable2_rows_selected": null, + "mytable2_search": "", + "mytable2_state": null, + "show_vars": [ + "carat", + "cut", + "color", + "clarity", + "depth", + "table", + "price", + "x", + "y", + "z" + ] + }, + "output": { + "mytable1": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n carat<\/th>\n cut<\/th>\n color<\/th>\n clarity<\/th>\n depth<\/th>\n table<\/th>\n price<\/th>\n x<\/th>\n y<\/th>\n z<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 5, + 6, + 7, + 8, + 9, + 10 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "orderClasses": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.19", + "src": { + "href": "dt-core-1.10.19" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + }, + "mytable2": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n mpg<\/th>\n cyl<\/th>\n disp<\/th>\n hp<\/th>\n drat<\/th>\n wt<\/th>\n qsec<\/th>\n vs<\/th>\n am<\/th>\n gear<\/th>\n carb<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "orderClasses": true, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.19", + "src": { + "href": "dt-core-1.10.19" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + } + }, + "export": { + + } +} diff --git a/012-datatables/tests/mytest-expected/002.png b/012-datatables/tests/mytest-expected/002.png new file mode 100644 index 00000000..8d035a1d Binary files /dev/null and b/012-datatables/tests/mytest-expected/002.png differ diff --git a/012-datatables/tests/mytest-expected/003.json b/012-datatables/tests/mytest-expected/003.json new file mode 100644 index 00000000..e2c94911 --- /dev/null +++ b/012-datatables/tests/mytest-expected/003.json @@ -0,0 +1,1551 @@ +{ + "input": { + "dataset": "iris", + "mytable1_cell_clicked": { + + }, + "mytable1_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150, + 151, + 152, + 153, + 154, + 155, + 156, + 157, + 158, + 159, + 160, + 161, + 162, + 163, + 164, + 165, + 166, + 167, + 168, + 169, + 170, + 171, + 172, + 173, + 174, + 175, + 176, + 177, + 178, + 179, + 180, + 181, + 182, + 183, + 184, + 185, + 186, + 187, + 188, + 189, + 190, + 191, + 192, + 193, + 194, + 195, + 196, + 197, + 198, + 199, + 200, + 201, + 202, + 203, + 204, + 205, + 206, + 207, + 208, + 209, + 210, + 211, + 212, + 213, + 214, + 215, + 216, + 217, + 218, + 219, + 220, + 221, + 222, + 223, + 224, + 225, + 226, + 227, + 228, + 229, + 230, + 231, + 232, + 233, + 234, + 235, + 236, + 237, + 238, + 239, + 240, + 241, + 242, + 243, + 244, + 245, + 246, + 247, + 248, + 249, + 250, + 251, + 252, + 253, + 254, + 255, + 256, + 257, + 258, + 259, + 260, + 261, + 262, + 263, + 264, + 265, + 266, + 267, + 268, + 269, + 270, + 271, + 272, + 273, + 274, + 275, + 276, + 277, + 278, + 279, + 280, + 281, + 282, + 283, + 284, + 285, + 286, + 287, + 288, + 289, + 290, + 291, + 292, + 293, + 294, + 295, + 296, + 297, + 298, + 299, + 300, + 301, + 302, + 303, + 304, + 305, + 306, + 307, + 308, + 309, + 310, + 311, + 312, + 313, + 314, + 315, + 316, + 317, + 318, + 319, + 320, + 321, + 322, + 323, + 324, + 325, + 326, + 327, + 328, + 329, + 330, + 331, + 332, + 333, + 334, + 335, + 336, + 337, + 338, + 339, + 340, + 341, + 342, + 343, + 344, + 345, + 346, + 347, + 348, + 349, + 350, + 351, + 352, + 353, + 354, + 355, + 356, + 357, + 358, + 359, + 360, + 361, + 362, + 363, + 364, + 365, + 366, + 367, + 368, + 369, + 370, + 371, + 372, + 373, + 374, + 375, + 376, + 377, + 378, + 379, + 380, + 381, + 382, + 383, + 384, + 385, + 386, + 387, + 388, + 389, + 390, + 391, + 392, + 393, + 394, + 395, + 396, + 397, + 398, + 399, + 400, + 401, + 402, + 403, + 404, + 405, + 406, + 407, + 408, + 409, + 410, + 411, + 412, + 413, + 414, + 415, + 416, + 417, + 418, + 419, + 420, + 421, + 422, + 423, + 424, + 425, + 426, + 427, + 428, + 429, + 430, + 431, + 432, + 433, + 434, + 435, + 436, + 437, + 438, + 439, + 440, + 441, + 442, + 443, + 444, + 445, + 446, + 447, + 448, + 449, + 450, + 451, + 452, + 453, + 454, + 455, + 456, + 457, + 458, + 459, + 460, + 461, + 462, + 463, + 464, + 465, + 466, + 467, + 468, + 469, + 470, + 471, + 472, + 473, + 474, + 475, + 476, + 477, + 478, + 479, + 480, + 481, + 482, + 483, + 484, + 485, + 486, + 487, + 488, + 489, + 490, + 491, + 492, + 493, + 494, + 495, + 496, + 497, + 498, + 499, + 500, + 501, + 502, + 503, + 504, + 505, + 506, + 507, + 508, + 509, + 510, + 511, + 512, + 513, + 514, + 515, + 516, + 517, + 518, + 519, + 520, + 521, + 522, + 523, + 524, + 525, + 526, + 527, + 528, + 529, + 530, + 531, + 532, + 533, + 534, + 535, + 536, + 537, + 538, + 539, + 540, + 541, + 542, + 543, + 544, + 545, + 546, + 547, + 548, + 549, + 550, + 551, + 552, + 553, + 554, + 555, + 556, + 557, + 558, + 559, + 560, + 561, + 562, + 563, + 564, + 565, + 566, + 567, + 568, + 569, + 570, + 571, + 572, + 573, + 574, + 575, + 576, + 577, + 578, + 579, + 580, + 581, + 582, + 583, + 584, + 585, + 586, + 587, + 588, + 589, + 590, + 591, + 592, + 593, + 594, + 595, + 596, + 597, + 598, + 599, + 600, + 601, + 602, + 603, + 604, + 605, + 606, + 607, + 608, + 609, + 610, + 611, + 612, + 613, + 614, + 615, + 616, + 617, + 618, + 619, + 620, + 621, + 622, + 623, + 624, + 625, + 626, + 627, + 628, + 629, + 630, + 631, + 632, + 633, + 634, + 635, + 636, + 637, + 638, + 639, + 640, + 641, + 642, + 643, + 644, + 645, + 646, + 647, + 648, + 649, + 650, + 651, + 652, + 653, + 654, + 655, + 656, + 657, + 658, + 659, + 660, + 661, + 662, + 663, + 664, + 665, + 666, + 667, + 668, + 669, + 670, + 671, + 672, + 673, + 674, + 675, + 676, + 677, + 678, + 679, + 680, + 681, + 682, + 683, + 684, + 685, + 686, + 687, + 688, + 689, + 690, + 691, + 692, + 693, + 694, + 695, + 696, + 697, + 698, + 699, + 700, + 701, + 702, + 703, + 704, + 705, + 706, + 707, + 708, + 709, + 710, + 711, + 712, + 713, + 714, + 715, + 716, + 717, + 718, + 719, + 720, + 721, + 722, + 723, + 724, + 725, + 726, + 727, + 728, + 729, + 730, + 731, + 732, + 733, + 734, + 735, + 736, + 737, + 738, + 739, + 740, + 741, + 742, + 743, + 744, + 745, + 746, + 747, + 748, + 749, + 750, + 751, + 752, + 753, + 754, + 755, + 756, + 757, + 758, + 759, + 760, + 761, + 762, + 763, + 764, + 765, + 766, + 767, + 768, + 769, + 770, + 771, + 772, + 773, + 774, + 775, + 776, + 777, + 778, + 779, + 780, + 781, + 782, + 783, + 784, + 785, + 786, + 787, + 788, + 789, + 790, + 791, + 792, + 793, + 794, + 795, + 796, + 797, + 798, + 799, + 800, + 801, + 802, + 803, + 804, + 805, + 806, + 807, + 808, + 809, + 810, + 811, + 812, + 813, + 814, + 815, + 816, + 817, + 818, + 819, + 820, + 821, + 822, + 823, + 824, + 825, + 826, + 827, + 828, + 829, + 830, + 831, + 832, + 833, + 834, + 835, + 836, + 837, + 838, + 839, + 840, + 841, + 842, + 843, + 844, + 845, + 846, + 847, + 848, + 849, + 850, + 851, + 852, + 853, + 854, + 855, + 856, + 857, + 858, + 859, + 860, + 861, + 862, + 863, + 864, + 865, + 866, + 867, + 868, + 869, + 870, + 871, + 872, + 873, + 874, + 875, + 876, + 877, + 878, + 879, + 880, + 881, + 882, + 883, + 884, + 885, + 886, + 887, + 888, + 889, + 890, + 891, + 892, + 893, + 894, + 895, + 896, + 897, + 898, + 899, + 900, + 901, + 902, + 903, + 904, + 905, + 906, + 907, + 908, + 909, + 910, + 911, + 912, + 913, + 914, + 915, + 916, + 917, + 918, + 919, + 920, + 921, + 922, + 923, + 924, + 925, + 926, + 927, + 928, + 929, + 930, + 931, + 932, + 933, + 934, + 935, + 936, + 937, + 938, + 939, + 940, + 941, + 942, + 943, + 944, + 945, + 946, + 947, + 948, + 949, + 950, + 951, + 952, + 953, + 954, + 955, + 956, + 957, + 958, + 959, + 960, + 961, + 962, + 963, + 964, + 965, + 966, + 967, + 968, + 969, + 970, + 971, + 972, + 973, + 974, + 975, + 976, + 977, + 978, + 979, + 980, + 981, + 982, + 983, + 984, + 985, + 986, + 987, + 988, + 989, + 990, + 991, + 992, + 993, + 994, + 995, + 996, + 997, + 998, + 999, + 1000 + ], + "mytable1_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10 + ], + "mytable1_rows_selected": null, + "mytable1_search": "", + "mytable1_state": null, + "mytable2_cell_clicked": { + + }, + "mytable2_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32 + ], + "mytable2_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10 + ], + "mytable2_rows_selected": null, + "mytable2_search": "", + "mytable2_state": null, + "mytable3_cell_clicked": { + + }, + "mytable3_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150 + ], + "mytable3_rows_current": [ + 1, + 2, + 3, + 4, + 5 + ], + "mytable3_rows_selected": null, + "mytable3_search": "", + "mytable3_state": null, + "show_vars": [ + "carat", + "cut", + "color", + "clarity", + "depth", + "table", + "price", + "x", + "y", + "z" + ] + }, + "output": { + "mytable1": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n carat<\/th>\n cut<\/th>\n color<\/th>\n clarity<\/th>\n depth<\/th>\n table<\/th>\n price<\/th>\n x<\/th>\n y<\/th>\n z<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 5, + 6, + 7, + 8, + 9, + 10 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "orderClasses": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.19", + "src": { + "href": "dt-core-1.10.19" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + }, + "mytable2": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n mpg<\/th>\n cyl<\/th>\n disp<\/th>\n hp<\/th>\n drat<\/th>\n wt<\/th>\n qsec<\/th>\n vs<\/th>\n am<\/th>\n gear<\/th>\n carb<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "orderClasses": true, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.19", + "src": { + "href": "dt-core-1.10.19" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + }, + "mytable3": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n Sepal.Length<\/th>\n Sepal.Width<\/th>\n Petal.Length<\/th>\n Petal.Width<\/th>\n Species<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "lengthMenu": [ + 5, + 30, + 50 + ], + "pageLength": 5, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "orderClasses": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.19", + "src": { + "href": "dt-core-1.10.19" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + } + }, + "export": { + + } +} diff --git a/012-datatables/tests/mytest-expected/003.png b/012-datatables/tests/mytest-expected/003.png new file mode 100644 index 00000000..a7a0efa5 Binary files /dev/null and b/012-datatables/tests/mytest-expected/003.png differ diff --git a/012-datatables/tests/mytest-expected/004.json b/012-datatables/tests/mytest-expected/004.json new file mode 100644 index 00000000..ef5c10c6 --- /dev/null +++ b/012-datatables/tests/mytest-expected/004.json @@ -0,0 +1,1547 @@ +{ + "input": { + "dataset": "diamonds", + "mytable1_cell_clicked": { + + }, + "mytable1_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150, + 151, + 152, + 153, + 154, + 155, + 156, + 157, + 158, + 159, + 160, + 161, + 162, + 163, + 164, + 165, + 166, + 167, + 168, + 169, + 170, + 171, + 172, + 173, + 174, + 175, + 176, + 177, + 178, + 179, + 180, + 181, + 182, + 183, + 184, + 185, + 186, + 187, + 188, + 189, + 190, + 191, + 192, + 193, + 194, + 195, + 196, + 197, + 198, + 199, + 200, + 201, + 202, + 203, + 204, + 205, + 206, + 207, + 208, + 209, + 210, + 211, + 212, + 213, + 214, + 215, + 216, + 217, + 218, + 219, + 220, + 221, + 222, + 223, + 224, + 225, + 226, + 227, + 228, + 229, + 230, + 231, + 232, + 233, + 234, + 235, + 236, + 237, + 238, + 239, + 240, + 241, + 242, + 243, + 244, + 245, + 246, + 247, + 248, + 249, + 250, + 251, + 252, + 253, + 254, + 255, + 256, + 257, + 258, + 259, + 260, + 261, + 262, + 263, + 264, + 265, + 266, + 267, + 268, + 269, + 270, + 271, + 272, + 273, + 274, + 275, + 276, + 277, + 278, + 279, + 280, + 281, + 282, + 283, + 284, + 285, + 286, + 287, + 288, + 289, + 290, + 291, + 292, + 293, + 294, + 295, + 296, + 297, + 298, + 299, + 300, + 301, + 302, + 303, + 304, + 305, + 306, + 307, + 308, + 309, + 310, + 311, + 312, + 313, + 314, + 315, + 316, + 317, + 318, + 319, + 320, + 321, + 322, + 323, + 324, + 325, + 326, + 327, + 328, + 329, + 330, + 331, + 332, + 333, + 334, + 335, + 336, + 337, + 338, + 339, + 340, + 341, + 342, + 343, + 344, + 345, + 346, + 347, + 348, + 349, + 350, + 351, + 352, + 353, + 354, + 355, + 356, + 357, + 358, + 359, + 360, + 361, + 362, + 363, + 364, + 365, + 366, + 367, + 368, + 369, + 370, + 371, + 372, + 373, + 374, + 375, + 376, + 377, + 378, + 379, + 380, + 381, + 382, + 383, + 384, + 385, + 386, + 387, + 388, + 389, + 390, + 391, + 392, + 393, + 394, + 395, + 396, + 397, + 398, + 399, + 400, + 401, + 402, + 403, + 404, + 405, + 406, + 407, + 408, + 409, + 410, + 411, + 412, + 413, + 414, + 415, + 416, + 417, + 418, + 419, + 420, + 421, + 422, + 423, + 424, + 425, + 426, + 427, + 428, + 429, + 430, + 431, + 432, + 433, + 434, + 435, + 436, + 437, + 438, + 439, + 440, + 441, + 442, + 443, + 444, + 445, + 446, + 447, + 448, + 449, + 450, + 451, + 452, + 453, + 454, + 455, + 456, + 457, + 458, + 459, + 460, + 461, + 462, + 463, + 464, + 465, + 466, + 467, + 468, + 469, + 470, + 471, + 472, + 473, + 474, + 475, + 476, + 477, + 478, + 479, + 480, + 481, + 482, + 483, + 484, + 485, + 486, + 487, + 488, + 489, + 490, + 491, + 492, + 493, + 494, + 495, + 496, + 497, + 498, + 499, + 500, + 501, + 502, + 503, + 504, + 505, + 506, + 507, + 508, + 509, + 510, + 511, + 512, + 513, + 514, + 515, + 516, + 517, + 518, + 519, + 520, + 521, + 522, + 523, + 524, + 525, + 526, + 527, + 528, + 529, + 530, + 531, + 532, + 533, + 534, + 535, + 536, + 537, + 538, + 539, + 540, + 541, + 542, + 543, + 544, + 545, + 546, + 547, + 548, + 549, + 550, + 551, + 552, + 553, + 554, + 555, + 556, + 557, + 558, + 559, + 560, + 561, + 562, + 563, + 564, + 565, + 566, + 567, + 568, + 569, + 570, + 571, + 572, + 573, + 574, + 575, + 576, + 577, + 578, + 579, + 580, + 581, + 582, + 583, + 584, + 585, + 586, + 587, + 588, + 589, + 590, + 591, + 592, + 593, + 594, + 595, + 596, + 597, + 598, + 599, + 600, + 601, + 602, + 603, + 604, + 605, + 606, + 607, + 608, + 609, + 610, + 611, + 612, + 613, + 614, + 615, + 616, + 617, + 618, + 619, + 620, + 621, + 622, + 623, + 624, + 625, + 626, + 627, + 628, + 629, + 630, + 631, + 632, + 633, + 634, + 635, + 636, + 637, + 638, + 639, + 640, + 641, + 642, + 643, + 644, + 645, + 646, + 647, + 648, + 649, + 650, + 651, + 652, + 653, + 654, + 655, + 656, + 657, + 658, + 659, + 660, + 661, + 662, + 663, + 664, + 665, + 666, + 667, + 668, + 669, + 670, + 671, + 672, + 673, + 674, + 675, + 676, + 677, + 678, + 679, + 680, + 681, + 682, + 683, + 684, + 685, + 686, + 687, + 688, + 689, + 690, + 691, + 692, + 693, + 694, + 695, + 696, + 697, + 698, + 699, + 700, + 701, + 702, + 703, + 704, + 705, + 706, + 707, + 708, + 709, + 710, + 711, + 712, + 713, + 714, + 715, + 716, + 717, + 718, + 719, + 720, + 721, + 722, + 723, + 724, + 725, + 726, + 727, + 728, + 729, + 730, + 731, + 732, + 733, + 734, + 735, + 736, + 737, + 738, + 739, + 740, + 741, + 742, + 743, + 744, + 745, + 746, + 747, + 748, + 749, + 750, + 751, + 752, + 753, + 754, + 755, + 756, + 757, + 758, + 759, + 760, + 761, + 762, + 763, + 764, + 765, + 766, + 767, + 768, + 769, + 770, + 771, + 772, + 773, + 774, + 775, + 776, + 777, + 778, + 779, + 780, + 781, + 782, + 783, + 784, + 785, + 786, + 787, + 788, + 789, + 790, + 791, + 792, + 793, + 794, + 795, + 796, + 797, + 798, + 799, + 800, + 801, + 802, + 803, + 804, + 805, + 806, + 807, + 808, + 809, + 810, + 811, + 812, + 813, + 814, + 815, + 816, + 817, + 818, + 819, + 820, + 821, + 822, + 823, + 824, + 825, + 826, + 827, + 828, + 829, + 830, + 831, + 832, + 833, + 834, + 835, + 836, + 837, + 838, + 839, + 840, + 841, + 842, + 843, + 844, + 845, + 846, + 847, + 848, + 849, + 850, + 851, + 852, + 853, + 854, + 855, + 856, + 857, + 858, + 859, + 860, + 861, + 862, + 863, + 864, + 865, + 866, + 867, + 868, + 869, + 870, + 871, + 872, + 873, + 874, + 875, + 876, + 877, + 878, + 879, + 880, + 881, + 882, + 883, + 884, + 885, + 886, + 887, + 888, + 889, + 890, + 891, + 892, + 893, + 894, + 895, + 896, + 897, + 898, + 899, + 900, + 901, + 902, + 903, + 904, + 905, + 906, + 907, + 908, + 909, + 910, + 911, + 912, + 913, + 914, + 915, + 916, + 917, + 918, + 919, + 920, + 921, + 922, + 923, + 924, + 925, + 926, + 927, + 928, + 929, + 930, + 931, + 932, + 933, + 934, + 935, + 936, + 937, + 938, + 939, + 940, + 941, + 942, + 943, + 944, + 945, + 946, + 947, + 948, + 949, + 950, + 951, + 952, + 953, + 954, + 955, + 956, + 957, + 958, + 959, + 960, + 961, + 962, + 963, + 964, + 965, + 966, + 967, + 968, + 969, + 970, + 971, + 972, + 973, + 974, + 975, + 976, + 977, + 978, + 979, + 980, + 981, + 982, + 983, + 984, + 985, + 986, + 987, + 988, + 989, + 990, + 991, + 992, + 993, + 994, + 995, + 996, + 997, + 998, + 999, + 1000 + ], + "mytable1_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10 + ], + "mytable1_rows_selected": null, + "mytable1_search": "", + "mytable1_state": null, + "mytable2_cell_clicked": { + + }, + "mytable2_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32 + ], + "mytable2_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10 + ], + "mytable2_rows_selected": null, + "mytable2_search": "", + "mytable2_state": null, + "mytable3_cell_clicked": { + + }, + "mytable3_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150 + ], + "mytable3_rows_current": [ + 1, + 2, + 3, + 4, + 5 + ], + "mytable3_rows_selected": null, + "mytable3_search": "", + "mytable3_state": null, + "show_vars": [ + "carat", + "cut", + "color", + "clarity", + "price", + "x", + "y", + "z" + ] + }, + "output": { + "mytable1": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n carat<\/th>\n cut<\/th>\n color<\/th>\n clarity<\/th>\n price<\/th>\n x<\/th>\n y<\/th>\n z<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 5, + 6, + 7, + 8 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "orderClasses": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.19", + "src": { + "href": "dt-core-1.10.19" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + }, + "mytable2": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n mpg<\/th>\n cyl<\/th>\n disp<\/th>\n hp<\/th>\n drat<\/th>\n wt<\/th>\n qsec<\/th>\n vs<\/th>\n am<\/th>\n gear<\/th>\n carb<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "orderClasses": true, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.19", + "src": { + "href": "dt-core-1.10.19" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + }, + "mytable3": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n Sepal.Length<\/th>\n Sepal.Width<\/th>\n Petal.Length<\/th>\n Petal.Width<\/th>\n Species<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "lengthMenu": [ + 5, + 30, + 50 + ], + "pageLength": 5, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "orderClasses": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.19", + "src": { + "href": "dt-core-1.10.19" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + } + }, + "export": { + + } +} diff --git a/012-datatables/tests/mytest-expected/004.png b/012-datatables/tests/mytest-expected/004.png new file mode 100644 index 00000000..b67587cb Binary files /dev/null and b/012-datatables/tests/mytest-expected/004.png differ diff --git a/012-datatables/tests/mytest-expected/005.json b/012-datatables/tests/mytest-expected/005.json new file mode 100644 index 00000000..9f62362b --- /dev/null +++ b/012-datatables/tests/mytest-expected/005.json @@ -0,0 +1,1544 @@ +{ + "input": { + "dataset": "diamonds", + "mytable1_cell_clicked": { + + }, + "mytable1_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150, + 151, + 152, + 153, + 154, + 155, + 156, + 157, + 158, + 159, + 160, + 161, + 162, + 163, + 164, + 165, + 166, + 167, + 168, + 169, + 170, + 171, + 172, + 173, + 174, + 175, + 176, + 177, + 178, + 179, + 180, + 181, + 182, + 183, + 184, + 185, + 186, + 187, + 188, + 189, + 190, + 191, + 192, + 193, + 194, + 195, + 196, + 197, + 198, + 199, + 200, + 201, + 202, + 203, + 204, + 205, + 206, + 207, + 208, + 209, + 210, + 211, + 212, + 213, + 214, + 215, + 216, + 217, + 218, + 219, + 220, + 221, + 222, + 223, + 224, + 225, + 226, + 227, + 228, + 229, + 230, + 231, + 232, + 233, + 234, + 235, + 236, + 237, + 238, + 239, + 240, + 241, + 242, + 243, + 244, + 245, + 246, + 247, + 248, + 249, + 250, + 251, + 252, + 253, + 254, + 255, + 256, + 257, + 258, + 259, + 260, + 261, + 262, + 263, + 264, + 265, + 266, + 267, + 268, + 269, + 270, + 271, + 272, + 273, + 274, + 275, + 276, + 277, + 278, + 279, + 280, + 281, + 282, + 283, + 284, + 285, + 286, + 287, + 288, + 289, + 290, + 291, + 292, + 293, + 294, + 295, + 296, + 297, + 298, + 299, + 300, + 301, + 302, + 303, + 304, + 305, + 306, + 307, + 308, + 309, + 310, + 311, + 312, + 313, + 314, + 315, + 316, + 317, + 318, + 319, + 320, + 321, + 322, + 323, + 324, + 325, + 326, + 327, + 328, + 329, + 330, + 331, + 332, + 333, + 334, + 335, + 336, + 337, + 338, + 339, + 340, + 341, + 342, + 343, + 344, + 345, + 346, + 347, + 348, + 349, + 350, + 351, + 352, + 353, + 354, + 355, + 356, + 357, + 358, + 359, + 360, + 361, + 362, + 363, + 364, + 365, + 366, + 367, + 368, + 369, + 370, + 371, + 372, + 373, + 374, + 375, + 376, + 377, + 378, + 379, + 380, + 381, + 382, + 383, + 384, + 385, + 386, + 387, + 388, + 389, + 390, + 391, + 392, + 393, + 394, + 395, + 396, + 397, + 398, + 399, + 400, + 401, + 402, + 403, + 404, + 405, + 406, + 407, + 408, + 409, + 410, + 411, + 412, + 413, + 414, + 415, + 416, + 417, + 418, + 419, + 420, + 421, + 422, + 423, + 424, + 425, + 426, + 427, + 428, + 429, + 430, + 431, + 432, + 433, + 434, + 435, + 436, + 437, + 438, + 439, + 440, + 441, + 442, + 443, + 444, + 445, + 446, + 447, + 448, + 449, + 450, + 451, + 452, + 453, + 454, + 455, + 456, + 457, + 458, + 459, + 460, + 461, + 462, + 463, + 464, + 465, + 466, + 467, + 468, + 469, + 470, + 471, + 472, + 473, + 474, + 475, + 476, + 477, + 478, + 479, + 480, + 481, + 482, + 483, + 484, + 485, + 486, + 487, + 488, + 489, + 490, + 491, + 492, + 493, + 494, + 495, + 496, + 497, + 498, + 499, + 500, + 501, + 502, + 503, + 504, + 505, + 506, + 507, + 508, + 509, + 510, + 511, + 512, + 513, + 514, + 515, + 516, + 517, + 518, + 519, + 520, + 521, + 522, + 523, + 524, + 525, + 526, + 527, + 528, + 529, + 530, + 531, + 532, + 533, + 534, + 535, + 536, + 537, + 538, + 539, + 540, + 541, + 542, + 543, + 544, + 545, + 546, + 547, + 548, + 549, + 550, + 551, + 552, + 553, + 554, + 555, + 556, + 557, + 558, + 559, + 560, + 561, + 562, + 563, + 564, + 565, + 566, + 567, + 568, + 569, + 570, + 571, + 572, + 573, + 574, + 575, + 576, + 577, + 578, + 579, + 580, + 581, + 582, + 583, + 584, + 585, + 586, + 587, + 588, + 589, + 590, + 591, + 592, + 593, + 594, + 595, + 596, + 597, + 598, + 599, + 600, + 601, + 602, + 603, + 604, + 605, + 606, + 607, + 608, + 609, + 610, + 611, + 612, + 613, + 614, + 615, + 616, + 617, + 618, + 619, + 620, + 621, + 622, + 623, + 624, + 625, + 626, + 627, + 628, + 629, + 630, + 631, + 632, + 633, + 634, + 635, + 636, + 637, + 638, + 639, + 640, + 641, + 642, + 643, + 644, + 645, + 646, + 647, + 648, + 649, + 650, + 651, + 652, + 653, + 654, + 655, + 656, + 657, + 658, + 659, + 660, + 661, + 662, + 663, + 664, + 665, + 666, + 667, + 668, + 669, + 670, + 671, + 672, + 673, + 674, + 675, + 676, + 677, + 678, + 679, + 680, + 681, + 682, + 683, + 684, + 685, + 686, + 687, + 688, + 689, + 690, + 691, + 692, + 693, + 694, + 695, + 696, + 697, + 698, + 699, + 700, + 701, + 702, + 703, + 704, + 705, + 706, + 707, + 708, + 709, + 710, + 711, + 712, + 713, + 714, + 715, + 716, + 717, + 718, + 719, + 720, + 721, + 722, + 723, + 724, + 725, + 726, + 727, + 728, + 729, + 730, + 731, + 732, + 733, + 734, + 735, + 736, + 737, + 738, + 739, + 740, + 741, + 742, + 743, + 744, + 745, + 746, + 747, + 748, + 749, + 750, + 751, + 752, + 753, + 754, + 755, + 756, + 757, + 758, + 759, + 760, + 761, + 762, + 763, + 764, + 765, + 766, + 767, + 768, + 769, + 770, + 771, + 772, + 773, + 774, + 775, + 776, + 777, + 778, + 779, + 780, + 781, + 782, + 783, + 784, + 785, + 786, + 787, + 788, + 789, + 790, + 791, + 792, + 793, + 794, + 795, + 796, + 797, + 798, + 799, + 800, + 801, + 802, + 803, + 804, + 805, + 806, + 807, + 808, + 809, + 810, + 811, + 812, + 813, + 814, + 815, + 816, + 817, + 818, + 819, + 820, + 821, + 822, + 823, + 824, + 825, + 826, + 827, + 828, + 829, + 830, + 831, + 832, + 833, + 834, + 835, + 836, + 837, + 838, + 839, + 840, + 841, + 842, + 843, + 844, + 845, + 846, + 847, + 848, + 849, + 850, + 851, + 852, + 853, + 854, + 855, + 856, + 857, + 858, + 859, + 860, + 861, + 862, + 863, + 864, + 865, + 866, + 867, + 868, + 869, + 870, + 871, + 872, + 873, + 874, + 875, + 876, + 877, + 878, + 879, + 880, + 881, + 882, + 883, + 884, + 885, + 886, + 887, + 888, + 889, + 890, + 891, + 892, + 893, + 894, + 895, + 896, + 897, + 898, + 899, + 900, + 901, + 902, + 903, + 904, + 905, + 906, + 907, + 908, + 909, + 910, + 911, + 912, + 913, + 914, + 915, + 916, + 917, + 918, + 919, + 920, + 921, + 922, + 923, + 924, + 925, + 926, + 927, + 928, + 929, + 930, + 931, + 932, + 933, + 934, + 935, + 936, + 937, + 938, + 939, + 940, + 941, + 942, + 943, + 944, + 945, + 946, + 947, + 948, + 949, + 950, + 951, + 952, + 953, + 954, + 955, + 956, + 957, + 958, + 959, + 960, + 961, + 962, + 963, + 964, + 965, + 966, + 967, + 968, + 969, + 970, + 971, + 972, + 973, + 974, + 975, + 976, + 977, + 978, + 979, + 980, + 981, + 982, + 983, + 984, + 985, + 986, + 987, + 988, + 989, + 990, + 991, + 992, + 993, + 994, + 995, + 996, + 997, + 998, + 999, + 1000 + ], + "mytable1_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10 + ], + "mytable1_rows_selected": null, + "mytable1_search": "", + "mytable1_state": null, + "mytable2_cell_clicked": { + + }, + "mytable2_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32 + ], + "mytable2_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10 + ], + "mytable2_rows_selected": null, + "mytable2_search": "", + "mytable2_state": null, + "mytable3_cell_clicked": { + + }, + "mytable3_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150 + ], + "mytable3_rows_current": [ + 1, + 2, + 3, + 4, + 5 + ], + "mytable3_rows_selected": null, + "mytable3_search": "", + "mytable3_state": null, + "show_vars": [ + "carat", + "color", + "clarity", + "price", + "y", + "z" + ] + }, + "output": { + "mytable1": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n carat<\/th>\n color<\/th>\n clarity<\/th>\n price<\/th>\n y<\/th>\n z<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 4, + 5, + 6 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "orderClasses": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.19", + "src": { + "href": "dt-core-1.10.19" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + }, + "mytable2": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n mpg<\/th>\n cyl<\/th>\n disp<\/th>\n hp<\/th>\n drat<\/th>\n wt<\/th>\n qsec<\/th>\n vs<\/th>\n am<\/th>\n gear<\/th>\n carb<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "orderClasses": true, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.19", + "src": { + "href": "dt-core-1.10.19" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + }, + "mytable3": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n Sepal.Length<\/th>\n Sepal.Width<\/th>\n Petal.Length<\/th>\n Petal.Width<\/th>\n Species<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "lengthMenu": [ + 5, + 30, + 50 + ], + "pageLength": 5, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "orderClasses": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.19", + "src": { + "href": "dt-core-1.10.19" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + } + }, + "export": { + + } +} diff --git a/012-datatables/tests/mytest-expected/005.png b/012-datatables/tests/mytest-expected/005.png new file mode 100644 index 00000000..2f90bb3a Binary files /dev/null and b/012-datatables/tests/mytest-expected/005.png differ diff --git a/012-datatables/tests/mytest-expected/006.json b/012-datatables/tests/mytest-expected/006.json new file mode 100644 index 00000000..43855874 --- /dev/null +++ b/012-datatables/tests/mytest-expected/006.json @@ -0,0 +1,1450 @@ +{ + "input": { + "dataset": "diamonds", + "mytable1_cell_clicked": { + + }, + "mytable1_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150, + 151, + 152, + 153, + 154, + 155, + 156, + 157, + 158, + 159, + 160, + 161, + 162, + 163, + 164, + 165, + 166, + 167, + 168, + 169, + 170, + 171, + 172, + 173, + 174, + 175, + 176, + 177, + 178, + 179, + 180, + 181, + 182, + 183, + 184, + 185, + 186, + 187, + 188, + 189, + 190, + 191, + 192, + 193, + 194, + 195, + 196, + 197, + 198, + 199, + 200, + 201, + 202, + 203, + 204, + 205, + 206, + 207, + 208, + 209, + 210, + 211, + 212, + 213, + 214, + 215, + 216, + 217, + 218, + 219, + 220, + 221, + 222, + 223, + 224, + 225, + 226, + 227, + 228, + 229, + 230, + 231, + 232, + 233, + 234, + 235, + 236, + 237, + 238, + 239, + 240, + 241, + 242, + 243, + 244, + 245, + 246, + 247, + 248, + 249, + 250, + 251, + 252, + 253, + 254, + 255, + 256, + 257, + 258, + 259, + 260, + 261, + 262, + 263, + 264, + 265, + 266, + 267, + 268, + 269, + 270, + 271, + 272, + 273, + 274, + 275, + 276, + 277, + 278, + 279, + 280, + 281, + 282, + 283, + 284, + 285, + 286, + 287, + 288, + 289, + 290, + 291, + 292, + 293, + 294, + 295, + 296, + 297, + 298, + 299, + 300, + 301, + 302, + 303, + 304, + 305, + 306, + 307, + 308, + 309, + 310, + 311, + 312, + 313, + 314, + 315, + 316, + 317, + 318, + 319, + 320, + 321, + 322, + 323, + 324, + 325, + 326, + 327, + 328, + 329, + 330, + 331, + 332, + 333, + 334, + 335, + 336, + 337, + 338, + 339, + 340, + 341, + 342, + 343, + 344, + 345, + 346, + 347, + 348, + 349, + 350, + 351, + 352, + 353, + 354, + 355, + 356, + 357, + 358, + 359, + 360, + 361, + 362, + 363, + 364, + 365, + 366, + 367, + 368, + 369, + 370, + 371, + 372, + 373, + 374, + 375, + 376, + 377, + 378, + 379, + 380, + 381, + 382, + 383, + 384, + 385, + 386, + 387, + 388, + 389, + 390, + 391, + 392, + 393, + 394, + 395, + 396, + 397, + 398, + 399, + 400, + 401, + 402, + 403, + 404, + 405, + 406, + 407, + 408, + 409, + 410, + 411, + 412, + 413, + 414, + 415, + 416, + 417, + 418, + 419, + 420, + 421, + 422, + 423, + 424, + 425, + 426, + 427, + 428, + 429, + 430, + 431, + 432, + 433, + 434, + 435, + 436, + 437, + 438, + 439, + 440, + 441, + 442, + 443, + 444, + 445, + 446, + 447, + 448, + 449, + 450, + 451, + 452, + 453, + 454, + 455, + 456, + 457, + 458, + 459, + 460, + 461, + 462, + 463, + 464, + 465, + 466, + 467, + 468, + 469, + 470, + 471, + 472, + 473, + 474, + 475, + 476, + 477, + 478, + 479, + 480, + 481, + 482, + 483, + 484, + 485, + 486, + 487, + 488, + 489, + 490, + 491, + 492, + 493, + 494, + 495, + 496, + 497, + 498, + 499, + 500, + 501, + 502, + 503, + 504, + 505, + 506, + 507, + 508, + 509, + 510, + 511, + 512, + 513, + 514, + 515, + 516, + 517, + 518, + 519, + 520, + 521, + 522, + 523, + 524, + 525, + 526, + 527, + 528, + 529, + 530, + 531, + 532, + 533, + 534, + 535, + 536, + 537, + 538, + 539, + 540, + 541, + 542, + 543, + 544, + 545, + 546, + 547, + 548, + 549, + 550, + 551, + 552, + 553, + 554, + 555, + 556, + 557, + 558, + 559, + 560, + 561, + 562, + 563, + 564, + 565, + 566, + 567, + 568, + 569, + 570, + 571, + 572, + 573, + 574, + 575, + 576, + 577, + 578, + 579, + 580, + 581, + 582, + 583, + 584, + 585, + 586, + 587, + 588, + 589, + 590, + 591, + 592, + 593, + 594, + 595, + 596, + 597, + 598, + 599, + 600, + 601, + 602, + 603, + 604, + 605, + 606, + 607, + 608, + 609, + 610, + 611, + 612, + 613, + 614, + 615, + 616, + 617, + 618, + 619, + 620, + 621, + 622, + 623, + 624, + 625, + 626, + 627, + 628, + 629, + 630, + 631, + 632, + 633, + 634, + 635, + 636, + 637, + 638, + 639, + 640, + 641, + 642, + 643, + 644, + 645, + 646, + 647, + 648, + 649, + 650, + 651, + 652, + 653, + 654, + 655, + 656, + 657, + 658, + 659, + 660, + 661, + 662, + 663, + 664, + 665, + 666, + 667, + 668, + 669, + 670, + 671, + 672, + 673, + 674, + 675, + 676, + 677, + 678, + 679, + 680, + 681, + 682, + 683, + 684, + 685, + 686, + 687, + 688, + 689, + 690, + 691, + 692, + 693, + 694, + 695, + 696, + 697, + 698, + 699, + 700, + 701, + 702, + 703, + 704, + 705, + 706, + 707, + 708, + 709, + 710, + 711, + 712, + 713, + 714, + 715, + 716, + 717, + 718, + 719, + 720, + 721, + 722, + 723, + 724, + 725, + 726, + 727, + 728, + 729, + 730, + 731, + 732, + 733, + 734, + 735, + 736, + 737, + 738, + 739, + 740, + 741, + 742, + 743, + 744, + 745, + 746, + 747, + 748, + 749, + 750, + 751, + 752, + 753, + 754, + 755, + 756, + 757, + 758, + 759, + 760, + 761, + 762, + 763, + 764, + 765, + 766, + 767, + 768, + 769, + 770, + 771, + 772, + 773, + 774, + 775, + 776, + 777, + 778, + 779, + 780, + 781, + 782, + 783, + 784, + 785, + 786, + 787, + 788, + 789, + 790, + 791, + 792, + 793, + 794, + 795, + 796, + 797, + 798, + 799, + 800, + 801, + 802, + 803, + 804, + 805, + 806, + 807, + 808, + 809, + 810, + 811, + 812, + 813, + 814, + 815, + 816, + 817, + 818, + 819, + 820, + 821, + 822, + 823, + 824, + 825, + 826, + 827, + 828, + 829, + 830, + 831, + 832, + 833, + 834, + 835, + 836, + 837, + 838, + 839, + 840, + 841, + 842, + 843, + 844, + 845, + 846, + 847, + 848, + 849, + 850, + 851, + 852, + 853, + 854, + 855, + 856, + 857, + 858, + 859, + 860, + 861, + 862, + 863, + 864, + 865, + 866, + 867, + 868, + 869, + 870, + 871, + 872, + 873, + 874, + 875, + 876, + 877, + 878, + 879, + 880, + 881, + 882, + 883, + 884, + 885, + 886, + 887, + 888, + 889, + 890, + 891, + 892, + 893, + 894, + 895, + 896, + 897, + 898, + 899, + 900, + 901, + 902, + 903, + 904, + 905, + 906, + 907, + 908, + 909, + 910, + 911, + 912, + 913, + 914, + 915, + 916, + 917, + 918, + 919, + 920, + 921, + 922, + 923, + 924, + 925, + 926, + 927, + 928, + 929, + 930, + 931, + 932, + 933, + 934, + 935, + 936, + 937, + 938, + 939, + 940, + 941, + 942, + 943, + 944, + 945, + 946, + 947, + 948, + 949, + 950, + 951, + 952, + 953, + 954, + 955, + 956, + 957, + 958, + 959, + 960, + 961, + 962, + 963, + 964, + 965, + 966, + 967, + 968, + 969, + 970, + 971, + 972, + 973, + 974, + 975, + 976, + 977, + 978, + 979, + 980, + 981, + 982, + 983, + 984, + 985, + 986, + 987, + 988, + 989, + 990, + 991, + 992, + 993, + 994, + 995, + 996, + 997, + 998, + 999, + 1000 + ], + "mytable1_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10 + ], + "mytable1_rows_selected": null, + "mytable1_search": "", + "mytable1_state": null, + "mytable2_cell_clicked": { + + }, + "mytable2_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32 + ], + "mytable2_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10 + ], + "mytable2_rows_selected": null, + "mytable2_search": "", + "mytable2_state": null, + "mytable3_cell_clicked": { + + }, + "mytable3_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150 + ], + "mytable3_rows_current": [ + 1, + 2, + 3, + 4, + 5 + ], + "mytable3_rows_selected": null, + "mytable3_search": "", + "mytable3_state": null, + "show_vars": null + }, + "output": { + "mytable1": [ + "Can't subset with `[` using an object of class NULL.", + "NULL", + "rlang_error" + ], + "mytable2": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n mpg<\/th>\n cyl<\/th>\n disp<\/th>\n hp<\/th>\n drat<\/th>\n wt<\/th>\n qsec<\/th>\n vs<\/th>\n am<\/th>\n gear<\/th>\n carb<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "orderClasses": true, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.19", + "src": { + "href": "dt-core-1.10.19" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + }, + "mytable3": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n Sepal.Length<\/th>\n Sepal.Width<\/th>\n Petal.Length<\/th>\n Petal.Width<\/th>\n Species<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "lengthMenu": [ + 5, + 30, + 50 + ], + "pageLength": 5, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "orderClasses": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.19", + "src": { + "href": "dt-core-1.10.19" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + } + }, + "export": { + + } +} diff --git a/012-datatables/tests/mytest-expected/006.png b/012-datatables/tests/mytest-expected/006.png new file mode 100644 index 00000000..61f862eb Binary files /dev/null and b/012-datatables/tests/mytest-expected/006.png differ diff --git a/012-datatables/tests/mytest-expected/007.json b/012-datatables/tests/mytest-expected/007.json new file mode 100644 index 00000000..6d0c2fcc --- /dev/null +++ b/012-datatables/tests/mytest-expected/007.json @@ -0,0 +1,1450 @@ +{ + "input": { + "dataset": "mtcars", + "mytable1_cell_clicked": { + + }, + "mytable1_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150, + 151, + 152, + 153, + 154, + 155, + 156, + 157, + 158, + 159, + 160, + 161, + 162, + 163, + 164, + 165, + 166, + 167, + 168, + 169, + 170, + 171, + 172, + 173, + 174, + 175, + 176, + 177, + 178, + 179, + 180, + 181, + 182, + 183, + 184, + 185, + 186, + 187, + 188, + 189, + 190, + 191, + 192, + 193, + 194, + 195, + 196, + 197, + 198, + 199, + 200, + 201, + 202, + 203, + 204, + 205, + 206, + 207, + 208, + 209, + 210, + 211, + 212, + 213, + 214, + 215, + 216, + 217, + 218, + 219, + 220, + 221, + 222, + 223, + 224, + 225, + 226, + 227, + 228, + 229, + 230, + 231, + 232, + 233, + 234, + 235, + 236, + 237, + 238, + 239, + 240, + 241, + 242, + 243, + 244, + 245, + 246, + 247, + 248, + 249, + 250, + 251, + 252, + 253, + 254, + 255, + 256, + 257, + 258, + 259, + 260, + 261, + 262, + 263, + 264, + 265, + 266, + 267, + 268, + 269, + 270, + 271, + 272, + 273, + 274, + 275, + 276, + 277, + 278, + 279, + 280, + 281, + 282, + 283, + 284, + 285, + 286, + 287, + 288, + 289, + 290, + 291, + 292, + 293, + 294, + 295, + 296, + 297, + 298, + 299, + 300, + 301, + 302, + 303, + 304, + 305, + 306, + 307, + 308, + 309, + 310, + 311, + 312, + 313, + 314, + 315, + 316, + 317, + 318, + 319, + 320, + 321, + 322, + 323, + 324, + 325, + 326, + 327, + 328, + 329, + 330, + 331, + 332, + 333, + 334, + 335, + 336, + 337, + 338, + 339, + 340, + 341, + 342, + 343, + 344, + 345, + 346, + 347, + 348, + 349, + 350, + 351, + 352, + 353, + 354, + 355, + 356, + 357, + 358, + 359, + 360, + 361, + 362, + 363, + 364, + 365, + 366, + 367, + 368, + 369, + 370, + 371, + 372, + 373, + 374, + 375, + 376, + 377, + 378, + 379, + 380, + 381, + 382, + 383, + 384, + 385, + 386, + 387, + 388, + 389, + 390, + 391, + 392, + 393, + 394, + 395, + 396, + 397, + 398, + 399, + 400, + 401, + 402, + 403, + 404, + 405, + 406, + 407, + 408, + 409, + 410, + 411, + 412, + 413, + 414, + 415, + 416, + 417, + 418, + 419, + 420, + 421, + 422, + 423, + 424, + 425, + 426, + 427, + 428, + 429, + 430, + 431, + 432, + 433, + 434, + 435, + 436, + 437, + 438, + 439, + 440, + 441, + 442, + 443, + 444, + 445, + 446, + 447, + 448, + 449, + 450, + 451, + 452, + 453, + 454, + 455, + 456, + 457, + 458, + 459, + 460, + 461, + 462, + 463, + 464, + 465, + 466, + 467, + 468, + 469, + 470, + 471, + 472, + 473, + 474, + 475, + 476, + 477, + 478, + 479, + 480, + 481, + 482, + 483, + 484, + 485, + 486, + 487, + 488, + 489, + 490, + 491, + 492, + 493, + 494, + 495, + 496, + 497, + 498, + 499, + 500, + 501, + 502, + 503, + 504, + 505, + 506, + 507, + 508, + 509, + 510, + 511, + 512, + 513, + 514, + 515, + 516, + 517, + 518, + 519, + 520, + 521, + 522, + 523, + 524, + 525, + 526, + 527, + 528, + 529, + 530, + 531, + 532, + 533, + 534, + 535, + 536, + 537, + 538, + 539, + 540, + 541, + 542, + 543, + 544, + 545, + 546, + 547, + 548, + 549, + 550, + 551, + 552, + 553, + 554, + 555, + 556, + 557, + 558, + 559, + 560, + 561, + 562, + 563, + 564, + 565, + 566, + 567, + 568, + 569, + 570, + 571, + 572, + 573, + 574, + 575, + 576, + 577, + 578, + 579, + 580, + 581, + 582, + 583, + 584, + 585, + 586, + 587, + 588, + 589, + 590, + 591, + 592, + 593, + 594, + 595, + 596, + 597, + 598, + 599, + 600, + 601, + 602, + 603, + 604, + 605, + 606, + 607, + 608, + 609, + 610, + 611, + 612, + 613, + 614, + 615, + 616, + 617, + 618, + 619, + 620, + 621, + 622, + 623, + 624, + 625, + 626, + 627, + 628, + 629, + 630, + 631, + 632, + 633, + 634, + 635, + 636, + 637, + 638, + 639, + 640, + 641, + 642, + 643, + 644, + 645, + 646, + 647, + 648, + 649, + 650, + 651, + 652, + 653, + 654, + 655, + 656, + 657, + 658, + 659, + 660, + 661, + 662, + 663, + 664, + 665, + 666, + 667, + 668, + 669, + 670, + 671, + 672, + 673, + 674, + 675, + 676, + 677, + 678, + 679, + 680, + 681, + 682, + 683, + 684, + 685, + 686, + 687, + 688, + 689, + 690, + 691, + 692, + 693, + 694, + 695, + 696, + 697, + 698, + 699, + 700, + 701, + 702, + 703, + 704, + 705, + 706, + 707, + 708, + 709, + 710, + 711, + 712, + 713, + 714, + 715, + 716, + 717, + 718, + 719, + 720, + 721, + 722, + 723, + 724, + 725, + 726, + 727, + 728, + 729, + 730, + 731, + 732, + 733, + 734, + 735, + 736, + 737, + 738, + 739, + 740, + 741, + 742, + 743, + 744, + 745, + 746, + 747, + 748, + 749, + 750, + 751, + 752, + 753, + 754, + 755, + 756, + 757, + 758, + 759, + 760, + 761, + 762, + 763, + 764, + 765, + 766, + 767, + 768, + 769, + 770, + 771, + 772, + 773, + 774, + 775, + 776, + 777, + 778, + 779, + 780, + 781, + 782, + 783, + 784, + 785, + 786, + 787, + 788, + 789, + 790, + 791, + 792, + 793, + 794, + 795, + 796, + 797, + 798, + 799, + 800, + 801, + 802, + 803, + 804, + 805, + 806, + 807, + 808, + 809, + 810, + 811, + 812, + 813, + 814, + 815, + 816, + 817, + 818, + 819, + 820, + 821, + 822, + 823, + 824, + 825, + 826, + 827, + 828, + 829, + 830, + 831, + 832, + 833, + 834, + 835, + 836, + 837, + 838, + 839, + 840, + 841, + 842, + 843, + 844, + 845, + 846, + 847, + 848, + 849, + 850, + 851, + 852, + 853, + 854, + 855, + 856, + 857, + 858, + 859, + 860, + 861, + 862, + 863, + 864, + 865, + 866, + 867, + 868, + 869, + 870, + 871, + 872, + 873, + 874, + 875, + 876, + 877, + 878, + 879, + 880, + 881, + 882, + 883, + 884, + 885, + 886, + 887, + 888, + 889, + 890, + 891, + 892, + 893, + 894, + 895, + 896, + 897, + 898, + 899, + 900, + 901, + 902, + 903, + 904, + 905, + 906, + 907, + 908, + 909, + 910, + 911, + 912, + 913, + 914, + 915, + 916, + 917, + 918, + 919, + 920, + 921, + 922, + 923, + 924, + 925, + 926, + 927, + 928, + 929, + 930, + 931, + 932, + 933, + 934, + 935, + 936, + 937, + 938, + 939, + 940, + 941, + 942, + 943, + 944, + 945, + 946, + 947, + 948, + 949, + 950, + 951, + 952, + 953, + 954, + 955, + 956, + 957, + 958, + 959, + 960, + 961, + 962, + 963, + 964, + 965, + 966, + 967, + 968, + 969, + 970, + 971, + 972, + 973, + 974, + 975, + 976, + 977, + 978, + 979, + 980, + 981, + 982, + 983, + 984, + 985, + 986, + 987, + 988, + 989, + 990, + 991, + 992, + 993, + 994, + 995, + 996, + 997, + 998, + 999, + 1000 + ], + "mytable1_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10 + ], + "mytable1_rows_selected": null, + "mytable1_search": "", + "mytable1_state": null, + "mytable2_cell_clicked": { + + }, + "mytable2_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32 + ], + "mytable2_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10 + ], + "mytable2_rows_selected": null, + "mytable2_search": "", + "mytable2_state": null, + "mytable3_cell_clicked": { + + }, + "mytable3_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150 + ], + "mytable3_rows_current": [ + 1, + 2, + 3, + 4, + 5 + ], + "mytable3_rows_selected": null, + "mytable3_search": "", + "mytable3_state": null, + "show_vars": null + }, + "output": { + "mytable1": [ + "Can't subset with `[` using an object of class NULL.", + "NULL", + "rlang_error" + ], + "mytable2": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n mpg<\/th>\n cyl<\/th>\n disp<\/th>\n hp<\/th>\n drat<\/th>\n wt<\/th>\n qsec<\/th>\n vs<\/th>\n am<\/th>\n gear<\/th>\n carb<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "orderClasses": true, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.19", + "src": { + "href": "dt-core-1.10.19" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + }, + "mytable3": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n Sepal.Length<\/th>\n Sepal.Width<\/th>\n Petal.Length<\/th>\n Petal.Width<\/th>\n Species<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "lengthMenu": [ + 5, + 30, + 50 + ], + "pageLength": 5, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "orderClasses": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.19", + "src": { + "href": "dt-core-1.10.19" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + } + }, + "export": { + + } +} diff --git a/012-datatables/tests/mytest-expected/007.png b/012-datatables/tests/mytest-expected/007.png new file mode 100644 index 00000000..8d035a1d Binary files /dev/null and b/012-datatables/tests/mytest-expected/007.png differ diff --git a/012-datatables/tests/mytest-expected/008.json b/012-datatables/tests/mytest-expected/008.json new file mode 100644 index 00000000..6d0c2fcc --- /dev/null +++ b/012-datatables/tests/mytest-expected/008.json @@ -0,0 +1,1450 @@ +{ + "input": { + "dataset": "mtcars", + "mytable1_cell_clicked": { + + }, + "mytable1_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150, + 151, + 152, + 153, + 154, + 155, + 156, + 157, + 158, + 159, + 160, + 161, + 162, + 163, + 164, + 165, + 166, + 167, + 168, + 169, + 170, + 171, + 172, + 173, + 174, + 175, + 176, + 177, + 178, + 179, + 180, + 181, + 182, + 183, + 184, + 185, + 186, + 187, + 188, + 189, + 190, + 191, + 192, + 193, + 194, + 195, + 196, + 197, + 198, + 199, + 200, + 201, + 202, + 203, + 204, + 205, + 206, + 207, + 208, + 209, + 210, + 211, + 212, + 213, + 214, + 215, + 216, + 217, + 218, + 219, + 220, + 221, + 222, + 223, + 224, + 225, + 226, + 227, + 228, + 229, + 230, + 231, + 232, + 233, + 234, + 235, + 236, + 237, + 238, + 239, + 240, + 241, + 242, + 243, + 244, + 245, + 246, + 247, + 248, + 249, + 250, + 251, + 252, + 253, + 254, + 255, + 256, + 257, + 258, + 259, + 260, + 261, + 262, + 263, + 264, + 265, + 266, + 267, + 268, + 269, + 270, + 271, + 272, + 273, + 274, + 275, + 276, + 277, + 278, + 279, + 280, + 281, + 282, + 283, + 284, + 285, + 286, + 287, + 288, + 289, + 290, + 291, + 292, + 293, + 294, + 295, + 296, + 297, + 298, + 299, + 300, + 301, + 302, + 303, + 304, + 305, + 306, + 307, + 308, + 309, + 310, + 311, + 312, + 313, + 314, + 315, + 316, + 317, + 318, + 319, + 320, + 321, + 322, + 323, + 324, + 325, + 326, + 327, + 328, + 329, + 330, + 331, + 332, + 333, + 334, + 335, + 336, + 337, + 338, + 339, + 340, + 341, + 342, + 343, + 344, + 345, + 346, + 347, + 348, + 349, + 350, + 351, + 352, + 353, + 354, + 355, + 356, + 357, + 358, + 359, + 360, + 361, + 362, + 363, + 364, + 365, + 366, + 367, + 368, + 369, + 370, + 371, + 372, + 373, + 374, + 375, + 376, + 377, + 378, + 379, + 380, + 381, + 382, + 383, + 384, + 385, + 386, + 387, + 388, + 389, + 390, + 391, + 392, + 393, + 394, + 395, + 396, + 397, + 398, + 399, + 400, + 401, + 402, + 403, + 404, + 405, + 406, + 407, + 408, + 409, + 410, + 411, + 412, + 413, + 414, + 415, + 416, + 417, + 418, + 419, + 420, + 421, + 422, + 423, + 424, + 425, + 426, + 427, + 428, + 429, + 430, + 431, + 432, + 433, + 434, + 435, + 436, + 437, + 438, + 439, + 440, + 441, + 442, + 443, + 444, + 445, + 446, + 447, + 448, + 449, + 450, + 451, + 452, + 453, + 454, + 455, + 456, + 457, + 458, + 459, + 460, + 461, + 462, + 463, + 464, + 465, + 466, + 467, + 468, + 469, + 470, + 471, + 472, + 473, + 474, + 475, + 476, + 477, + 478, + 479, + 480, + 481, + 482, + 483, + 484, + 485, + 486, + 487, + 488, + 489, + 490, + 491, + 492, + 493, + 494, + 495, + 496, + 497, + 498, + 499, + 500, + 501, + 502, + 503, + 504, + 505, + 506, + 507, + 508, + 509, + 510, + 511, + 512, + 513, + 514, + 515, + 516, + 517, + 518, + 519, + 520, + 521, + 522, + 523, + 524, + 525, + 526, + 527, + 528, + 529, + 530, + 531, + 532, + 533, + 534, + 535, + 536, + 537, + 538, + 539, + 540, + 541, + 542, + 543, + 544, + 545, + 546, + 547, + 548, + 549, + 550, + 551, + 552, + 553, + 554, + 555, + 556, + 557, + 558, + 559, + 560, + 561, + 562, + 563, + 564, + 565, + 566, + 567, + 568, + 569, + 570, + 571, + 572, + 573, + 574, + 575, + 576, + 577, + 578, + 579, + 580, + 581, + 582, + 583, + 584, + 585, + 586, + 587, + 588, + 589, + 590, + 591, + 592, + 593, + 594, + 595, + 596, + 597, + 598, + 599, + 600, + 601, + 602, + 603, + 604, + 605, + 606, + 607, + 608, + 609, + 610, + 611, + 612, + 613, + 614, + 615, + 616, + 617, + 618, + 619, + 620, + 621, + 622, + 623, + 624, + 625, + 626, + 627, + 628, + 629, + 630, + 631, + 632, + 633, + 634, + 635, + 636, + 637, + 638, + 639, + 640, + 641, + 642, + 643, + 644, + 645, + 646, + 647, + 648, + 649, + 650, + 651, + 652, + 653, + 654, + 655, + 656, + 657, + 658, + 659, + 660, + 661, + 662, + 663, + 664, + 665, + 666, + 667, + 668, + 669, + 670, + 671, + 672, + 673, + 674, + 675, + 676, + 677, + 678, + 679, + 680, + 681, + 682, + 683, + 684, + 685, + 686, + 687, + 688, + 689, + 690, + 691, + 692, + 693, + 694, + 695, + 696, + 697, + 698, + 699, + 700, + 701, + 702, + 703, + 704, + 705, + 706, + 707, + 708, + 709, + 710, + 711, + 712, + 713, + 714, + 715, + 716, + 717, + 718, + 719, + 720, + 721, + 722, + 723, + 724, + 725, + 726, + 727, + 728, + 729, + 730, + 731, + 732, + 733, + 734, + 735, + 736, + 737, + 738, + 739, + 740, + 741, + 742, + 743, + 744, + 745, + 746, + 747, + 748, + 749, + 750, + 751, + 752, + 753, + 754, + 755, + 756, + 757, + 758, + 759, + 760, + 761, + 762, + 763, + 764, + 765, + 766, + 767, + 768, + 769, + 770, + 771, + 772, + 773, + 774, + 775, + 776, + 777, + 778, + 779, + 780, + 781, + 782, + 783, + 784, + 785, + 786, + 787, + 788, + 789, + 790, + 791, + 792, + 793, + 794, + 795, + 796, + 797, + 798, + 799, + 800, + 801, + 802, + 803, + 804, + 805, + 806, + 807, + 808, + 809, + 810, + 811, + 812, + 813, + 814, + 815, + 816, + 817, + 818, + 819, + 820, + 821, + 822, + 823, + 824, + 825, + 826, + 827, + 828, + 829, + 830, + 831, + 832, + 833, + 834, + 835, + 836, + 837, + 838, + 839, + 840, + 841, + 842, + 843, + 844, + 845, + 846, + 847, + 848, + 849, + 850, + 851, + 852, + 853, + 854, + 855, + 856, + 857, + 858, + 859, + 860, + 861, + 862, + 863, + 864, + 865, + 866, + 867, + 868, + 869, + 870, + 871, + 872, + 873, + 874, + 875, + 876, + 877, + 878, + 879, + 880, + 881, + 882, + 883, + 884, + 885, + 886, + 887, + 888, + 889, + 890, + 891, + 892, + 893, + 894, + 895, + 896, + 897, + 898, + 899, + 900, + 901, + 902, + 903, + 904, + 905, + 906, + 907, + 908, + 909, + 910, + 911, + 912, + 913, + 914, + 915, + 916, + 917, + 918, + 919, + 920, + 921, + 922, + 923, + 924, + 925, + 926, + 927, + 928, + 929, + 930, + 931, + 932, + 933, + 934, + 935, + 936, + 937, + 938, + 939, + 940, + 941, + 942, + 943, + 944, + 945, + 946, + 947, + 948, + 949, + 950, + 951, + 952, + 953, + 954, + 955, + 956, + 957, + 958, + 959, + 960, + 961, + 962, + 963, + 964, + 965, + 966, + 967, + 968, + 969, + 970, + 971, + 972, + 973, + 974, + 975, + 976, + 977, + 978, + 979, + 980, + 981, + 982, + 983, + 984, + 985, + 986, + 987, + 988, + 989, + 990, + 991, + 992, + 993, + 994, + 995, + 996, + 997, + 998, + 999, + 1000 + ], + "mytable1_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10 + ], + "mytable1_rows_selected": null, + "mytable1_search": "", + "mytable1_state": null, + "mytable2_cell_clicked": { + + }, + "mytable2_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32 + ], + "mytable2_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10 + ], + "mytable2_rows_selected": null, + "mytable2_search": "", + "mytable2_state": null, + "mytable3_cell_clicked": { + + }, + "mytable3_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150 + ], + "mytable3_rows_current": [ + 1, + 2, + 3, + 4, + 5 + ], + "mytable3_rows_selected": null, + "mytable3_search": "", + "mytable3_state": null, + "show_vars": null + }, + "output": { + "mytable1": [ + "Can't subset with `[` using an object of class NULL.", + "NULL", + "rlang_error" + ], + "mytable2": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n mpg<\/th>\n cyl<\/th>\n disp<\/th>\n hp<\/th>\n drat<\/th>\n wt<\/th>\n qsec<\/th>\n vs<\/th>\n am<\/th>\n gear<\/th>\n carb<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "orderClasses": true, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.19", + "src": { + "href": "dt-core-1.10.19" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + }, + "mytable3": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n Sepal.Length<\/th>\n Sepal.Width<\/th>\n Petal.Length<\/th>\n Petal.Width<\/th>\n Species<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "lengthMenu": [ + 5, + 30, + 50 + ], + "pageLength": 5, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "orderClasses": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.19", + "src": { + "href": "dt-core-1.10.19" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + } + }, + "export": { + + } +} diff --git a/012-datatables/tests/mytest-expected/008.png b/012-datatables/tests/mytest-expected/008.png new file mode 100644 index 00000000..8d035a1d Binary files /dev/null and b/012-datatables/tests/mytest-expected/008.png differ diff --git a/012-datatables/tests/mytest-expected/009.json b/012-datatables/tests/mytest-expected/009.json new file mode 100644 index 00000000..6d0c2fcc --- /dev/null +++ b/012-datatables/tests/mytest-expected/009.json @@ -0,0 +1,1450 @@ +{ + "input": { + "dataset": "mtcars", + "mytable1_cell_clicked": { + + }, + "mytable1_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150, + 151, + 152, + 153, + 154, + 155, + 156, + 157, + 158, + 159, + 160, + 161, + 162, + 163, + 164, + 165, + 166, + 167, + 168, + 169, + 170, + 171, + 172, + 173, + 174, + 175, + 176, + 177, + 178, + 179, + 180, + 181, + 182, + 183, + 184, + 185, + 186, + 187, + 188, + 189, + 190, + 191, + 192, + 193, + 194, + 195, + 196, + 197, + 198, + 199, + 200, + 201, + 202, + 203, + 204, + 205, + 206, + 207, + 208, + 209, + 210, + 211, + 212, + 213, + 214, + 215, + 216, + 217, + 218, + 219, + 220, + 221, + 222, + 223, + 224, + 225, + 226, + 227, + 228, + 229, + 230, + 231, + 232, + 233, + 234, + 235, + 236, + 237, + 238, + 239, + 240, + 241, + 242, + 243, + 244, + 245, + 246, + 247, + 248, + 249, + 250, + 251, + 252, + 253, + 254, + 255, + 256, + 257, + 258, + 259, + 260, + 261, + 262, + 263, + 264, + 265, + 266, + 267, + 268, + 269, + 270, + 271, + 272, + 273, + 274, + 275, + 276, + 277, + 278, + 279, + 280, + 281, + 282, + 283, + 284, + 285, + 286, + 287, + 288, + 289, + 290, + 291, + 292, + 293, + 294, + 295, + 296, + 297, + 298, + 299, + 300, + 301, + 302, + 303, + 304, + 305, + 306, + 307, + 308, + 309, + 310, + 311, + 312, + 313, + 314, + 315, + 316, + 317, + 318, + 319, + 320, + 321, + 322, + 323, + 324, + 325, + 326, + 327, + 328, + 329, + 330, + 331, + 332, + 333, + 334, + 335, + 336, + 337, + 338, + 339, + 340, + 341, + 342, + 343, + 344, + 345, + 346, + 347, + 348, + 349, + 350, + 351, + 352, + 353, + 354, + 355, + 356, + 357, + 358, + 359, + 360, + 361, + 362, + 363, + 364, + 365, + 366, + 367, + 368, + 369, + 370, + 371, + 372, + 373, + 374, + 375, + 376, + 377, + 378, + 379, + 380, + 381, + 382, + 383, + 384, + 385, + 386, + 387, + 388, + 389, + 390, + 391, + 392, + 393, + 394, + 395, + 396, + 397, + 398, + 399, + 400, + 401, + 402, + 403, + 404, + 405, + 406, + 407, + 408, + 409, + 410, + 411, + 412, + 413, + 414, + 415, + 416, + 417, + 418, + 419, + 420, + 421, + 422, + 423, + 424, + 425, + 426, + 427, + 428, + 429, + 430, + 431, + 432, + 433, + 434, + 435, + 436, + 437, + 438, + 439, + 440, + 441, + 442, + 443, + 444, + 445, + 446, + 447, + 448, + 449, + 450, + 451, + 452, + 453, + 454, + 455, + 456, + 457, + 458, + 459, + 460, + 461, + 462, + 463, + 464, + 465, + 466, + 467, + 468, + 469, + 470, + 471, + 472, + 473, + 474, + 475, + 476, + 477, + 478, + 479, + 480, + 481, + 482, + 483, + 484, + 485, + 486, + 487, + 488, + 489, + 490, + 491, + 492, + 493, + 494, + 495, + 496, + 497, + 498, + 499, + 500, + 501, + 502, + 503, + 504, + 505, + 506, + 507, + 508, + 509, + 510, + 511, + 512, + 513, + 514, + 515, + 516, + 517, + 518, + 519, + 520, + 521, + 522, + 523, + 524, + 525, + 526, + 527, + 528, + 529, + 530, + 531, + 532, + 533, + 534, + 535, + 536, + 537, + 538, + 539, + 540, + 541, + 542, + 543, + 544, + 545, + 546, + 547, + 548, + 549, + 550, + 551, + 552, + 553, + 554, + 555, + 556, + 557, + 558, + 559, + 560, + 561, + 562, + 563, + 564, + 565, + 566, + 567, + 568, + 569, + 570, + 571, + 572, + 573, + 574, + 575, + 576, + 577, + 578, + 579, + 580, + 581, + 582, + 583, + 584, + 585, + 586, + 587, + 588, + 589, + 590, + 591, + 592, + 593, + 594, + 595, + 596, + 597, + 598, + 599, + 600, + 601, + 602, + 603, + 604, + 605, + 606, + 607, + 608, + 609, + 610, + 611, + 612, + 613, + 614, + 615, + 616, + 617, + 618, + 619, + 620, + 621, + 622, + 623, + 624, + 625, + 626, + 627, + 628, + 629, + 630, + 631, + 632, + 633, + 634, + 635, + 636, + 637, + 638, + 639, + 640, + 641, + 642, + 643, + 644, + 645, + 646, + 647, + 648, + 649, + 650, + 651, + 652, + 653, + 654, + 655, + 656, + 657, + 658, + 659, + 660, + 661, + 662, + 663, + 664, + 665, + 666, + 667, + 668, + 669, + 670, + 671, + 672, + 673, + 674, + 675, + 676, + 677, + 678, + 679, + 680, + 681, + 682, + 683, + 684, + 685, + 686, + 687, + 688, + 689, + 690, + 691, + 692, + 693, + 694, + 695, + 696, + 697, + 698, + 699, + 700, + 701, + 702, + 703, + 704, + 705, + 706, + 707, + 708, + 709, + 710, + 711, + 712, + 713, + 714, + 715, + 716, + 717, + 718, + 719, + 720, + 721, + 722, + 723, + 724, + 725, + 726, + 727, + 728, + 729, + 730, + 731, + 732, + 733, + 734, + 735, + 736, + 737, + 738, + 739, + 740, + 741, + 742, + 743, + 744, + 745, + 746, + 747, + 748, + 749, + 750, + 751, + 752, + 753, + 754, + 755, + 756, + 757, + 758, + 759, + 760, + 761, + 762, + 763, + 764, + 765, + 766, + 767, + 768, + 769, + 770, + 771, + 772, + 773, + 774, + 775, + 776, + 777, + 778, + 779, + 780, + 781, + 782, + 783, + 784, + 785, + 786, + 787, + 788, + 789, + 790, + 791, + 792, + 793, + 794, + 795, + 796, + 797, + 798, + 799, + 800, + 801, + 802, + 803, + 804, + 805, + 806, + 807, + 808, + 809, + 810, + 811, + 812, + 813, + 814, + 815, + 816, + 817, + 818, + 819, + 820, + 821, + 822, + 823, + 824, + 825, + 826, + 827, + 828, + 829, + 830, + 831, + 832, + 833, + 834, + 835, + 836, + 837, + 838, + 839, + 840, + 841, + 842, + 843, + 844, + 845, + 846, + 847, + 848, + 849, + 850, + 851, + 852, + 853, + 854, + 855, + 856, + 857, + 858, + 859, + 860, + 861, + 862, + 863, + 864, + 865, + 866, + 867, + 868, + 869, + 870, + 871, + 872, + 873, + 874, + 875, + 876, + 877, + 878, + 879, + 880, + 881, + 882, + 883, + 884, + 885, + 886, + 887, + 888, + 889, + 890, + 891, + 892, + 893, + 894, + 895, + 896, + 897, + 898, + 899, + 900, + 901, + 902, + 903, + 904, + 905, + 906, + 907, + 908, + 909, + 910, + 911, + 912, + 913, + 914, + 915, + 916, + 917, + 918, + 919, + 920, + 921, + 922, + 923, + 924, + 925, + 926, + 927, + 928, + 929, + 930, + 931, + 932, + 933, + 934, + 935, + 936, + 937, + 938, + 939, + 940, + 941, + 942, + 943, + 944, + 945, + 946, + 947, + 948, + 949, + 950, + 951, + 952, + 953, + 954, + 955, + 956, + 957, + 958, + 959, + 960, + 961, + 962, + 963, + 964, + 965, + 966, + 967, + 968, + 969, + 970, + 971, + 972, + 973, + 974, + 975, + 976, + 977, + 978, + 979, + 980, + 981, + 982, + 983, + 984, + 985, + 986, + 987, + 988, + 989, + 990, + 991, + 992, + 993, + 994, + 995, + 996, + 997, + 998, + 999, + 1000 + ], + "mytable1_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10 + ], + "mytable1_rows_selected": null, + "mytable1_search": "", + "mytable1_state": null, + "mytable2_cell_clicked": { + + }, + "mytable2_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32 + ], + "mytable2_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10 + ], + "mytable2_rows_selected": null, + "mytable2_search": "", + "mytable2_state": null, + "mytable3_cell_clicked": { + + }, + "mytable3_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150 + ], + "mytable3_rows_current": [ + 1, + 2, + 3, + 4, + 5 + ], + "mytable3_rows_selected": null, + "mytable3_search": "", + "mytable3_state": null, + "show_vars": null + }, + "output": { + "mytable1": [ + "Can't subset with `[` using an object of class NULL.", + "NULL", + "rlang_error" + ], + "mytable2": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n mpg<\/th>\n cyl<\/th>\n disp<\/th>\n hp<\/th>\n drat<\/th>\n wt<\/th>\n qsec<\/th>\n vs<\/th>\n am<\/th>\n gear<\/th>\n carb<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "orderClasses": true, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.19", + "src": { + "href": "dt-core-1.10.19" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + }, + "mytable3": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n Sepal.Length<\/th>\n Sepal.Width<\/th>\n Petal.Length<\/th>\n Petal.Width<\/th>\n Species<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "lengthMenu": [ + 5, + 30, + 50 + ], + "pageLength": 5, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "orderClasses": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.19", + "src": { + "href": "dt-core-1.10.19" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + } + }, + "export": { + + } +} diff --git a/012-datatables/tests/mytest-expected/009.png b/012-datatables/tests/mytest-expected/009.png new file mode 100644 index 00000000..8d035a1d Binary files /dev/null and b/012-datatables/tests/mytest-expected/009.png differ diff --git a/012-datatables/tests/mytest-expected/010.json b/012-datatables/tests/mytest-expected/010.json new file mode 100644 index 00000000..6d0c2fcc --- /dev/null +++ b/012-datatables/tests/mytest-expected/010.json @@ -0,0 +1,1450 @@ +{ + "input": { + "dataset": "mtcars", + "mytable1_cell_clicked": { + + }, + "mytable1_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150, + 151, + 152, + 153, + 154, + 155, + 156, + 157, + 158, + 159, + 160, + 161, + 162, + 163, + 164, + 165, + 166, + 167, + 168, + 169, + 170, + 171, + 172, + 173, + 174, + 175, + 176, + 177, + 178, + 179, + 180, + 181, + 182, + 183, + 184, + 185, + 186, + 187, + 188, + 189, + 190, + 191, + 192, + 193, + 194, + 195, + 196, + 197, + 198, + 199, + 200, + 201, + 202, + 203, + 204, + 205, + 206, + 207, + 208, + 209, + 210, + 211, + 212, + 213, + 214, + 215, + 216, + 217, + 218, + 219, + 220, + 221, + 222, + 223, + 224, + 225, + 226, + 227, + 228, + 229, + 230, + 231, + 232, + 233, + 234, + 235, + 236, + 237, + 238, + 239, + 240, + 241, + 242, + 243, + 244, + 245, + 246, + 247, + 248, + 249, + 250, + 251, + 252, + 253, + 254, + 255, + 256, + 257, + 258, + 259, + 260, + 261, + 262, + 263, + 264, + 265, + 266, + 267, + 268, + 269, + 270, + 271, + 272, + 273, + 274, + 275, + 276, + 277, + 278, + 279, + 280, + 281, + 282, + 283, + 284, + 285, + 286, + 287, + 288, + 289, + 290, + 291, + 292, + 293, + 294, + 295, + 296, + 297, + 298, + 299, + 300, + 301, + 302, + 303, + 304, + 305, + 306, + 307, + 308, + 309, + 310, + 311, + 312, + 313, + 314, + 315, + 316, + 317, + 318, + 319, + 320, + 321, + 322, + 323, + 324, + 325, + 326, + 327, + 328, + 329, + 330, + 331, + 332, + 333, + 334, + 335, + 336, + 337, + 338, + 339, + 340, + 341, + 342, + 343, + 344, + 345, + 346, + 347, + 348, + 349, + 350, + 351, + 352, + 353, + 354, + 355, + 356, + 357, + 358, + 359, + 360, + 361, + 362, + 363, + 364, + 365, + 366, + 367, + 368, + 369, + 370, + 371, + 372, + 373, + 374, + 375, + 376, + 377, + 378, + 379, + 380, + 381, + 382, + 383, + 384, + 385, + 386, + 387, + 388, + 389, + 390, + 391, + 392, + 393, + 394, + 395, + 396, + 397, + 398, + 399, + 400, + 401, + 402, + 403, + 404, + 405, + 406, + 407, + 408, + 409, + 410, + 411, + 412, + 413, + 414, + 415, + 416, + 417, + 418, + 419, + 420, + 421, + 422, + 423, + 424, + 425, + 426, + 427, + 428, + 429, + 430, + 431, + 432, + 433, + 434, + 435, + 436, + 437, + 438, + 439, + 440, + 441, + 442, + 443, + 444, + 445, + 446, + 447, + 448, + 449, + 450, + 451, + 452, + 453, + 454, + 455, + 456, + 457, + 458, + 459, + 460, + 461, + 462, + 463, + 464, + 465, + 466, + 467, + 468, + 469, + 470, + 471, + 472, + 473, + 474, + 475, + 476, + 477, + 478, + 479, + 480, + 481, + 482, + 483, + 484, + 485, + 486, + 487, + 488, + 489, + 490, + 491, + 492, + 493, + 494, + 495, + 496, + 497, + 498, + 499, + 500, + 501, + 502, + 503, + 504, + 505, + 506, + 507, + 508, + 509, + 510, + 511, + 512, + 513, + 514, + 515, + 516, + 517, + 518, + 519, + 520, + 521, + 522, + 523, + 524, + 525, + 526, + 527, + 528, + 529, + 530, + 531, + 532, + 533, + 534, + 535, + 536, + 537, + 538, + 539, + 540, + 541, + 542, + 543, + 544, + 545, + 546, + 547, + 548, + 549, + 550, + 551, + 552, + 553, + 554, + 555, + 556, + 557, + 558, + 559, + 560, + 561, + 562, + 563, + 564, + 565, + 566, + 567, + 568, + 569, + 570, + 571, + 572, + 573, + 574, + 575, + 576, + 577, + 578, + 579, + 580, + 581, + 582, + 583, + 584, + 585, + 586, + 587, + 588, + 589, + 590, + 591, + 592, + 593, + 594, + 595, + 596, + 597, + 598, + 599, + 600, + 601, + 602, + 603, + 604, + 605, + 606, + 607, + 608, + 609, + 610, + 611, + 612, + 613, + 614, + 615, + 616, + 617, + 618, + 619, + 620, + 621, + 622, + 623, + 624, + 625, + 626, + 627, + 628, + 629, + 630, + 631, + 632, + 633, + 634, + 635, + 636, + 637, + 638, + 639, + 640, + 641, + 642, + 643, + 644, + 645, + 646, + 647, + 648, + 649, + 650, + 651, + 652, + 653, + 654, + 655, + 656, + 657, + 658, + 659, + 660, + 661, + 662, + 663, + 664, + 665, + 666, + 667, + 668, + 669, + 670, + 671, + 672, + 673, + 674, + 675, + 676, + 677, + 678, + 679, + 680, + 681, + 682, + 683, + 684, + 685, + 686, + 687, + 688, + 689, + 690, + 691, + 692, + 693, + 694, + 695, + 696, + 697, + 698, + 699, + 700, + 701, + 702, + 703, + 704, + 705, + 706, + 707, + 708, + 709, + 710, + 711, + 712, + 713, + 714, + 715, + 716, + 717, + 718, + 719, + 720, + 721, + 722, + 723, + 724, + 725, + 726, + 727, + 728, + 729, + 730, + 731, + 732, + 733, + 734, + 735, + 736, + 737, + 738, + 739, + 740, + 741, + 742, + 743, + 744, + 745, + 746, + 747, + 748, + 749, + 750, + 751, + 752, + 753, + 754, + 755, + 756, + 757, + 758, + 759, + 760, + 761, + 762, + 763, + 764, + 765, + 766, + 767, + 768, + 769, + 770, + 771, + 772, + 773, + 774, + 775, + 776, + 777, + 778, + 779, + 780, + 781, + 782, + 783, + 784, + 785, + 786, + 787, + 788, + 789, + 790, + 791, + 792, + 793, + 794, + 795, + 796, + 797, + 798, + 799, + 800, + 801, + 802, + 803, + 804, + 805, + 806, + 807, + 808, + 809, + 810, + 811, + 812, + 813, + 814, + 815, + 816, + 817, + 818, + 819, + 820, + 821, + 822, + 823, + 824, + 825, + 826, + 827, + 828, + 829, + 830, + 831, + 832, + 833, + 834, + 835, + 836, + 837, + 838, + 839, + 840, + 841, + 842, + 843, + 844, + 845, + 846, + 847, + 848, + 849, + 850, + 851, + 852, + 853, + 854, + 855, + 856, + 857, + 858, + 859, + 860, + 861, + 862, + 863, + 864, + 865, + 866, + 867, + 868, + 869, + 870, + 871, + 872, + 873, + 874, + 875, + 876, + 877, + 878, + 879, + 880, + 881, + 882, + 883, + 884, + 885, + 886, + 887, + 888, + 889, + 890, + 891, + 892, + 893, + 894, + 895, + 896, + 897, + 898, + 899, + 900, + 901, + 902, + 903, + 904, + 905, + 906, + 907, + 908, + 909, + 910, + 911, + 912, + 913, + 914, + 915, + 916, + 917, + 918, + 919, + 920, + 921, + 922, + 923, + 924, + 925, + 926, + 927, + 928, + 929, + 930, + 931, + 932, + 933, + 934, + 935, + 936, + 937, + 938, + 939, + 940, + 941, + 942, + 943, + 944, + 945, + 946, + 947, + 948, + 949, + 950, + 951, + 952, + 953, + 954, + 955, + 956, + 957, + 958, + 959, + 960, + 961, + 962, + 963, + 964, + 965, + 966, + 967, + 968, + 969, + 970, + 971, + 972, + 973, + 974, + 975, + 976, + 977, + 978, + 979, + 980, + 981, + 982, + 983, + 984, + 985, + 986, + 987, + 988, + 989, + 990, + 991, + 992, + 993, + 994, + 995, + 996, + 997, + 998, + 999, + 1000 + ], + "mytable1_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10 + ], + "mytable1_rows_selected": null, + "mytable1_search": "", + "mytable1_state": null, + "mytable2_cell_clicked": { + + }, + "mytable2_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32 + ], + "mytable2_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10 + ], + "mytable2_rows_selected": null, + "mytable2_search": "", + "mytable2_state": null, + "mytable3_cell_clicked": { + + }, + "mytable3_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150 + ], + "mytable3_rows_current": [ + 1, + 2, + 3, + 4, + 5 + ], + "mytable3_rows_selected": null, + "mytable3_search": "", + "mytable3_state": null, + "show_vars": null + }, + "output": { + "mytable1": [ + "Can't subset with `[` using an object of class NULL.", + "NULL", + "rlang_error" + ], + "mytable2": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n mpg<\/th>\n cyl<\/th>\n disp<\/th>\n hp<\/th>\n drat<\/th>\n wt<\/th>\n qsec<\/th>\n vs<\/th>\n am<\/th>\n gear<\/th>\n carb<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "orderClasses": true, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.19", + "src": { + "href": "dt-core-1.10.19" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + }, + "mytable3": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n Sepal.Length<\/th>\n Sepal.Width<\/th>\n Petal.Length<\/th>\n Petal.Width<\/th>\n Species<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "lengthMenu": [ + 5, + 30, + 50 + ], + "pageLength": 5, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "orderClasses": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.19", + "src": { + "href": "dt-core-1.10.19" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + } + }, + "export": { + + } +} diff --git a/012-datatables/tests/mytest-expected/010.png b/012-datatables/tests/mytest-expected/010.png new file mode 100644 index 00000000..8d035a1d Binary files /dev/null and b/012-datatables/tests/mytest-expected/010.png differ diff --git a/012-datatables/tests/mytest-expected/011.json b/012-datatables/tests/mytest-expected/011.json new file mode 100644 index 00000000..e49aa3cc --- /dev/null +++ b/012-datatables/tests/mytest-expected/011.json @@ -0,0 +1,1450 @@ +{ + "input": { + "dataset": "iris", + "mytable1_cell_clicked": { + + }, + "mytable1_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150, + 151, + 152, + 153, + 154, + 155, + 156, + 157, + 158, + 159, + 160, + 161, + 162, + 163, + 164, + 165, + 166, + 167, + 168, + 169, + 170, + 171, + 172, + 173, + 174, + 175, + 176, + 177, + 178, + 179, + 180, + 181, + 182, + 183, + 184, + 185, + 186, + 187, + 188, + 189, + 190, + 191, + 192, + 193, + 194, + 195, + 196, + 197, + 198, + 199, + 200, + 201, + 202, + 203, + 204, + 205, + 206, + 207, + 208, + 209, + 210, + 211, + 212, + 213, + 214, + 215, + 216, + 217, + 218, + 219, + 220, + 221, + 222, + 223, + 224, + 225, + 226, + 227, + 228, + 229, + 230, + 231, + 232, + 233, + 234, + 235, + 236, + 237, + 238, + 239, + 240, + 241, + 242, + 243, + 244, + 245, + 246, + 247, + 248, + 249, + 250, + 251, + 252, + 253, + 254, + 255, + 256, + 257, + 258, + 259, + 260, + 261, + 262, + 263, + 264, + 265, + 266, + 267, + 268, + 269, + 270, + 271, + 272, + 273, + 274, + 275, + 276, + 277, + 278, + 279, + 280, + 281, + 282, + 283, + 284, + 285, + 286, + 287, + 288, + 289, + 290, + 291, + 292, + 293, + 294, + 295, + 296, + 297, + 298, + 299, + 300, + 301, + 302, + 303, + 304, + 305, + 306, + 307, + 308, + 309, + 310, + 311, + 312, + 313, + 314, + 315, + 316, + 317, + 318, + 319, + 320, + 321, + 322, + 323, + 324, + 325, + 326, + 327, + 328, + 329, + 330, + 331, + 332, + 333, + 334, + 335, + 336, + 337, + 338, + 339, + 340, + 341, + 342, + 343, + 344, + 345, + 346, + 347, + 348, + 349, + 350, + 351, + 352, + 353, + 354, + 355, + 356, + 357, + 358, + 359, + 360, + 361, + 362, + 363, + 364, + 365, + 366, + 367, + 368, + 369, + 370, + 371, + 372, + 373, + 374, + 375, + 376, + 377, + 378, + 379, + 380, + 381, + 382, + 383, + 384, + 385, + 386, + 387, + 388, + 389, + 390, + 391, + 392, + 393, + 394, + 395, + 396, + 397, + 398, + 399, + 400, + 401, + 402, + 403, + 404, + 405, + 406, + 407, + 408, + 409, + 410, + 411, + 412, + 413, + 414, + 415, + 416, + 417, + 418, + 419, + 420, + 421, + 422, + 423, + 424, + 425, + 426, + 427, + 428, + 429, + 430, + 431, + 432, + 433, + 434, + 435, + 436, + 437, + 438, + 439, + 440, + 441, + 442, + 443, + 444, + 445, + 446, + 447, + 448, + 449, + 450, + 451, + 452, + 453, + 454, + 455, + 456, + 457, + 458, + 459, + 460, + 461, + 462, + 463, + 464, + 465, + 466, + 467, + 468, + 469, + 470, + 471, + 472, + 473, + 474, + 475, + 476, + 477, + 478, + 479, + 480, + 481, + 482, + 483, + 484, + 485, + 486, + 487, + 488, + 489, + 490, + 491, + 492, + 493, + 494, + 495, + 496, + 497, + 498, + 499, + 500, + 501, + 502, + 503, + 504, + 505, + 506, + 507, + 508, + 509, + 510, + 511, + 512, + 513, + 514, + 515, + 516, + 517, + 518, + 519, + 520, + 521, + 522, + 523, + 524, + 525, + 526, + 527, + 528, + 529, + 530, + 531, + 532, + 533, + 534, + 535, + 536, + 537, + 538, + 539, + 540, + 541, + 542, + 543, + 544, + 545, + 546, + 547, + 548, + 549, + 550, + 551, + 552, + 553, + 554, + 555, + 556, + 557, + 558, + 559, + 560, + 561, + 562, + 563, + 564, + 565, + 566, + 567, + 568, + 569, + 570, + 571, + 572, + 573, + 574, + 575, + 576, + 577, + 578, + 579, + 580, + 581, + 582, + 583, + 584, + 585, + 586, + 587, + 588, + 589, + 590, + 591, + 592, + 593, + 594, + 595, + 596, + 597, + 598, + 599, + 600, + 601, + 602, + 603, + 604, + 605, + 606, + 607, + 608, + 609, + 610, + 611, + 612, + 613, + 614, + 615, + 616, + 617, + 618, + 619, + 620, + 621, + 622, + 623, + 624, + 625, + 626, + 627, + 628, + 629, + 630, + 631, + 632, + 633, + 634, + 635, + 636, + 637, + 638, + 639, + 640, + 641, + 642, + 643, + 644, + 645, + 646, + 647, + 648, + 649, + 650, + 651, + 652, + 653, + 654, + 655, + 656, + 657, + 658, + 659, + 660, + 661, + 662, + 663, + 664, + 665, + 666, + 667, + 668, + 669, + 670, + 671, + 672, + 673, + 674, + 675, + 676, + 677, + 678, + 679, + 680, + 681, + 682, + 683, + 684, + 685, + 686, + 687, + 688, + 689, + 690, + 691, + 692, + 693, + 694, + 695, + 696, + 697, + 698, + 699, + 700, + 701, + 702, + 703, + 704, + 705, + 706, + 707, + 708, + 709, + 710, + 711, + 712, + 713, + 714, + 715, + 716, + 717, + 718, + 719, + 720, + 721, + 722, + 723, + 724, + 725, + 726, + 727, + 728, + 729, + 730, + 731, + 732, + 733, + 734, + 735, + 736, + 737, + 738, + 739, + 740, + 741, + 742, + 743, + 744, + 745, + 746, + 747, + 748, + 749, + 750, + 751, + 752, + 753, + 754, + 755, + 756, + 757, + 758, + 759, + 760, + 761, + 762, + 763, + 764, + 765, + 766, + 767, + 768, + 769, + 770, + 771, + 772, + 773, + 774, + 775, + 776, + 777, + 778, + 779, + 780, + 781, + 782, + 783, + 784, + 785, + 786, + 787, + 788, + 789, + 790, + 791, + 792, + 793, + 794, + 795, + 796, + 797, + 798, + 799, + 800, + 801, + 802, + 803, + 804, + 805, + 806, + 807, + 808, + 809, + 810, + 811, + 812, + 813, + 814, + 815, + 816, + 817, + 818, + 819, + 820, + 821, + 822, + 823, + 824, + 825, + 826, + 827, + 828, + 829, + 830, + 831, + 832, + 833, + 834, + 835, + 836, + 837, + 838, + 839, + 840, + 841, + 842, + 843, + 844, + 845, + 846, + 847, + 848, + 849, + 850, + 851, + 852, + 853, + 854, + 855, + 856, + 857, + 858, + 859, + 860, + 861, + 862, + 863, + 864, + 865, + 866, + 867, + 868, + 869, + 870, + 871, + 872, + 873, + 874, + 875, + 876, + 877, + 878, + 879, + 880, + 881, + 882, + 883, + 884, + 885, + 886, + 887, + 888, + 889, + 890, + 891, + 892, + 893, + 894, + 895, + 896, + 897, + 898, + 899, + 900, + 901, + 902, + 903, + 904, + 905, + 906, + 907, + 908, + 909, + 910, + 911, + 912, + 913, + 914, + 915, + 916, + 917, + 918, + 919, + 920, + 921, + 922, + 923, + 924, + 925, + 926, + 927, + 928, + 929, + 930, + 931, + 932, + 933, + 934, + 935, + 936, + 937, + 938, + 939, + 940, + 941, + 942, + 943, + 944, + 945, + 946, + 947, + 948, + 949, + 950, + 951, + 952, + 953, + 954, + 955, + 956, + 957, + 958, + 959, + 960, + 961, + 962, + 963, + 964, + 965, + 966, + 967, + 968, + 969, + 970, + 971, + 972, + 973, + 974, + 975, + 976, + 977, + 978, + 979, + 980, + 981, + 982, + 983, + 984, + 985, + 986, + 987, + 988, + 989, + 990, + 991, + 992, + 993, + 994, + 995, + 996, + 997, + 998, + 999, + 1000 + ], + "mytable1_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10 + ], + "mytable1_rows_selected": null, + "mytable1_search": "", + "mytable1_state": null, + "mytable2_cell_clicked": { + + }, + "mytable2_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32 + ], + "mytable2_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10 + ], + "mytable2_rows_selected": null, + "mytable2_search": "", + "mytable2_state": null, + "mytable3_cell_clicked": { + + }, + "mytable3_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150 + ], + "mytable3_rows_current": [ + 1, + 2, + 3, + 4, + 5 + ], + "mytable3_rows_selected": null, + "mytable3_search": "", + "mytable3_state": null, + "show_vars": null + }, + "output": { + "mytable1": [ + "Can't subset with `[` using an object of class NULL.", + "NULL", + "rlang_error" + ], + "mytable2": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n mpg<\/th>\n cyl<\/th>\n disp<\/th>\n hp<\/th>\n drat<\/th>\n wt<\/th>\n qsec<\/th>\n vs<\/th>\n am<\/th>\n gear<\/th>\n carb<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "orderClasses": true, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.19", + "src": { + "href": "dt-core-1.10.19" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + }, + "mytable3": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n Sepal.Length<\/th>\n Sepal.Width<\/th>\n Petal.Length<\/th>\n Petal.Width<\/th>\n Species<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "lengthMenu": [ + 5, + 30, + 50 + ], + "pageLength": 5, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "orderClasses": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.19", + "src": { + "href": "dt-core-1.10.19" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + } + }, + "export": { + + } +} diff --git a/012-datatables/tests/mytest-expected/011.png b/012-datatables/tests/mytest-expected/011.png new file mode 100644 index 00000000..a7a0efa5 Binary files /dev/null and b/012-datatables/tests/mytest-expected/011.png differ diff --git a/012-datatables/tests/mytest.R b/012-datatables/tests/mytest.R new file mode 100644 index 00000000..37f019b5 --- /dev/null +++ b/012-datatables/tests/mytest.R @@ -0,0 +1,86 @@ +app <- ShinyDriver$new("../", seed = 100,shinyOptions = list(display.mode = "normal")) +app$snapshotInit("mytest") + +# Input 'mytable1_rows_current' was set, but doesn't have an input binding. +# Input 'mytable1_rows_all' was set, but doesn't have an input binding. +Sys.sleep(5) +app$snapshot() +app$setInputs(dataset = "mtcars") +Sys.sleep(5) +# Input 'mytable2_rows_current' was set, but doesn't have an input binding. +# Input 'mytable2_rows_all' was set, but doesn't have an input binding. +app$snapshot() +app$setInputs(dataset = "iris") +Sys.sleep(5) +# Input 'mytable3_rows_current' was set, but doesn't have an input binding. +# Input 'mytable3_rows_all' was set, but doesn't have an input binding. +app$snapshot() +app$setInputs(dataset = "diamonds") +Sys.sleep(5) +app$setInputs(show_vars = c("carat", "cut", "color", "clarity", "depth", "price", "x", "y", "z")) +# Input 'mytable1_rows_current' was set, but doesn't have an input binding. +# Input 'mytable1_rows_all' was set, but doesn't have an input binding. +app$setInputs(show_vars = c("carat", "cut", "color", "clarity", "price", "x", "y", "z")) +# Input 'mytable1_rows_current' was set, but doesn't have an input binding. +# Input 'mytable1_rows_all' was set, but doesn't have an input binding. +Sys.sleep(5) +app$snapshot() +app$setInputs(show_vars = c("carat", "cut", "color", "clarity", "price", "y", "z")) +# Input 'mytable1_rows_current' was set, but doesn't have an input binding. +# Input 'mytable1_rows_all' was set, but doesn't have an input binding. +app$setInputs(show_vars = c("carat", "color", "clarity", "price", "y", "z")) +# Input 'mytable1_rows_current' was set, but doesn't have an input binding. +# Input 'mytable1_rows_all' was set, but doesn't have an input binding. +Sys.sleep(5) +app$snapshot() +app$setInputs(show_vars = c("color", "clarity", "price", "y", "z")) +# Input 'mytable1_rows_current' was set, but doesn't have an input binding. +# Input 'mytable1_rows_all' was set, but doesn't have an input binding. +app$setInputs(show_vars = c("clarity", "price", "y", "z")) +# Input 'mytable1_rows_current' was set, but doesn't have an input binding. +# Input 'mytable1_rows_all' was set, but doesn't have an input binding. +app$setInputs(show_vars = c("price", "y", "z")) +# Input 'mytable1_rows_current' was set, but doesn't have an input binding. +# Input 'mytable1_rows_all' was set, but doesn't have an input binding. +app$setInputs(show_vars = c("y", "z")) +# Input 'mytable1_rows_current' was set, but doesn't have an input binding. +# Input 'mytable1_rows_all' was set, but doesn't have an input binding. +app$setInputs(show_vars = "z") +# Input 'mytable1_rows_current' was set, but doesn't have an input binding. +# Input 'mytable1_rows_all' was set, but doesn't have an input binding. +app$setInputs(show_vars = character(0)) +Sys.sleep(5) +app$snapshot() +app$setInputs(dataset = "mtcars") +Sys.sleep(5) +app$snapshot() +# Input 'mytable2_rows_current' was set, but doesn't have an input binding. +Sys.sleep(5) +app$snapshot() +# Input 'mytable2_rows_current' was set, but doesn't have an input binding. +# Input 'mytable2_rows_all' was set, but doesn't have an input binding. +# Input 'mytable2_search' was set, but doesn't have an input binding. +# Input 'mytable2_rows_current' was set, but doesn't have an input binding. +# Input 'mytable2_rows_all' was set, but doesn't have an input binding. +# Input 'mytable2_search' was set, but doesn't have an input binding. +Sys.sleep(5) +app$snapshot() +# Input 'mytable2_rows_current' was set, but doesn't have an input binding. +# Input 'mytable2_rows_all' was set, but doesn't have an input binding. +# Input 'mytable2_search' was set, but doesn't have an input binding. +# Input 'mytable2_rows_current' was set, but doesn't have an input binding. +# Input 'mytable2_rows_all' was set, but doesn't have an input binding. +# Input 'mytable2_search' was set, but doesn't have an input binding. +# Input 'mytable2_rows_current' was set, but doesn't have an input binding. +# Input 'mytable2_rows_all' was set, but doesn't have an input binding. +# Input 'mytable2_search' was set, but doesn't have an input binding. +# Input 'mytable2_rows_current' was set, but doesn't have an input binding. +# Input 'mytable2_rows_all' was set, but doesn't have an input binding. +# Input 'mytable2_search' was set, but doesn't have an input binding. +# Input 'mytable2_rows_current' was set, but doesn't have an input binding. +# Input 'mytable2_rows_all' was set, but doesn't have an input binding. +# Input 'mytable2_search' was set, but doesn't have an input binding. +app$snapshot() +app$setInputs(dataset = "iris") +Sys.sleep(5) +app$snapshot() diff --git a/013-selectize/tests/mytest-expected-mac/001.json b/013-selectize/tests/mytest-expected-mac/001.json new file mode 100644 index 00000000..151e8b43 --- /dev/null +++ b/013-selectize/tests/mytest-expected-mac/001.json @@ -0,0 +1,20 @@ +{ + "input": { + "e0": "Alabama", + "e1": "Alabama", + "e2": null, + "e3": "Alabama", + "e4": "Alabama", + "e5": null, + "e6": "", + "e7": "Alabama", + "github": "" + }, + "output": { + "ex_out": "List of 8\n $ e0: chr \"Alabama\"\n $ e1: chr \"Alabama\"\n $ e2: NULL\n $ e3: chr \"Alabama\"\n $ e4: chr \"Alabama\"\n $ e5: NULL\n $ e6: chr \"\"\n $ e7: chr \"Alabama\"", + "github": "You selected nothing in the Github example." + }, + "export": { + + } +} diff --git a/013-selectize/tests/mytest-expected-mac/001.png b/013-selectize/tests/mytest-expected-mac/001.png new file mode 100644 index 00000000..9046f422 Binary files /dev/null and b/013-selectize/tests/mytest-expected-mac/001.png differ diff --git a/013-selectize/tests/mytest-expected-mac/002.json b/013-selectize/tests/mytest-expected-mac/002.json new file mode 100644 index 00000000..355f5f37 --- /dev/null +++ b/013-selectize/tests/mytest-expected-mac/002.json @@ -0,0 +1,20 @@ +{ + "input": { + "e0": "California", + "e1": "Alabama", + "e2": null, + "e3": "Alabama", + "e4": "Alabama", + "e5": null, + "e6": "", + "e7": "Alabama", + "github": "" + }, + "output": { + "ex_out": "List of 8\n $ e0: chr \"California\"\n $ e1: chr \"Alabama\"\n $ e2: NULL\n $ e3: chr \"Alabama\"\n $ e4: chr \"Alabama\"\n $ e5: NULL\n $ e6: chr \"\"\n $ e7: chr \"Alabama\"", + "github": "You selected nothing in the Github example." + }, + "export": { + + } +} diff --git a/013-selectize/tests/mytest-expected-mac/002.png b/013-selectize/tests/mytest-expected-mac/002.png new file mode 100644 index 00000000..41126844 Binary files /dev/null and b/013-selectize/tests/mytest-expected-mac/002.png differ diff --git a/013-selectize/tests/mytest-expected-mac/003.json b/013-selectize/tests/mytest-expected-mac/003.json new file mode 100644 index 00000000..eaa7e856 --- /dev/null +++ b/013-selectize/tests/mytest-expected-mac/003.json @@ -0,0 +1,23 @@ +{ + "input": { + "e0": "California", + "e1": "Alabama", + "e2": null, + "e3": "Arizona", + "e4": "Alabama", + "e5": [ + "Colorado", + "Connecticut" + ], + "e6": "Arkansas", + "e7": "Arizona", + "github": "" + }, + "output": { + "ex_out": "List of 8\n $ e0: chr \"California\"\n $ e1: chr \"Alabama\"\n $ e2: NULL\n $ e3: chr \"Arizona\"\n $ e4: chr \"Alabama\"\n $ e5: chr [1:2] \"Colorado\" \"Connecticut\"\n $ e6: chr \"Arkansas\"\n $ e7: chr \"Arizona\"", + "github": "You selected nothing in the Github example." + }, + "export": { + + } +} diff --git a/013-selectize/tests/mytest-expected-mac/003.png b/013-selectize/tests/mytest-expected-mac/003.png new file mode 100644 index 00000000..ec74c5a2 Binary files /dev/null and b/013-selectize/tests/mytest-expected-mac/003.png differ diff --git a/013-selectize/tests/mytest-expected-mac/004.json b/013-selectize/tests/mytest-expected-mac/004.json new file mode 100644 index 00000000..eaa7e856 --- /dev/null +++ b/013-selectize/tests/mytest-expected-mac/004.json @@ -0,0 +1,23 @@ +{ + "input": { + "e0": "California", + "e1": "Alabama", + "e2": null, + "e3": "Arizona", + "e4": "Alabama", + "e5": [ + "Colorado", + "Connecticut" + ], + "e6": "Arkansas", + "e7": "Arizona", + "github": "" + }, + "output": { + "ex_out": "List of 8\n $ e0: chr \"California\"\n $ e1: chr \"Alabama\"\n $ e2: NULL\n $ e3: chr \"Arizona\"\n $ e4: chr \"Alabama\"\n $ e5: chr [1:2] \"Colorado\" \"Connecticut\"\n $ e6: chr \"Arkansas\"\n $ e7: chr \"Arizona\"", + "github": "You selected nothing in the Github example." + }, + "export": { + + } +} diff --git a/013-selectize/tests/mytest-expected-mac/004.png b/013-selectize/tests/mytest-expected-mac/004.png new file mode 100644 index 00000000..ec74c5a2 Binary files /dev/null and b/013-selectize/tests/mytest-expected-mac/004.png differ diff --git a/013-selectize/tests/mytest-expected-mac/005.json b/013-selectize/tests/mytest-expected-mac/005.json new file mode 100644 index 00000000..a0a704a9 --- /dev/null +++ b/013-selectize/tests/mytest-expected-mac/005.json @@ -0,0 +1,23 @@ +{ + "input": { + "e0": "California", + "e1": "Alabama", + "e2": "California", + "e3": "Arizona", + "e4": "Alabama", + "e5": [ + "Colorado", + "Connecticut" + ], + "e6": "Arkansas", + "e7": "Arizona", + "github": "" + }, + "output": { + "ex_out": "List of 8\n $ e0: chr \"California\"\n $ e1: chr \"Alabama\"\n $ e2: chr \"California\"\n $ e3: chr \"Arizona\"\n $ e4: chr \"Alabama\"\n $ e5: chr [1:2] \"Colorado\" \"Connecticut\"\n $ e6: chr \"Arkansas\"\n $ e7: chr \"Arizona\"", + "github": "You selected nothing in the Github example." + }, + "export": { + + } +} diff --git a/013-selectize/tests/mytest-expected-mac/005.png b/013-selectize/tests/mytest-expected-mac/005.png new file mode 100644 index 00000000..c2052a6f Binary files /dev/null and b/013-selectize/tests/mytest-expected-mac/005.png differ diff --git a/013-selectize/tests/mytest-expected-mac/006.json b/013-selectize/tests/mytest-expected-mac/006.json new file mode 100644 index 00000000..646eb104 --- /dev/null +++ b/013-selectize/tests/mytest-expected-mac/006.json @@ -0,0 +1,23 @@ +{ + "input": { + "e0": "California", + "e1": "Alabama", + "e2": "California", + "e3": "Arizona", + "e4": "Arizona", + "e5": [ + "Colorado", + "Connecticut" + ], + "e6": "Arkansas", + "e7": "Arizona", + "github": "" + }, + "output": { + "ex_out": "List of 8\n $ e0: chr \"California\"\n $ e1: chr \"Alabama\"\n $ e2: chr \"California\"\n $ e3: chr \"Arizona\"\n $ e4: chr \"Arizona\"\n $ e5: chr [1:2] \"Colorado\" \"Connecticut\"\n $ e6: chr \"Arkansas\"\n $ e7: chr \"Arizona\"", + "github": "You selected nothing in the Github example." + }, + "export": { + + } +} diff --git a/013-selectize/tests/mytest-expected-mac/006.png b/013-selectize/tests/mytest-expected-mac/006.png new file mode 100644 index 00000000..9a3a780f Binary files /dev/null and b/013-selectize/tests/mytest-expected-mac/006.png differ diff --git a/013-selectize/tests/mytest-expected-mac/007.json b/013-selectize/tests/mytest-expected-mac/007.json new file mode 100644 index 00000000..646eb104 --- /dev/null +++ b/013-selectize/tests/mytest-expected-mac/007.json @@ -0,0 +1,23 @@ +{ + "input": { + "e0": "California", + "e1": "Alabama", + "e2": "California", + "e3": "Arizona", + "e4": "Arizona", + "e5": [ + "Colorado", + "Connecticut" + ], + "e6": "Arkansas", + "e7": "Arizona", + "github": "" + }, + "output": { + "ex_out": "List of 8\n $ e0: chr \"California\"\n $ e1: chr \"Alabama\"\n $ e2: chr \"California\"\n $ e3: chr \"Arizona\"\n $ e4: chr \"Arizona\"\n $ e5: chr [1:2] \"Colorado\" \"Connecticut\"\n $ e6: chr \"Arkansas\"\n $ e7: chr \"Arizona\"", + "github": "You selected nothing in the Github example." + }, + "export": { + + } +} diff --git a/013-selectize/tests/mytest-expected-mac/007.png b/013-selectize/tests/mytest-expected-mac/007.png new file mode 100644 index 00000000..9a3a780f Binary files /dev/null and b/013-selectize/tests/mytest-expected-mac/007.png differ diff --git a/013-selectize/tests/mytest-expected/001.json b/013-selectize/tests/mytest-expected/001.json new file mode 100644 index 00000000..151e8b43 --- /dev/null +++ b/013-selectize/tests/mytest-expected/001.json @@ -0,0 +1,20 @@ +{ + "input": { + "e0": "Alabama", + "e1": "Alabama", + "e2": null, + "e3": "Alabama", + "e4": "Alabama", + "e5": null, + "e6": "", + "e7": "Alabama", + "github": "" + }, + "output": { + "ex_out": "List of 8\n $ e0: chr \"Alabama\"\n $ e1: chr \"Alabama\"\n $ e2: NULL\n $ e3: chr \"Alabama\"\n $ e4: chr \"Alabama\"\n $ e5: NULL\n $ e6: chr \"\"\n $ e7: chr \"Alabama\"", + "github": "You selected nothing in the Github example." + }, + "export": { + + } +} diff --git a/013-selectize/tests/mytest-expected/001.png b/013-selectize/tests/mytest-expected/001.png new file mode 100644 index 00000000..9046f422 Binary files /dev/null and b/013-selectize/tests/mytest-expected/001.png differ diff --git a/013-selectize/tests/mytest-expected/002.json b/013-selectize/tests/mytest-expected/002.json new file mode 100644 index 00000000..355f5f37 --- /dev/null +++ b/013-selectize/tests/mytest-expected/002.json @@ -0,0 +1,20 @@ +{ + "input": { + "e0": "California", + "e1": "Alabama", + "e2": null, + "e3": "Alabama", + "e4": "Alabama", + "e5": null, + "e6": "", + "e7": "Alabama", + "github": "" + }, + "output": { + "ex_out": "List of 8\n $ e0: chr \"California\"\n $ e1: chr \"Alabama\"\n $ e2: NULL\n $ e3: chr \"Alabama\"\n $ e4: chr \"Alabama\"\n $ e5: NULL\n $ e6: chr \"\"\n $ e7: chr \"Alabama\"", + "github": "You selected nothing in the Github example." + }, + "export": { + + } +} diff --git a/013-selectize/tests/mytest-expected/002.png b/013-selectize/tests/mytest-expected/002.png new file mode 100644 index 00000000..41126844 Binary files /dev/null and b/013-selectize/tests/mytest-expected/002.png differ diff --git a/013-selectize/tests/mytest-expected/003.json b/013-selectize/tests/mytest-expected/003.json new file mode 100644 index 00000000..eaa7e856 --- /dev/null +++ b/013-selectize/tests/mytest-expected/003.json @@ -0,0 +1,23 @@ +{ + "input": { + "e0": "California", + "e1": "Alabama", + "e2": null, + "e3": "Arizona", + "e4": "Alabama", + "e5": [ + "Colorado", + "Connecticut" + ], + "e6": "Arkansas", + "e7": "Arizona", + "github": "" + }, + "output": { + "ex_out": "List of 8\n $ e0: chr \"California\"\n $ e1: chr \"Alabama\"\n $ e2: NULL\n $ e3: chr \"Arizona\"\n $ e4: chr \"Alabama\"\n $ e5: chr [1:2] \"Colorado\" \"Connecticut\"\n $ e6: chr \"Arkansas\"\n $ e7: chr \"Arizona\"", + "github": "You selected nothing in the Github example." + }, + "export": { + + } +} diff --git a/013-selectize/tests/mytest-expected/003.png b/013-selectize/tests/mytest-expected/003.png new file mode 100644 index 00000000..ec74c5a2 Binary files /dev/null and b/013-selectize/tests/mytest-expected/003.png differ diff --git a/013-selectize/tests/mytest-expected/004.json b/013-selectize/tests/mytest-expected/004.json new file mode 100644 index 00000000..eaa7e856 --- /dev/null +++ b/013-selectize/tests/mytest-expected/004.json @@ -0,0 +1,23 @@ +{ + "input": { + "e0": "California", + "e1": "Alabama", + "e2": null, + "e3": "Arizona", + "e4": "Alabama", + "e5": [ + "Colorado", + "Connecticut" + ], + "e6": "Arkansas", + "e7": "Arizona", + "github": "" + }, + "output": { + "ex_out": "List of 8\n $ e0: chr \"California\"\n $ e1: chr \"Alabama\"\n $ e2: NULL\n $ e3: chr \"Arizona\"\n $ e4: chr \"Alabama\"\n $ e5: chr [1:2] \"Colorado\" \"Connecticut\"\n $ e6: chr \"Arkansas\"\n $ e7: chr \"Arizona\"", + "github": "You selected nothing in the Github example." + }, + "export": { + + } +} diff --git a/013-selectize/tests/mytest-expected/004.png b/013-selectize/tests/mytest-expected/004.png new file mode 100644 index 00000000..ec74c5a2 Binary files /dev/null and b/013-selectize/tests/mytest-expected/004.png differ diff --git a/013-selectize/tests/mytest-expected/005.json b/013-selectize/tests/mytest-expected/005.json new file mode 100644 index 00000000..a0a704a9 --- /dev/null +++ b/013-selectize/tests/mytest-expected/005.json @@ -0,0 +1,23 @@ +{ + "input": { + "e0": "California", + "e1": "Alabama", + "e2": "California", + "e3": "Arizona", + "e4": "Alabama", + "e5": [ + "Colorado", + "Connecticut" + ], + "e6": "Arkansas", + "e7": "Arizona", + "github": "" + }, + "output": { + "ex_out": "List of 8\n $ e0: chr \"California\"\n $ e1: chr \"Alabama\"\n $ e2: chr \"California\"\n $ e3: chr \"Arizona\"\n $ e4: chr \"Alabama\"\n $ e5: chr [1:2] \"Colorado\" \"Connecticut\"\n $ e6: chr \"Arkansas\"\n $ e7: chr \"Arizona\"", + "github": "You selected nothing in the Github example." + }, + "export": { + + } +} diff --git a/013-selectize/tests/mytest-expected/005.png b/013-selectize/tests/mytest-expected/005.png new file mode 100644 index 00000000..c2052a6f Binary files /dev/null and b/013-selectize/tests/mytest-expected/005.png differ diff --git a/013-selectize/tests/mytest-expected/006.json b/013-selectize/tests/mytest-expected/006.json new file mode 100644 index 00000000..646eb104 --- /dev/null +++ b/013-selectize/tests/mytest-expected/006.json @@ -0,0 +1,23 @@ +{ + "input": { + "e0": "California", + "e1": "Alabama", + "e2": "California", + "e3": "Arizona", + "e4": "Arizona", + "e5": [ + "Colorado", + "Connecticut" + ], + "e6": "Arkansas", + "e7": "Arizona", + "github": "" + }, + "output": { + "ex_out": "List of 8\n $ e0: chr \"California\"\n $ e1: chr \"Alabama\"\n $ e2: chr \"California\"\n $ e3: chr \"Arizona\"\n $ e4: chr \"Arizona\"\n $ e5: chr [1:2] \"Colorado\" \"Connecticut\"\n $ e6: chr \"Arkansas\"\n $ e7: chr \"Arizona\"", + "github": "You selected nothing in the Github example." + }, + "export": { + + } +} diff --git a/013-selectize/tests/mytest-expected/006.png b/013-selectize/tests/mytest-expected/006.png new file mode 100644 index 00000000..9a3a780f Binary files /dev/null and b/013-selectize/tests/mytest-expected/006.png differ diff --git a/013-selectize/tests/mytest-expected/007.json b/013-selectize/tests/mytest-expected/007.json new file mode 100644 index 00000000..646eb104 --- /dev/null +++ b/013-selectize/tests/mytest-expected/007.json @@ -0,0 +1,23 @@ +{ + "input": { + "e0": "California", + "e1": "Alabama", + "e2": "California", + "e3": "Arizona", + "e4": "Arizona", + "e5": [ + "Colorado", + "Connecticut" + ], + "e6": "Arkansas", + "e7": "Arizona", + "github": "" + }, + "output": { + "ex_out": "List of 8\n $ e0: chr \"California\"\n $ e1: chr \"Alabama\"\n $ e2: chr \"California\"\n $ e3: chr \"Arizona\"\n $ e4: chr \"Arizona\"\n $ e5: chr [1:2] \"Colorado\" \"Connecticut\"\n $ e6: chr \"Arkansas\"\n $ e7: chr \"Arizona\"", + "github": "You selected nothing in the Github example." + }, + "export": { + + } +} diff --git a/013-selectize/tests/mytest-expected/007.png b/013-selectize/tests/mytest-expected/007.png new file mode 100644 index 00000000..9a3a780f Binary files /dev/null and b/013-selectize/tests/mytest-expected/007.png differ diff --git a/013-selectize/tests/mytest.R b/013-selectize/tests/mytest.R new file mode 100644 index 00000000..810c31f9 --- /dev/null +++ b/013-selectize/tests/mytest.R @@ -0,0 +1,18 @@ +app <- ShinyDriver$new("../", seed = 100,shinyOptions = list(display.mode = "normal")) +app$snapshotInit("mytest") + +app$snapshot() +app$setInputs(e0 = "California") +app$snapshot() +app$setInputs(e3 = "Arizona") +app$setInputs(e5 = "Colorado") +app$setInputs(e5 = c("Colorado", "Connecticut")) +app$setInputs(e6 = "Arkansas") +app$setInputs(e7 = "Arizona") +app$snapshot() +app$snapshot() +app$setInputs(e2 = "California") +app$snapshot() +app$setInputs(e4 = "Arizona") +app$snapshot() +app$snapshot() diff --git a/014-onflushed/tests/mytest-expected-mac/001.json b/014-onflushed/tests/mytest-expected-mac/001.json new file mode 100644 index 00000000..f3447b80 --- /dev/null +++ b/014-onflushed/tests/mytest-expected-mac/001.json @@ -0,0 +1,46 @@ +{ + "input": { + + }, + "output": { + "fast": "This happens right away", + "slow": "This happens later", + "slow_plot": { + "src": "[image data sha1: 6f1f5d658febcb641b10c6b4959b8792a393abe8]", + "width": 962, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": -3998.96, + "right": 103999.96, + "bottom": -4.8695901386867, + "top": 4.71835238936957 + }, + "range": { + "left": 59.04, + "right": 931.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 962, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/014-onflushed/tests/mytest-expected-mac/001.png b/014-onflushed/tests/mytest-expected-mac/001.png new file mode 100644 index 00000000..656412fe Binary files /dev/null and b/014-onflushed/tests/mytest-expected-mac/001.png differ diff --git a/014-onflushed/tests/mytest-expected/001.json b/014-onflushed/tests/mytest-expected/001.json new file mode 100644 index 00000000..f3447b80 --- /dev/null +++ b/014-onflushed/tests/mytest-expected/001.json @@ -0,0 +1,46 @@ +{ + "input": { + + }, + "output": { + "fast": "This happens right away", + "slow": "This happens later", + "slow_plot": { + "src": "[image data sha1: 6f1f5d658febcb641b10c6b4959b8792a393abe8]", + "width": 962, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": -3998.96, + "right": 103999.96, + "bottom": -4.8695901386867, + "top": 4.71835238936957 + }, + "range": { + "left": 59.04, + "right": 931.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 962, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/014-onflushed/tests/mytest-expected/001.png b/014-onflushed/tests/mytest-expected/001.png new file mode 100644 index 00000000..656412fe Binary files /dev/null and b/014-onflushed/tests/mytest-expected/001.png differ diff --git a/014-onflushed/tests/mytest.R b/014-onflushed/tests/mytest.R new file mode 100644 index 00000000..5a910602 --- /dev/null +++ b/014-onflushed/tests/mytest.R @@ -0,0 +1,5 @@ +app <- ShinyDriver$new("../", seed = 100,shinyOptions = list(display.mode = "normal")) +Sys.sleep(2) +app$snapshotInit("mytest") +Sys.sleep(2) +app$snapshot() diff --git a/015-layout-navbar/tests/mytest-expected-mac/001.json b/015-layout-navbar/tests/mytest-expected-mac/001.json new file mode 100644 index 00000000..8cfa0eb9 --- /dev/null +++ b/015-layout-navbar/tests/mytest-expected-mac/001.json @@ -0,0 +1,11 @@ +{ + "input": { + + }, + "output": { + + }, + "export": { + + } +} diff --git a/015-layout-navbar/tests/mytest-expected-mac/001.png b/015-layout-navbar/tests/mytest-expected-mac/001.png new file mode 100644 index 00000000..c61aea58 Binary files /dev/null and b/015-layout-navbar/tests/mytest-expected-mac/001.png differ diff --git a/015-layout-navbar/tests/mytest-expected-mac/002.json b/015-layout-navbar/tests/mytest-expected-mac/002.json new file mode 100644 index 00000000..8cfa0eb9 --- /dev/null +++ b/015-layout-navbar/tests/mytest-expected-mac/002.json @@ -0,0 +1,11 @@ +{ + "input": { + + }, + "output": { + + }, + "export": { + + } +} diff --git a/015-layout-navbar/tests/mytest-expected-mac/002.png b/015-layout-navbar/tests/mytest-expected-mac/002.png new file mode 100644 index 00000000..c61aea58 Binary files /dev/null and b/015-layout-navbar/tests/mytest-expected-mac/002.png differ diff --git a/015-layout-navbar/tests/mytest-expected-mac/003.json b/015-layout-navbar/tests/mytest-expected-mac/003.json new file mode 100644 index 00000000..8cfa0eb9 --- /dev/null +++ b/015-layout-navbar/tests/mytest-expected-mac/003.json @@ -0,0 +1,11 @@ +{ + "input": { + + }, + "output": { + + }, + "export": { + + } +} diff --git a/015-layout-navbar/tests/mytest-expected-mac/003.png b/015-layout-navbar/tests/mytest-expected-mac/003.png new file mode 100644 index 00000000..c61aea58 Binary files /dev/null and b/015-layout-navbar/tests/mytest-expected-mac/003.png differ diff --git a/015-layout-navbar/tests/mytest-expected/001.json b/015-layout-navbar/tests/mytest-expected/001.json new file mode 100644 index 00000000..8cfa0eb9 --- /dev/null +++ b/015-layout-navbar/tests/mytest-expected/001.json @@ -0,0 +1,11 @@ +{ + "input": { + + }, + "output": { + + }, + "export": { + + } +} diff --git a/015-layout-navbar/tests/mytest-expected/001.png b/015-layout-navbar/tests/mytest-expected/001.png new file mode 100644 index 00000000..c61aea58 Binary files /dev/null and b/015-layout-navbar/tests/mytest-expected/001.png differ diff --git a/015-layout-navbar/tests/mytest-expected/002.json b/015-layout-navbar/tests/mytest-expected/002.json new file mode 100644 index 00000000..8cfa0eb9 --- /dev/null +++ b/015-layout-navbar/tests/mytest-expected/002.json @@ -0,0 +1,11 @@ +{ + "input": { + + }, + "output": { + + }, + "export": { + + } +} diff --git a/015-layout-navbar/tests/mytest-expected/002.png b/015-layout-navbar/tests/mytest-expected/002.png new file mode 100644 index 00000000..c61aea58 Binary files /dev/null and b/015-layout-navbar/tests/mytest-expected/002.png differ diff --git a/015-layout-navbar/tests/mytest-expected/003.json b/015-layout-navbar/tests/mytest-expected/003.json new file mode 100644 index 00000000..8cfa0eb9 --- /dev/null +++ b/015-layout-navbar/tests/mytest-expected/003.json @@ -0,0 +1,11 @@ +{ + "input": { + + }, + "output": { + + }, + "export": { + + } +} diff --git a/015-layout-navbar/tests/mytest-expected/003.png b/015-layout-navbar/tests/mytest-expected/003.png new file mode 100644 index 00000000..c61aea58 Binary files /dev/null and b/015-layout-navbar/tests/mytest-expected/003.png differ diff --git a/015-layout-navbar/tests/mytest.R b/015-layout-navbar/tests/mytest.R new file mode 100644 index 00000000..464d9b35 --- /dev/null +++ b/015-layout-navbar/tests/mytest.R @@ -0,0 +1,6 @@ +app <- ShinyDriver$new("../", seed = 100,shinyOptions = list(display.mode = "normal")) +app$snapshotInit("mytest") + +app$snapshot() +app$snapshot() +app$snapshot() diff --git a/015-layout-sidebar/tests/mytest-expected-mac/001.json b/015-layout-sidebar/tests/mytest-expected-mac/001.json new file mode 100644 index 00000000..6347348b --- /dev/null +++ b/015-layout-sidebar/tests/mytest-expected-mac/001.json @@ -0,0 +1,44 @@ +{ + "input": { + "bins": 30 + }, + "output": { + "distPlot": { + "src": "[image data sha1: 3ce39553450df5629db9fa48dae1f91072975f9f]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 40.88, + "right": 98.12, + "bottom": -1.08, + "top": 28.08 + }, + "range": { + "left": 59.04, + "right": 600.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/015-layout-sidebar/tests/mytest-expected-mac/001.png b/015-layout-sidebar/tests/mytest-expected-mac/001.png new file mode 100644 index 00000000..826a7b6d Binary files /dev/null and b/015-layout-sidebar/tests/mytest-expected-mac/001.png differ diff --git a/015-layout-sidebar/tests/mytest-expected-mac/002.json b/015-layout-sidebar/tests/mytest-expected-mac/002.json new file mode 100644 index 00000000..a0ad6029 --- /dev/null +++ b/015-layout-sidebar/tests/mytest-expected-mac/002.json @@ -0,0 +1,44 @@ +{ + "input": { + "bins": 50 + }, + "output": { + "distPlot": { + "src": "[image data sha1: fc4af1aeb8ea496c68a269c55cff98a288e49e61]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 40.88, + "right": 98.12, + "bottom": -1, + "top": 26 + }, + "range": { + "left": 59.04, + "right": 600.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/015-layout-sidebar/tests/mytest-expected-mac/002.png b/015-layout-sidebar/tests/mytest-expected-mac/002.png new file mode 100644 index 00000000..8463ba1e Binary files /dev/null and b/015-layout-sidebar/tests/mytest-expected-mac/002.png differ diff --git a/015-layout-sidebar/tests/mytest-expected-mac/003.json b/015-layout-sidebar/tests/mytest-expected-mac/003.json new file mode 100644 index 00000000..76b29eed --- /dev/null +++ b/015-layout-sidebar/tests/mytest-expected-mac/003.json @@ -0,0 +1,44 @@ +{ + "input": { + "bins": 1 + }, + "output": { + "distPlot": { + "src": "[image data sha1: 1ea1693930ed6244c86b9407230001929d7426ea]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 40.88, + "right": 98.12, + "bottom": -10.88, + "top": 282.88 + }, + "range": { + "left": 59.04, + "right": 600.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/015-layout-sidebar/tests/mytest-expected-mac/003.png b/015-layout-sidebar/tests/mytest-expected-mac/003.png new file mode 100644 index 00000000..e693a6bc Binary files /dev/null and b/015-layout-sidebar/tests/mytest-expected-mac/003.png differ diff --git a/015-layout-sidebar/tests/mytest-expected-mac/004.json b/015-layout-sidebar/tests/mytest-expected-mac/004.json new file mode 100644 index 00000000..003f07fb --- /dev/null +++ b/015-layout-sidebar/tests/mytest-expected-mac/004.json @@ -0,0 +1,44 @@ +{ + "input": { + "bins": 36 + }, + "output": { + "distPlot": { + "src": "[image data sha1: ffa0ca535bb0db6ad4291171c607ae58c8804914]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 40.88, + "right": 98.12, + "bottom": -1.08, + "top": 28.08 + }, + "range": { + "left": 59.04, + "right": 600.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/015-layout-sidebar/tests/mytest-expected-mac/004.png b/015-layout-sidebar/tests/mytest-expected-mac/004.png new file mode 100644 index 00000000..fbac151c Binary files /dev/null and b/015-layout-sidebar/tests/mytest-expected-mac/004.png differ diff --git a/015-layout-sidebar/tests/mytest-expected-mac/005.json b/015-layout-sidebar/tests/mytest-expected-mac/005.json new file mode 100644 index 00000000..b99fe017 --- /dev/null +++ b/015-layout-sidebar/tests/mytest-expected-mac/005.json @@ -0,0 +1,44 @@ +{ + "input": { + "bins": 16 + }, + "output": { + "distPlot": { + "src": "[image data sha1: 591cb8ef3ee01f6066e10081ee96499c2b3f8ffc]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 40.88, + "right": 98.12, + "bottom": -1.48, + "top": 38.48 + }, + "range": { + "left": 59.04, + "right": 600.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/015-layout-sidebar/tests/mytest-expected-mac/005.png b/015-layout-sidebar/tests/mytest-expected-mac/005.png new file mode 100644 index 00000000..4ed88b88 Binary files /dev/null and b/015-layout-sidebar/tests/mytest-expected-mac/005.png differ diff --git a/015-layout-sidebar/tests/mytest-expected/001.json b/015-layout-sidebar/tests/mytest-expected/001.json new file mode 100644 index 00000000..6347348b --- /dev/null +++ b/015-layout-sidebar/tests/mytest-expected/001.json @@ -0,0 +1,44 @@ +{ + "input": { + "bins": 30 + }, + "output": { + "distPlot": { + "src": "[image data sha1: 3ce39553450df5629db9fa48dae1f91072975f9f]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 40.88, + "right": 98.12, + "bottom": -1.08, + "top": 28.08 + }, + "range": { + "left": 59.04, + "right": 600.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/015-layout-sidebar/tests/mytest-expected/001.png b/015-layout-sidebar/tests/mytest-expected/001.png new file mode 100644 index 00000000..826a7b6d Binary files /dev/null and b/015-layout-sidebar/tests/mytest-expected/001.png differ diff --git a/015-layout-sidebar/tests/mytest-expected/002.json b/015-layout-sidebar/tests/mytest-expected/002.json new file mode 100644 index 00000000..a0ad6029 --- /dev/null +++ b/015-layout-sidebar/tests/mytest-expected/002.json @@ -0,0 +1,44 @@ +{ + "input": { + "bins": 50 + }, + "output": { + "distPlot": { + "src": "[image data sha1: fc4af1aeb8ea496c68a269c55cff98a288e49e61]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 40.88, + "right": 98.12, + "bottom": -1, + "top": 26 + }, + "range": { + "left": 59.04, + "right": 600.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/015-layout-sidebar/tests/mytest-expected/002.png b/015-layout-sidebar/tests/mytest-expected/002.png new file mode 100644 index 00000000..8463ba1e Binary files /dev/null and b/015-layout-sidebar/tests/mytest-expected/002.png differ diff --git a/015-layout-sidebar/tests/mytest-expected/003.json b/015-layout-sidebar/tests/mytest-expected/003.json new file mode 100644 index 00000000..76b29eed --- /dev/null +++ b/015-layout-sidebar/tests/mytest-expected/003.json @@ -0,0 +1,44 @@ +{ + "input": { + "bins": 1 + }, + "output": { + "distPlot": { + "src": "[image data sha1: 1ea1693930ed6244c86b9407230001929d7426ea]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 40.88, + "right": 98.12, + "bottom": -10.88, + "top": 282.88 + }, + "range": { + "left": 59.04, + "right": 600.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/015-layout-sidebar/tests/mytest-expected/003.png b/015-layout-sidebar/tests/mytest-expected/003.png new file mode 100644 index 00000000..e693a6bc Binary files /dev/null and b/015-layout-sidebar/tests/mytest-expected/003.png differ diff --git a/015-layout-sidebar/tests/mytest-expected/004.json b/015-layout-sidebar/tests/mytest-expected/004.json new file mode 100644 index 00000000..003f07fb --- /dev/null +++ b/015-layout-sidebar/tests/mytest-expected/004.json @@ -0,0 +1,44 @@ +{ + "input": { + "bins": 36 + }, + "output": { + "distPlot": { + "src": "[image data sha1: ffa0ca535bb0db6ad4291171c607ae58c8804914]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 40.88, + "right": 98.12, + "bottom": -1.08, + "top": 28.08 + }, + "range": { + "left": 59.04, + "right": 600.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/015-layout-sidebar/tests/mytest-expected/004.png b/015-layout-sidebar/tests/mytest-expected/004.png new file mode 100644 index 00000000..fbac151c Binary files /dev/null and b/015-layout-sidebar/tests/mytest-expected/004.png differ diff --git a/015-layout-sidebar/tests/mytest-expected/005.json b/015-layout-sidebar/tests/mytest-expected/005.json new file mode 100644 index 00000000..b99fe017 --- /dev/null +++ b/015-layout-sidebar/tests/mytest-expected/005.json @@ -0,0 +1,44 @@ +{ + "input": { + "bins": 16 + }, + "output": { + "distPlot": { + "src": "[image data sha1: 591cb8ef3ee01f6066e10081ee96499c2b3f8ffc]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 40.88, + "right": 98.12, + "bottom": -1.48, + "top": 38.48 + }, + "range": { + "left": 59.04, + "right": 600.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/015-layout-sidebar/tests/mytest-expected/005.png b/015-layout-sidebar/tests/mytest-expected/005.png new file mode 100644 index 00000000..4ed88b88 Binary files /dev/null and b/015-layout-sidebar/tests/mytest-expected/005.png differ diff --git a/015-layout-sidebar/tests/mytest.R b/015-layout-sidebar/tests/mytest.R new file mode 100644 index 00000000..c5f540c2 --- /dev/null +++ b/015-layout-sidebar/tests/mytest.R @@ -0,0 +1,13 @@ +app <- ShinyDriver$new("../", seed = 100,shinyOptions = list(display.mode = "normal")) +app$snapshotInit("mytest") + +app$snapshot() +app$setInputs(bins = 50) +app$snapshot() +app$setInputs(bins = 1) +app$snapshot() +app$setInputs(bins = 36) +app$snapshot() +app$setInputs(bins = 17) +app$setInputs(bins = 16) +app$snapshot() diff --git a/016-knitr-pdf/report.Rmd b/016-knitr-pdf/report.Rmd index cc7e8788..a3e10581 100644 --- a/016-knitr-pdf/report.Rmd +++ b/016-knitr-pdf/report.Rmd @@ -1,3 +1,8 @@ +--- +output: + html_document: default + pdf_document: default +--- Here is my regression model: ```{r model, collapse=TRUE} diff --git a/016-knitr-pdf/tests/mytest-expected-mac/001.json b/016-knitr-pdf/tests/mytest-expected-mac/001.json new file mode 100644 index 00000000..61282657 --- /dev/null +++ b/016-knitr-pdf/tests/mytest-expected-mac/001.json @@ -0,0 +1,45 @@ +{ + "input": { + "format": "PDF", + "x": "cyl" + }, + "output": { + "regPlot": { + "src": "[image data sha1: 3c5be64d8746ad500886518fe05314d85026f923]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 3.84, + "right": 8.16, + "bottom": 9.46, + "top": 34.84 + }, + "range": { + "left": 57.6, + "right": 629.56, + "bottom": 341.4, + "top": 0.440000000000019 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/016-knitr-pdf/tests/mytest-expected-mac/001.png b/016-knitr-pdf/tests/mytest-expected-mac/001.png new file mode 100644 index 00000000..1b1b8108 Binary files /dev/null and b/016-knitr-pdf/tests/mytest-expected-mac/001.png differ diff --git a/016-knitr-pdf/tests/mytest-expected-mac/002.json b/016-knitr-pdf/tests/mytest-expected-mac/002.json new file mode 100644 index 00000000..a65d43f1 --- /dev/null +++ b/016-knitr-pdf/tests/mytest-expected-mac/002.json @@ -0,0 +1,45 @@ +{ + "input": { + "format": "HTML", + "x": "cyl" + }, + "output": { + "regPlot": { + "src": "[image data sha1: 3c5be64d8746ad500886518fe05314d85026f923]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 3.84, + "right": 8.16, + "bottom": 9.46, + "top": 34.84 + }, + "range": { + "left": 57.6, + "right": 629.56, + "bottom": 341.4, + "top": 0.440000000000019 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/016-knitr-pdf/tests/mytest-expected-mac/002.png b/016-knitr-pdf/tests/mytest-expected-mac/002.png new file mode 100644 index 00000000..54b9e866 Binary files /dev/null and b/016-knitr-pdf/tests/mytest-expected-mac/002.png differ diff --git a/016-knitr-pdf/tests/mytest-expected-mac/003.json b/016-knitr-pdf/tests/mytest-expected-mac/003.json new file mode 100644 index 00000000..da1de1a9 --- /dev/null +++ b/016-knitr-pdf/tests/mytest-expected-mac/003.json @@ -0,0 +1,45 @@ +{ + "input": { + "format": "Word", + "x": "cyl" + }, + "output": { + "regPlot": { + "src": "[image data sha1: 3c5be64d8746ad500886518fe05314d85026f923]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 3.84, + "right": 8.16, + "bottom": 9.46, + "top": 34.84 + }, + "range": { + "left": 57.6, + "right": 629.56, + "bottom": 341.4, + "top": 0.440000000000019 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/016-knitr-pdf/tests/mytest-expected-mac/003.png b/016-knitr-pdf/tests/mytest-expected-mac/003.png new file mode 100644 index 00000000..462052ca Binary files /dev/null and b/016-knitr-pdf/tests/mytest-expected-mac/003.png differ diff --git a/016-knitr-pdf/tests/mytest-expected-mac/004.json b/016-knitr-pdf/tests/mytest-expected-mac/004.json new file mode 100644 index 00000000..aa63a265 --- /dev/null +++ b/016-knitr-pdf/tests/mytest-expected-mac/004.json @@ -0,0 +1,45 @@ +{ + "input": { + "format": "PDF", + "x": "disp" + }, + "output": { + "regPlot": { + "src": "[image data sha1: a9288bbd0fa80de9b3d9ff986de552d030a02dfa]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 55.064, + "right": 488.036, + "bottom": 9.46, + "top": 34.84 + }, + "range": { + "left": 57.6, + "right": 629.56, + "bottom": 341.4, + "top": 0.440000000000019 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/016-knitr-pdf/tests/mytest-expected-mac/004.png b/016-knitr-pdf/tests/mytest-expected-mac/004.png new file mode 100644 index 00000000..6296ee29 Binary files /dev/null and b/016-knitr-pdf/tests/mytest-expected-mac/004.png differ diff --git a/016-knitr-pdf/tests/mytest-expected-mac/005.json b/016-knitr-pdf/tests/mytest-expected-mac/005.json new file mode 100644 index 00000000..364bc245 --- /dev/null +++ b/016-knitr-pdf/tests/mytest-expected-mac/005.json @@ -0,0 +1,45 @@ +{ + "input": { + "format": "PDF", + "x": "drat" + }, + "output": { + "regPlot": { + "src": "[image data sha1: 6f374822dfc5aefd4a20da93cae4e06fadfff4f7]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 2.6732, + "right": 5.0168, + "bottom": 9.46, + "top": 34.84 + }, + "range": { + "left": 57.6, + "right": 629.56, + "bottom": 341.4, + "top": 0.440000000000019 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/016-knitr-pdf/tests/mytest-expected-mac/005.png b/016-knitr-pdf/tests/mytest-expected-mac/005.png new file mode 100644 index 00000000..97b3788b Binary files /dev/null and b/016-knitr-pdf/tests/mytest-expected-mac/005.png differ diff --git a/016-knitr-pdf/tests/mytest-expected-mac/006.json b/016-knitr-pdf/tests/mytest-expected-mac/006.json new file mode 100644 index 00000000..019d609d --- /dev/null +++ b/016-knitr-pdf/tests/mytest-expected-mac/006.json @@ -0,0 +1,45 @@ +{ + "input": { + "format": "PDF", + "x": "carb" + }, + "output": { + "regPlot": { + "src": "[image data sha1: cca33d7b4ac0bc6b456fe5cad1a1a64b8c354e49]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 0.72, + "right": 8.28, + "bottom": 9.46, + "top": 34.84 + }, + "range": { + "left": 57.6, + "right": 629.56, + "bottom": 341.4, + "top": 0.440000000000019 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/016-knitr-pdf/tests/mytest-expected-mac/006.png b/016-knitr-pdf/tests/mytest-expected-mac/006.png new file mode 100644 index 00000000..c19f0070 Binary files /dev/null and b/016-knitr-pdf/tests/mytest-expected-mac/006.png differ diff --git a/016-knitr-pdf/tests/mytest-expected-mac/007.json b/016-knitr-pdf/tests/mytest-expected-mac/007.json new file mode 100644 index 00000000..24d07417 --- /dev/null +++ b/016-knitr-pdf/tests/mytest-expected-mac/007.json @@ -0,0 +1,45 @@ +{ + "input": { + "format": "PDF", + "x": "gear" + }, + "output": { + "regPlot": { + "src": "[image data sha1: d1ed3a213ba6a0868ce6b56919da12df25433953]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 2.92, + "right": 5.08, + "bottom": 9.46, + "top": 34.84 + }, + "range": { + "left": 57.5999999999999, + "right": 629.56, + "bottom": 341.4, + "top": 0.440000000000019 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/016-knitr-pdf/tests/mytest-expected-mac/007.png b/016-knitr-pdf/tests/mytest-expected-mac/007.png new file mode 100644 index 00000000..f02ba68b Binary files /dev/null and b/016-knitr-pdf/tests/mytest-expected-mac/007.png differ diff --git a/016-knitr-pdf/tests/mytest-expected-mac/008.json b/016-knitr-pdf/tests/mytest-expected-mac/008.json new file mode 100644 index 00000000..c0a7981b --- /dev/null +++ b/016-knitr-pdf/tests/mytest-expected-mac/008.json @@ -0,0 +1,45 @@ +{ + "input": { + "format": "PDF", + "x": "qsec" + }, + "output": { + "regPlot": { + "src": "[image data sha1: df80620c0978e5fdc3c0b6a7f68674436546ba2a]", + "width": 631, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 14.164, + "right": 23.236, + "bottom": 9.46, + "top": 34.84 + }, + "range": { + "left": 57.5999999999999, + "right": 629.56, + "bottom": 341.4, + "top": 0.440000000000019 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/016-knitr-pdf/tests/mytest-expected-mac/008.png b/016-knitr-pdf/tests/mytest-expected-mac/008.png new file mode 100644 index 00000000..21338d2b Binary files /dev/null and b/016-knitr-pdf/tests/mytest-expected-mac/008.png differ diff --git a/016-knitr-pdf/tests/mytest-expected-mac/009.download b/016-knitr-pdf/tests/mytest-expected-mac/009.download new file mode 100644 index 00000000..737114ad Binary files /dev/null and b/016-knitr-pdf/tests/mytest-expected-mac/009.download differ diff --git a/016-knitr-pdf/tests/mytest-expected/001.json b/016-knitr-pdf/tests/mytest-expected/001.json new file mode 100644 index 00000000..1e5f5fbc --- /dev/null +++ b/016-knitr-pdf/tests/mytest-expected/001.json @@ -0,0 +1,39 @@ +{ + "input": { + "format": "PDF", + "x": "cyl" + }, + "output": { + "regPlot": { + "src": "[image data sha1: 3c5be64d8746ad500886518fe05314d85026f923]", + "width": 631, + "height": 400, + "coordmap": [ + { + "domain": { + "left": 3.84, + "right": 8.16, + "bottom": 9.46, + "top": 34.84 + }, + "range": { + "left": 57.6, + "right": 629.56, + "bottom": 341.4, + "top": 0.440000000000019 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ] + } + }, + "export": { + + } +} diff --git a/016-knitr-pdf/tests/mytest-expected/001.png b/016-knitr-pdf/tests/mytest-expected/001.png new file mode 100644 index 00000000..6727088b Binary files /dev/null and b/016-knitr-pdf/tests/mytest-expected/001.png differ diff --git a/016-knitr-pdf/tests/mytest-expected/002.json b/016-knitr-pdf/tests/mytest-expected/002.json new file mode 100644 index 00000000..d0c57b83 --- /dev/null +++ b/016-knitr-pdf/tests/mytest-expected/002.json @@ -0,0 +1,39 @@ +{ + "input": { + "format": "HTML", + "x": "cyl" + }, + "output": { + "regPlot": { + "src": "[image data sha1: 3c5be64d8746ad500886518fe05314d85026f923]", + "width": 631, + "height": 400, + "coordmap": [ + { + "domain": { + "left": 3.84, + "right": 8.16, + "bottom": 9.46, + "top": 34.84 + }, + "range": { + "left": 57.6, + "right": 629.56, + "bottom": 341.4, + "top": 0.440000000000019 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ] + } + }, + "export": { + + } +} diff --git a/016-knitr-pdf/tests/mytest-expected/002.png b/016-knitr-pdf/tests/mytest-expected/002.png new file mode 100644 index 00000000..357dc6f2 Binary files /dev/null and b/016-knitr-pdf/tests/mytest-expected/002.png differ diff --git a/016-knitr-pdf/tests/mytest-expected/003.json b/016-knitr-pdf/tests/mytest-expected/003.json new file mode 100644 index 00000000..9918a57a --- /dev/null +++ b/016-knitr-pdf/tests/mytest-expected/003.json @@ -0,0 +1,39 @@ +{ + "input": { + "format": "Word", + "x": "cyl" + }, + "output": { + "regPlot": { + "src": "[image data sha1: 3c5be64d8746ad500886518fe05314d85026f923]", + "width": 631, + "height": 400, + "coordmap": [ + { + "domain": { + "left": 3.84, + "right": 8.16, + "bottom": 9.46, + "top": 34.84 + }, + "range": { + "left": 57.6, + "right": 629.56, + "bottom": 341.4, + "top": 0.440000000000019 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ] + } + }, + "export": { + + } +} diff --git a/016-knitr-pdf/tests/mytest-expected/003.png b/016-knitr-pdf/tests/mytest-expected/003.png new file mode 100644 index 00000000..7403a617 Binary files /dev/null and b/016-knitr-pdf/tests/mytest-expected/003.png differ diff --git a/016-knitr-pdf/tests/mytest-expected/004.json b/016-knitr-pdf/tests/mytest-expected/004.json new file mode 100644 index 00000000..751dd26f --- /dev/null +++ b/016-knitr-pdf/tests/mytest-expected/004.json @@ -0,0 +1,39 @@ +{ + "input": { + "format": "PDF", + "x": "disp" + }, + "output": { + "regPlot": { + "src": "[image data sha1: a9288bbd0fa80de9b3d9ff986de552d030a02dfa]", + "width": 631, + "height": 400, + "coordmap": [ + { + "domain": { + "left": 55.064, + "right": 488.036, + "bottom": 9.46, + "top": 34.84 + }, + "range": { + "left": 57.6, + "right": 629.56, + "bottom": 341.4, + "top": 0.440000000000019 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ] + } + }, + "export": { + + } +} diff --git a/016-knitr-pdf/tests/mytest-expected/004.png b/016-knitr-pdf/tests/mytest-expected/004.png new file mode 100644 index 00000000..1a5da72e Binary files /dev/null and b/016-knitr-pdf/tests/mytest-expected/004.png differ diff --git a/016-knitr-pdf/tests/mytest-expected/005.json b/016-knitr-pdf/tests/mytest-expected/005.json new file mode 100644 index 00000000..8deff157 --- /dev/null +++ b/016-knitr-pdf/tests/mytest-expected/005.json @@ -0,0 +1,39 @@ +{ + "input": { + "format": "PDF", + "x": "drat" + }, + "output": { + "regPlot": { + "src": "[image data sha1: 6f374822dfc5aefd4a20da93cae4e06fadfff4f7]", + "width": 631, + "height": 400, + "coordmap": [ + { + "domain": { + "left": 2.6732, + "right": 5.0168, + "bottom": 9.46, + "top": 34.84 + }, + "range": { + "left": 57.6, + "right": 629.56, + "bottom": 341.4, + "top": 0.440000000000019 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ] + } + }, + "export": { + + } +} diff --git a/016-knitr-pdf/tests/mytest-expected/005.png b/016-knitr-pdf/tests/mytest-expected/005.png new file mode 100644 index 00000000..ecd0e144 Binary files /dev/null and b/016-knitr-pdf/tests/mytest-expected/005.png differ diff --git a/016-knitr-pdf/tests/mytest-expected/006.json b/016-knitr-pdf/tests/mytest-expected/006.json new file mode 100644 index 00000000..6dffd147 --- /dev/null +++ b/016-knitr-pdf/tests/mytest-expected/006.json @@ -0,0 +1,39 @@ +{ + "input": { + "format": "PDF", + "x": "carb" + }, + "output": { + "regPlot": { + "src": "[image data sha1: cca33d7b4ac0bc6b456fe5cad1a1a64b8c354e49]", + "width": 631, + "height": 400, + "coordmap": [ + { + "domain": { + "left": 0.72, + "right": 8.28, + "bottom": 9.46, + "top": 34.84 + }, + "range": { + "left": 57.6, + "right": 629.56, + "bottom": 341.4, + "top": 0.440000000000019 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ] + } + }, + "export": { + + } +} diff --git a/016-knitr-pdf/tests/mytest-expected/006.png b/016-knitr-pdf/tests/mytest-expected/006.png new file mode 100644 index 00000000..6c134260 Binary files /dev/null and b/016-knitr-pdf/tests/mytest-expected/006.png differ diff --git a/016-knitr-pdf/tests/mytest-expected/007.json b/016-knitr-pdf/tests/mytest-expected/007.json new file mode 100644 index 00000000..88064abb --- /dev/null +++ b/016-knitr-pdf/tests/mytest-expected/007.json @@ -0,0 +1,39 @@ +{ + "input": { + "format": "PDF", + "x": "gear" + }, + "output": { + "regPlot": { + "src": "[image data sha1: d1ed3a213ba6a0868ce6b56919da12df25433953]", + "width": 631, + "height": 400, + "coordmap": [ + { + "domain": { + "left": 2.92, + "right": 5.08, + "bottom": 9.46, + "top": 34.84 + }, + "range": { + "left": 57.5999999999999, + "right": 629.56, + "bottom": 341.4, + "top": 0.440000000000019 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ] + } + }, + "export": { + + } +} diff --git a/016-knitr-pdf/tests/mytest-expected/007.png b/016-knitr-pdf/tests/mytest-expected/007.png new file mode 100644 index 00000000..7b6920f1 Binary files /dev/null and b/016-knitr-pdf/tests/mytest-expected/007.png differ diff --git a/016-knitr-pdf/tests/mytest-expected/008.json b/016-knitr-pdf/tests/mytest-expected/008.json new file mode 100644 index 00000000..8ff9ae01 --- /dev/null +++ b/016-knitr-pdf/tests/mytest-expected/008.json @@ -0,0 +1,39 @@ +{ + "input": { + "format": "PDF", + "x": "qsec" + }, + "output": { + "regPlot": { + "src": "[image data sha1: df80620c0978e5fdc3c0b6a7f68674436546ba2a]", + "width": 631, + "height": 400, + "coordmap": [ + { + "domain": { + "left": 14.164, + "right": 23.236, + "bottom": 9.46, + "top": 34.84 + }, + "range": { + "left": 57.5999999999999, + "right": 629.56, + "bottom": 341.4, + "top": 0.440000000000019 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ] + } + }, + "export": { + + } +} diff --git a/016-knitr-pdf/tests/mytest-expected/008.png b/016-knitr-pdf/tests/mytest-expected/008.png new file mode 100644 index 00000000..005e76f5 Binary files /dev/null and b/016-knitr-pdf/tests/mytest-expected/008.png differ diff --git a/016-knitr-pdf/tests/mytest-expected/009.download b/016-knitr-pdf/tests/mytest-expected/009.download new file mode 100644 index 00000000..c089b68a Binary files /dev/null and b/016-knitr-pdf/tests/mytest-expected/009.download differ diff --git a/016-knitr-pdf/tests/mytest.R b/016-knitr-pdf/tests/mytest.R new file mode 100644 index 00000000..d67c781d --- /dev/null +++ b/016-knitr-pdf/tests/mytest.R @@ -0,0 +1,22 @@ +app <- ShinyDriver$new("../", seed = 100,shinyOptions = list(display.mode = "normal")) +app$snapshotInit("mytest") + +app$snapshot() +app$setInputs(format = "HTML") +app$snapshot() +app$setInputs(format = "Word") +app$snapshot() +app$setInputs(format = "PDF") +app$setInputs(x = "disp") +app$snapshot() +app$setInputs(x = "drat") +app$snapshot() +app$setInputs(x = "carb") +app$snapshot() +app$setInputs(x = "gear") +app$snapshot() +app$setInputs(x = "qsec") +app$snapshot() +app$setInputs(format = "Word") +app$setInputs(x = "vs") +app$snapshotDownload("downloadReport") diff --git a/017-select-vs-selectize/tests/mytest-expected-mac/001.json b/017-select-vs-selectize/tests/mytest-expected-mac/001.json new file mode 100644 index 00000000..9990a0d0 --- /dev/null +++ b/017-select-vs-selectize/tests/mytest-expected-mac/001.json @@ -0,0 +1,21 @@ +{ + "input": { + "in1": "", + "in2": "Alabama", + "in3": null, + "in4": "", + "in5": "Alabama", + "in6": null + }, + "output": { + "out1": "[1] \"\"", + "out2": "[1] \"Alabama\"", + "out3": "NULL", + "out4": "[1] \"\"", + "out5": "[1] \"Alabama\"", + "out6": "NULL" + }, + "export": { + + } +} diff --git a/017-select-vs-selectize/tests/mytest-expected-mac/001.png b/017-select-vs-selectize/tests/mytest-expected-mac/001.png new file mode 100644 index 00000000..4e0789bc Binary files /dev/null and b/017-select-vs-selectize/tests/mytest-expected-mac/001.png differ diff --git a/017-select-vs-selectize/tests/mytest-expected-mac/002.json b/017-select-vs-selectize/tests/mytest-expected-mac/002.json new file mode 100644 index 00000000..18b20d1c --- /dev/null +++ b/017-select-vs-selectize/tests/mytest-expected-mac/002.json @@ -0,0 +1,25 @@ +{ + "input": { + "in1": "California", + "in2": "Arkansas", + "in3": "Arkansas", + "in4": "Arkansas", + "in5": "Arkansas", + "in6": [ + "Arizona", + "California", + "Connecticut" + ] + }, + "output": { + "out1": "[1] \"California\"", + "out2": "[1] \"Arkansas\"", + "out3": "[1] \"Arkansas\"", + "out4": "[1] \"Arkansas\"", + "out5": "[1] \"Arkansas\"", + "out6": "[1] \"Arizona\" \"California\" \"Connecticut\"" + }, + "export": { + + } +} diff --git a/017-select-vs-selectize/tests/mytest-expected-mac/002.png b/017-select-vs-selectize/tests/mytest-expected-mac/002.png new file mode 100644 index 00000000..9e91f04e Binary files /dev/null and b/017-select-vs-selectize/tests/mytest-expected-mac/002.png differ diff --git a/017-select-vs-selectize/tests/mytest-expected/001.json b/017-select-vs-selectize/tests/mytest-expected/001.json new file mode 100644 index 00000000..9990a0d0 --- /dev/null +++ b/017-select-vs-selectize/tests/mytest-expected/001.json @@ -0,0 +1,21 @@ +{ + "input": { + "in1": "", + "in2": "Alabama", + "in3": null, + "in4": "", + "in5": "Alabama", + "in6": null + }, + "output": { + "out1": "[1] \"\"", + "out2": "[1] \"Alabama\"", + "out3": "NULL", + "out4": "[1] \"\"", + "out5": "[1] \"Alabama\"", + "out6": "NULL" + }, + "export": { + + } +} diff --git a/017-select-vs-selectize/tests/mytest-expected/001.png b/017-select-vs-selectize/tests/mytest-expected/001.png new file mode 100644 index 00000000..4e0789bc Binary files /dev/null and b/017-select-vs-selectize/tests/mytest-expected/001.png differ diff --git a/017-select-vs-selectize/tests/mytest-expected/002.json b/017-select-vs-selectize/tests/mytest-expected/002.json new file mode 100644 index 00000000..18b20d1c --- /dev/null +++ b/017-select-vs-selectize/tests/mytest-expected/002.json @@ -0,0 +1,25 @@ +{ + "input": { + "in1": "California", + "in2": "Arkansas", + "in3": "Arkansas", + "in4": "Arkansas", + "in5": "Arkansas", + "in6": [ + "Arizona", + "California", + "Connecticut" + ] + }, + "output": { + "out1": "[1] \"California\"", + "out2": "[1] \"Arkansas\"", + "out3": "[1] \"Arkansas\"", + "out4": "[1] \"Arkansas\"", + "out5": "[1] \"Arkansas\"", + "out6": "[1] \"Arizona\" \"California\" \"Connecticut\"" + }, + "export": { + + } +} diff --git a/017-select-vs-selectize/tests/mytest-expected/002.png b/017-select-vs-selectize/tests/mytest-expected/002.png new file mode 100644 index 00000000..9e91f04e Binary files /dev/null and b/017-select-vs-selectize/tests/mytest-expected/002.png differ diff --git a/017-select-vs-selectize/tests/mytest.R b/017-select-vs-selectize/tests/mytest.R new file mode 100644 index 00000000..73802baa --- /dev/null +++ b/017-select-vs-selectize/tests/mytest.R @@ -0,0 +1,18 @@ +app <- ShinyDriver$new("../", seed = 100,shinyOptions = list(display.mode = "normal")) +app$snapshotInit("mytest") + +app$snapshot() +app$setInputs(in1 = "Alaska") +app$setInputs(in1 = "California") +app$setInputs(in2 = "Arkansas") +app$setInputs(in3 = "Alabama") +app$setInputs(in3 = "Alaska") +app$setInputs(in3 = "Arizona") +app$setInputs(in3 = "Alabama") +app$setInputs(in3 = "Arkansas") +app$setInputs(in6 = "Arizona") +app$setInputs(in6 = c("Arizona", "California")) +app$setInputs(in6 = c("Arizona", "California", "Connecticut")) +app$setInputs(in5 = "Arkansas") +app$setInputs(in4 = "Arkansas") +app$snapshot() diff --git a/018-datatable-options/tests/mytest-expected-mac/001.json b/018-datatable-options/tests/mytest-expected-mac/001.json new file mode 100644 index 00000000..40ab5e0f --- /dev/null +++ b/018-datatable-options/tests/mytest-expected-mac/001.json @@ -0,0 +1,287 @@ +{ + "input": { + "ex1_cell_clicked": { + + }, + "ex1_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150 + ], + "ex1_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25 + ], + "ex1_rows_selected": null, + "ex1_search": "", + "ex1_state": null + }, + "output": { + "ex1": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n Sepal.Length<\/th>\n Sepal.Width<\/th>\n Petal.Length<\/th>\n Petal.Width<\/th>\n Species<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "pageLength": 25, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "orderClasses": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.16", + "src": { + "href": "dt-core-1.10.16" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + } + }, + "export": { + + } +} diff --git a/018-datatable-options/tests/mytest-expected-mac/001.png b/018-datatable-options/tests/mytest-expected-mac/001.png new file mode 100644 index 00000000..f781294b Binary files /dev/null and b/018-datatable-options/tests/mytest-expected-mac/001.png differ diff --git a/018-datatable-options/tests/mytest-expected-mac/002.json b/018-datatable-options/tests/mytest-expected-mac/002.json new file mode 100644 index 00000000..40ab5e0f --- /dev/null +++ b/018-datatable-options/tests/mytest-expected-mac/002.json @@ -0,0 +1,287 @@ +{ + "input": { + "ex1_cell_clicked": { + + }, + "ex1_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150 + ], + "ex1_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25 + ], + "ex1_rows_selected": null, + "ex1_search": "", + "ex1_state": null + }, + "output": { + "ex1": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n Sepal.Length<\/th>\n Sepal.Width<\/th>\n Petal.Length<\/th>\n Petal.Width<\/th>\n Species<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "pageLength": 25, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "orderClasses": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.16", + "src": { + "href": "dt-core-1.10.16" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + } + }, + "export": { + + } +} diff --git a/018-datatable-options/tests/mytest-expected-mac/002.png b/018-datatable-options/tests/mytest-expected-mac/002.png new file mode 100644 index 00000000..f781294b Binary files /dev/null and b/018-datatable-options/tests/mytest-expected-mac/002.png differ diff --git a/018-datatable-options/tests/mytest-expected-mac/003.json b/018-datatable-options/tests/mytest-expected-mac/003.json new file mode 100644 index 00000000..40ab5e0f --- /dev/null +++ b/018-datatable-options/tests/mytest-expected-mac/003.json @@ -0,0 +1,287 @@ +{ + "input": { + "ex1_cell_clicked": { + + }, + "ex1_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150 + ], + "ex1_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25 + ], + "ex1_rows_selected": null, + "ex1_search": "", + "ex1_state": null + }, + "output": { + "ex1": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n Sepal.Length<\/th>\n Sepal.Width<\/th>\n Petal.Length<\/th>\n Petal.Width<\/th>\n Species<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "pageLength": 25, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "orderClasses": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.16", + "src": { + "href": "dt-core-1.10.16" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + } + }, + "export": { + + } +} diff --git a/018-datatable-options/tests/mytest-expected-mac/003.png b/018-datatable-options/tests/mytest-expected-mac/003.png new file mode 100644 index 00000000..f781294b Binary files /dev/null and b/018-datatable-options/tests/mytest-expected-mac/003.png differ diff --git a/018-datatable-options/tests/mytest-expected-mac/004.json b/018-datatable-options/tests/mytest-expected-mac/004.json new file mode 100644 index 00000000..40ab5e0f --- /dev/null +++ b/018-datatable-options/tests/mytest-expected-mac/004.json @@ -0,0 +1,287 @@ +{ + "input": { + "ex1_cell_clicked": { + + }, + "ex1_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150 + ], + "ex1_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25 + ], + "ex1_rows_selected": null, + "ex1_search": "", + "ex1_state": null + }, + "output": { + "ex1": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n Sepal.Length<\/th>\n Sepal.Width<\/th>\n Petal.Length<\/th>\n Petal.Width<\/th>\n Species<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "pageLength": 25, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "orderClasses": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.16", + "src": { + "href": "dt-core-1.10.16" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + } + }, + "export": { + + } +} diff --git a/018-datatable-options/tests/mytest-expected-mac/004.png b/018-datatable-options/tests/mytest-expected-mac/004.png new file mode 100644 index 00000000..f781294b Binary files /dev/null and b/018-datatable-options/tests/mytest-expected-mac/004.png differ diff --git a/018-datatable-options/tests/mytest-expected-mac/005.json b/018-datatable-options/tests/mytest-expected-mac/005.json new file mode 100644 index 00000000..40ab5e0f --- /dev/null +++ b/018-datatable-options/tests/mytest-expected-mac/005.json @@ -0,0 +1,287 @@ +{ + "input": { + "ex1_cell_clicked": { + + }, + "ex1_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150 + ], + "ex1_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25 + ], + "ex1_rows_selected": null, + "ex1_search": "", + "ex1_state": null + }, + "output": { + "ex1": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n Sepal.Length<\/th>\n Sepal.Width<\/th>\n Petal.Length<\/th>\n Petal.Width<\/th>\n Species<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "pageLength": 25, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "orderClasses": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.16", + "src": { + "href": "dt-core-1.10.16" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + } + }, + "export": { + + } +} diff --git a/018-datatable-options/tests/mytest-expected-mac/005.png b/018-datatable-options/tests/mytest-expected-mac/005.png new file mode 100644 index 00000000..f781294b Binary files /dev/null and b/018-datatable-options/tests/mytest-expected-mac/005.png differ diff --git a/018-datatable-options/tests/mytest-expected-mac/006.json b/018-datatable-options/tests/mytest-expected-mac/006.json new file mode 100644 index 00000000..40ab5e0f --- /dev/null +++ b/018-datatable-options/tests/mytest-expected-mac/006.json @@ -0,0 +1,287 @@ +{ + "input": { + "ex1_cell_clicked": { + + }, + "ex1_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150 + ], + "ex1_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25 + ], + "ex1_rows_selected": null, + "ex1_search": "", + "ex1_state": null + }, + "output": { + "ex1": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n Sepal.Length<\/th>\n Sepal.Width<\/th>\n Petal.Length<\/th>\n Petal.Width<\/th>\n Species<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "pageLength": 25, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "orderClasses": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.16", + "src": { + "href": "dt-core-1.10.16" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + } + }, + "export": { + + } +} diff --git a/018-datatable-options/tests/mytest-expected-mac/006.png b/018-datatable-options/tests/mytest-expected-mac/006.png new file mode 100644 index 00000000..f781294b Binary files /dev/null and b/018-datatable-options/tests/mytest-expected-mac/006.png differ diff --git a/018-datatable-options/tests/mytest-expected-mac/007.json b/018-datatable-options/tests/mytest-expected-mac/007.json new file mode 100644 index 00000000..40ab5e0f --- /dev/null +++ b/018-datatable-options/tests/mytest-expected-mac/007.json @@ -0,0 +1,287 @@ +{ + "input": { + "ex1_cell_clicked": { + + }, + "ex1_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150 + ], + "ex1_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25 + ], + "ex1_rows_selected": null, + "ex1_search": "", + "ex1_state": null + }, + "output": { + "ex1": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n Sepal.Length<\/th>\n Sepal.Width<\/th>\n Petal.Length<\/th>\n Petal.Width<\/th>\n Species<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "pageLength": 25, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "orderClasses": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.16", + "src": { + "href": "dt-core-1.10.16" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + } + }, + "export": { + + } +} diff --git a/018-datatable-options/tests/mytest-expected-mac/007.png b/018-datatable-options/tests/mytest-expected-mac/007.png new file mode 100644 index 00000000..f781294b Binary files /dev/null and b/018-datatable-options/tests/mytest-expected-mac/007.png differ diff --git a/018-datatable-options/tests/mytest-expected/001.json b/018-datatable-options/tests/mytest-expected/001.json new file mode 100644 index 00000000..a7080da7 --- /dev/null +++ b/018-datatable-options/tests/mytest-expected/001.json @@ -0,0 +1,287 @@ +{ + "input": { + "ex1_cell_clicked": { + + }, + "ex1_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150 + ], + "ex1_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25 + ], + "ex1_rows_selected": null, + "ex1_search": "", + "ex1_state": null + }, + "output": { + "ex1": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n Sepal.Length<\/th>\n Sepal.Width<\/th>\n Petal.Length<\/th>\n Petal.Width<\/th>\n Species<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "pageLength": 25, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "orderClasses": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.19", + "src": { + "href": "dt-core-1.10.19" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + } + }, + "export": { + + } +} diff --git a/018-datatable-options/tests/mytest-expected/001.png b/018-datatable-options/tests/mytest-expected/001.png new file mode 100644 index 00000000..f781294b Binary files /dev/null and b/018-datatable-options/tests/mytest-expected/001.png differ diff --git a/018-datatable-options/tests/mytest-expected/002.json b/018-datatable-options/tests/mytest-expected/002.json new file mode 100644 index 00000000..a7080da7 --- /dev/null +++ b/018-datatable-options/tests/mytest-expected/002.json @@ -0,0 +1,287 @@ +{ + "input": { + "ex1_cell_clicked": { + + }, + "ex1_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150 + ], + "ex1_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25 + ], + "ex1_rows_selected": null, + "ex1_search": "", + "ex1_state": null + }, + "output": { + "ex1": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n Sepal.Length<\/th>\n Sepal.Width<\/th>\n Petal.Length<\/th>\n Petal.Width<\/th>\n Species<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "pageLength": 25, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "orderClasses": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.19", + "src": { + "href": "dt-core-1.10.19" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + } + }, + "export": { + + } +} diff --git a/018-datatable-options/tests/mytest-expected/002.png b/018-datatable-options/tests/mytest-expected/002.png new file mode 100644 index 00000000..f781294b Binary files /dev/null and b/018-datatable-options/tests/mytest-expected/002.png differ diff --git a/018-datatable-options/tests/mytest-expected/003.json b/018-datatable-options/tests/mytest-expected/003.json new file mode 100644 index 00000000..a7080da7 --- /dev/null +++ b/018-datatable-options/tests/mytest-expected/003.json @@ -0,0 +1,287 @@ +{ + "input": { + "ex1_cell_clicked": { + + }, + "ex1_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150 + ], + "ex1_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25 + ], + "ex1_rows_selected": null, + "ex1_search": "", + "ex1_state": null + }, + "output": { + "ex1": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n Sepal.Length<\/th>\n Sepal.Width<\/th>\n Petal.Length<\/th>\n Petal.Width<\/th>\n Species<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "pageLength": 25, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "orderClasses": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.19", + "src": { + "href": "dt-core-1.10.19" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + } + }, + "export": { + + } +} diff --git a/018-datatable-options/tests/mytest-expected/003.png b/018-datatable-options/tests/mytest-expected/003.png new file mode 100644 index 00000000..f781294b Binary files /dev/null and b/018-datatable-options/tests/mytest-expected/003.png differ diff --git a/018-datatable-options/tests/mytest-expected/004.json b/018-datatable-options/tests/mytest-expected/004.json new file mode 100644 index 00000000..a7080da7 --- /dev/null +++ b/018-datatable-options/tests/mytest-expected/004.json @@ -0,0 +1,287 @@ +{ + "input": { + "ex1_cell_clicked": { + + }, + "ex1_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150 + ], + "ex1_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25 + ], + "ex1_rows_selected": null, + "ex1_search": "", + "ex1_state": null + }, + "output": { + "ex1": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n Sepal.Length<\/th>\n Sepal.Width<\/th>\n Petal.Length<\/th>\n Petal.Width<\/th>\n Species<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "pageLength": 25, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "orderClasses": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.19", + "src": { + "href": "dt-core-1.10.19" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + } + }, + "export": { + + } +} diff --git a/018-datatable-options/tests/mytest-expected/004.png b/018-datatable-options/tests/mytest-expected/004.png new file mode 100644 index 00000000..f781294b Binary files /dev/null and b/018-datatable-options/tests/mytest-expected/004.png differ diff --git a/018-datatable-options/tests/mytest-expected/005.json b/018-datatable-options/tests/mytest-expected/005.json new file mode 100644 index 00000000..a7080da7 --- /dev/null +++ b/018-datatable-options/tests/mytest-expected/005.json @@ -0,0 +1,287 @@ +{ + "input": { + "ex1_cell_clicked": { + + }, + "ex1_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150 + ], + "ex1_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25 + ], + "ex1_rows_selected": null, + "ex1_search": "", + "ex1_state": null + }, + "output": { + "ex1": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n Sepal.Length<\/th>\n Sepal.Width<\/th>\n Petal.Length<\/th>\n Petal.Width<\/th>\n Species<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "pageLength": 25, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "orderClasses": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.19", + "src": { + "href": "dt-core-1.10.19" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + } + }, + "export": { + + } +} diff --git a/018-datatable-options/tests/mytest-expected/005.png b/018-datatable-options/tests/mytest-expected/005.png new file mode 100644 index 00000000..f781294b Binary files /dev/null and b/018-datatable-options/tests/mytest-expected/005.png differ diff --git a/018-datatable-options/tests/mytest-expected/006.json b/018-datatable-options/tests/mytest-expected/006.json new file mode 100644 index 00000000..a7080da7 --- /dev/null +++ b/018-datatable-options/tests/mytest-expected/006.json @@ -0,0 +1,287 @@ +{ + "input": { + "ex1_cell_clicked": { + + }, + "ex1_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150 + ], + "ex1_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25 + ], + "ex1_rows_selected": null, + "ex1_search": "", + "ex1_state": null + }, + "output": { + "ex1": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n Sepal.Length<\/th>\n Sepal.Width<\/th>\n Petal.Length<\/th>\n Petal.Width<\/th>\n Species<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "pageLength": 25, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "orderClasses": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.19", + "src": { + "href": "dt-core-1.10.19" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + } + }, + "export": { + + } +} diff --git a/018-datatable-options/tests/mytest-expected/006.png b/018-datatable-options/tests/mytest-expected/006.png new file mode 100644 index 00000000..f781294b Binary files /dev/null and b/018-datatable-options/tests/mytest-expected/006.png differ diff --git a/018-datatable-options/tests/mytest-expected/007.json b/018-datatable-options/tests/mytest-expected/007.json new file mode 100644 index 00000000..a7080da7 --- /dev/null +++ b/018-datatable-options/tests/mytest-expected/007.json @@ -0,0 +1,287 @@ +{ + "input": { + "ex1_cell_clicked": { + + }, + "ex1_rows_all": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150 + ], + "ex1_rows_current": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25 + ], + "ex1_rows_selected": null, + "ex1_search": "", + "ex1_state": null + }, + "output": { + "ex1": { + "x": { + "filter": "none", + "container": "\n \n \n
<\/th>\n Sepal.Length<\/th>\n Sepal.Width<\/th>\n Petal.Length<\/th>\n Petal.Width<\/th>\n Species<\/th>\n <\/tr>\n <\/thead>\n<\/table>", + "options": { + "pageLength": 25, + "columnDefs": [ + { + "className": "dt-right", + "targets": [ + 1, + 2, + 3, + 4 + ] + }, + { + "orderable": false, + "targets": 0 + } + ], + "order": [ + + ], + "autoWidth": false, + "orderClasses": false, + "ajax": { + "type": "POST", + "data": "function(d) {\nd.search.caseInsensitive = true;\nd.search.smart = true;\nd.escape = true;\nvar encodeAmp = function(x) { x.value = x.value.replace(/&/g, \"%26\"); }\nencodeAmp(d.search);\n$.each(d.columns, function(i, v) {encodeAmp(v.search);});\n}" + }, + "serverSide": true, + "processing": true + }, + "selection": { + "mode": "multiple", + "selected": null, + "target": "row" + } + }, + "evals": [ + "options.ajax.data" + ], + "jsHooks": [ + + ], + "deps": [ + { + "name": "dt-core", + "version": "1.10.19", + "src": { + "href": "dt-core-1.10.19" + }, + "meta": null, + "script": "js/jquery.dataTables.min.js", + "stylesheet": [ + "css/jquery.dataTables.min.css", + "css/jquery.dataTables.extra.css" + ], + "head": null, + "attachment": null, + "package": null, + "all_files": false + }, + { + "name": "jquery", + "version": "1.11.3", + "src": { + "href": "jquery-1.11.3" + }, + "meta": null, + "script": "jquery.min.js", + "stylesheet": null, + "head": null, + "attachment": null, + "package": null, + "all_files": true + }, + { + "name": "crosstalk", + "version": "1.0.0", + "src": { + "href": "crosstalk-1.0.0" + }, + "meta": null, + "script": "js/crosstalk.min.js", + "stylesheet": "css/crosstalk.css", + "head": null, + "attachment": null, + "package": null, + "all_files": true + } + ] + } + }, + "export": { + + } +} diff --git a/018-datatable-options/tests/mytest-expected/007.png b/018-datatable-options/tests/mytest-expected/007.png new file mode 100644 index 00000000..f781294b Binary files /dev/null and b/018-datatable-options/tests/mytest-expected/007.png differ diff --git a/018-datatable-options/tests/mytest.R b/018-datatable-options/tests/mytest.R new file mode 100644 index 00000000..0cf145f9 --- /dev/null +++ b/018-datatable-options/tests/mytest.R @@ -0,0 +1,36 @@ +app <- ShinyDriver$new("../", seed = 100,shinyOptions = list(display.mode = "normal")) +app$snapshotInit("mytest") + +# Input 'ex1_rows_current' was set, but doesn't have an input binding. +# Input 'ex1_rows_all' was set, but doesn't have an input binding. +Sys.sleep(5) +app$snapshot() +# Input 'ex1_rows_all' was set, but doesn't have an input binding. +# Input 'ex1_search' was set, but doesn't have an input binding. +# Input 'ex1_rows_all' was set, but doesn't have an input binding. +# Input 'ex1_search' was set, but doesn't have an input binding. +# Input 'ex1_search' was set, but doesn't have an input binding. +# Input 'ex1_search' was set, but doesn't have an input binding. +# Input 'ex1_rows_current' was set, but doesn't have an input binding. +# Input 'ex2_rows_current' was set, but doesn't have an input binding. +# Input 'ex2_rows_all' was set, but doesn't have an input binding. +Sys.sleep(5) +app$snapshot() +# Input 'ex3_rows_current' was set, but doesn't have an input binding. +# Input 'ex3_rows_all' was set, but doesn't have an input binding. +Sys.sleep(5) +app$snapshot() +# Input 'ex4_rows_current' was set, but doesn't have an input binding. +# Input 'ex4_rows_all' was set, but doesn't have an input binding. +Sys.sleep(5) +app$snapshot() +# Input 'ex5_rows_current' was set, but doesn't have an input binding. +# Input 'ex5_rows_all' was set, but doesn't have an input binding. +Sys.sleep(5) +app$snapshot() +# Input 'ex5_rows_current' was set, but doesn't have an input binding. +Sys.sleep(5) +app$snapshot() +# Input 'ex2_rows_current' was set, but doesn't have an input binding. +Sys.sleep(5) +app$snapshot() diff --git a/019-mathjax/tests/mytest-expected-mac/001.json b/019-mathjax/tests/mytest-expected-mac/001.json new file mode 100644 index 00000000..ac0e0e24 --- /dev/null +++ b/019-mathjax/tests/mytest-expected-mac/001.json @@ -0,0 +1,35 @@ +{ + "input": { + "ex5_visible": false + }, + "output": { + "ex1": { + "html": "<\/head>\nDynamic output 1: $$\\alpha^2$$<\/span>\n + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + +
# The `params` object is available in the document.
+params$n
+
## [1] 75
+

A plot of params$n random points.

+
plot(rnorm(params$n), rnorm(params$n))
+

+ + + + +
+ + + + + + + + + + + + + + + diff --git a/112-generate-report/tests/mytest-expected-mac/004.json b/112-generate-report/tests/mytest-expected-mac/004.json new file mode 100644 index 00000000..52de5aef --- /dev/null +++ b/112-generate-report/tests/mytest-expected-mac/004.json @@ -0,0 +1,11 @@ +{ + "input": { + "slider": 75 + }, + "output": { + + }, + "export": { + + } +} diff --git a/112-generate-report/tests/mytest-expected-mac/004.png b/112-generate-report/tests/mytest-expected-mac/004.png new file mode 100644 index 00000000..565b1339 Binary files /dev/null and b/112-generate-report/tests/mytest-expected-mac/004.png differ diff --git a/112-generate-report/tests/mytest-expected-mac/005.json b/112-generate-report/tests/mytest-expected-mac/005.json new file mode 100644 index 00000000..11f5e7ff --- /dev/null +++ b/112-generate-report/tests/mytest-expected-mac/005.json @@ -0,0 +1,11 @@ +{ + "input": { + "slider": 20 + }, + "output": { + + }, + "export": { + + } +} diff --git a/112-generate-report/tests/mytest-expected-mac/005.png b/112-generate-report/tests/mytest-expected-mac/005.png new file mode 100644 index 00000000..e6f9f0d9 Binary files /dev/null and b/112-generate-report/tests/mytest-expected-mac/005.png differ diff --git a/112-generate-report/tests/mytest-expected/001.json b/112-generate-report/tests/mytest-expected/001.json new file mode 100644 index 00000000..772b973b --- /dev/null +++ b/112-generate-report/tests/mytest-expected/001.json @@ -0,0 +1,11 @@ +{ + "input": { + "slider": 50 + }, + "output": { + + }, + "export": { + + } +} diff --git a/112-generate-report/tests/mytest-expected/001.png b/112-generate-report/tests/mytest-expected/001.png new file mode 100644 index 00000000..a4575813 Binary files /dev/null and b/112-generate-report/tests/mytest-expected/001.png differ diff --git a/112-generate-report/tests/mytest-expected/002.json b/112-generate-report/tests/mytest-expected/002.json new file mode 100644 index 00000000..52de5aef --- /dev/null +++ b/112-generate-report/tests/mytest-expected/002.json @@ -0,0 +1,11 @@ +{ + "input": { + "slider": 75 + }, + "output": { + + }, + "export": { + + } +} diff --git a/112-generate-report/tests/mytest-expected/002.png b/112-generate-report/tests/mytest-expected/002.png new file mode 100644 index 00000000..e1c74ca8 Binary files /dev/null and b/112-generate-report/tests/mytest-expected/002.png differ diff --git a/112-generate-report/tests/mytest-expected/003.download b/112-generate-report/tests/mytest-expected/003.download new file mode 100644 index 00000000..0e4205d2 --- /dev/null +++ b/112-generate-report/tests/mytest-expected/003.download @@ -0,0 +1,161 @@ + + + + + + + + + + + + + +Dynamic report + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +
# The `params` object is available in the document.
+params$n
+
## [1] 75
+

A plot of params$n random points.

+
plot(rnorm(params$n), rnorm(params$n))
+

+ + + + +
+ + + + + + + + diff --git a/112-generate-report/tests/mytest-expected/004.json b/112-generate-report/tests/mytest-expected/004.json new file mode 100644 index 00000000..52de5aef --- /dev/null +++ b/112-generate-report/tests/mytest-expected/004.json @@ -0,0 +1,11 @@ +{ + "input": { + "slider": 75 + }, + "output": { + + }, + "export": { + + } +} diff --git a/112-generate-report/tests/mytest-expected/004.png b/112-generate-report/tests/mytest-expected/004.png new file mode 100644 index 00000000..e1c74ca8 Binary files /dev/null and b/112-generate-report/tests/mytest-expected/004.png differ diff --git a/112-generate-report/tests/mytest-expected/005.json b/112-generate-report/tests/mytest-expected/005.json new file mode 100644 index 00000000..11f5e7ff --- /dev/null +++ b/112-generate-report/tests/mytest-expected/005.json @@ -0,0 +1,11 @@ +{ + "input": { + "slider": 20 + }, + "output": { + + }, + "export": { + + } +} diff --git a/112-generate-report/tests/mytest-expected/005.png b/112-generate-report/tests/mytest-expected/005.png new file mode 100644 index 00000000..66100c84 Binary files /dev/null and b/112-generate-report/tests/mytest-expected/005.png differ diff --git a/112-generate-report/tests/mytest.R b/112-generate-report/tests/mytest.R new file mode 100644 index 00000000..0587feb1 --- /dev/null +++ b/112-generate-report/tests/mytest.R @@ -0,0 +1,10 @@ +app <- ShinyDriver$new("../", seed = 100,shinyOptions = list(display.mode = "normal")) +app$snapshotInit("mytest") + +app$snapshot() +app$setInputs(slider = 75) +app$snapshot() +app$snapshotDownload("report") +app$snapshot() +app$setInputs(slider = 20) +app$snapshot() diff --git a/113-bookmarking-url/tests/mytest-expected-mac/001.json b/113-bookmarking-url/tests/mytest-expected-mac/001.json new file mode 100644 index 00000000..8496517f --- /dev/null +++ b/113-bookmarking-url/tests/mytest-expected-mac/001.json @@ -0,0 +1,45 @@ +{ + "input": { + "._bookmark_": 0, + "n": 100 + }, + "output": { + "plot": { + "src": "[image data sha1: 33abd7eb79840af1ec56f271418f558e85b60f4d]", + "width": 962, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 1.46, + "right": 5.24, + "bottom": -0.36, + "top": 9.36 + }, + "range": { + "left": 59.04, + "right": 931.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 962, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/113-bookmarking-url/tests/mytest-expected-mac/001.png b/113-bookmarking-url/tests/mytest-expected-mac/001.png new file mode 100644 index 00000000..e2ae6871 Binary files /dev/null and b/113-bookmarking-url/tests/mytest-expected-mac/001.png differ diff --git a/113-bookmarking-url/tests/mytest-expected-mac/002.json b/113-bookmarking-url/tests/mytest-expected-mac/002.json new file mode 100644 index 00000000..1e90f8fc --- /dev/null +++ b/113-bookmarking-url/tests/mytest-expected-mac/002.json @@ -0,0 +1,45 @@ +{ + "input": { + "._bookmark_": 0, + "n": 235 + }, + "output": { + "plot": { + "src": "[image data sha1: 9d692974a77c481599a2b5e22f669f59edd7efcb]", + "width": 962, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 1.46, + "right": 5.24, + "bottom": -0.8, + "top": 20.8 + }, + "range": { + "left": 59.04, + "right": 931.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 962, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/113-bookmarking-url/tests/mytest-expected-mac/002.png b/113-bookmarking-url/tests/mytest-expected-mac/002.png new file mode 100644 index 00000000..c6078cce Binary files /dev/null and b/113-bookmarking-url/tests/mytest-expected-mac/002.png differ diff --git a/113-bookmarking-url/tests/mytest-expected-mac/003.json b/113-bookmarking-url/tests/mytest-expected-mac/003.json new file mode 100644 index 00000000..bf1e1027 --- /dev/null +++ b/113-bookmarking-url/tests/mytest-expected-mac/003.json @@ -0,0 +1,45 @@ +{ + "input": { + "._bookmark_": 1, + "n": 272 + }, + "output": { + "plot": { + "src": "[image data sha1: 191780f4db4a8565170cd1903c3582ab05525f2c]", + "width": 962, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 1.46, + "right": 5.24, + "bottom": -0.96, + "top": 24.96 + }, + "range": { + "left": 59.04, + "right": 931.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 962, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/113-bookmarking-url/tests/mytest-expected-mac/003.png b/113-bookmarking-url/tests/mytest-expected-mac/003.png new file mode 100644 index 00000000..0ff9f430 Binary files /dev/null and b/113-bookmarking-url/tests/mytest-expected-mac/003.png differ diff --git a/113-bookmarking-url/tests/mytest-expected-mac/004.json b/113-bookmarking-url/tests/mytest-expected-mac/004.json new file mode 100644 index 00000000..ab242d77 --- /dev/null +++ b/113-bookmarking-url/tests/mytest-expected-mac/004.json @@ -0,0 +1,45 @@ +{ + "input": { + "._bookmark_": 1, + "n": 1 + }, + "output": { + "plot": { + "src": "[image data sha1: 4afc7f1fbbd497983f9f578e872f18b56d6680e9]", + "width": 962, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 1.92, + "right": 4.08, + "bottom": -0.04, + "top": 1.04 + }, + "range": { + "left": 59.0399999999999, + "right": 931.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 962, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/113-bookmarking-url/tests/mytest-expected-mac/004.png b/113-bookmarking-url/tests/mytest-expected-mac/004.png new file mode 100644 index 00000000..efd4f595 Binary files /dev/null and b/113-bookmarking-url/tests/mytest-expected-mac/004.png differ diff --git a/113-bookmarking-url/tests/mytest-expected/001.json b/113-bookmarking-url/tests/mytest-expected/001.json new file mode 100644 index 00000000..1cfb5f4c --- /dev/null +++ b/113-bookmarking-url/tests/mytest-expected/001.json @@ -0,0 +1,39 @@ +{ + "input": { + "._bookmark_": 0, + "n": 100 + }, + "output": { + "plot": { + "src": "[image data sha1: 33abd7eb79840af1ec56f271418f558e85b60f4d]", + "width": 962, + "height": 400, + "coordmap": [ + { + "domain": { + "left": 1.46, + "right": 5.24, + "bottom": -0.36, + "top": 9.36 + }, + "range": { + "left": 59.04, + "right": 931.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ] + } + }, + "export": { + + } +} diff --git a/113-bookmarking-url/tests/mytest-expected/001.png b/113-bookmarking-url/tests/mytest-expected/001.png new file mode 100644 index 00000000..4e9d00ee Binary files /dev/null and b/113-bookmarking-url/tests/mytest-expected/001.png differ diff --git a/113-bookmarking-url/tests/mytest-expected/002.json b/113-bookmarking-url/tests/mytest-expected/002.json new file mode 100644 index 00000000..8fa619f5 --- /dev/null +++ b/113-bookmarking-url/tests/mytest-expected/002.json @@ -0,0 +1,39 @@ +{ + "input": { + "._bookmark_": 0, + "n": 235 + }, + "output": { + "plot": { + "src": "[image data sha1: 9d692974a77c481599a2b5e22f669f59edd7efcb]", + "width": 962, + "height": 400, + "coordmap": [ + { + "domain": { + "left": 1.46, + "right": 5.24, + "bottom": -0.8, + "top": 20.8 + }, + "range": { + "left": 59.04, + "right": 931.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ] + } + }, + "export": { + + } +} diff --git a/113-bookmarking-url/tests/mytest-expected/002.png b/113-bookmarking-url/tests/mytest-expected/002.png new file mode 100644 index 00000000..c6078cce Binary files /dev/null and b/113-bookmarking-url/tests/mytest-expected/002.png differ diff --git a/113-bookmarking-url/tests/mytest-expected/003.json b/113-bookmarking-url/tests/mytest-expected/003.json new file mode 100644 index 00000000..ef96b5e3 --- /dev/null +++ b/113-bookmarking-url/tests/mytest-expected/003.json @@ -0,0 +1,39 @@ +{ + "input": { + "._bookmark_": 1, + "n": 272 + }, + "output": { + "plot": { + "src": "[image data sha1: 191780f4db4a8565170cd1903c3582ab05525f2c]", + "width": 962, + "height": 400, + "coordmap": [ + { + "domain": { + "left": 1.46, + "right": 5.24, + "bottom": -0.96, + "top": 24.96 + }, + "range": { + "left": 59.04, + "right": 931.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ] + } + }, + "export": { + + } +} diff --git a/113-bookmarking-url/tests/mytest-expected/003.png b/113-bookmarking-url/tests/mytest-expected/003.png new file mode 100644 index 00000000..0ff9f430 Binary files /dev/null and b/113-bookmarking-url/tests/mytest-expected/003.png differ diff --git a/113-bookmarking-url/tests/mytest-expected/004.json b/113-bookmarking-url/tests/mytest-expected/004.json new file mode 100644 index 00000000..ff9f40a7 --- /dev/null +++ b/113-bookmarking-url/tests/mytest-expected/004.json @@ -0,0 +1,39 @@ +{ + "input": { + "._bookmark_": 1, + "n": 1 + }, + "output": { + "plot": { + "src": "[image data sha1: 4afc7f1fbbd497983f9f578e872f18b56d6680e9]", + "width": 962, + "height": 400, + "coordmap": [ + { + "domain": { + "left": 1.92, + "right": 4.08, + "bottom": -0.04, + "top": 1.04 + }, + "range": { + "left": 59.0399999999999, + "right": 931.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ] + } + }, + "export": { + + } +} diff --git a/113-bookmarking-url/tests/mytest-expected/004.png b/113-bookmarking-url/tests/mytest-expected/004.png new file mode 100644 index 00000000..352079a1 Binary files /dev/null and b/113-bookmarking-url/tests/mytest-expected/004.png differ diff --git a/113-bookmarking-url/tests/mytest.R b/113-bookmarking-url/tests/mytest.R new file mode 100644 index 00000000..8ee01dff --- /dev/null +++ b/113-bookmarking-url/tests/mytest.R @@ -0,0 +1,12 @@ +app <- ShinyDriver$new("../", seed = 100,shinyOptions = list(display.mode = "normal")) +app$snapshotInit("mytest") + +app$snapshot() +app$setInputs(n = 189) +app$setInputs(n = 235) +app$snapshot() +app$setInputs(n = 272) +app$setInputs(`._bookmark_` = "click") +app$snapshot() +app$setInputs(n = 1) +app$snapshot() diff --git a/114-modal-dialog/tests/mytest-expected-mac/001.json b/114-modal-dialog/tests/mytest-expected-mac/001.json new file mode 100644 index 00000000..ba855652 --- /dev/null +++ b/114-modal-dialog/tests/mytest-expected-mac/001.json @@ -0,0 +1,11 @@ +{ + "input": { + "show": 1 + }, + "output": { + + }, + "export": { + + } +} diff --git a/114-modal-dialog/tests/mytest-expected-mac/001.png b/114-modal-dialog/tests/mytest-expected-mac/001.png new file mode 100644 index 00000000..85737ab3 Binary files /dev/null and b/114-modal-dialog/tests/mytest-expected-mac/001.png differ diff --git a/114-modal-dialog/tests/mytest-expected-mac/002.json b/114-modal-dialog/tests/mytest-expected-mac/002.json new file mode 100644 index 00000000..161434f5 --- /dev/null +++ b/114-modal-dialog/tests/mytest-expected-mac/002.json @@ -0,0 +1,11 @@ +{ + "input": { + "show": 2 + }, + "output": { + + }, + "export": { + + } +} diff --git a/114-modal-dialog/tests/mytest-expected-mac/002.png b/114-modal-dialog/tests/mytest-expected-mac/002.png new file mode 100644 index 00000000..16b0f844 Binary files /dev/null and b/114-modal-dialog/tests/mytest-expected-mac/002.png differ diff --git a/114-modal-dialog/tests/mytest-expected/001.json b/114-modal-dialog/tests/mytest-expected/001.json new file mode 100644 index 00000000..ba855652 --- /dev/null +++ b/114-modal-dialog/tests/mytest-expected/001.json @@ -0,0 +1,11 @@ +{ + "input": { + "show": 1 + }, + "output": { + + }, + "export": { + + } +} diff --git a/114-modal-dialog/tests/mytest-expected/001.png b/114-modal-dialog/tests/mytest-expected/001.png new file mode 100644 index 00000000..3a110a3e Binary files /dev/null and b/114-modal-dialog/tests/mytest-expected/001.png differ diff --git a/114-modal-dialog/tests/mytest-expected/002.json b/114-modal-dialog/tests/mytest-expected/002.json new file mode 100644 index 00000000..161434f5 --- /dev/null +++ b/114-modal-dialog/tests/mytest-expected/002.json @@ -0,0 +1,11 @@ +{ + "input": { + "show": 2 + }, + "output": { + + }, + "export": { + + } +} diff --git a/114-modal-dialog/tests/mytest-expected/002.png b/114-modal-dialog/tests/mytest-expected/002.png new file mode 100644 index 00000000..78ffb54d Binary files /dev/null and b/114-modal-dialog/tests/mytest-expected/002.png differ diff --git a/114-modal-dialog/tests/mytest.R b/114-modal-dialog/tests/mytest.R new file mode 100644 index 00000000..1846b7cd --- /dev/null +++ b/114-modal-dialog/tests/mytest.R @@ -0,0 +1,7 @@ +app <- ShinyDriver$new("../", seed = 100,shinyOptions = list(display.mode = "normal")) +app$snapshotInit("mytest") + +app$setInputs(show = "click") +app$snapshot() +app$setInputs(show = "click") +app$snapshot() diff --git a/115-bookmarking-updatequerystring/tests/mytest-expected-mac/001.json b/115-bookmarking-updatequerystring/tests/mytest-expected-mac/001.json new file mode 100644 index 00000000..5ad79d06 --- /dev/null +++ b/115-bookmarking-updatequerystring/tests/mytest-expected-mac/001.json @@ -0,0 +1,12 @@ +{ + "input": { + "chk": false, + "txt": "testing" + }, + "output": { + + }, + "export": { + + } +} diff --git a/115-bookmarking-updatequerystring/tests/mytest-expected-mac/001.png b/115-bookmarking-updatequerystring/tests/mytest-expected-mac/001.png new file mode 100644 index 00000000..32219110 Binary files /dev/null and b/115-bookmarking-updatequerystring/tests/mytest-expected-mac/001.png differ diff --git a/115-bookmarking-updatequerystring/tests/mytest-expected-mac/002.json b/115-bookmarking-updatequerystring/tests/mytest-expected-mac/002.json new file mode 100644 index 00000000..e2deed0e --- /dev/null +++ b/115-bookmarking-updatequerystring/tests/mytest-expected-mac/002.json @@ -0,0 +1,12 @@ +{ + "input": { + "chk": true, + "txt": "testing" + }, + "output": { + + }, + "export": { + + } +} diff --git a/115-bookmarking-updatequerystring/tests/mytest-expected-mac/002.png b/115-bookmarking-updatequerystring/tests/mytest-expected-mac/002.png new file mode 100644 index 00000000..e631fe19 Binary files /dev/null and b/115-bookmarking-updatequerystring/tests/mytest-expected-mac/002.png differ diff --git a/115-bookmarking-updatequerystring/tests/mytest-expected/001.json b/115-bookmarking-updatequerystring/tests/mytest-expected/001.json new file mode 100644 index 00000000..5ad79d06 --- /dev/null +++ b/115-bookmarking-updatequerystring/tests/mytest-expected/001.json @@ -0,0 +1,12 @@ +{ + "input": { + "chk": false, + "txt": "testing" + }, + "output": { + + }, + "export": { + + } +} diff --git a/115-bookmarking-updatequerystring/tests/mytest-expected/001.png b/115-bookmarking-updatequerystring/tests/mytest-expected/001.png new file mode 100644 index 00000000..32219110 Binary files /dev/null and b/115-bookmarking-updatequerystring/tests/mytest-expected/001.png differ diff --git a/115-bookmarking-updatequerystring/tests/mytest-expected/002.json b/115-bookmarking-updatequerystring/tests/mytest-expected/002.json new file mode 100644 index 00000000..e2deed0e --- /dev/null +++ b/115-bookmarking-updatequerystring/tests/mytest-expected/002.json @@ -0,0 +1,12 @@ +{ + "input": { + "chk": true, + "txt": "testing" + }, + "output": { + + }, + "export": { + + } +} diff --git a/115-bookmarking-updatequerystring/tests/mytest-expected/002.png b/115-bookmarking-updatequerystring/tests/mytest-expected/002.png new file mode 100644 index 00000000..e631fe19 Binary files /dev/null and b/115-bookmarking-updatequerystring/tests/mytest-expected/002.png differ diff --git a/115-bookmarking-updatequerystring/tests/mytest.R b/115-bookmarking-updatequerystring/tests/mytest.R new file mode 100644 index 00000000..ec5fba93 --- /dev/null +++ b/115-bookmarking-updatequerystring/tests/mytest.R @@ -0,0 +1,8 @@ +app <- ShinyDriver$new("../", seed = 100,shinyOptions = list(display.mode = "normal")) +app$snapshotInit("mytest") + +app$setInputs(txt = "test") +app$setInputs(txt = "testing") +app$snapshot() +app$setInputs(chk = TRUE) +app$snapshot() diff --git a/116-notifications/tests/mytest-expected-mac/001.json b/116-notifications/tests/mytest-expected-mac/001.json new file mode 100644 index 00000000..56dab377 --- /dev/null +++ b/116-notifications/tests/mytest-expected-mac/001.json @@ -0,0 +1,16 @@ +{ + "input": { + "close": true, + "duration": "2", + "remove": 0, + "show": 0, + "txt": "Text of message", + "type": "default" + }, + "output": { + + }, + "export": { + + } +} diff --git a/116-notifications/tests/mytest-expected-mac/001.png b/116-notifications/tests/mytest-expected-mac/001.png new file mode 100644 index 00000000..f875c7da Binary files /dev/null and b/116-notifications/tests/mytest-expected-mac/001.png differ diff --git a/116-notifications/tests/mytest-expected-mac/002.json b/116-notifications/tests/mytest-expected-mac/002.json new file mode 100644 index 00000000..008fcc39 --- /dev/null +++ b/116-notifications/tests/mytest-expected-mac/002.json @@ -0,0 +1,16 @@ +{ + "input": { + "close": true, + "duration": "5", + "remove": 0, + "show": 0, + "txt": "Text of message", + "type": "default" + }, + "output": { + + }, + "export": { + + } +} diff --git a/116-notifications/tests/mytest-expected-mac/002.png b/116-notifications/tests/mytest-expected-mac/002.png new file mode 100644 index 00000000..e8a46e58 Binary files /dev/null and b/116-notifications/tests/mytest-expected-mac/002.png differ diff --git a/116-notifications/tests/mytest-expected-mac/003.json b/116-notifications/tests/mytest-expected-mac/003.json new file mode 100644 index 00000000..5619e18f --- /dev/null +++ b/116-notifications/tests/mytest-expected-mac/003.json @@ -0,0 +1,16 @@ +{ + "input": { + "close": true, + "duration": "10", + "remove": 0, + "show": 0, + "txt": "Text of message", + "type": "default" + }, + "output": { + + }, + "export": { + + } +} diff --git a/116-notifications/tests/mytest-expected-mac/003.png b/116-notifications/tests/mytest-expected-mac/003.png new file mode 100644 index 00000000..943c61ae Binary files /dev/null and b/116-notifications/tests/mytest-expected-mac/003.png differ diff --git a/116-notifications/tests/mytest-expected-mac/004.json b/116-notifications/tests/mytest-expected-mac/004.json new file mode 100644 index 00000000..cbc6d490 --- /dev/null +++ b/116-notifications/tests/mytest-expected-mac/004.json @@ -0,0 +1,16 @@ +{ + "input": { + "close": true, + "duration": "10", + "remove": 0, + "show": 1, + "txt": "Text of message", + "type": "message" + }, + "output": { + + }, + "export": { + + } +} diff --git a/116-notifications/tests/mytest-expected-mac/004.png b/116-notifications/tests/mytest-expected-mac/004.png new file mode 100644 index 00000000..fc17bccc Binary files /dev/null and b/116-notifications/tests/mytest-expected-mac/004.png differ diff --git a/116-notifications/tests/mytest-expected-mac/005.json b/116-notifications/tests/mytest-expected-mac/005.json new file mode 100644 index 00000000..d4615346 --- /dev/null +++ b/116-notifications/tests/mytest-expected-mac/005.json @@ -0,0 +1,16 @@ +{ + "input": { + "close": true, + "duration": "10", + "remove": 1, + "show": 2, + "txt": "Text of messagemnvckns", + "type": "message" + }, + "output": { + + }, + "export": { + + } +} diff --git a/116-notifications/tests/mytest-expected-mac/005.png b/116-notifications/tests/mytest-expected-mac/005.png new file mode 100644 index 00000000..b06a6b52 Binary files /dev/null and b/116-notifications/tests/mytest-expected-mac/005.png differ diff --git a/116-notifications/tests/mytest-expected-mac/006.json b/116-notifications/tests/mytest-expected-mac/006.json new file mode 100644 index 00000000..6c347c65 --- /dev/null +++ b/116-notifications/tests/mytest-expected-mac/006.json @@ -0,0 +1,16 @@ +{ + "input": { + "close": false, + "duration": "10", + "remove": 1, + "show": 2, + "txt": "Text of messagemnvckns", + "type": "error" + }, + "output": { + + }, + "export": { + + } +} diff --git a/116-notifications/tests/mytest-expected-mac/006.png b/116-notifications/tests/mytest-expected-mac/006.png new file mode 100644 index 00000000..7bc4bee7 Binary files /dev/null and b/116-notifications/tests/mytest-expected-mac/006.png differ diff --git a/116-notifications/tests/mytest-expected/001.json b/116-notifications/tests/mytest-expected/001.json new file mode 100644 index 00000000..56dab377 --- /dev/null +++ b/116-notifications/tests/mytest-expected/001.json @@ -0,0 +1,16 @@ +{ + "input": { + "close": true, + "duration": "2", + "remove": 0, + "show": 0, + "txt": "Text of message", + "type": "default" + }, + "output": { + + }, + "export": { + + } +} diff --git a/116-notifications/tests/mytest-expected/001.png b/116-notifications/tests/mytest-expected/001.png new file mode 100644 index 00000000..f875c7da Binary files /dev/null and b/116-notifications/tests/mytest-expected/001.png differ diff --git a/116-notifications/tests/mytest-expected/002.json b/116-notifications/tests/mytest-expected/002.json new file mode 100644 index 00000000..008fcc39 --- /dev/null +++ b/116-notifications/tests/mytest-expected/002.json @@ -0,0 +1,16 @@ +{ + "input": { + "close": true, + "duration": "5", + "remove": 0, + "show": 0, + "txt": "Text of message", + "type": "default" + }, + "output": { + + }, + "export": { + + } +} diff --git a/116-notifications/tests/mytest-expected/002.png b/116-notifications/tests/mytest-expected/002.png new file mode 100644 index 00000000..e8a46e58 Binary files /dev/null and b/116-notifications/tests/mytest-expected/002.png differ diff --git a/116-notifications/tests/mytest-expected/003.json b/116-notifications/tests/mytest-expected/003.json new file mode 100644 index 00000000..5619e18f --- /dev/null +++ b/116-notifications/tests/mytest-expected/003.json @@ -0,0 +1,16 @@ +{ + "input": { + "close": true, + "duration": "10", + "remove": 0, + "show": 0, + "txt": "Text of message", + "type": "default" + }, + "output": { + + }, + "export": { + + } +} diff --git a/116-notifications/tests/mytest-expected/003.png b/116-notifications/tests/mytest-expected/003.png new file mode 100644 index 00000000..943c61ae Binary files /dev/null and b/116-notifications/tests/mytest-expected/003.png differ diff --git a/116-notifications/tests/mytest-expected/004.json b/116-notifications/tests/mytest-expected/004.json new file mode 100644 index 00000000..cbc6d490 --- /dev/null +++ b/116-notifications/tests/mytest-expected/004.json @@ -0,0 +1,16 @@ +{ + "input": { + "close": true, + "duration": "10", + "remove": 0, + "show": 1, + "txt": "Text of message", + "type": "message" + }, + "output": { + + }, + "export": { + + } +} diff --git a/116-notifications/tests/mytest-expected/004.png b/116-notifications/tests/mytest-expected/004.png new file mode 100644 index 00000000..fc17bccc Binary files /dev/null and b/116-notifications/tests/mytest-expected/004.png differ diff --git a/116-notifications/tests/mytest-expected/005.json b/116-notifications/tests/mytest-expected/005.json new file mode 100644 index 00000000..d4615346 --- /dev/null +++ b/116-notifications/tests/mytest-expected/005.json @@ -0,0 +1,16 @@ +{ + "input": { + "close": true, + "duration": "10", + "remove": 1, + "show": 2, + "txt": "Text of messagemnvckns", + "type": "message" + }, + "output": { + + }, + "export": { + + } +} diff --git a/116-notifications/tests/mytest-expected/005.png b/116-notifications/tests/mytest-expected/005.png new file mode 100644 index 00000000..b06a6b52 Binary files /dev/null and b/116-notifications/tests/mytest-expected/005.png differ diff --git a/116-notifications/tests/mytest-expected/006.json b/116-notifications/tests/mytest-expected/006.json new file mode 100644 index 00000000..6c347c65 --- /dev/null +++ b/116-notifications/tests/mytest-expected/006.json @@ -0,0 +1,16 @@ +{ + "input": { + "close": false, + "duration": "10", + "remove": 1, + "show": 2, + "txt": "Text of messagemnvckns", + "type": "error" + }, + "output": { + + }, + "export": { + + } +} diff --git a/116-notifications/tests/mytest-expected/006.png b/116-notifications/tests/mytest-expected/006.png new file mode 100644 index 00000000..1d447c13 Binary files /dev/null and b/116-notifications/tests/mytest-expected/006.png differ diff --git a/116-notifications/tests/mytest.R b/116-notifications/tests/mytest.R new file mode 100644 index 00000000..9108290f --- /dev/null +++ b/116-notifications/tests/mytest.R @@ -0,0 +1,18 @@ +app <- ShinyDriver$new("../", seed = 100,shinyOptions = list(display.mode = "normal")) +app$snapshotInit("mytest") + +app$snapshot() +app$setInputs(duration = "5") +app$snapshot() +app$setInputs(duration = "10") +app$snapshot() +app$setInputs(type = "message") +app$setInputs(show = "click") +app$snapshot() +app$setInputs(txt = "Text of messagemnvckns") +app$setInputs(show = "click") +app$setInputs(remove = "click") +app$snapshot() +app$setInputs(type = "error") +app$setInputs(close = FALSE) +app$snapshot() diff --git a/117-shinythemes/tests/Rock.csv b/117-shinythemes/tests/Rock.csv new file mode 100644 index 00000000..a5649077 --- /dev/null +++ b/117-shinythemes/tests/Rock.csv @@ -0,0 +1,49 @@ +"area","peri","shape","perm" +4990,2791.9,0.0903296,6.3 +7002,3892.6,0.148622,6.3 +7558,3930.66,0.183312,6.3 +7352,3869.32,0.117063,6.3 +7943,3948.54,0.122417,17.1 +7979,4010.15,0.167045,17.1 +9333,4345.75,0.189651,17.1 +8209,4344.75,0.164127,17.1 +8393,3682.04,0.203654,119 +6425,3098.65,0.162394,119 +9364,4480.05,0.150944,119 +8624,3986.24,0.148141,119 +10651,4036.54,0.228595,82.4 +8868,3518.04,0.231623,82.4 +9417,3999.37,0.172567,82.4 +8874,3629.07,0.153481,82.4 +10962,4608.66,0.204314,58.6 +10743,4787.62,0.262727,58.6 +11878,4864.22,0.200071,58.6 +9867,4479.41,0.14481,58.6 +7838,3428.74,0.113852,142 +11876,4353.14,0.291029,142 +12212,4697.65,0.240077,142 +8233,3518.44,0.161865,142 +6360,1977.39,0.280887,740 +4193,1379.35,0.179455,740 +7416,1916.24,0.191802,740 +5246,1585.42,0.133083,740 +6509,1851.21,0.225214,890 +4895,1239.66,0.341273,890 +6775,1728.14,0.311646,890 +7894,1461.06,0.276016,890 +5980,1426.76,0.197653,950 +5318,990.388,0.326635,950 +7392,1350.76,0.154192,950 +7894,1461.06,0.276016,950 +3469,1376.7,0.176969,100 +1468,476.322,0.438712,100 +3524,1189.46,0.163586,100 +5267,1644.96,0.253832,100 +5048,941.543,0.328641,1300 +1016,308.642,0.230081,1300 +5605,1145.69,0.464125,1300 +8793,2280.49,0.420477,1300 +3475,1174.11,0.200744,580 +1651,597.808,0.262651,580 +5514,1455.88,0.182453,580 +9718,1485.58,0.200447,580 diff --git a/117-shinythemes/tests/mytest-expected-mac/001.json b/117-shinythemes/tests/mytest-expected-mac/001.json new file mode 100644 index 00000000..b5703e5b --- /dev/null +++ b/117-shinythemes/tests/mytest-expected-mac/001.json @@ -0,0 +1,17 @@ +{ + "input": { + "action": 0, + "action2": 0, + "file": null, + "shinytheme-selector": "default", + "slider": 30, + "txt": "general" + }, + "output": { + "table": "\n\n
speed <\/th> dist <\/th> <\/tr> <\/thead>
4.00 <\/td> 2.00 <\/td> <\/tr>\n
4.00 <\/td> 10.00 <\/td> <\/tr>\n
7.00 <\/td> 4.00 <\/td> <\/tr>\n
7.00 <\/td> 22.00 <\/td> <\/tr>\n <\/tbody> <\/table>", + "txtout": "general, 30, NULL" + }, + "export": { + + } +} diff --git a/117-shinythemes/tests/mytest-expected-mac/001.png b/117-shinythemes/tests/mytest-expected-mac/001.png new file mode 100644 index 00000000..6f0fda5d Binary files /dev/null and b/117-shinythemes/tests/mytest-expected-mac/001.png differ diff --git a/117-shinythemes/tests/mytest-expected-mac/002.json b/117-shinythemes/tests/mytest-expected-mac/002.json new file mode 100644 index 00000000..65491057 --- /dev/null +++ b/117-shinythemes/tests/mytest-expected-mac/002.json @@ -0,0 +1,17 @@ +{ + "input": { + "action": 0, + "action2": 0, + "file": null, + "shinytheme-selector": "lumen", + "slider": 30, + "txt": "general" + }, + "output": { + "table": "\n\n
speed <\/th> dist <\/th> <\/tr> <\/thead>
4.00 <\/td> 2.00 <\/td> <\/tr>\n
4.00 <\/td> 10.00 <\/td> <\/tr>\n
7.00 <\/td> 4.00 <\/td> <\/tr>\n
7.00 <\/td> 22.00 <\/td> <\/tr>\n <\/tbody> <\/table>", + "txtout": "general, 30, NULL" + }, + "export": { + + } +} diff --git a/117-shinythemes/tests/mytest-expected-mac/002.png b/117-shinythemes/tests/mytest-expected-mac/002.png new file mode 100644 index 00000000..52ec1a92 Binary files /dev/null and b/117-shinythemes/tests/mytest-expected-mac/002.png differ diff --git a/117-shinythemes/tests/mytest-expected-mac/003.json b/117-shinythemes/tests/mytest-expected-mac/003.json new file mode 100644 index 00000000..65491057 --- /dev/null +++ b/117-shinythemes/tests/mytest-expected-mac/003.json @@ -0,0 +1,17 @@ +{ + "input": { + "action": 0, + "action2": 0, + "file": null, + "shinytheme-selector": "lumen", + "slider": 30, + "txt": "general" + }, + "output": { + "table": "\n\n
speed <\/th> dist <\/th> <\/tr> <\/thead>
4.00 <\/td> 2.00 <\/td> <\/tr>\n
4.00 <\/td> 10.00 <\/td> <\/tr>\n
7.00 <\/td> 4.00 <\/td> <\/tr>\n
7.00 <\/td> 22.00 <\/td> <\/tr>\n <\/tbody> <\/table>", + "txtout": "general, 30, NULL" + }, + "export": { + + } +} diff --git a/117-shinythemes/tests/mytest-expected-mac/003.png b/117-shinythemes/tests/mytest-expected-mac/003.png new file mode 100644 index 00000000..52ec1a92 Binary files /dev/null and b/117-shinythemes/tests/mytest-expected-mac/003.png differ diff --git a/117-shinythemes/tests/mytest-expected-mac/004.json b/117-shinythemes/tests/mytest-expected-mac/004.json new file mode 100644 index 00000000..65491057 --- /dev/null +++ b/117-shinythemes/tests/mytest-expected-mac/004.json @@ -0,0 +1,17 @@ +{ + "input": { + "action": 0, + "action2": 0, + "file": null, + "shinytheme-selector": "lumen", + "slider": 30, + "txt": "general" + }, + "output": { + "table": "\n\n
speed <\/th> dist <\/th> <\/tr> <\/thead>
4.00 <\/td> 2.00 <\/td> <\/tr>\n
4.00 <\/td> 10.00 <\/td> <\/tr>\n
7.00 <\/td> 4.00 <\/td> <\/tr>\n
7.00 <\/td> 22.00 <\/td> <\/tr>\n <\/tbody> <\/table>", + "txtout": "general, 30, NULL" + }, + "export": { + + } +} diff --git a/117-shinythemes/tests/mytest-expected-mac/004.png b/117-shinythemes/tests/mytest-expected-mac/004.png new file mode 100644 index 00000000..52ec1a92 Binary files /dev/null and b/117-shinythemes/tests/mytest-expected-mac/004.png differ diff --git a/117-shinythemes/tests/mytest-expected-mac/005.json b/117-shinythemes/tests/mytest-expected-mac/005.json new file mode 100644 index 00000000..e66064f1 --- /dev/null +++ b/117-shinythemes/tests/mytest-expected-mac/005.json @@ -0,0 +1,17 @@ +{ + "input": { + "action": 0, + "action2": 1, + "file": null, + "shinytheme-selector": "lumen", + "slider": 30, + "txt": "general testing" + }, + "output": { + "table": "\n\n
speed <\/th> dist <\/th> <\/tr> <\/thead>
4.00 <\/td> 2.00 <\/td> <\/tr>\n
4.00 <\/td> 10.00 <\/td> <\/tr>\n
7.00 <\/td> 4.00 <\/td> <\/tr>\n
7.00 <\/td> 22.00 <\/td> <\/tr>\n <\/tbody> <\/table>", + "txtout": "general testing, 30, NULL" + }, + "export": { + + } +} diff --git a/117-shinythemes/tests/mytest-expected-mac/005.png b/117-shinythemes/tests/mytest-expected-mac/005.png new file mode 100644 index 00000000..7832c7bb Binary files /dev/null and b/117-shinythemes/tests/mytest-expected-mac/005.png differ diff --git a/117-shinythemes/tests/mytest-expected-mac/006.json b/117-shinythemes/tests/mytest-expected-mac/006.json new file mode 100644 index 00000000..477c332c --- /dev/null +++ b/117-shinythemes/tests/mytest-expected-mac/006.json @@ -0,0 +1,30 @@ +{ + "input": { + "action": 0, + "action2": 2, + "file": { + "name": [ + "Rock.csv" + ], + "size": [ + 1296 + ], + "type": [ + "text/csv" + ], + "datapath": [ + "0.csv" + ] + }, + "shinytheme-selector": "lumen", + "slider": 30, + "txt": "general testing" + }, + "output": { + "table": "\n\n
speed <\/th> dist <\/th> <\/tr> <\/thead>
4.00 <\/td> 2.00 <\/td> <\/tr>\n
4.00 <\/td> 10.00 <\/td> <\/tr>\n
7.00 <\/td> 4.00 <\/td> <\/tr>\n
7.00 <\/td> 22.00 <\/td> <\/tr>\n <\/tbody> <\/table>", + "txtout": "general testing, 30, NULL" + }, + "export": { + + } +} diff --git a/117-shinythemes/tests/mytest-expected-mac/006.png b/117-shinythemes/tests/mytest-expected-mac/006.png new file mode 100644 index 00000000..12f67b7e Binary files /dev/null and b/117-shinythemes/tests/mytest-expected-mac/006.png differ diff --git a/117-shinythemes/tests/mytest-expected-mac/007.json b/117-shinythemes/tests/mytest-expected-mac/007.json new file mode 100644 index 00000000..c5c51e43 --- /dev/null +++ b/117-shinythemes/tests/mytest-expected-mac/007.json @@ -0,0 +1,30 @@ +{ + "input": { + "action": 0, + "action2": 2, + "file": { + "name": [ + "Rock.csv" + ], + "size": [ + 1296 + ], + "type": [ + "text/csv" + ], + "datapath": [ + "0.csv" + ] + }, + "shinytheme-selector": "lumen", + "slider": 100, + "txt": "general testing" + }, + "output": { + "table": "\n\n
speed <\/th> dist <\/th> <\/tr> <\/thead>
4.00 <\/td> 2.00 <\/td> <\/tr>\n
4.00 <\/td> 10.00 <\/td> <\/tr>\n
7.00 <\/td> 4.00 <\/td> <\/tr>\n
7.00 <\/td> 22.00 <\/td> <\/tr>\n <\/tbody> <\/table>", + "txtout": "general testing, 100, NULL" + }, + "export": { + + } +} diff --git a/117-shinythemes/tests/mytest-expected-mac/007.png b/117-shinythemes/tests/mytest-expected-mac/007.png new file mode 100644 index 00000000..efe9c8d1 Binary files /dev/null and b/117-shinythemes/tests/mytest-expected-mac/007.png differ diff --git a/117-shinythemes/tests/mytest-expected-mac/008.json b/117-shinythemes/tests/mytest-expected-mac/008.json new file mode 100644 index 00000000..e1f82858 --- /dev/null +++ b/117-shinythemes/tests/mytest-expected-mac/008.json @@ -0,0 +1,30 @@ +{ + "input": { + "action": 1, + "action2": 2, + "file": { + "name": [ + "Rock.csv" + ], + "size": [ + 1296 + ], + "type": [ + "text/csv" + ], + "datapath": [ + "0.csv" + ] + }, + "shinytheme-selector": "spacelab", + "slider": 100, + "txt": "general testing" + }, + "output": { + "table": "\n\n
speed <\/th> dist <\/th> <\/tr> <\/thead>
4.00 <\/td> 2.00 <\/td> <\/tr>\n
4.00 <\/td> 10.00 <\/td> <\/tr>\n
7.00 <\/td> 4.00 <\/td> <\/tr>\n
7.00 <\/td> 22.00 <\/td> <\/tr>\n <\/tbody> <\/table>", + "txtout": "general testing, 100, NULL" + }, + "export": { + + } +} diff --git a/117-shinythemes/tests/mytest-expected-mac/008.png b/117-shinythemes/tests/mytest-expected-mac/008.png new file mode 100644 index 00000000..ec73e3b9 Binary files /dev/null and b/117-shinythemes/tests/mytest-expected-mac/008.png differ diff --git a/117-shinythemes/tests/mytest-expected-mac/009.json b/117-shinythemes/tests/mytest-expected-mac/009.json new file mode 100644 index 00000000..5b39be98 --- /dev/null +++ b/117-shinythemes/tests/mytest-expected-mac/009.json @@ -0,0 +1,30 @@ +{ + "input": { + "action": 1, + "action2": 2, + "file": { + "name": [ + "Rock.csv" + ], + "size": [ + 1296 + ], + "type": [ + "text/csv" + ], + "datapath": [ + "0.csv" + ] + }, + "shinytheme-selector": "yeti", + "slider": 100, + "txt": "general testing" + }, + "output": { + "table": "\n\n
speed <\/th> dist <\/th> <\/tr> <\/thead>
4.00 <\/td> 2.00 <\/td> <\/tr>\n
4.00 <\/td> 10.00 <\/td> <\/tr>\n
7.00 <\/td> 4.00 <\/td> <\/tr>\n
7.00 <\/td> 22.00 <\/td> <\/tr>\n <\/tbody> <\/table>", + "txtout": "general testing, 100, NULL" + }, + "export": { + + } +} diff --git a/117-shinythemes/tests/mytest-expected-mac/009.png b/117-shinythemes/tests/mytest-expected-mac/009.png new file mode 100644 index 00000000..63288115 Binary files /dev/null and b/117-shinythemes/tests/mytest-expected-mac/009.png differ diff --git a/117-shinythemes/tests/mytest-expected-mac/010.json b/117-shinythemes/tests/mytest-expected-mac/010.json new file mode 100644 index 00000000..a80b77dd --- /dev/null +++ b/117-shinythemes/tests/mytest-expected-mac/010.json @@ -0,0 +1,30 @@ +{ + "input": { + "action": 1, + "action2": 2, + "file": { + "name": [ + "Rock.csv" + ], + "size": [ + 1296 + ], + "type": [ + "text/csv" + ], + "datapath": [ + "0.csv" + ] + }, + "shinytheme-selector": "yeti", + "slider": 79, + "txt": "general testing" + }, + "output": { + "table": "\n\n
speed <\/th> dist <\/th> <\/tr> <\/thead>
4.00 <\/td> 2.00 <\/td> <\/tr>\n
4.00 <\/td> 10.00 <\/td> <\/tr>\n
7.00 <\/td> 4.00 <\/td> <\/tr>\n
7.00 <\/td> 22.00 <\/td> <\/tr>\n <\/tbody> <\/table>", + "txtout": "general testing, 79, NULL" + }, + "export": { + + } +} diff --git a/117-shinythemes/tests/mytest-expected-mac/010.png b/117-shinythemes/tests/mytest-expected-mac/010.png new file mode 100644 index 00000000..bd14f713 Binary files /dev/null and b/117-shinythemes/tests/mytest-expected-mac/010.png differ diff --git a/117-shinythemes/tests/mytest-expected/001.json b/117-shinythemes/tests/mytest-expected/001.json new file mode 100644 index 00000000..b5703e5b --- /dev/null +++ b/117-shinythemes/tests/mytest-expected/001.json @@ -0,0 +1,17 @@ +{ + "input": { + "action": 0, + "action2": 0, + "file": null, + "shinytheme-selector": "default", + "slider": 30, + "txt": "general" + }, + "output": { + "table": "\n\n
speed <\/th> dist <\/th> <\/tr> <\/thead>
4.00 <\/td> 2.00 <\/td> <\/tr>\n
4.00 <\/td> 10.00 <\/td> <\/tr>\n
7.00 <\/td> 4.00 <\/td> <\/tr>\n
7.00 <\/td> 22.00 <\/td> <\/tr>\n <\/tbody> <\/table>", + "txtout": "general, 30, NULL" + }, + "export": { + + } +} diff --git a/117-shinythemes/tests/mytest-expected/001.png b/117-shinythemes/tests/mytest-expected/001.png new file mode 100644 index 00000000..6f0fda5d Binary files /dev/null and b/117-shinythemes/tests/mytest-expected/001.png differ diff --git a/117-shinythemes/tests/mytest-expected/002.json b/117-shinythemes/tests/mytest-expected/002.json new file mode 100644 index 00000000..65491057 --- /dev/null +++ b/117-shinythemes/tests/mytest-expected/002.json @@ -0,0 +1,17 @@ +{ + "input": { + "action": 0, + "action2": 0, + "file": null, + "shinytheme-selector": "lumen", + "slider": 30, + "txt": "general" + }, + "output": { + "table": "\n\n
speed <\/th> dist <\/th> <\/tr> <\/thead>
4.00 <\/td> 2.00 <\/td> <\/tr>\n
4.00 <\/td> 10.00 <\/td> <\/tr>\n
7.00 <\/td> 4.00 <\/td> <\/tr>\n
7.00 <\/td> 22.00 <\/td> <\/tr>\n <\/tbody> <\/table>", + "txtout": "general, 30, NULL" + }, + "export": { + + } +} diff --git a/117-shinythemes/tests/mytest-expected/002.png b/117-shinythemes/tests/mytest-expected/002.png new file mode 100644 index 00000000..52ec1a92 Binary files /dev/null and b/117-shinythemes/tests/mytest-expected/002.png differ diff --git a/117-shinythemes/tests/mytest-expected/003.json b/117-shinythemes/tests/mytest-expected/003.json new file mode 100644 index 00000000..65491057 --- /dev/null +++ b/117-shinythemes/tests/mytest-expected/003.json @@ -0,0 +1,17 @@ +{ + "input": { + "action": 0, + "action2": 0, + "file": null, + "shinytheme-selector": "lumen", + "slider": 30, + "txt": "general" + }, + "output": { + "table": "\n\n
speed <\/th> dist <\/th> <\/tr> <\/thead>
4.00 <\/td> 2.00 <\/td> <\/tr>\n
4.00 <\/td> 10.00 <\/td> <\/tr>\n
7.00 <\/td> 4.00 <\/td> <\/tr>\n
7.00 <\/td> 22.00 <\/td> <\/tr>\n <\/tbody> <\/table>", + "txtout": "general, 30, NULL" + }, + "export": { + + } +} diff --git a/117-shinythemes/tests/mytest-expected/003.png b/117-shinythemes/tests/mytest-expected/003.png new file mode 100644 index 00000000..52ec1a92 Binary files /dev/null and b/117-shinythemes/tests/mytest-expected/003.png differ diff --git a/117-shinythemes/tests/mytest-expected/004.json b/117-shinythemes/tests/mytest-expected/004.json new file mode 100644 index 00000000..65491057 --- /dev/null +++ b/117-shinythemes/tests/mytest-expected/004.json @@ -0,0 +1,17 @@ +{ + "input": { + "action": 0, + "action2": 0, + "file": null, + "shinytheme-selector": "lumen", + "slider": 30, + "txt": "general" + }, + "output": { + "table": "\n\n
speed <\/th> dist <\/th> <\/tr> <\/thead>
4.00 <\/td> 2.00 <\/td> <\/tr>\n
4.00 <\/td> 10.00 <\/td> <\/tr>\n
7.00 <\/td> 4.00 <\/td> <\/tr>\n
7.00 <\/td> 22.00 <\/td> <\/tr>\n <\/tbody> <\/table>", + "txtout": "general, 30, NULL" + }, + "export": { + + } +} diff --git a/117-shinythemes/tests/mytest-expected/004.png b/117-shinythemes/tests/mytest-expected/004.png new file mode 100644 index 00000000..52ec1a92 Binary files /dev/null and b/117-shinythemes/tests/mytest-expected/004.png differ diff --git a/117-shinythemes/tests/mytest-expected/005.json b/117-shinythemes/tests/mytest-expected/005.json new file mode 100644 index 00000000..e66064f1 --- /dev/null +++ b/117-shinythemes/tests/mytest-expected/005.json @@ -0,0 +1,17 @@ +{ + "input": { + "action": 0, + "action2": 1, + "file": null, + "shinytheme-selector": "lumen", + "slider": 30, + "txt": "general testing" + }, + "output": { + "table": "\n\n
speed <\/th> dist <\/th> <\/tr> <\/thead>
4.00 <\/td> 2.00 <\/td> <\/tr>\n
4.00 <\/td> 10.00 <\/td> <\/tr>\n
7.00 <\/td> 4.00 <\/td> <\/tr>\n
7.00 <\/td> 22.00 <\/td> <\/tr>\n <\/tbody> <\/table>", + "txtout": "general testing, 30, NULL" + }, + "export": { + + } +} diff --git a/117-shinythemes/tests/mytest-expected/005.png b/117-shinythemes/tests/mytest-expected/005.png new file mode 100644 index 00000000..7832c7bb Binary files /dev/null and b/117-shinythemes/tests/mytest-expected/005.png differ diff --git a/117-shinythemes/tests/mytest-expected/006.json b/117-shinythemes/tests/mytest-expected/006.json new file mode 100644 index 00000000..477c332c --- /dev/null +++ b/117-shinythemes/tests/mytest-expected/006.json @@ -0,0 +1,30 @@ +{ + "input": { + "action": 0, + "action2": 2, + "file": { + "name": [ + "Rock.csv" + ], + "size": [ + 1296 + ], + "type": [ + "text/csv" + ], + "datapath": [ + "0.csv" + ] + }, + "shinytheme-selector": "lumen", + "slider": 30, + "txt": "general testing" + }, + "output": { + "table": "\n\n
speed <\/th> dist <\/th> <\/tr> <\/thead>
4.00 <\/td> 2.00 <\/td> <\/tr>\n
4.00 <\/td> 10.00 <\/td> <\/tr>\n
7.00 <\/td> 4.00 <\/td> <\/tr>\n
7.00 <\/td> 22.00 <\/td> <\/tr>\n <\/tbody> <\/table>", + "txtout": "general testing, 30, NULL" + }, + "export": { + + } +} diff --git a/117-shinythemes/tests/mytest-expected/006.png b/117-shinythemes/tests/mytest-expected/006.png new file mode 100644 index 00000000..12f67b7e Binary files /dev/null and b/117-shinythemes/tests/mytest-expected/006.png differ diff --git a/117-shinythemes/tests/mytest-expected/007.json b/117-shinythemes/tests/mytest-expected/007.json new file mode 100644 index 00000000..c5c51e43 --- /dev/null +++ b/117-shinythemes/tests/mytest-expected/007.json @@ -0,0 +1,30 @@ +{ + "input": { + "action": 0, + "action2": 2, + "file": { + "name": [ + "Rock.csv" + ], + "size": [ + 1296 + ], + "type": [ + "text/csv" + ], + "datapath": [ + "0.csv" + ] + }, + "shinytheme-selector": "lumen", + "slider": 100, + "txt": "general testing" + }, + "output": { + "table": "\n\n
speed <\/th> dist <\/th> <\/tr> <\/thead>
4.00 <\/td> 2.00 <\/td> <\/tr>\n
4.00 <\/td> 10.00 <\/td> <\/tr>\n
7.00 <\/td> 4.00 <\/td> <\/tr>\n
7.00 <\/td> 22.00 <\/td> <\/tr>\n <\/tbody> <\/table>", + "txtout": "general testing, 100, NULL" + }, + "export": { + + } +} diff --git a/117-shinythemes/tests/mytest-expected/007.png b/117-shinythemes/tests/mytest-expected/007.png new file mode 100644 index 00000000..efe9c8d1 Binary files /dev/null and b/117-shinythemes/tests/mytest-expected/007.png differ diff --git a/117-shinythemes/tests/mytest-expected/008.json b/117-shinythemes/tests/mytest-expected/008.json new file mode 100644 index 00000000..e1f82858 --- /dev/null +++ b/117-shinythemes/tests/mytest-expected/008.json @@ -0,0 +1,30 @@ +{ + "input": { + "action": 1, + "action2": 2, + "file": { + "name": [ + "Rock.csv" + ], + "size": [ + 1296 + ], + "type": [ + "text/csv" + ], + "datapath": [ + "0.csv" + ] + }, + "shinytheme-selector": "spacelab", + "slider": 100, + "txt": "general testing" + }, + "output": { + "table": "\n\n
speed <\/th> dist <\/th> <\/tr> <\/thead>
4.00 <\/td> 2.00 <\/td> <\/tr>\n
4.00 <\/td> 10.00 <\/td> <\/tr>\n
7.00 <\/td> 4.00 <\/td> <\/tr>\n
7.00 <\/td> 22.00 <\/td> <\/tr>\n <\/tbody> <\/table>", + "txtout": "general testing, 100, NULL" + }, + "export": { + + } +} diff --git a/117-shinythemes/tests/mytest-expected/008.png b/117-shinythemes/tests/mytest-expected/008.png new file mode 100644 index 00000000..ec73e3b9 Binary files /dev/null and b/117-shinythemes/tests/mytest-expected/008.png differ diff --git a/117-shinythemes/tests/mytest-expected/009.json b/117-shinythemes/tests/mytest-expected/009.json new file mode 100644 index 00000000..5b39be98 --- /dev/null +++ b/117-shinythemes/tests/mytest-expected/009.json @@ -0,0 +1,30 @@ +{ + "input": { + "action": 1, + "action2": 2, + "file": { + "name": [ + "Rock.csv" + ], + "size": [ + 1296 + ], + "type": [ + "text/csv" + ], + "datapath": [ + "0.csv" + ] + }, + "shinytheme-selector": "yeti", + "slider": 100, + "txt": "general testing" + }, + "output": { + "table": "\n\n
speed <\/th> dist <\/th> <\/tr> <\/thead>
4.00 <\/td> 2.00 <\/td> <\/tr>\n
4.00 <\/td> 10.00 <\/td> <\/tr>\n
7.00 <\/td> 4.00 <\/td> <\/tr>\n
7.00 <\/td> 22.00 <\/td> <\/tr>\n <\/tbody> <\/table>", + "txtout": "general testing, 100, NULL" + }, + "export": { + + } +} diff --git a/117-shinythemes/tests/mytest-expected/009.png b/117-shinythemes/tests/mytest-expected/009.png new file mode 100644 index 00000000..9ca27c2b Binary files /dev/null and b/117-shinythemes/tests/mytest-expected/009.png differ diff --git a/117-shinythemes/tests/mytest-expected/010.json b/117-shinythemes/tests/mytest-expected/010.json new file mode 100644 index 00000000..a80b77dd --- /dev/null +++ b/117-shinythemes/tests/mytest-expected/010.json @@ -0,0 +1,30 @@ +{ + "input": { + "action": 1, + "action2": 2, + "file": { + "name": [ + "Rock.csv" + ], + "size": [ + 1296 + ], + "type": [ + "text/csv" + ], + "datapath": [ + "0.csv" + ] + }, + "shinytheme-selector": "yeti", + "slider": 79, + "txt": "general testing" + }, + "output": { + "table": "\n\n
speed <\/th> dist <\/th> <\/tr> <\/thead>
4.00 <\/td> 2.00 <\/td> <\/tr>\n
4.00 <\/td> 10.00 <\/td> <\/tr>\n
7.00 <\/td> 4.00 <\/td> <\/tr>\n
7.00 <\/td> 22.00 <\/td> <\/tr>\n <\/tbody> <\/table>", + "txtout": "general testing, 79, NULL" + }, + "export": { + + } +} diff --git a/117-shinythemes/tests/mytest-expected/010.png b/117-shinythemes/tests/mytest-expected/010.png new file mode 100644 index 00000000..cb5084af Binary files /dev/null and b/117-shinythemes/tests/mytest-expected/010.png differ diff --git a/117-shinythemes/tests/mytest.R b/117-shinythemes/tests/mytest.R new file mode 100644 index 00000000..06259921 --- /dev/null +++ b/117-shinythemes/tests/mytest.R @@ -0,0 +1,32 @@ +app <- ShinyDriver$new("../", seed = 100,shinyOptions = list(display.mode = "normal")) +app$snapshotInit("mytest") +Sys.sleep(1) +app$snapshot() +app$setInputs(`shinytheme-selector` = "lumen") +Sys.sleep(1) +app$snapshot() +app$snapshot() +app$snapshot() +app$setInputs(txt = "general ") +app$setInputs(txt = "general test") +app$setInputs(txt = "general testing") +app$setInputs(action2 = "click") +app$snapshot() +app$uploadFile(file = "Rock.csv") # <-- This should be the path to the file, relative to the app's tests/ directory +app$setInputs(action2 = "click") +app$snapshot() +app$setInputs(slider = 75) +app$setInputs(slider = 100) +app$snapshot() +app$setInputs(action = "click") +app$setInputs(`shinytheme-selector` = "spacelab") +Sys.sleep(1) +app$snapshot() +app$setInputs(`shinytheme-selector` = "yeti") +Sys.sleep(1) +app$snapshot() +app$setInputs(slider = 1) +app$setInputs(slider = 100) +app$setInputs(slider = 79) +Sys.sleep(1) +app$snapshot() diff --git a/118-highcharter-births/tests/mytest-expected/001.json b/118-highcharter-births/tests/mytest-expected/001.json new file mode 100644 index 00000000..13053ba3 --- /dev/null +++ b/118-highcharter-births/tests/mytest-expected/001.json @@ -0,0 +1,180 @@ +{ + "input": { + "plot_type": "scatter", + "theme": "No theme", + "year": [ + 1994, + 2014 + ] + }, + "output": { + "hcontainer": { + "x": { + "hc_opts": { + "title": { + "text": "The Friday the 13th effect", + "style": { + "fontWeight": "bold" + } + }, + "yAxis": { + "title": { + "text": "Difference, in ppt" + }, + "allowDecimals": false + }, + "credits": { + "enabled": true, + "text": "Sources: CDC/NCHS, SOCIAL SECURITY ADMINISTRATION", + "style": { + "fontSize": "10px" + } + }, + "exporting": { + "enabled": false + }, + "plotOptions": { + "series": { + "label": { + "enabled": false + }, + "turboThreshold": 0 + }, + "treemap": { + "layoutAlgorithm": "squarified" + } + }, + "series": [ + { + "data": [ + -1.94408533633964, + -2.09640084837914, + -2.88419021586204, + -3.33732491210089, + -6.38257168137361, + -0.670953447486928, + -1.00627839838004 + ], + "type": "scatter", + "name": "Difference, in ppt", + "showInLegend": false + } + ], + "xAxis": { + "categories": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", + "Sunday" + ], + "tickmarkPlacement": "on", + "opposite": true + }, + "subtitle": { + "text": "Difference in the share of U.S. births on 13th \n of each month from the average of births on the 6th \n and the 20th, 1994 - 2014" + }, + "tooltip": { + "valueDecimals": 4, + "pointFormat": "Day: {point.x}
Diff: {point.y}" + } + }, + "theme": { + "chart": { + "backgroundColor": "transparent" + } + }, + "conf_opts": { + "global": { + "Date": null, + "VMLRadialGradientURL": "http =//code.highcharts.com/list(version)/gfx/vml-radial-gradient.png", + "canvasToolsURL": "http =//code.highcharts.com/list(version)/modules/canvas-tools.js", + "getTimezoneOffset": null, + "timezoneOffset": 0, + "useUTC": true + }, + "lang": { + "contextButtonTitle": "Chart context menu", + "decimalPoint": ".", + "downloadJPEG": "Download JPEG image", + "downloadPDF": "Download PDF document", + "downloadPNG": "Download PNG image", + "downloadSVG": "Download SVG vector image", + "drillUpText": "Back to {series.name}", + "invalidDate": null, + "loading": "Loading...", + "months": [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December" + ], + "noData": "No data to display", + "numericSymbols": [ + "k", + "M", + "G", + "T", + "P", + "E" + ], + "printChart": "Print chart", + "resetZoom": "Reset zoom", + "resetZoomTitle": "Reset zoom level 1:1", + "shortMonths": [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec" + ], + "thousandsSep": " ", + "weekdays": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ] + } + }, + "type": "chart", + "fonts": [ + + ], + "debug": false + }, + "evals": [ + + ], + "jsHooks": [ + + ], + "deps": [ + + ] + } + }, + "export": { + + } +} diff --git a/118-highcharter-births/tests/mytest-expected/001.png b/118-highcharter-births/tests/mytest-expected/001.png new file mode 100644 index 00000000..0fa6540a Binary files /dev/null and b/118-highcharter-births/tests/mytest-expected/001.png differ diff --git a/118-highcharter-births/tests/mytest-expected/002.json b/118-highcharter-births/tests/mytest-expected/002.json new file mode 100644 index 00000000..83c68823 --- /dev/null +++ b/118-highcharter-births/tests/mytest-expected/002.json @@ -0,0 +1,180 @@ +{ + "input": { + "plot_type": "column", + "theme": "No theme", + "year": [ + 1994, + 2014 + ] + }, + "output": { + "hcontainer": { + "x": { + "hc_opts": { + "title": { + "text": "The Friday the 13th effect", + "style": { + "fontWeight": "bold" + } + }, + "yAxis": { + "title": { + "text": "Difference, in ppt" + }, + "allowDecimals": false + }, + "credits": { + "enabled": true, + "text": "Sources: CDC/NCHS, SOCIAL SECURITY ADMINISTRATION", + "style": { + "fontSize": "10px" + } + }, + "exporting": { + "enabled": false + }, + "plotOptions": { + "series": { + "label": { + "enabled": false + }, + "turboThreshold": 0 + }, + "treemap": { + "layoutAlgorithm": "squarified" + } + }, + "series": [ + { + "data": [ + -1.94408533633964, + -2.09640084837914, + -2.88419021586204, + -3.33732491210089, + -6.38257168137361, + -0.670953447486928, + -1.00627839838004 + ], + "type": "column", + "name": "Difference, in ppt", + "showInLegend": false + } + ], + "xAxis": { + "categories": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", + "Sunday" + ], + "tickmarkPlacement": "on", + "opposite": true + }, + "subtitle": { + "text": "Difference in the share of U.S. births on 13th \n of each month from the average of births on the 6th \n and the 20th, 1994 - 2014" + }, + "tooltip": { + "valueDecimals": 4, + "pointFormat": "Day: {point.x}
Diff: {point.y}" + } + }, + "theme": { + "chart": { + "backgroundColor": "transparent" + } + }, + "conf_opts": { + "global": { + "Date": null, + "VMLRadialGradientURL": "http =//code.highcharts.com/list(version)/gfx/vml-radial-gradient.png", + "canvasToolsURL": "http =//code.highcharts.com/list(version)/modules/canvas-tools.js", + "getTimezoneOffset": null, + "timezoneOffset": 0, + "useUTC": true + }, + "lang": { + "contextButtonTitle": "Chart context menu", + "decimalPoint": ".", + "downloadJPEG": "Download JPEG image", + "downloadPDF": "Download PDF document", + "downloadPNG": "Download PNG image", + "downloadSVG": "Download SVG vector image", + "drillUpText": "Back to {series.name}", + "invalidDate": null, + "loading": "Loading...", + "months": [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December" + ], + "noData": "No data to display", + "numericSymbols": [ + "k", + "M", + "G", + "T", + "P", + "E" + ], + "printChart": "Print chart", + "resetZoom": "Reset zoom", + "resetZoomTitle": "Reset zoom level 1:1", + "shortMonths": [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec" + ], + "thousandsSep": " ", + "weekdays": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ] + } + }, + "type": "chart", + "fonts": [ + + ], + "debug": false + }, + "evals": [ + + ], + "jsHooks": [ + + ], + "deps": [ + + ] + } + }, + "export": { + + } +} diff --git a/118-highcharter-births/tests/mytest-expected/002.png b/118-highcharter-births/tests/mytest-expected/002.png new file mode 100644 index 00000000..395fe169 Binary files /dev/null and b/118-highcharter-births/tests/mytest-expected/002.png differ diff --git a/118-highcharter-births/tests/mytest-expected/003.json b/118-highcharter-births/tests/mytest-expected/003.json new file mode 100644 index 00000000..88698db9 --- /dev/null +++ b/118-highcharter-births/tests/mytest-expected/003.json @@ -0,0 +1,269 @@ +{ + "input": { + "plot_type": "column", + "theme": "fivethirtyeight", + "year": [ + 1994, + 2014 + ] + }, + "output": { + "hcontainer": { + "x": { + "hc_opts": { + "title": { + "text": "The Friday the 13th effect", + "style": { + "fontWeight": "bold" + } + }, + "yAxis": { + "title": { + "text": "Difference, in ppt" + }, + "allowDecimals": false + }, + "credits": { + "enabled": true, + "text": "Sources: CDC/NCHS, SOCIAL SECURITY ADMINISTRATION", + "style": { + "fontSize": "10px" + } + }, + "exporting": { + "enabled": false + }, + "plotOptions": { + "series": { + "label": { + "enabled": false + }, + "turboThreshold": 0 + }, + "treemap": { + "layoutAlgorithm": "squarified" + } + }, + "series": [ + { + "data": [ + -1.94408533633964, + -2.09640084837914, + -2.88419021586204, + -3.33732491210089, + -6.38257168137361, + -0.670953447486928, + -1.00627839838004 + ], + "type": "column", + "name": "Difference, in ppt", + "showInLegend": false + } + ], + "xAxis": { + "categories": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", + "Sunday" + ], + "tickmarkPlacement": "on", + "opposite": true + }, + "subtitle": { + "text": "Difference in the share of U.S. births on 13th \n of each month from the average of births on the 6th \n and the 20th, 1994 - 2014" + }, + "tooltip": { + "valueDecimals": 4, + "pointFormat": "Day: {point.x}
Diff: {point.y}" + } + }, + "theme": { + "colors": [ + "#FF2700", + "#008FD5", + "#77AB43", + "#636464", + "#C4C4C4" + ], + "chart": { + "backgroundColor": "#F0F0F0", + "plotBorderColor": "#606063", + "style": { + "fontFamily": "Roboto", + "color": "#3C3C3C" + } + }, + "title": { + "align": "left", + "style": { + "fontWeight": "bold" + } + }, + "subtitle": { + "align": "left" + }, + "xAxis": { + "gridLineWidth": 1, + "gridLineColor": "#D7D7D8", + "labels": { + "style": { + "fontFamily": "Unica One, sans-serif", + "color": "#3C3C3C" + } + }, + "lineColor": "#D7D7D8", + "minorGridLineColor": "#505053", + "tickColor": "#D7D7D8", + "tickWidth": 1, + "title": { + "style": { + "color": "#A0A0A3" + } + } + }, + "yAxis": { + "gridLineColor": "#D7D7D8", + "labels": { + "style": { + "fontFamily": "Unica One, sans-serif", + "color": "#3C3C3C" + } + }, + "lineColor": "#D7D7D8", + "minorGridLineColor": "#505053", + "tickColor": "#D7D7D8", + "tickWidth": 1, + "title": { + "style": { + "color": "#A0A0A3" + } + } + }, + "tooltip": { + "backgroundColor": "rgba(0, 0, 0, 0.85)", + "style": { + "color": "#F0F0F0" + } + }, + "legend": { + "itemStyle": { + "color": "#3C3C3C" + }, + "itemHiddenStyle": { + "color": "#606063" + } + }, + "credits": { + "style": { + "color": "#666" + } + }, + "labels": { + "style": { + "color": "#D7D7D8" + } + }, + "legendBackgroundColor": "rgba(0, 0, 0, 0.5)", + "background2": "#505053", + "dataLabelsColor": "#B0B0B3", + "textColor": "#C0C0C0", + "contrastTextColor": "#F0F0F3", + "maskColor": "rgba(255,255,255,0.3)" + }, + "conf_opts": { + "global": { + "Date": null, + "VMLRadialGradientURL": "http =//code.highcharts.com/list(version)/gfx/vml-radial-gradient.png", + "canvasToolsURL": "http =//code.highcharts.com/list(version)/modules/canvas-tools.js", + "getTimezoneOffset": null, + "timezoneOffset": 0, + "useUTC": true + }, + "lang": { + "contextButtonTitle": "Chart context menu", + "decimalPoint": ".", + "downloadJPEG": "Download JPEG image", + "downloadPDF": "Download PDF document", + "downloadPNG": "Download PNG image", + "downloadSVG": "Download SVG vector image", + "drillUpText": "Back to {series.name}", + "invalidDate": null, + "loading": "Loading...", + "months": [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December" + ], + "noData": "No data to display", + "numericSymbols": [ + "k", + "M", + "G", + "T", + "P", + "E" + ], + "printChart": "Print chart", + "resetZoom": "Reset zoom", + "resetZoomTitle": "Reset zoom level 1:1", + "shortMonths": [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec" + ], + "thousandsSep": " ", + "weekdays": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ] + } + }, + "type": "chart", + "fonts": [ + "Roboto", + "Unica+One" + ], + "debug": false + }, + "evals": [ + + ], + "jsHooks": [ + + ], + "deps": [ + + ] + } + }, + "export": { + + } +} diff --git a/118-highcharter-births/tests/mytest-expected/003.png b/118-highcharter-births/tests/mytest-expected/003.png new file mode 100644 index 00000000..b05e199b Binary files /dev/null and b/118-highcharter-births/tests/mytest-expected/003.png differ diff --git a/118-highcharter-births/tests/mytest.R b/118-highcharter-births/tests/mytest.R new file mode 100644 index 00000000..bbf6d824 --- /dev/null +++ b/118-highcharter-births/tests/mytest.R @@ -0,0 +1,11 @@ +app <- ShinyDriver$new("../", seed = 100,shinyOptions = list(display.mode = "normal")) +app$snapshotInit("mytest") +Sys.sleep(1) +app$snapshot() +app$setInputs(plot_type = "column") +Sys.sleep(1) +app$snapshot() +app$setInputs(theme = "chalk") +app$setInputs(theme = "fivethirtyeight") +Sys.sleep(2) +app$snapshot() diff --git a/119-namespaced-conditionalpanel-demo/tests/mytest-expected-mac/001.json b/119-namespaced-conditionalpanel-demo/tests/mytest-expected-mac/001.json new file mode 100644 index 00000000..e26b9fd2 --- /dev/null +++ b/119-namespaced-conditionalpanel-demo/tests/mytest-expected-mac/001.json @@ -0,0 +1,79 @@ +{ + "input": { + "plot1-n": 50, + "plot2-n": 50 + }, + "output": { + "plot1-scatterPlot": { + "src": "[image data sha1: ff80e941d483bf8e531678ba1dc05447c7994845]", + "width": 383, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": -2.0462139901976, + "right": 2.47785493097047, + "bottom": -2.46608086256904, + "top": 2.77611430427408 + }, + "range": { + "left": 59.04, + "right": 352.76, + "bottom": 225.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 383, + "height": 300 + } + } + }, + "plot2-scatterPlot": { + "src": "[image data sha1: 39f6e4c8788f5c9e90b820cb241ba702c77a7e58]", + "width": 383, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": -2.28656123713816, + "right": 1.76525806412037, + "bottom": -2.21026786045334, + "top": 2.33701832399766 + }, + "range": { + "left": 59.04, + "right": 352.76, + "bottom": 225.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 383, + "height": 300 + } + } + } + }, + "export": { + + } +} diff --git a/119-namespaced-conditionalpanel-demo/tests/mytest-expected-mac/001.png b/119-namespaced-conditionalpanel-demo/tests/mytest-expected-mac/001.png new file mode 100644 index 00000000..12b8fcff Binary files /dev/null and b/119-namespaced-conditionalpanel-demo/tests/mytest-expected-mac/001.png differ diff --git a/119-namespaced-conditionalpanel-demo/tests/mytest-expected-mac/002.json b/119-namespaced-conditionalpanel-demo/tests/mytest-expected-mac/002.json new file mode 100644 index 00000000..f8eb691a --- /dev/null +++ b/119-namespaced-conditionalpanel-demo/tests/mytest-expected-mac/002.json @@ -0,0 +1,79 @@ +{ + "input": { + "plot1-n": 180, + "plot2-n": 50 + }, + "output": { + "plot1-scatterPlot": { + "src": "[image data sha1: 942e44ff9bd523dd091c51683d1c8676dac486a7]", + "width": 383, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": -3.27381291540849, + "right": 3.55714972720541, + "bottom": -3.55092264929738, + "top": 2.66286934453339 + }, + "range": { + "left": 59.04, + "right": 352.76, + "bottom": 225.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 383, + "height": 300 + } + } + }, + "plot2-scatterPlot": { + "src": "[image data sha1: 39f6e4c8788f5c9e90b820cb241ba702c77a7e58]", + "width": 383, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": -2.28656123713816, + "right": 1.76525806412037, + "bottom": -2.21026786045334, + "top": 2.33701832399766 + }, + "range": { + "left": 59.04, + "right": 352.76, + "bottom": 225.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 383, + "height": 300 + } + } + } + }, + "export": { + + } +} diff --git a/119-namespaced-conditionalpanel-demo/tests/mytest-expected-mac/002.png b/119-namespaced-conditionalpanel-demo/tests/mytest-expected-mac/002.png new file mode 100644 index 00000000..d7dca47b Binary files /dev/null and b/119-namespaced-conditionalpanel-demo/tests/mytest-expected-mac/002.png differ diff --git a/119-namespaced-conditionalpanel-demo/tests/mytest-expected-mac/003.json b/119-namespaced-conditionalpanel-demo/tests/mytest-expected-mac/003.json new file mode 100644 index 00000000..b9c80828 --- /dev/null +++ b/119-namespaced-conditionalpanel-demo/tests/mytest-expected-mac/003.json @@ -0,0 +1,79 @@ +{ + "input": { + "plot1-n": 180, + "plot2-n": 190 + }, + "output": { + "plot1-scatterPlot": { + "src": "[image data sha1: 942e44ff9bd523dd091c51683d1c8676dac486a7]", + "width": 383, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": -3.27381291540849, + "right": 3.55714972720541, + "bottom": -3.55092264929738, + "top": 2.66286934453339 + }, + "range": { + "left": 59.04, + "right": 352.76, + "bottom": 225.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 383, + "height": 300 + } + } + }, + "plot2-scatterPlot": { + "src": "[image data sha1: d5b3eafd7c812dbc8cfd61f9e65bbf72a905d34a]", + "width": 383, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": -3.11145830115437, + "right": 3.11805575303457, + "bottom": -2.72640605745407, + "top": 3.31604431087011 + }, + "range": { + "left": 59.04, + "right": 352.76, + "bottom": 225.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 383, + "height": 300 + } + } + } + }, + "export": { + + } +} diff --git a/119-namespaced-conditionalpanel-demo/tests/mytest-expected-mac/003.png b/119-namespaced-conditionalpanel-demo/tests/mytest-expected-mac/003.png new file mode 100644 index 00000000..74ae131d Binary files /dev/null and b/119-namespaced-conditionalpanel-demo/tests/mytest-expected-mac/003.png differ diff --git a/119-namespaced-conditionalpanel-demo/tests/mytest-expected-mac/004.json b/119-namespaced-conditionalpanel-demo/tests/mytest-expected-mac/004.json new file mode 100644 index 00000000..491697a2 --- /dev/null +++ b/119-namespaced-conditionalpanel-demo/tests/mytest-expected-mac/004.json @@ -0,0 +1,79 @@ +{ + "input": { + "plot1-n": 180, + "plot2-n": 200 + }, + "output": { + "plot1-scatterPlot": { + "src": "[image data sha1: 942e44ff9bd523dd091c51683d1c8676dac486a7]", + "width": 383, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": -3.27381291540849, + "right": 3.55714972720541, + "bottom": -3.55092264929738, + "top": 2.66286934453339 + }, + "range": { + "left": 59.04, + "right": 352.76, + "bottom": 225.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 383, + "height": 300 + } + } + }, + "plot2-scatterPlot": { + "src": "[image data sha1: 2c2f30942b9b5f7e885597419c985ef18409d24b]", + "width": 383, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": -3.23237133232487, + "right": 3.14254837544943, + "bottom": -2.39981585110335, + "top": 2.94538870895589 + }, + "range": { + "left": 59.04, + "right": 352.76, + "bottom": 225.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 383, + "height": 300 + } + } + } + }, + "export": { + + } +} diff --git a/119-namespaced-conditionalpanel-demo/tests/mytest-expected-mac/004.png b/119-namespaced-conditionalpanel-demo/tests/mytest-expected-mac/004.png new file mode 100644 index 00000000..83dd8b5e Binary files /dev/null and b/119-namespaced-conditionalpanel-demo/tests/mytest-expected-mac/004.png differ diff --git a/119-namespaced-conditionalpanel-demo/tests/mytest-expected-mac/005.json b/119-namespaced-conditionalpanel-demo/tests/mytest-expected-mac/005.json new file mode 100644 index 00000000..71df0e12 --- /dev/null +++ b/119-namespaced-conditionalpanel-demo/tests/mytest-expected-mac/005.json @@ -0,0 +1,79 @@ +{ + "input": { + "plot1-n": 180, + "plot2-n": 20 + }, + "output": { + "plot1-scatterPlot": { + "src": "[image data sha1: 942e44ff9bd523dd091c51683d1c8676dac486a7]", + "width": 383, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": -3.27381291540849, + "right": 3.55714972720541, + "bottom": -3.55092264929738, + "top": 2.66286934453339 + }, + "range": { + "left": 59.04, + "right": 352.76, + "bottom": 225.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 383, + "height": 300 + } + } + }, + "plot2-scatterPlot": { + "src": "[image data sha1: b00440ccb38e640827fad7d2b011562e4bf0344c]", + "width": 383, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": -1.79861010007489, + "right": 2.13597615574325, + "bottom": -1.95634928832067, + "top": 2.1569981067459 + }, + "range": { + "left": 59.04, + "right": 352.76, + "bottom": 225.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 383, + "height": 300 + } + } + } + }, + "export": { + + } +} diff --git a/119-namespaced-conditionalpanel-demo/tests/mytest-expected-mac/005.png b/119-namespaced-conditionalpanel-demo/tests/mytest-expected-mac/005.png new file mode 100644 index 00000000..e67bc2cf Binary files /dev/null and b/119-namespaced-conditionalpanel-demo/tests/mytest-expected-mac/005.png differ diff --git a/119-namespaced-conditionalpanel-demo/tests/mytest-expected-mac/006.json b/119-namespaced-conditionalpanel-demo/tests/mytest-expected-mac/006.json new file mode 100644 index 00000000..a8792f8f --- /dev/null +++ b/119-namespaced-conditionalpanel-demo/tests/mytest-expected-mac/006.json @@ -0,0 +1,79 @@ +{ + "input": { + "plot1-n": 40, + "plot2-n": 20 + }, + "output": { + "plot1-scatterPlot": { + "src": "[image data sha1: 6c9a4e457289b96304bd10986d3daba1b0af8147]", + "width": 383, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": -2.64784696631476, + "right": 2.16509312502202, + "bottom": -1.92066133361579, + "top": 2.86281795349324 + }, + "range": { + "left": 59.04, + "right": 352.76, + "bottom": 225.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 383, + "height": 300 + } + } + }, + "plot2-scatterPlot": { + "src": "[image data sha1: b00440ccb38e640827fad7d2b011562e4bf0344c]", + "width": 383, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": -1.79861010007489, + "right": 2.13597615574325, + "bottom": -1.95634928832067, + "top": 2.1569981067459 + }, + "range": { + "left": 59.04, + "right": 352.76, + "bottom": 225.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 383, + "height": 300 + } + } + } + }, + "export": { + + } +} diff --git a/119-namespaced-conditionalpanel-demo/tests/mytest-expected-mac/006.png b/119-namespaced-conditionalpanel-demo/tests/mytest-expected-mac/006.png new file mode 100644 index 00000000..ff6448f2 Binary files /dev/null and b/119-namespaced-conditionalpanel-demo/tests/mytest-expected-mac/006.png differ diff --git a/119-namespaced-conditionalpanel-demo/tests/mytest-expected-mac/007.json b/119-namespaced-conditionalpanel-demo/tests/mytest-expected-mac/007.json new file mode 100644 index 00000000..1f74af68 --- /dev/null +++ b/119-namespaced-conditionalpanel-demo/tests/mytest-expected-mac/007.json @@ -0,0 +1,79 @@ +{ + "input": { + "plot1-n": 10, + "plot2-n": 20 + }, + "output": { + "plot1-scatterPlot": { + "src": "[image data sha1: 6c9a4e457289b96304bd10986d3daba1b0af8147]", + "width": 383, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": -2.64784696631476, + "right": 2.16509312502202, + "bottom": -1.92066133361579, + "top": 2.86281795349324 + }, + "range": { + "left": 59.04, + "right": 352.76, + "bottom": 225.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 383, + "height": 300 + } + } + }, + "plot2-scatterPlot": { + "src": "[image data sha1: b00440ccb38e640827fad7d2b011562e4bf0344c]", + "width": 383, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": -1.79861010007489, + "right": 2.13597615574325, + "bottom": -1.95634928832067, + "top": 2.1569981067459 + }, + "range": { + "left": 59.04, + "right": 352.76, + "bottom": 225.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 383, + "height": 300 + } + } + } + }, + "export": { + + } +} diff --git a/119-namespaced-conditionalpanel-demo/tests/mytest-expected-mac/007.png b/119-namespaced-conditionalpanel-demo/tests/mytest-expected-mac/007.png new file mode 100644 index 00000000..01dd298a Binary files /dev/null and b/119-namespaced-conditionalpanel-demo/tests/mytest-expected-mac/007.png differ diff --git a/119-namespaced-conditionalpanel-demo/tests/mytest-expected-mac/008.json b/119-namespaced-conditionalpanel-demo/tests/mytest-expected-mac/008.json new file mode 100644 index 00000000..aecaf2aa --- /dev/null +++ b/119-namespaced-conditionalpanel-demo/tests/mytest-expected-mac/008.json @@ -0,0 +1,79 @@ +{ + "input": { + "plot1-n": 10, + "plot2-n": 10 + }, + "output": { + "plot1-scatterPlot": { + "src": "[image data sha1: 6c9a4e457289b96304bd10986d3daba1b0af8147]", + "width": 383, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": -2.64784696631476, + "right": 2.16509312502202, + "bottom": -1.92066133361579, + "top": 2.86281795349324 + }, + "range": { + "left": 59.04, + "right": 352.76, + "bottom": 225.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 383, + "height": 300 + } + } + }, + "plot2-scatterPlot": { + "src": "[image data sha1: b00440ccb38e640827fad7d2b011562e4bf0344c]", + "width": 383, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": -1.79861010007489, + "right": 2.13597615574325, + "bottom": -1.95634928832067, + "top": 2.1569981067459 + }, + "range": { + "left": 59.04, + "right": 352.76, + "bottom": 225.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 383, + "height": 300 + } + } + } + }, + "export": { + + } +} diff --git a/119-namespaced-conditionalpanel-demo/tests/mytest-expected-mac/008.png b/119-namespaced-conditionalpanel-demo/tests/mytest-expected-mac/008.png new file mode 100644 index 00000000..3cec2a5b Binary files /dev/null and b/119-namespaced-conditionalpanel-demo/tests/mytest-expected-mac/008.png differ diff --git a/119-namespaced-conditionalpanel-demo/tests/mytest-expected/001.json b/119-namespaced-conditionalpanel-demo/tests/mytest-expected/001.json new file mode 100644 index 00000000..e26b9fd2 --- /dev/null +++ b/119-namespaced-conditionalpanel-demo/tests/mytest-expected/001.json @@ -0,0 +1,79 @@ +{ + "input": { + "plot1-n": 50, + "plot2-n": 50 + }, + "output": { + "plot1-scatterPlot": { + "src": "[image data sha1: ff80e941d483bf8e531678ba1dc05447c7994845]", + "width": 383, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": -2.0462139901976, + "right": 2.47785493097047, + "bottom": -2.46608086256904, + "top": 2.77611430427408 + }, + "range": { + "left": 59.04, + "right": 352.76, + "bottom": 225.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 383, + "height": 300 + } + } + }, + "plot2-scatterPlot": { + "src": "[image data sha1: 39f6e4c8788f5c9e90b820cb241ba702c77a7e58]", + "width": 383, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": -2.28656123713816, + "right": 1.76525806412037, + "bottom": -2.21026786045334, + "top": 2.33701832399766 + }, + "range": { + "left": 59.04, + "right": 352.76, + "bottom": 225.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 383, + "height": 300 + } + } + } + }, + "export": { + + } +} diff --git a/119-namespaced-conditionalpanel-demo/tests/mytest-expected/001.png b/119-namespaced-conditionalpanel-demo/tests/mytest-expected/001.png new file mode 100644 index 00000000..12b8fcff Binary files /dev/null and b/119-namespaced-conditionalpanel-demo/tests/mytest-expected/001.png differ diff --git a/119-namespaced-conditionalpanel-demo/tests/mytest-expected/002.json b/119-namespaced-conditionalpanel-demo/tests/mytest-expected/002.json new file mode 100644 index 00000000..f8eb691a --- /dev/null +++ b/119-namespaced-conditionalpanel-demo/tests/mytest-expected/002.json @@ -0,0 +1,79 @@ +{ + "input": { + "plot1-n": 180, + "plot2-n": 50 + }, + "output": { + "plot1-scatterPlot": { + "src": "[image data sha1: 942e44ff9bd523dd091c51683d1c8676dac486a7]", + "width": 383, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": -3.27381291540849, + "right": 3.55714972720541, + "bottom": -3.55092264929738, + "top": 2.66286934453339 + }, + "range": { + "left": 59.04, + "right": 352.76, + "bottom": 225.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 383, + "height": 300 + } + } + }, + "plot2-scatterPlot": { + "src": "[image data sha1: 39f6e4c8788f5c9e90b820cb241ba702c77a7e58]", + "width": 383, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": -2.28656123713816, + "right": 1.76525806412037, + "bottom": -2.21026786045334, + "top": 2.33701832399766 + }, + "range": { + "left": 59.04, + "right": 352.76, + "bottom": 225.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 383, + "height": 300 + } + } + } + }, + "export": { + + } +} diff --git a/119-namespaced-conditionalpanel-demo/tests/mytest-expected/002.png b/119-namespaced-conditionalpanel-demo/tests/mytest-expected/002.png new file mode 100644 index 00000000..d7dca47b Binary files /dev/null and b/119-namespaced-conditionalpanel-demo/tests/mytest-expected/002.png differ diff --git a/119-namespaced-conditionalpanel-demo/tests/mytest-expected/003.json b/119-namespaced-conditionalpanel-demo/tests/mytest-expected/003.json new file mode 100644 index 00000000..b9c80828 --- /dev/null +++ b/119-namespaced-conditionalpanel-demo/tests/mytest-expected/003.json @@ -0,0 +1,79 @@ +{ + "input": { + "plot1-n": 180, + "plot2-n": 190 + }, + "output": { + "plot1-scatterPlot": { + "src": "[image data sha1: 942e44ff9bd523dd091c51683d1c8676dac486a7]", + "width": 383, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": -3.27381291540849, + "right": 3.55714972720541, + "bottom": -3.55092264929738, + "top": 2.66286934453339 + }, + "range": { + "left": 59.04, + "right": 352.76, + "bottom": 225.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 383, + "height": 300 + } + } + }, + "plot2-scatterPlot": { + "src": "[image data sha1: d5b3eafd7c812dbc8cfd61f9e65bbf72a905d34a]", + "width": 383, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": -3.11145830115437, + "right": 3.11805575303457, + "bottom": -2.72640605745407, + "top": 3.31604431087011 + }, + "range": { + "left": 59.04, + "right": 352.76, + "bottom": 225.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 383, + "height": 300 + } + } + } + }, + "export": { + + } +} diff --git a/119-namespaced-conditionalpanel-demo/tests/mytest-expected/003.png b/119-namespaced-conditionalpanel-demo/tests/mytest-expected/003.png new file mode 100644 index 00000000..74ae131d Binary files /dev/null and b/119-namespaced-conditionalpanel-demo/tests/mytest-expected/003.png differ diff --git a/119-namespaced-conditionalpanel-demo/tests/mytest-expected/004.json b/119-namespaced-conditionalpanel-demo/tests/mytest-expected/004.json new file mode 100644 index 00000000..491697a2 --- /dev/null +++ b/119-namespaced-conditionalpanel-demo/tests/mytest-expected/004.json @@ -0,0 +1,79 @@ +{ + "input": { + "plot1-n": 180, + "plot2-n": 200 + }, + "output": { + "plot1-scatterPlot": { + "src": "[image data sha1: 942e44ff9bd523dd091c51683d1c8676dac486a7]", + "width": 383, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": -3.27381291540849, + "right": 3.55714972720541, + "bottom": -3.55092264929738, + "top": 2.66286934453339 + }, + "range": { + "left": 59.04, + "right": 352.76, + "bottom": 225.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 383, + "height": 300 + } + } + }, + "plot2-scatterPlot": { + "src": "[image data sha1: 2c2f30942b9b5f7e885597419c985ef18409d24b]", + "width": 383, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": -3.23237133232487, + "right": 3.14254837544943, + "bottom": -2.39981585110335, + "top": 2.94538870895589 + }, + "range": { + "left": 59.04, + "right": 352.76, + "bottom": 225.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 383, + "height": 300 + } + } + } + }, + "export": { + + } +} diff --git a/119-namespaced-conditionalpanel-demo/tests/mytest-expected/004.png b/119-namespaced-conditionalpanel-demo/tests/mytest-expected/004.png new file mode 100644 index 00000000..83dd8b5e Binary files /dev/null and b/119-namespaced-conditionalpanel-demo/tests/mytest-expected/004.png differ diff --git a/119-namespaced-conditionalpanel-demo/tests/mytest-expected/005.json b/119-namespaced-conditionalpanel-demo/tests/mytest-expected/005.json new file mode 100644 index 00000000..71df0e12 --- /dev/null +++ b/119-namespaced-conditionalpanel-demo/tests/mytest-expected/005.json @@ -0,0 +1,79 @@ +{ + "input": { + "plot1-n": 180, + "plot2-n": 20 + }, + "output": { + "plot1-scatterPlot": { + "src": "[image data sha1: 942e44ff9bd523dd091c51683d1c8676dac486a7]", + "width": 383, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": -3.27381291540849, + "right": 3.55714972720541, + "bottom": -3.55092264929738, + "top": 2.66286934453339 + }, + "range": { + "left": 59.04, + "right": 352.76, + "bottom": 225.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 383, + "height": 300 + } + } + }, + "plot2-scatterPlot": { + "src": "[image data sha1: b00440ccb38e640827fad7d2b011562e4bf0344c]", + "width": 383, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": -1.79861010007489, + "right": 2.13597615574325, + "bottom": -1.95634928832067, + "top": 2.1569981067459 + }, + "range": { + "left": 59.04, + "right": 352.76, + "bottom": 225.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 383, + "height": 300 + } + } + } + }, + "export": { + + } +} diff --git a/119-namespaced-conditionalpanel-demo/tests/mytest-expected/005.png b/119-namespaced-conditionalpanel-demo/tests/mytest-expected/005.png new file mode 100644 index 00000000..e67bc2cf Binary files /dev/null and b/119-namespaced-conditionalpanel-demo/tests/mytest-expected/005.png differ diff --git a/119-namespaced-conditionalpanel-demo/tests/mytest-expected/006.json b/119-namespaced-conditionalpanel-demo/tests/mytest-expected/006.json new file mode 100644 index 00000000..a8792f8f --- /dev/null +++ b/119-namespaced-conditionalpanel-demo/tests/mytest-expected/006.json @@ -0,0 +1,79 @@ +{ + "input": { + "plot1-n": 40, + "plot2-n": 20 + }, + "output": { + "plot1-scatterPlot": { + "src": "[image data sha1: 6c9a4e457289b96304bd10986d3daba1b0af8147]", + "width": 383, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": -2.64784696631476, + "right": 2.16509312502202, + "bottom": -1.92066133361579, + "top": 2.86281795349324 + }, + "range": { + "left": 59.04, + "right": 352.76, + "bottom": 225.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 383, + "height": 300 + } + } + }, + "plot2-scatterPlot": { + "src": "[image data sha1: b00440ccb38e640827fad7d2b011562e4bf0344c]", + "width": 383, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": -1.79861010007489, + "right": 2.13597615574325, + "bottom": -1.95634928832067, + "top": 2.1569981067459 + }, + "range": { + "left": 59.04, + "right": 352.76, + "bottom": 225.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 383, + "height": 300 + } + } + } + }, + "export": { + + } +} diff --git a/119-namespaced-conditionalpanel-demo/tests/mytest-expected/006.png b/119-namespaced-conditionalpanel-demo/tests/mytest-expected/006.png new file mode 100644 index 00000000..ff6448f2 Binary files /dev/null and b/119-namespaced-conditionalpanel-demo/tests/mytest-expected/006.png differ diff --git a/119-namespaced-conditionalpanel-demo/tests/mytest-expected/007.json b/119-namespaced-conditionalpanel-demo/tests/mytest-expected/007.json new file mode 100644 index 00000000..1f74af68 --- /dev/null +++ b/119-namespaced-conditionalpanel-demo/tests/mytest-expected/007.json @@ -0,0 +1,79 @@ +{ + "input": { + "plot1-n": 10, + "plot2-n": 20 + }, + "output": { + "plot1-scatterPlot": { + "src": "[image data sha1: 6c9a4e457289b96304bd10986d3daba1b0af8147]", + "width": 383, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": -2.64784696631476, + "right": 2.16509312502202, + "bottom": -1.92066133361579, + "top": 2.86281795349324 + }, + "range": { + "left": 59.04, + "right": 352.76, + "bottom": 225.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 383, + "height": 300 + } + } + }, + "plot2-scatterPlot": { + "src": "[image data sha1: b00440ccb38e640827fad7d2b011562e4bf0344c]", + "width": 383, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": -1.79861010007489, + "right": 2.13597615574325, + "bottom": -1.95634928832067, + "top": 2.1569981067459 + }, + "range": { + "left": 59.04, + "right": 352.76, + "bottom": 225.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 383, + "height": 300 + } + } + } + }, + "export": { + + } +} diff --git a/119-namespaced-conditionalpanel-demo/tests/mytest-expected/007.png b/119-namespaced-conditionalpanel-demo/tests/mytest-expected/007.png new file mode 100644 index 00000000..01dd298a Binary files /dev/null and b/119-namespaced-conditionalpanel-demo/tests/mytest-expected/007.png differ diff --git a/119-namespaced-conditionalpanel-demo/tests/mytest-expected/008.json b/119-namespaced-conditionalpanel-demo/tests/mytest-expected/008.json new file mode 100644 index 00000000..aecaf2aa --- /dev/null +++ b/119-namespaced-conditionalpanel-demo/tests/mytest-expected/008.json @@ -0,0 +1,79 @@ +{ + "input": { + "plot1-n": 10, + "plot2-n": 10 + }, + "output": { + "plot1-scatterPlot": { + "src": "[image data sha1: 6c9a4e457289b96304bd10986d3daba1b0af8147]", + "width": 383, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": -2.64784696631476, + "right": 2.16509312502202, + "bottom": -1.92066133361579, + "top": 2.86281795349324 + }, + "range": { + "left": 59.04, + "right": 352.76, + "bottom": 225.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 383, + "height": 300 + } + } + }, + "plot2-scatterPlot": { + "src": "[image data sha1: b00440ccb38e640827fad7d2b011562e4bf0344c]", + "width": 383, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": -1.79861010007489, + "right": 2.13597615574325, + "bottom": -1.95634928832067, + "top": 2.1569981067459 + }, + "range": { + "left": 59.04, + "right": 352.76, + "bottom": 225.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 383, + "height": 300 + } + } + } + }, + "export": { + + } +} diff --git a/119-namespaced-conditionalpanel-demo/tests/mytest-expected/008.png b/119-namespaced-conditionalpanel-demo/tests/mytest-expected/008.png new file mode 100644 index 00000000..3cec2a5b Binary files /dev/null and b/119-namespaced-conditionalpanel-demo/tests/mytest-expected/008.png differ diff --git a/119-namespaced-conditionalpanel-demo/tests/mytest.R b/119-namespaced-conditionalpanel-demo/tests/mytest.R new file mode 100644 index 00000000..2a50d373 --- /dev/null +++ b/119-namespaced-conditionalpanel-demo/tests/mytest.R @@ -0,0 +1,18 @@ +app <- ShinyDriver$new("../", seed = 100,shinyOptions = list(display.mode = "normal")) +app$snapshotInit("mytest") + +app$snapshot() +app$setInputs(`plot1-n` = 180) +app$snapshot() +app$setInputs(`plot2-n` = 190) +app$snapshot() +app$setInputs(`plot2-n` = 200) +app$snapshot() +app$setInputs(`plot2-n` = 20) +app$snapshot() +app$setInputs(`plot1-n` = 40) +app$snapshot() +app$setInputs(`plot1-n` = 10) +app$snapshot() +app$setInputs(`plot2-n` = 10) +app$snapshot() diff --git a/120-goog-index/tests/mytest-expected-mac/001.json b/120-goog-index/tests/mytest-expected-mac/001.json new file mode 100644 index 00000000..6e5a362f --- /dev/null +++ b/120-goog-index/tests/mytest-expected-mac/001.json @@ -0,0 +1,51 @@ +{ + "input": { + "date": [ + "2007-01-01", + "2017-07-31" + ], + "f": 0.67, + "smoother": false, + "type": "travel" + }, + "output": { + "desc": "The Google Travel Index tracks queries related to airlines, hotels, beach, southwest, las vegas, flights, etc. The index is set to 1.0 on January 1, 2004 and is calculated only for US search traffic.", + "lineplot": { + "src": "[image data sha1: 260d9eacd2a05dc3133eccf7d24f68d2403df527]", + "width": 631, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": 1154277216, + "right": 1514737584, + "bottom": 0.5784, + "top": 1.1616 + }, + "range": { + "left": 57.5999999999999, + "right": 616.6, + "bottom": 241.4, + "top": 13.4 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 300 + } + } + } + }, + "export": { + + } +} diff --git a/120-goog-index/tests/mytest-expected-mac/001.png b/120-goog-index/tests/mytest-expected-mac/001.png new file mode 100644 index 00000000..52bb97eb Binary files /dev/null and b/120-goog-index/tests/mytest-expected-mac/001.png differ diff --git a/120-goog-index/tests/mytest-expected-mac/002.json b/120-goog-index/tests/mytest-expected-mac/002.json new file mode 100644 index 00000000..e668ec9f --- /dev/null +++ b/120-goog-index/tests/mytest-expected-mac/002.json @@ -0,0 +1,51 @@ +{ + "input": { + "date": [ + "2007-01-01", + "2017-07-31" + ], + "f": 0.67, + "smoother": false, + "type": "educat" + }, + "output": { + "desc": "The Google Education Index tracks queries related to college, education, test, academy, barnes and noble, harvard, etc. The index is set to 1.0 on January 1, 2004 and is calculated only for US search traffic.", + "lineplot": { + "src": "[image data sha1: b3e7d31f702735d4f87a651d992e1ed60ba3aafa]", + "width": 631, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": 1154277216, + "right": 1514737584, + "bottom": 0.5808, + "top": 1.6392 + }, + "range": { + "left": 57.5999999999999, + "right": 616.6, + "bottom": 241.4, + "top": 13.4 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 300 + } + } + } + }, + "export": { + + } +} diff --git a/120-goog-index/tests/mytest-expected-mac/002.png b/120-goog-index/tests/mytest-expected-mac/002.png new file mode 100644 index 00000000..f7ed1e81 Binary files /dev/null and b/120-goog-index/tests/mytest-expected-mac/002.png differ diff --git a/120-goog-index/tests/mytest-expected-mac/003.json b/120-goog-index/tests/mytest-expected-mac/003.json new file mode 100644 index 00000000..868a24dd --- /dev/null +++ b/120-goog-index/tests/mytest-expected-mac/003.json @@ -0,0 +1,51 @@ +{ + "input": { + "date": [ + "2007-01-01", + "2017-07-31" + ], + "f": 0.67, + "smoother": false, + "type": "unempl" + }, + "output": { + "desc": "The Google Unemployment Index tracks queries related to unemployment, food stamps, social security, edd, disability, etc. The index is set to 1.0 on January 1, 2004 and is calculated only for US search traffic.", + "lineplot": { + "src": "[image data sha1: 6c02a083ffebfbf77002f7503029adc183ab8586]", + "width": 631, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": 1154277216, + "right": 1514737584, + "bottom": 0.4504, + "top": 2.5996 + }, + "range": { + "left": 57.5999999999999, + "right": 616.6, + "bottom": 241.4, + "top": 13.4 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 300 + } + } + } + }, + "export": { + + } +} diff --git a/120-goog-index/tests/mytest-expected-mac/003.png b/120-goog-index/tests/mytest-expected-mac/003.png new file mode 100644 index 00000000..bf095317 Binary files /dev/null and b/120-goog-index/tests/mytest-expected-mac/003.png differ diff --git a/120-goog-index/tests/mytest-expected-mac/004.json b/120-goog-index/tests/mytest-expected-mac/004.json new file mode 100644 index 00000000..6e5a362f --- /dev/null +++ b/120-goog-index/tests/mytest-expected-mac/004.json @@ -0,0 +1,51 @@ +{ + "input": { + "date": [ + "2007-01-01", + "2017-07-31" + ], + "f": 0.67, + "smoother": false, + "type": "travel" + }, + "output": { + "desc": "The Google Travel Index tracks queries related to airlines, hotels, beach, southwest, las vegas, flights, etc. The index is set to 1.0 on January 1, 2004 and is calculated only for US search traffic.", + "lineplot": { + "src": "[image data sha1: 260d9eacd2a05dc3133eccf7d24f68d2403df527]", + "width": 631, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": 1154277216, + "right": 1514737584, + "bottom": 0.5784, + "top": 1.1616 + }, + "range": { + "left": 57.5999999999999, + "right": 616.6, + "bottom": 241.4, + "top": 13.4 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 300 + } + } + } + }, + "export": { + + } +} diff --git a/120-goog-index/tests/mytest-expected-mac/004.png b/120-goog-index/tests/mytest-expected-mac/004.png new file mode 100644 index 00000000..52bb97eb Binary files /dev/null and b/120-goog-index/tests/mytest-expected-mac/004.png differ diff --git a/120-goog-index/tests/mytest-expected-mac/005.json b/120-goog-index/tests/mytest-expected-mac/005.json new file mode 100644 index 00000000..501b1fd3 --- /dev/null +++ b/120-goog-index/tests/mytest-expected-mac/005.json @@ -0,0 +1,51 @@ +{ + "input": { + "date": [ + "2007-01-01", + "2017-07-31" + ], + "f": 0.67, + "smoother": true, + "type": "travel" + }, + "output": { + "desc": "The Google Travel Index tracks queries related to airlines, hotels, beach, southwest, las vegas, flights, etc. The index is set to 1.0 on January 1, 2004 and is calculated only for US search traffic.", + "lineplot": { + "src": "[image data sha1: 60e205df40b2bcd30ac77b4ad7317da2a85c4063]", + "width": 631, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": 1154277216, + "right": 1514737584, + "bottom": 0.5784, + "top": 1.1616 + }, + "range": { + "left": 57.5999999999999, + "right": 616.6, + "bottom": 241.4, + "top": 13.4 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 300 + } + } + } + }, + "export": { + + } +} diff --git a/120-goog-index/tests/mytest-expected-mac/005.png b/120-goog-index/tests/mytest-expected-mac/005.png new file mode 100644 index 00000000..180b1f97 Binary files /dev/null and b/120-goog-index/tests/mytest-expected-mac/005.png differ diff --git a/120-goog-index/tests/mytest-expected-mac/006.json b/120-goog-index/tests/mytest-expected-mac/006.json new file mode 100644 index 00000000..c8722430 --- /dev/null +++ b/120-goog-index/tests/mytest-expected-mac/006.json @@ -0,0 +1,51 @@ +{ + "input": { + "date": [ + "2007-01-01", + "2017-07-31" + ], + "f": 0.08, + "smoother": true, + "type": "travel" + }, + "output": { + "desc": "The Google Travel Index tracks queries related to airlines, hotels, beach, southwest, las vegas, flights, etc. The index is set to 1.0 on January 1, 2004 and is calculated only for US search traffic.", + "lineplot": { + "src": "[image data sha1: 0f82f1ba35f6bba99c5c5fe1048fcc7cffd84013]", + "width": 631, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": 1154277216, + "right": 1514737584, + "bottom": 0.5784, + "top": 1.1616 + }, + "range": { + "left": 57.5999999999999, + "right": 616.6, + "bottom": 241.4, + "top": 13.4 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 300 + } + } + } + }, + "export": { + + } +} diff --git a/120-goog-index/tests/mytest-expected-mac/006.png b/120-goog-index/tests/mytest-expected-mac/006.png new file mode 100644 index 00000000..4dd2d37f Binary files /dev/null and b/120-goog-index/tests/mytest-expected-mac/006.png differ diff --git a/120-goog-index/tests/mytest-expected-mac/007.json b/120-goog-index/tests/mytest-expected-mac/007.json new file mode 100644 index 00000000..3603ab06 --- /dev/null +++ b/120-goog-index/tests/mytest-expected-mac/007.json @@ -0,0 +1,51 @@ +{ + "input": { + "date": [ + "2007-01-01", + "2017-07-31" + ], + "f": 1, + "smoother": true, + "type": "travel" + }, + "output": { + "desc": "The Google Travel Index tracks queries related to airlines, hotels, beach, southwest, las vegas, flights, etc. The index is set to 1.0 on January 1, 2004 and is calculated only for US search traffic.", + "lineplot": { + "src": "[image data sha1: ba7f105d77443323e7ac85d54bed2dba7335d82f]", + "width": 631, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": 1154277216, + "right": 1514737584, + "bottom": 0.5784, + "top": 1.1616 + }, + "range": { + "left": 57.5999999999999, + "right": 616.6, + "bottom": 241.4, + "top": 13.4 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 300 + } + } + } + }, + "export": { + + } +} diff --git a/120-goog-index/tests/mytest-expected-mac/007.png b/120-goog-index/tests/mytest-expected-mac/007.png new file mode 100644 index 00000000..fa990016 Binary files /dev/null and b/120-goog-index/tests/mytest-expected-mac/007.png differ diff --git a/120-goog-index/tests/mytest-expected-mac/008.json b/120-goog-index/tests/mytest-expected-mac/008.json new file mode 100644 index 00000000..8b741990 --- /dev/null +++ b/120-goog-index/tests/mytest-expected-mac/008.json @@ -0,0 +1,51 @@ +{ + "input": { + "date": [ + "2007-01-01", + "2017-07-13" + ], + "f": 1, + "smoother": true, + "type": "travel" + }, + "output": { + "desc": "The Google Travel Index tracks queries related to airlines, hotels, beach, southwest, las vegas, flights, etc. The index is set to 1.0 on January 1, 2004 and is calculated only for US search traffic.", + "lineplot": { + "src": "[image data sha1: 3063c5080004ef7e608021aab1119835e1e07a03]", + "width": 631, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": 1154339424, + "right": 1513120176, + "bottom": 0.5784, + "top": 1.1616 + }, + "range": { + "left": 57.5999999999999, + "right": 616.6, + "bottom": 241.4, + "top": 13.4 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 300 + } + } + } + }, + "export": { + + } +} diff --git a/120-goog-index/tests/mytest-expected-mac/008.png b/120-goog-index/tests/mytest-expected-mac/008.png new file mode 100644 index 00000000..55e30230 Binary files /dev/null and b/120-goog-index/tests/mytest-expected-mac/008.png differ diff --git a/120-goog-index/tests/mytest-expected-mac/009.json b/120-goog-index/tests/mytest-expected-mac/009.json new file mode 100644 index 00000000..190c6236 --- /dev/null +++ b/120-goog-index/tests/mytest-expected-mac/009.json @@ -0,0 +1,51 @@ +{ + "input": { + "date": [ + "2007-01-01", + "2017-07-01" + ], + "f": 1, + "smoother": true, + "type": "travel" + }, + "output": { + "desc": "The Google Travel Index tracks queries related to airlines, hotels, beach, southwest, las vegas, flights, etc. The index is set to 1.0 on January 1, 2004 and is calculated only for US search traffic.", + "lineplot": { + "src": "[image data sha1: da5c8a2d79fe29fe8dfcb22885ff6d0b06bbdc40]", + "width": 631, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": 1154380896, + "right": 1512041904, + "bottom": 0.5784, + "top": 1.1616 + }, + "range": { + "left": 57.5999999999999, + "right": 616.6, + "bottom": 241.4, + "top": 13.4 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 300 + } + } + } + }, + "export": { + + } +} diff --git a/120-goog-index/tests/mytest-expected-mac/009.png b/120-goog-index/tests/mytest-expected-mac/009.png new file mode 100644 index 00000000..64b53a0e Binary files /dev/null and b/120-goog-index/tests/mytest-expected-mac/009.png differ diff --git a/120-goog-index/tests/mytest-expected-mac/010.json b/120-goog-index/tests/mytest-expected-mac/010.json new file mode 100644 index 00000000..190c6236 --- /dev/null +++ b/120-goog-index/tests/mytest-expected-mac/010.json @@ -0,0 +1,51 @@ +{ + "input": { + "date": [ + "2007-01-01", + "2017-07-01" + ], + "f": 1, + "smoother": true, + "type": "travel" + }, + "output": { + "desc": "The Google Travel Index tracks queries related to airlines, hotels, beach, southwest, las vegas, flights, etc. The index is set to 1.0 on January 1, 2004 and is calculated only for US search traffic.", + "lineplot": { + "src": "[image data sha1: da5c8a2d79fe29fe8dfcb22885ff6d0b06bbdc40]", + "width": 631, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": 1154380896, + "right": 1512041904, + "bottom": 0.5784, + "top": 1.1616 + }, + "range": { + "left": 57.5999999999999, + "right": 616.6, + "bottom": 241.4, + "top": 13.4 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 300 + } + } + } + }, + "export": { + + } +} diff --git a/120-goog-index/tests/mytest-expected-mac/010.png b/120-goog-index/tests/mytest-expected-mac/010.png new file mode 100644 index 00000000..64b53a0e Binary files /dev/null and b/120-goog-index/tests/mytest-expected-mac/010.png differ diff --git a/120-goog-index/tests/mytest-expected/001.json b/120-goog-index/tests/mytest-expected/001.json new file mode 100644 index 00000000..6e5a362f --- /dev/null +++ b/120-goog-index/tests/mytest-expected/001.json @@ -0,0 +1,51 @@ +{ + "input": { + "date": [ + "2007-01-01", + "2017-07-31" + ], + "f": 0.67, + "smoother": false, + "type": "travel" + }, + "output": { + "desc": "The Google Travel Index tracks queries related to airlines, hotels, beach, southwest, las vegas, flights, etc. The index is set to 1.0 on January 1, 2004 and is calculated only for US search traffic.", + "lineplot": { + "src": "[image data sha1: 260d9eacd2a05dc3133eccf7d24f68d2403df527]", + "width": 631, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": 1154277216, + "right": 1514737584, + "bottom": 0.5784, + "top": 1.1616 + }, + "range": { + "left": 57.5999999999999, + "right": 616.6, + "bottom": 241.4, + "top": 13.4 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 300 + } + } + } + }, + "export": { + + } +} diff --git a/120-goog-index/tests/mytest-expected/001.png b/120-goog-index/tests/mytest-expected/001.png new file mode 100644 index 00000000..52bb97eb Binary files /dev/null and b/120-goog-index/tests/mytest-expected/001.png differ diff --git a/120-goog-index/tests/mytest-expected/002.json b/120-goog-index/tests/mytest-expected/002.json new file mode 100644 index 00000000..e668ec9f --- /dev/null +++ b/120-goog-index/tests/mytest-expected/002.json @@ -0,0 +1,51 @@ +{ + "input": { + "date": [ + "2007-01-01", + "2017-07-31" + ], + "f": 0.67, + "smoother": false, + "type": "educat" + }, + "output": { + "desc": "The Google Education Index tracks queries related to college, education, test, academy, barnes and noble, harvard, etc. The index is set to 1.0 on January 1, 2004 and is calculated only for US search traffic.", + "lineplot": { + "src": "[image data sha1: b3e7d31f702735d4f87a651d992e1ed60ba3aafa]", + "width": 631, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": 1154277216, + "right": 1514737584, + "bottom": 0.5808, + "top": 1.6392 + }, + "range": { + "left": 57.5999999999999, + "right": 616.6, + "bottom": 241.4, + "top": 13.4 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 300 + } + } + } + }, + "export": { + + } +} diff --git a/120-goog-index/tests/mytest-expected/002.png b/120-goog-index/tests/mytest-expected/002.png new file mode 100644 index 00000000..f7ed1e81 Binary files /dev/null and b/120-goog-index/tests/mytest-expected/002.png differ diff --git a/120-goog-index/tests/mytest-expected/003.json b/120-goog-index/tests/mytest-expected/003.json new file mode 100644 index 00000000..868a24dd --- /dev/null +++ b/120-goog-index/tests/mytest-expected/003.json @@ -0,0 +1,51 @@ +{ + "input": { + "date": [ + "2007-01-01", + "2017-07-31" + ], + "f": 0.67, + "smoother": false, + "type": "unempl" + }, + "output": { + "desc": "The Google Unemployment Index tracks queries related to unemployment, food stamps, social security, edd, disability, etc. The index is set to 1.0 on January 1, 2004 and is calculated only for US search traffic.", + "lineplot": { + "src": "[image data sha1: 6c02a083ffebfbf77002f7503029adc183ab8586]", + "width": 631, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": 1154277216, + "right": 1514737584, + "bottom": 0.4504, + "top": 2.5996 + }, + "range": { + "left": 57.5999999999999, + "right": 616.6, + "bottom": 241.4, + "top": 13.4 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 300 + } + } + } + }, + "export": { + + } +} diff --git a/120-goog-index/tests/mytest-expected/003.png b/120-goog-index/tests/mytest-expected/003.png new file mode 100644 index 00000000..bf095317 Binary files /dev/null and b/120-goog-index/tests/mytest-expected/003.png differ diff --git a/120-goog-index/tests/mytest-expected/004.json b/120-goog-index/tests/mytest-expected/004.json new file mode 100644 index 00000000..6e5a362f --- /dev/null +++ b/120-goog-index/tests/mytest-expected/004.json @@ -0,0 +1,51 @@ +{ + "input": { + "date": [ + "2007-01-01", + "2017-07-31" + ], + "f": 0.67, + "smoother": false, + "type": "travel" + }, + "output": { + "desc": "The Google Travel Index tracks queries related to airlines, hotels, beach, southwest, las vegas, flights, etc. The index is set to 1.0 on January 1, 2004 and is calculated only for US search traffic.", + "lineplot": { + "src": "[image data sha1: 260d9eacd2a05dc3133eccf7d24f68d2403df527]", + "width": 631, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": 1154277216, + "right": 1514737584, + "bottom": 0.5784, + "top": 1.1616 + }, + "range": { + "left": 57.5999999999999, + "right": 616.6, + "bottom": 241.4, + "top": 13.4 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 300 + } + } + } + }, + "export": { + + } +} diff --git a/120-goog-index/tests/mytest-expected/004.png b/120-goog-index/tests/mytest-expected/004.png new file mode 100644 index 00000000..52bb97eb Binary files /dev/null and b/120-goog-index/tests/mytest-expected/004.png differ diff --git a/120-goog-index/tests/mytest-expected/005.json b/120-goog-index/tests/mytest-expected/005.json new file mode 100644 index 00000000..501b1fd3 --- /dev/null +++ b/120-goog-index/tests/mytest-expected/005.json @@ -0,0 +1,51 @@ +{ + "input": { + "date": [ + "2007-01-01", + "2017-07-31" + ], + "f": 0.67, + "smoother": true, + "type": "travel" + }, + "output": { + "desc": "The Google Travel Index tracks queries related to airlines, hotels, beach, southwest, las vegas, flights, etc. The index is set to 1.0 on January 1, 2004 and is calculated only for US search traffic.", + "lineplot": { + "src": "[image data sha1: 60e205df40b2bcd30ac77b4ad7317da2a85c4063]", + "width": 631, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": 1154277216, + "right": 1514737584, + "bottom": 0.5784, + "top": 1.1616 + }, + "range": { + "left": 57.5999999999999, + "right": 616.6, + "bottom": 241.4, + "top": 13.4 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 300 + } + } + } + }, + "export": { + + } +} diff --git a/120-goog-index/tests/mytest-expected/005.png b/120-goog-index/tests/mytest-expected/005.png new file mode 100644 index 00000000..e0bcbe33 Binary files /dev/null and b/120-goog-index/tests/mytest-expected/005.png differ diff --git a/120-goog-index/tests/mytest-expected/006.json b/120-goog-index/tests/mytest-expected/006.json new file mode 100644 index 00000000..c8722430 --- /dev/null +++ b/120-goog-index/tests/mytest-expected/006.json @@ -0,0 +1,51 @@ +{ + "input": { + "date": [ + "2007-01-01", + "2017-07-31" + ], + "f": 0.08, + "smoother": true, + "type": "travel" + }, + "output": { + "desc": "The Google Travel Index tracks queries related to airlines, hotels, beach, southwest, las vegas, flights, etc. The index is set to 1.0 on January 1, 2004 and is calculated only for US search traffic.", + "lineplot": { + "src": "[image data sha1: 0f82f1ba35f6bba99c5c5fe1048fcc7cffd84013]", + "width": 631, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": 1154277216, + "right": 1514737584, + "bottom": 0.5784, + "top": 1.1616 + }, + "range": { + "left": 57.5999999999999, + "right": 616.6, + "bottom": 241.4, + "top": 13.4 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 300 + } + } + } + }, + "export": { + + } +} diff --git a/120-goog-index/tests/mytest-expected/006.png b/120-goog-index/tests/mytest-expected/006.png new file mode 100644 index 00000000..4dd2d37f Binary files /dev/null and b/120-goog-index/tests/mytest-expected/006.png differ diff --git a/120-goog-index/tests/mytest-expected/007.json b/120-goog-index/tests/mytest-expected/007.json new file mode 100644 index 00000000..3603ab06 --- /dev/null +++ b/120-goog-index/tests/mytest-expected/007.json @@ -0,0 +1,51 @@ +{ + "input": { + "date": [ + "2007-01-01", + "2017-07-31" + ], + "f": 1, + "smoother": true, + "type": "travel" + }, + "output": { + "desc": "The Google Travel Index tracks queries related to airlines, hotels, beach, southwest, las vegas, flights, etc. The index is set to 1.0 on January 1, 2004 and is calculated only for US search traffic.", + "lineplot": { + "src": "[image data sha1: ba7f105d77443323e7ac85d54bed2dba7335d82f]", + "width": 631, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": 1154277216, + "right": 1514737584, + "bottom": 0.5784, + "top": 1.1616 + }, + "range": { + "left": 57.5999999999999, + "right": 616.6, + "bottom": 241.4, + "top": 13.4 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 300 + } + } + } + }, + "export": { + + } +} diff --git a/120-goog-index/tests/mytest-expected/007.png b/120-goog-index/tests/mytest-expected/007.png new file mode 100644 index 00000000..fa990016 Binary files /dev/null and b/120-goog-index/tests/mytest-expected/007.png differ diff --git a/120-goog-index/tests/mytest-expected/008.json b/120-goog-index/tests/mytest-expected/008.json new file mode 100644 index 00000000..8b741990 --- /dev/null +++ b/120-goog-index/tests/mytest-expected/008.json @@ -0,0 +1,51 @@ +{ + "input": { + "date": [ + "2007-01-01", + "2017-07-13" + ], + "f": 1, + "smoother": true, + "type": "travel" + }, + "output": { + "desc": "The Google Travel Index tracks queries related to airlines, hotels, beach, southwest, las vegas, flights, etc. The index is set to 1.0 on January 1, 2004 and is calculated only for US search traffic.", + "lineplot": { + "src": "[image data sha1: 3063c5080004ef7e608021aab1119835e1e07a03]", + "width": 631, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": 1154339424, + "right": 1513120176, + "bottom": 0.5784, + "top": 1.1616 + }, + "range": { + "left": 57.5999999999999, + "right": 616.6, + "bottom": 241.4, + "top": 13.4 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 300 + } + } + } + }, + "export": { + + } +} diff --git a/120-goog-index/tests/mytest-expected/008.png b/120-goog-index/tests/mytest-expected/008.png new file mode 100644 index 00000000..55e30230 Binary files /dev/null and b/120-goog-index/tests/mytest-expected/008.png differ diff --git a/120-goog-index/tests/mytest-expected/009.json b/120-goog-index/tests/mytest-expected/009.json new file mode 100644 index 00000000..190c6236 --- /dev/null +++ b/120-goog-index/tests/mytest-expected/009.json @@ -0,0 +1,51 @@ +{ + "input": { + "date": [ + "2007-01-01", + "2017-07-01" + ], + "f": 1, + "smoother": true, + "type": "travel" + }, + "output": { + "desc": "The Google Travel Index tracks queries related to airlines, hotels, beach, southwest, las vegas, flights, etc. The index is set to 1.0 on January 1, 2004 and is calculated only for US search traffic.", + "lineplot": { + "src": "[image data sha1: da5c8a2d79fe29fe8dfcb22885ff6d0b06bbdc40]", + "width": 631, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": 1154380896, + "right": 1512041904, + "bottom": 0.5784, + "top": 1.1616 + }, + "range": { + "left": 57.5999999999999, + "right": 616.6, + "bottom": 241.4, + "top": 13.4 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 300 + } + } + } + }, + "export": { + + } +} diff --git a/120-goog-index/tests/mytest-expected/009.png b/120-goog-index/tests/mytest-expected/009.png new file mode 100644 index 00000000..64b53a0e Binary files /dev/null and b/120-goog-index/tests/mytest-expected/009.png differ diff --git a/120-goog-index/tests/mytest-expected/010.json b/120-goog-index/tests/mytest-expected/010.json new file mode 100644 index 00000000..190c6236 --- /dev/null +++ b/120-goog-index/tests/mytest-expected/010.json @@ -0,0 +1,51 @@ +{ + "input": { + "date": [ + "2007-01-01", + "2017-07-01" + ], + "f": 1, + "smoother": true, + "type": "travel" + }, + "output": { + "desc": "The Google Travel Index tracks queries related to airlines, hotels, beach, southwest, las vegas, flights, etc. The index is set to 1.0 on January 1, 2004 and is calculated only for US search traffic.", + "lineplot": { + "src": "[image data sha1: da5c8a2d79fe29fe8dfcb22885ff6d0b06bbdc40]", + "width": 631, + "height": 300, + "coordmap": { + "panels": [ + { + "domain": { + "left": 1154380896, + "right": 1512041904, + "bottom": 0.5784, + "top": 1.1616 + }, + "range": { + "left": 57.5999999999999, + "right": 616.6, + "bottom": 241.4, + "top": 13.4 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 631, + "height": 300 + } + } + } + }, + "export": { + + } +} diff --git a/120-goog-index/tests/mytest-expected/010.png b/120-goog-index/tests/mytest-expected/010.png new file mode 100644 index 00000000..64b53a0e Binary files /dev/null and b/120-goog-index/tests/mytest-expected/010.png differ diff --git a/120-goog-index/tests/mytest.R b/120-goog-index/tests/mytest.R new file mode 100644 index 00000000..c5b355e1 --- /dev/null +++ b/120-goog-index/tests/mytest.R @@ -0,0 +1,21 @@ +app <- ShinyDriver$new("../", seed = 100,shinyOptions = list(display.mode = "normal")) +app$snapshotInit("mytest") + +app$snapshot() +app$setInputs(type = "educat") +app$snapshot() +app$setInputs(type = "unempl") +app$snapshot() +app$setInputs(type = "travel") +app$snapshot() +app$setInputs(smoother = TRUE) +app$snapshot() +app$setInputs(f = 0.08) +app$snapshot() +app$setInputs(f = 1) +app$snapshot() +app$setInputs(date = c("2007-01-01", "2017-07-13")) +app$snapshot() +app$setInputs(date = c("2007-01-01", "2017-07-01")) +app$snapshot() +app$snapshot() diff --git a/121-async-timer/tests/mytest-expected-mac/001.json b/121-async-timer/tests/mytest-expected-mac/001.json new file mode 100644 index 00000000..8cfa0eb9 --- /dev/null +++ b/121-async-timer/tests/mytest-expected-mac/001.json @@ -0,0 +1,11 @@ +{ + "input": { + + }, + "output": { + + }, + "export": { + + } +} diff --git a/121-async-timer/tests/mytest-expected-mac/001.png b/121-async-timer/tests/mytest-expected-mac/001.png new file mode 100644 index 00000000..56369f0b Binary files /dev/null and b/121-async-timer/tests/mytest-expected-mac/001.png differ diff --git a/121-async-timer/tests/mytest-expected-mac/002.json b/121-async-timer/tests/mytest-expected-mac/002.json new file mode 100644 index 00000000..8cfa0eb9 --- /dev/null +++ b/121-async-timer/tests/mytest-expected-mac/002.json @@ -0,0 +1,11 @@ +{ + "input": { + + }, + "output": { + + }, + "export": { + + } +} diff --git a/121-async-timer/tests/mytest-expected-mac/002.png b/121-async-timer/tests/mytest-expected-mac/002.png new file mode 100644 index 00000000..56369f0b Binary files /dev/null and b/121-async-timer/tests/mytest-expected-mac/002.png differ diff --git a/121-async-timer/tests/mytest-expected/001.json b/121-async-timer/tests/mytest-expected/001.json new file mode 100644 index 00000000..8cfa0eb9 --- /dev/null +++ b/121-async-timer/tests/mytest-expected/001.json @@ -0,0 +1,11 @@ +{ + "input": { + + }, + "output": { + + }, + "export": { + + } +} diff --git a/121-async-timer/tests/mytest-expected/001.png b/121-async-timer/tests/mytest-expected/001.png new file mode 100644 index 00000000..56369f0b Binary files /dev/null and b/121-async-timer/tests/mytest-expected/001.png differ diff --git a/121-async-timer/tests/mytest-expected/002.json b/121-async-timer/tests/mytest-expected/002.json new file mode 100644 index 00000000..8cfa0eb9 --- /dev/null +++ b/121-async-timer/tests/mytest-expected/002.json @@ -0,0 +1,11 @@ +{ + "input": { + + }, + "output": { + + }, + "export": { + + } +} diff --git a/121-async-timer/tests/mytest-expected/002.png b/121-async-timer/tests/mytest-expected/002.png new file mode 100644 index 00000000..56369f0b Binary files /dev/null and b/121-async-timer/tests/mytest-expected/002.png differ diff --git a/121-async-timer/tests/mytest.R b/121-async-timer/tests/mytest.R new file mode 100644 index 00000000..1ab7224f --- /dev/null +++ b/121-async-timer/tests/mytest.R @@ -0,0 +1,5 @@ +app <- ShinyDriver$new("../", seed = 100,shinyOptions = list(display.mode = "normal")) +app$snapshotInit("mytest") + +app$snapshot() +app$snapshot() diff --git a/122-async-outputs/tests/mytest-expected-mac/001.json b/122-async-outputs/tests/mytest-expected-mac/001.json new file mode 100644 index 00000000..ccad9fe2 --- /dev/null +++ b/122-async-outputs/tests/mytest-expected-mac/001.json @@ -0,0 +1,126 @@ +{ + "input": { + + }, + "output": { + "datatable": { + "colnames": [ + "speed", + "dist" + ], + "options": null, + "evalOptions": null, + "searchDelay": 500, + "callback": "function(oTable) {}", + "escape": true + }, + "datatablea": { + "colnames": [ + "speed", + "dist" + ], + "options": null, + "evalOptions": null, + "searchDelay": 500, + "callback": "function(oTable) {}", + "escape": true + }, + "image": { + "src": "[image data sha1: fd852df5478eb7eb9410ee9101bb364adf487fb0]" + }, + "imagea": { + "src": "[image data sha1: fd852df5478eb7eb9410ee9101bb364adf487fb0]" + }, + "plot": { + "src": "[image data sha1: 9f570107911d8a7ad634f49a62aff0d631add501]", + "width": 383, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 3.16, + "right": 25.84, + "bottom": -2.72, + "top": 124.72 + }, + "range": { + "left": 59.04, + "right": 352.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 383, + "height": 400 + } + } + }, + "plota": { + "src": "[image data sha1: 9f570107911d8a7ad634f49a62aff0d631add501]", + "width": 383, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 3.16, + "right": 25.84, + "bottom": -2.72, + "top": 124.72 + }, + "range": { + "left": 59.04, + "right": 352.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 383, + "height": 400 + } + } + }, + "print": "[1] \"hello\"", + "print2": "[1] \"hello\"", + "print2a": "[1] \"hello\"", + "printa": "[1] \"hello\"", + "table": "\n\n
speed <\/th> dist <\/th> <\/tr> <\/thead>
4.00 <\/td> 2.00 <\/td> <\/tr>\n
4.00 <\/td> 10.00 <\/td> <\/tr>\n
7.00 <\/td> 4.00 <\/td> <\/tr>\n
7.00 <\/td> 22.00 <\/td> <\/tr>\n
8.00 <\/td> 16.00 <\/td> <\/tr>\n
9.00 <\/td> 10.00 <\/td> <\/tr>\n <\/tbody> <\/table>", + "tablea": "\n\n
speed <\/th> dist <\/th> <\/tr> <\/thead>
4.00 <\/td> 2.00 <\/td> <\/tr>\n
4.00 <\/td> 10.00 <\/td> <\/tr>\n
7.00 <\/td> 4.00 <\/td> <\/tr>\n
7.00 <\/td> 22.00 <\/td> <\/tr>\n
8.00 <\/td> 16.00 <\/td> <\/tr>\n
9.00 <\/td> 10.00 <\/td> <\/tr>\n <\/tbody> <\/table>", + "text": "hello", + "texta": "hello", + "ui": { + "html": "

hello world<\/h1>", + "deps": [ + + ] + }, + "uia": { + "html": "

hello world<\/h1>", + "deps": [ + + ] + } + }, + "export": { + + } +} diff --git a/122-async-outputs/tests/mytest-expected-mac/001.png b/122-async-outputs/tests/mytest-expected-mac/001.png new file mode 100644 index 00000000..b93ce926 Binary files /dev/null and b/122-async-outputs/tests/mytest-expected-mac/001.png differ diff --git a/122-async-outputs/tests/mytest-expected-mac/002.json b/122-async-outputs/tests/mytest-expected-mac/002.json new file mode 100644 index 00000000..ccad9fe2 --- /dev/null +++ b/122-async-outputs/tests/mytest-expected-mac/002.json @@ -0,0 +1,126 @@ +{ + "input": { + + }, + "output": { + "datatable": { + "colnames": [ + "speed", + "dist" + ], + "options": null, + "evalOptions": null, + "searchDelay": 500, + "callback": "function(oTable) {}", + "escape": true + }, + "datatablea": { + "colnames": [ + "speed", + "dist" + ], + "options": null, + "evalOptions": null, + "searchDelay": 500, + "callback": "function(oTable) {}", + "escape": true + }, + "image": { + "src": "[image data sha1: fd852df5478eb7eb9410ee9101bb364adf487fb0]" + }, + "imagea": { + "src": "[image data sha1: fd852df5478eb7eb9410ee9101bb364adf487fb0]" + }, + "plot": { + "src": "[image data sha1: 9f570107911d8a7ad634f49a62aff0d631add501]", + "width": 383, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 3.16, + "right": 25.84, + "bottom": -2.72, + "top": 124.72 + }, + "range": { + "left": 59.04, + "right": 352.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 383, + "height": 400 + } + } + }, + "plota": { + "src": "[image data sha1: 9f570107911d8a7ad634f49a62aff0d631add501]", + "width": 383, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 3.16, + "right": 25.84, + "bottom": -2.72, + "top": 124.72 + }, + "range": { + "left": 59.04, + "right": 352.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 383, + "height": 400 + } + } + }, + "print": "[1] \"hello\"", + "print2": "[1] \"hello\"", + "print2a": "[1] \"hello\"", + "printa": "[1] \"hello\"", + "table": "\n\n
speed <\/th> dist <\/th> <\/tr> <\/thead>
4.00 <\/td> 2.00 <\/td> <\/tr>\n
4.00 <\/td> 10.00 <\/td> <\/tr>\n
7.00 <\/td> 4.00 <\/td> <\/tr>\n
7.00 <\/td> 22.00 <\/td> <\/tr>\n
8.00 <\/td> 16.00 <\/td> <\/tr>\n
9.00 <\/td> 10.00 <\/td> <\/tr>\n <\/tbody> <\/table>", + "tablea": "\n\n
speed <\/th> dist <\/th> <\/tr> <\/thead>
4.00 <\/td> 2.00 <\/td> <\/tr>\n
4.00 <\/td> 10.00 <\/td> <\/tr>\n
7.00 <\/td> 4.00 <\/td> <\/tr>\n
7.00 <\/td> 22.00 <\/td> <\/tr>\n
8.00 <\/td> 16.00 <\/td> <\/tr>\n
9.00 <\/td> 10.00 <\/td> <\/tr>\n <\/tbody> <\/table>", + "text": "hello", + "texta": "hello", + "ui": { + "html": "

hello world<\/h1>", + "deps": [ + + ] + }, + "uia": { + "html": "

hello world<\/h1>", + "deps": [ + + ] + } + }, + "export": { + + } +} diff --git a/122-async-outputs/tests/mytest-expected-mac/002.png b/122-async-outputs/tests/mytest-expected-mac/002.png new file mode 100644 index 00000000..b93ce926 Binary files /dev/null and b/122-async-outputs/tests/mytest-expected-mac/002.png differ diff --git a/122-async-outputs/tests/mytest-expected/001.json b/122-async-outputs/tests/mytest-expected/001.json new file mode 100644 index 00000000..ccad9fe2 --- /dev/null +++ b/122-async-outputs/tests/mytest-expected/001.json @@ -0,0 +1,126 @@ +{ + "input": { + + }, + "output": { + "datatable": { + "colnames": [ + "speed", + "dist" + ], + "options": null, + "evalOptions": null, + "searchDelay": 500, + "callback": "function(oTable) {}", + "escape": true + }, + "datatablea": { + "colnames": [ + "speed", + "dist" + ], + "options": null, + "evalOptions": null, + "searchDelay": 500, + "callback": "function(oTable) {}", + "escape": true + }, + "image": { + "src": "[image data sha1: fd852df5478eb7eb9410ee9101bb364adf487fb0]" + }, + "imagea": { + "src": "[image data sha1: fd852df5478eb7eb9410ee9101bb364adf487fb0]" + }, + "plot": { + "src": "[image data sha1: 9f570107911d8a7ad634f49a62aff0d631add501]", + "width": 383, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 3.16, + "right": 25.84, + "bottom": -2.72, + "top": 124.72 + }, + "range": { + "left": 59.04, + "right": 352.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 383, + "height": 400 + } + } + }, + "plota": { + "src": "[image data sha1: 9f570107911d8a7ad634f49a62aff0d631add501]", + "width": 383, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 3.16, + "right": 25.84, + "bottom": -2.72, + "top": 124.72 + }, + "range": { + "left": 59.04, + "right": 352.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 383, + "height": 400 + } + } + }, + "print": "[1] \"hello\"", + "print2": "[1] \"hello\"", + "print2a": "[1] \"hello\"", + "printa": "[1] \"hello\"", + "table": "\n\n
speed <\/th> dist <\/th> <\/tr> <\/thead>
4.00 <\/td> 2.00 <\/td> <\/tr>\n
4.00 <\/td> 10.00 <\/td> <\/tr>\n
7.00 <\/td> 4.00 <\/td> <\/tr>\n
7.00 <\/td> 22.00 <\/td> <\/tr>\n
8.00 <\/td> 16.00 <\/td> <\/tr>\n
9.00 <\/td> 10.00 <\/td> <\/tr>\n <\/tbody> <\/table>", + "tablea": "\n\n
speed <\/th> dist <\/th> <\/tr> <\/thead>
4.00 <\/td> 2.00 <\/td> <\/tr>\n
4.00 <\/td> 10.00 <\/td> <\/tr>\n
7.00 <\/td> 4.00 <\/td> <\/tr>\n
7.00 <\/td> 22.00 <\/td> <\/tr>\n
8.00 <\/td> 16.00 <\/td> <\/tr>\n
9.00 <\/td> 10.00 <\/td> <\/tr>\n <\/tbody> <\/table>", + "text": "hello", + "texta": "hello", + "ui": { + "html": "

hello world<\/h1>", + "deps": [ + + ] + }, + "uia": { + "html": "

hello world<\/h1>", + "deps": [ + + ] + } + }, + "export": { + + } +} diff --git a/122-async-outputs/tests/mytest-expected/001.png b/122-async-outputs/tests/mytest-expected/001.png new file mode 100644 index 00000000..b93ce926 Binary files /dev/null and b/122-async-outputs/tests/mytest-expected/001.png differ diff --git a/122-async-outputs/tests/mytest-expected/002.json b/122-async-outputs/tests/mytest-expected/002.json new file mode 100644 index 00000000..ccad9fe2 --- /dev/null +++ b/122-async-outputs/tests/mytest-expected/002.json @@ -0,0 +1,126 @@ +{ + "input": { + + }, + "output": { + "datatable": { + "colnames": [ + "speed", + "dist" + ], + "options": null, + "evalOptions": null, + "searchDelay": 500, + "callback": "function(oTable) {}", + "escape": true + }, + "datatablea": { + "colnames": [ + "speed", + "dist" + ], + "options": null, + "evalOptions": null, + "searchDelay": 500, + "callback": "function(oTable) {}", + "escape": true + }, + "image": { + "src": "[image data sha1: fd852df5478eb7eb9410ee9101bb364adf487fb0]" + }, + "imagea": { + "src": "[image data sha1: fd852df5478eb7eb9410ee9101bb364adf487fb0]" + }, + "plot": { + "src": "[image data sha1: 9f570107911d8a7ad634f49a62aff0d631add501]", + "width": 383, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 3.16, + "right": 25.84, + "bottom": -2.72, + "top": 124.72 + }, + "range": { + "left": 59.04, + "right": 352.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 383, + "height": 400 + } + } + }, + "plota": { + "src": "[image data sha1: 9f570107911d8a7ad634f49a62aff0d631add501]", + "width": 383, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 3.16, + "right": 25.84, + "bottom": -2.72, + "top": 124.72 + }, + "range": { + "left": 59.04, + "right": 352.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 383, + "height": 400 + } + } + }, + "print": "[1] \"hello\"", + "print2": "[1] \"hello\"", + "print2a": "[1] \"hello\"", + "printa": "[1] \"hello\"", + "table": "\n\n
speed <\/th> dist <\/th> <\/tr> <\/thead>
4.00 <\/td> 2.00 <\/td> <\/tr>\n
4.00 <\/td> 10.00 <\/td> <\/tr>\n
7.00 <\/td> 4.00 <\/td> <\/tr>\n
7.00 <\/td> 22.00 <\/td> <\/tr>\n
8.00 <\/td> 16.00 <\/td> <\/tr>\n
9.00 <\/td> 10.00 <\/td> <\/tr>\n <\/tbody> <\/table>", + "tablea": "\n\n
speed <\/th> dist <\/th> <\/tr> <\/thead>
4.00 <\/td> 2.00 <\/td> <\/tr>\n
4.00 <\/td> 10.00 <\/td> <\/tr>\n
7.00 <\/td> 4.00 <\/td> <\/tr>\n
7.00 <\/td> 22.00 <\/td> <\/tr>\n
8.00 <\/td> 16.00 <\/td> <\/tr>\n
9.00 <\/td> 10.00 <\/td> <\/tr>\n <\/tbody> <\/table>", + "text": "hello", + "texta": "hello", + "ui": { + "html": "

hello world<\/h1>", + "deps": [ + + ] + }, + "uia": { + "html": "

hello world<\/h1>", + "deps": [ + + ] + } + }, + "export": { + + } +} diff --git a/122-async-outputs/tests/mytest-expected/002.png b/122-async-outputs/tests/mytest-expected/002.png new file mode 100644 index 00000000..b93ce926 Binary files /dev/null and b/122-async-outputs/tests/mytest-expected/002.png differ diff --git a/122-async-outputs/tests/mytest.R b/122-async-outputs/tests/mytest.R new file mode 100644 index 00000000..1ab7224f --- /dev/null +++ b/122-async-outputs/tests/mytest.R @@ -0,0 +1,5 @@ +app <- ShinyDriver$new("../", seed = 100,shinyOptions = list(display.mode = "normal")) +app$snapshotInit("mytest") + +app$snapshot() +app$snapshot() diff --git a/123-async-renderprint/tests/mytest-expected-mac/001.json b/123-async-renderprint/tests/mytest-expected-mac/001.json new file mode 100644 index 00000000..8cfa0eb9 --- /dev/null +++ b/123-async-renderprint/tests/mytest-expected-mac/001.json @@ -0,0 +1,11 @@ +{ + "input": { + + }, + "output": { + + }, + "export": { + + } +} diff --git a/123-async-renderprint/tests/mytest-expected-mac/001.png b/123-async-renderprint/tests/mytest-expected-mac/001.png new file mode 100644 index 00000000..45f09b84 Binary files /dev/null and b/123-async-renderprint/tests/mytest-expected-mac/001.png differ diff --git a/123-async-renderprint/tests/mytest-expected/001.json b/123-async-renderprint/tests/mytest-expected/001.json new file mode 100644 index 00000000..8cfa0eb9 --- /dev/null +++ b/123-async-renderprint/tests/mytest-expected/001.json @@ -0,0 +1,11 @@ +{ + "input": { + + }, + "output": { + + }, + "export": { + + } +} diff --git a/123-async-renderprint/tests/mytest-expected/001.png b/123-async-renderprint/tests/mytest-expected/001.png new file mode 100644 index 00000000..45f09b84 Binary files /dev/null and b/123-async-renderprint/tests/mytest-expected/001.png differ diff --git a/123-async-renderprint/tests/mytest.R b/123-async-renderprint/tests/mytest.R new file mode 100644 index 00000000..7c1e03c6 --- /dev/null +++ b/123-async-renderprint/tests/mytest.R @@ -0,0 +1,4 @@ +app <- ShinyDriver$new("../", seed = 100,shinyOptions = list(display.mode = "normal")) +app$snapshotInit("mytest") + +app$snapshot() diff --git a/124-async-download/tests/mytest-expected-mac/001.json b/124-async-download/tests/mytest-expected-mac/001.json new file mode 100644 index 00000000..62cdc3b3 --- /dev/null +++ b/124-async-download/tests/mytest-expected-mac/001.json @@ -0,0 +1,44 @@ +{ + "input": { + "throw": false + }, + "output": { + "plot": { + "src": "[image data sha1: 4fb51d61fe13e543211848beadcbb3749431a4c3]", + "width": 962, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 3.16, + "right": 25.84, + "bottom": -2.72, + "top": 124.72 + }, + "range": { + "left": 59.04, + "right": 931.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 962, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/124-async-download/tests/mytest-expected-mac/001.png b/124-async-download/tests/mytest-expected-mac/001.png new file mode 100644 index 00000000..f7fbd83b Binary files /dev/null and b/124-async-download/tests/mytest-expected-mac/001.png differ diff --git a/124-async-download/tests/mytest-expected-mac/002.download b/124-async-download/tests/mytest-expected-mac/002.download new file mode 100644 index 00000000..d42454c4 --- /dev/null +++ b/124-async-download/tests/mytest-expected-mac/002.download @@ -0,0 +1 @@ +

Not Found

\ No newline at end of file diff --git a/124-async-download/tests/mytest-expected-mac/003.json b/124-async-download/tests/mytest-expected-mac/003.json new file mode 100644 index 00000000..62cdc3b3 --- /dev/null +++ b/124-async-download/tests/mytest-expected-mac/003.json @@ -0,0 +1,44 @@ +{ + "input": { + "throw": false + }, + "output": { + "plot": { + "src": "[image data sha1: 4fb51d61fe13e543211848beadcbb3749431a4c3]", + "width": 962, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 3.16, + "right": 25.84, + "bottom": -2.72, + "top": 124.72 + }, + "range": { + "left": 59.04, + "right": 931.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 962, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/124-async-download/tests/mytest-expected-mac/003.png b/124-async-download/tests/mytest-expected-mac/003.png new file mode 100644 index 00000000..f7fbd83b Binary files /dev/null and b/124-async-download/tests/mytest-expected-mac/003.png differ diff --git a/124-async-download/tests/mytest-expected/001.json b/124-async-download/tests/mytest-expected/001.json new file mode 100644 index 00000000..62cdc3b3 --- /dev/null +++ b/124-async-download/tests/mytest-expected/001.json @@ -0,0 +1,44 @@ +{ + "input": { + "throw": false + }, + "output": { + "plot": { + "src": "[image data sha1: 4fb51d61fe13e543211848beadcbb3749431a4c3]", + "width": 962, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 3.16, + "right": 25.84, + "bottom": -2.72, + "top": 124.72 + }, + "range": { + "left": 59.04, + "right": 931.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 962, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/124-async-download/tests/mytest-expected/001.png b/124-async-download/tests/mytest-expected/001.png new file mode 100644 index 00000000..f7fbd83b Binary files /dev/null and b/124-async-download/tests/mytest-expected/001.png differ diff --git a/124-async-download/tests/mytest-expected/002.download b/124-async-download/tests/mytest-expected/002.download new file mode 100644 index 00000000..d42454c4 --- /dev/null +++ b/124-async-download/tests/mytest-expected/002.download @@ -0,0 +1 @@ +

Not Found

\ No newline at end of file diff --git a/124-async-download/tests/mytest-expected/003.json b/124-async-download/tests/mytest-expected/003.json new file mode 100644 index 00000000..62cdc3b3 --- /dev/null +++ b/124-async-download/tests/mytest-expected/003.json @@ -0,0 +1,44 @@ +{ + "input": { + "throw": false + }, + "output": { + "plot": { + "src": "[image data sha1: 4fb51d61fe13e543211848beadcbb3749431a4c3]", + "width": 962, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 3.16, + "right": 25.84, + "bottom": -2.72, + "top": 124.72 + }, + "range": { + "left": 59.04, + "right": 931.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 962, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/124-async-download/tests/mytest-expected/003.png b/124-async-download/tests/mytest-expected/003.png new file mode 100644 index 00000000..f7fbd83b Binary files /dev/null and b/124-async-download/tests/mytest-expected/003.png differ diff --git a/124-async-download/tests/mytest.R b/124-async-download/tests/mytest.R new file mode 100644 index 00000000..9b42df63 --- /dev/null +++ b/124-async-download/tests/mytest.R @@ -0,0 +1,8 @@ +app <- ShinyDriver$new("../", seed = 100,shinyOptions = list(display.mode = "normal")) +app$snapshotInit("mytest") + +app$snapshot() +app$setInputs(throw = TRUE) +app$snapshotDownload("download") +app$setInputs(throw = FALSE) +app$snapshot() diff --git a/125-async-req/tests/mytest-expected-mac/001.json b/125-async-req/tests/mytest-expected-mac/001.json new file mode 100644 index 00000000..2e4ea4da --- /dev/null +++ b/125-async-req/tests/mytest-expected-mac/001.json @@ -0,0 +1,16 @@ +{ + "input": { + "boom": 0 + }, + "output": { + "cancelOutput": "After self destruct, this text should remain", + "cancelOutput_async": "After self destruct, this text should remain", + "req": "After self destruct, this text should disappear", + "req_async": "After self destruct, this text should disappear", + "validateNeed": "After self destruct, this text should be replaced by a grey validation message", + "validateNeed_async": "After self destruct, this text should be replaced by a grey validation message" + }, + "export": { + + } +} diff --git a/125-async-req/tests/mytest-expected-mac/001.png b/125-async-req/tests/mytest-expected-mac/001.png new file mode 100644 index 00000000..933e77b9 Binary files /dev/null and b/125-async-req/tests/mytest-expected-mac/001.png differ diff --git a/125-async-req/tests/mytest-expected-mac/002.json b/125-async-req/tests/mytest-expected-mac/002.json new file mode 100644 index 00000000..37e52857 --- /dev/null +++ b/125-async-req/tests/mytest-expected-mac/002.json @@ -0,0 +1,44 @@ +{ + "input": { + "boom": 1 + }, + "output": { + "cancelOutput": "After self destruct, this text should remain", + "cancelOutput_async": "After self destruct, this text should remain", + "req": { + "message": "", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "req_async": { + "message": "", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "validateNeed": { + "message": "Self destructed", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "validateNeed_async": { + "message": "Self destructed", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + } + }, + "export": { + + } +} diff --git a/125-async-req/tests/mytest-expected-mac/002.png b/125-async-req/tests/mytest-expected-mac/002.png new file mode 100644 index 00000000..e8859714 Binary files /dev/null and b/125-async-req/tests/mytest-expected-mac/002.png differ diff --git a/125-async-req/tests/mytest-expected-mac/003.json b/125-async-req/tests/mytest-expected-mac/003.json new file mode 100644 index 00000000..89081a85 --- /dev/null +++ b/125-async-req/tests/mytest-expected-mac/003.json @@ -0,0 +1,44 @@ +{ + "input": { + "boom": 2 + }, + "output": { + "cancelOutput": "After self destruct, this text should remain", + "cancelOutput_async": "After self destruct, this text should remain", + "req": { + "message": "", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "req_async": { + "message": "", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "validateNeed": { + "message": "Self destructed", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "validateNeed_async": { + "message": "Self destructed", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + } + }, + "export": { + + } +} diff --git a/125-async-req/tests/mytest-expected-mac/003.png b/125-async-req/tests/mytest-expected-mac/003.png new file mode 100644 index 00000000..e8859714 Binary files /dev/null and b/125-async-req/tests/mytest-expected-mac/003.png differ diff --git a/125-async-req/tests/mytest-expected/001.json b/125-async-req/tests/mytest-expected/001.json new file mode 100644 index 00000000..2e4ea4da --- /dev/null +++ b/125-async-req/tests/mytest-expected/001.json @@ -0,0 +1,16 @@ +{ + "input": { + "boom": 0 + }, + "output": { + "cancelOutput": "After self destruct, this text should remain", + "cancelOutput_async": "After self destruct, this text should remain", + "req": "After self destruct, this text should disappear", + "req_async": "After self destruct, this text should disappear", + "validateNeed": "After self destruct, this text should be replaced by a grey validation message", + "validateNeed_async": "After self destruct, this text should be replaced by a grey validation message" + }, + "export": { + + } +} diff --git a/125-async-req/tests/mytest-expected/001.png b/125-async-req/tests/mytest-expected/001.png new file mode 100644 index 00000000..933e77b9 Binary files /dev/null and b/125-async-req/tests/mytest-expected/001.png differ diff --git a/125-async-req/tests/mytest-expected/002.json b/125-async-req/tests/mytest-expected/002.json new file mode 100644 index 00000000..37e52857 --- /dev/null +++ b/125-async-req/tests/mytest-expected/002.json @@ -0,0 +1,44 @@ +{ + "input": { + "boom": 1 + }, + "output": { + "cancelOutput": "After self destruct, this text should remain", + "cancelOutput_async": "After self destruct, this text should remain", + "req": { + "message": "", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "req_async": { + "message": "", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "validateNeed": { + "message": "Self destructed", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "validateNeed_async": { + "message": "Self destructed", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + } + }, + "export": { + + } +} diff --git a/125-async-req/tests/mytest-expected/002.png b/125-async-req/tests/mytest-expected/002.png new file mode 100644 index 00000000..e8859714 Binary files /dev/null and b/125-async-req/tests/mytest-expected/002.png differ diff --git a/125-async-req/tests/mytest-expected/003.json b/125-async-req/tests/mytest-expected/003.json new file mode 100644 index 00000000..89081a85 --- /dev/null +++ b/125-async-req/tests/mytest-expected/003.json @@ -0,0 +1,44 @@ +{ + "input": { + "boom": 2 + }, + "output": { + "cancelOutput": "After self destruct, this text should remain", + "cancelOutput_async": "After self destruct, this text should remain", + "req": { + "message": "", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "req_async": { + "message": "", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "validateNeed": { + "message": "Self destructed", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "validateNeed_async": { + "message": "Self destructed", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + } + }, + "export": { + + } +} diff --git a/125-async-req/tests/mytest-expected/003.png b/125-async-req/tests/mytest-expected/003.png new file mode 100644 index 00000000..e8859714 Binary files /dev/null and b/125-async-req/tests/mytest-expected/003.png differ diff --git a/125-async-req/tests/mytest.R b/125-async-req/tests/mytest.R new file mode 100644 index 00000000..bf846572 --- /dev/null +++ b/125-async-req/tests/mytest.R @@ -0,0 +1,13 @@ +app <- ShinyDriver$new("../", seed = 100,shinyOptions = list(display.mode = "normal")) +app$snapshotInit("mytest") + +Sys.sleep(10) +app$snapshot() +app$setInputs(boom = "click") + +Sys.sleep(10) +app$snapshot() +app$setInputs(boom = "click") + +Sys.sleep(10) +app$snapshot() diff --git a/126-async-ticks/tests/mytest-expected-mac/001.json b/126-async-ticks/tests/mytest-expected-mac/001.json new file mode 100644 index 00000000..0056f7b3 --- /dev/null +++ b/126-async-ticks/tests/mytest-expected-mac/001.json @@ -0,0 +1,122 @@ +{ + "input": { + + }, + "output": { + "datatable": { + "message": "OK", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "datatablea": { + "message": "OK", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "image": { + "message": "OK", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "imagea": { + "message": "OK", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "plot": { + "message": "OK", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "plota": { + "message": "OK", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "print": { + "message": "OK", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "printa": { + "message": "OK", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "table": { + "message": "OK", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "tablea": { + "message": "OK", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "text": { + "message": "OK", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "texta": { + "message": "OK", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "ui": { + "message": "OK", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "uia": { + "message": "OK", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + } + }, + "export": { + + } +} diff --git a/126-async-ticks/tests/mytest-expected-mac/001.png b/126-async-ticks/tests/mytest-expected-mac/001.png new file mode 100644 index 00000000..325c0b4e Binary files /dev/null and b/126-async-ticks/tests/mytest-expected-mac/001.png differ diff --git a/126-async-ticks/tests/mytest-expected/001.json b/126-async-ticks/tests/mytest-expected/001.json new file mode 100644 index 00000000..0056f7b3 --- /dev/null +++ b/126-async-ticks/tests/mytest-expected/001.json @@ -0,0 +1,122 @@ +{ + "input": { + + }, + "output": { + "datatable": { + "message": "OK", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "datatablea": { + "message": "OK", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "image": { + "message": "OK", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "imagea": { + "message": "OK", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "plot": { + "message": "OK", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "plota": { + "message": "OK", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "print": { + "message": "OK", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "printa": { + "message": "OK", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "table": { + "message": "OK", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "tablea": { + "message": "OK", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "text": { + "message": "OK", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "texta": { + "message": "OK", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "ui": { + "message": "OK", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "uia": { + "message": "OK", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + } + }, + "export": { + + } +} diff --git a/126-async-ticks/tests/mytest-expected/001.png b/126-async-ticks/tests/mytest-expected/001.png new file mode 100644 index 00000000..325c0b4e Binary files /dev/null and b/126-async-ticks/tests/mytest-expected/001.png differ diff --git a/126-async-ticks/tests/mytest.R b/126-async-ticks/tests/mytest.R new file mode 100644 index 00000000..7c1e03c6 --- /dev/null +++ b/126-async-ticks/tests/mytest.R @@ -0,0 +1,4 @@ +app <- ShinyDriver$new("../", seed = 100,shinyOptions = list(display.mode = "normal")) +app$snapshotInit("mytest") + +app$snapshot() diff --git a/127-async-flush/tests/mytest-expected-mac/001.json b/127-async-flush/tests/mytest-expected-mac/001.json new file mode 100644 index 00000000..952f51e7 --- /dev/null +++ b/127-async-flush/tests/mytest-expected-mac/001.json @@ -0,0 +1,18 @@ +{ + "input": { + "go": 0 + }, + "output": { + "plot": { + "message": "", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + } + }, + "export": { + + } +} diff --git a/127-async-flush/tests/mytest-expected-mac/001.png b/127-async-flush/tests/mytest-expected-mac/001.png new file mode 100644 index 00000000..f6890738 Binary files /dev/null and b/127-async-flush/tests/mytest-expected-mac/001.png differ diff --git a/127-async-flush/tests/mytest-expected-mac/002.json b/127-async-flush/tests/mytest-expected-mac/002.json new file mode 100644 index 00000000..2e0250c0 --- /dev/null +++ b/127-async-flush/tests/mytest-expected-mac/002.json @@ -0,0 +1,18 @@ +{ + "input": { + "go": 1 + }, + "output": { + "plot": { + "message": "", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + } + }, + "export": { + + } +} diff --git a/127-async-flush/tests/mytest-expected-mac/002.png b/127-async-flush/tests/mytest-expected-mac/002.png new file mode 100644 index 00000000..f6890738 Binary files /dev/null and b/127-async-flush/tests/mytest-expected-mac/002.png differ diff --git a/127-async-flush/tests/mytest-expected-mac/003.json b/127-async-flush/tests/mytest-expected-mac/003.json new file mode 100644 index 00000000..2e0250c0 --- /dev/null +++ b/127-async-flush/tests/mytest-expected-mac/003.json @@ -0,0 +1,18 @@ +{ + "input": { + "go": 1 + }, + "output": { + "plot": { + "message": "", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + } + }, + "export": { + + } +} diff --git a/127-async-flush/tests/mytest-expected-mac/003.png b/127-async-flush/tests/mytest-expected-mac/003.png new file mode 100644 index 00000000..f6890738 Binary files /dev/null and b/127-async-flush/tests/mytest-expected-mac/003.png differ diff --git a/127-async-flush/tests/mytest-expected-mac/004.json b/127-async-flush/tests/mytest-expected-mac/004.json new file mode 100644 index 00000000..2e0250c0 --- /dev/null +++ b/127-async-flush/tests/mytest-expected-mac/004.json @@ -0,0 +1,18 @@ +{ + "input": { + "go": 1 + }, + "output": { + "plot": { + "message": "", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + } + }, + "export": { + + } +} diff --git a/127-async-flush/tests/mytest-expected-mac/004.png b/127-async-flush/tests/mytest-expected-mac/004.png new file mode 100644 index 00000000..f6890738 Binary files /dev/null and b/127-async-flush/tests/mytest-expected-mac/004.png differ diff --git a/127-async-flush/tests/mytest-expected-mac/005.json b/127-async-flush/tests/mytest-expected-mac/005.json new file mode 100644 index 00000000..2e0250c0 --- /dev/null +++ b/127-async-flush/tests/mytest-expected-mac/005.json @@ -0,0 +1,18 @@ +{ + "input": { + "go": 1 + }, + "output": { + "plot": { + "message": "", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + } + }, + "export": { + + } +} diff --git a/127-async-flush/tests/mytest-expected-mac/005.png b/127-async-flush/tests/mytest-expected-mac/005.png new file mode 100644 index 00000000..f6890738 Binary files /dev/null and b/127-async-flush/tests/mytest-expected-mac/005.png differ diff --git a/127-async-flush/tests/mytest-expected/001.json b/127-async-flush/tests/mytest-expected/001.json new file mode 100644 index 00000000..952f51e7 --- /dev/null +++ b/127-async-flush/tests/mytest-expected/001.json @@ -0,0 +1,18 @@ +{ + "input": { + "go": 0 + }, + "output": { + "plot": { + "message": "", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + } + }, + "export": { + + } +} diff --git a/127-async-flush/tests/mytest-expected/001.png b/127-async-flush/tests/mytest-expected/001.png new file mode 100644 index 00000000..f6890738 Binary files /dev/null and b/127-async-flush/tests/mytest-expected/001.png differ diff --git a/127-async-flush/tests/mytest-expected/002.json b/127-async-flush/tests/mytest-expected/002.json new file mode 100644 index 00000000..2e0250c0 --- /dev/null +++ b/127-async-flush/tests/mytest-expected/002.json @@ -0,0 +1,18 @@ +{ + "input": { + "go": 1 + }, + "output": { + "plot": { + "message": "", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + } + }, + "export": { + + } +} diff --git a/127-async-flush/tests/mytest-expected/002.png b/127-async-flush/tests/mytest-expected/002.png new file mode 100644 index 00000000..f6890738 Binary files /dev/null and b/127-async-flush/tests/mytest-expected/002.png differ diff --git a/127-async-flush/tests/mytest-expected/003.json b/127-async-flush/tests/mytest-expected/003.json new file mode 100644 index 00000000..2e0250c0 --- /dev/null +++ b/127-async-flush/tests/mytest-expected/003.json @@ -0,0 +1,18 @@ +{ + "input": { + "go": 1 + }, + "output": { + "plot": { + "message": "", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + } + }, + "export": { + + } +} diff --git a/127-async-flush/tests/mytest-expected/003.png b/127-async-flush/tests/mytest-expected/003.png new file mode 100644 index 00000000..f6890738 Binary files /dev/null and b/127-async-flush/tests/mytest-expected/003.png differ diff --git a/127-async-flush/tests/mytest-expected/004.json b/127-async-flush/tests/mytest-expected/004.json new file mode 100644 index 00000000..2e0250c0 --- /dev/null +++ b/127-async-flush/tests/mytest-expected/004.json @@ -0,0 +1,18 @@ +{ + "input": { + "go": 1 + }, + "output": { + "plot": { + "message": "", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + } + }, + "export": { + + } +} diff --git a/127-async-flush/tests/mytest-expected/004.png b/127-async-flush/tests/mytest-expected/004.png new file mode 100644 index 00000000..f6890738 Binary files /dev/null and b/127-async-flush/tests/mytest-expected/004.png differ diff --git a/127-async-flush/tests/mytest-expected/005.json b/127-async-flush/tests/mytest-expected/005.json new file mode 100644 index 00000000..2e0250c0 --- /dev/null +++ b/127-async-flush/tests/mytest-expected/005.json @@ -0,0 +1,18 @@ +{ + "input": { + "go": 1 + }, + "output": { + "plot": { + "message": "", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + } + }, + "export": { + + } +} diff --git a/127-async-flush/tests/mytest-expected/005.png b/127-async-flush/tests/mytest-expected/005.png new file mode 100644 index 00000000..f6890738 Binary files /dev/null and b/127-async-flush/tests/mytest-expected/005.png differ diff --git a/127-async-flush/tests/mytest.R b/127-async-flush/tests/mytest.R new file mode 100644 index 00000000..305e9f13 --- /dev/null +++ b/127-async-flush/tests/mytest.R @@ -0,0 +1,11 @@ +app <- ShinyDriver$new("../", seed = 100,shinyOptions = list(display.mode = "normal")) +app$snapshotInit("mytest") + +app$snapshot() +app$setInputs(go = "click",wait_=FALSE, values_=FALSE) +app$snapshot() +app$snapshot() +app$setInputs(go = "click",wait_=FALSE, values_=FALSE) +app$snapshot() +app$setInputs(go = "click",wait_=FALSE, values_=FALSE) +app$snapshot() diff --git a/128-plot-dim-error/tests/mytest-expected-mac/001.json b/128-plot-dim-error/tests/mytest-expected-mac/001.json new file mode 100644 index 00000000..952f51e7 --- /dev/null +++ b/128-plot-dim-error/tests/mytest-expected-mac/001.json @@ -0,0 +1,18 @@ +{ + "input": { + "go": 0 + }, + "output": { + "plot": { + "message": "", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + } + }, + "export": { + + } +} diff --git a/128-plot-dim-error/tests/mytest-expected-mac/001.png b/128-plot-dim-error/tests/mytest-expected-mac/001.png new file mode 100644 index 00000000..22273a23 Binary files /dev/null and b/128-plot-dim-error/tests/mytest-expected-mac/001.png differ diff --git a/128-plot-dim-error/tests/mytest-expected-mac/002.json b/128-plot-dim-error/tests/mytest-expected-mac/002.json new file mode 100644 index 00000000..5bd950a3 --- /dev/null +++ b/128-plot-dim-error/tests/mytest-expected-mac/002.json @@ -0,0 +1,44 @@ +{ + "input": { + "go": 1 + }, + "output": { + "plot": { + "src": "[image data sha1: 0595dcb3f5648fff9be06c38fd07142408df8d0f]", + "width": 400, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 3.16, + "right": 25.84, + "bottom": -2.72, + "top": 124.72 + }, + "range": { + "left": 59.04, + "right": 369.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 400, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/128-plot-dim-error/tests/mytest-expected-mac/002.png b/128-plot-dim-error/tests/mytest-expected-mac/002.png new file mode 100644 index 00000000..9f44ca35 Binary files /dev/null and b/128-plot-dim-error/tests/mytest-expected-mac/002.png differ diff --git a/128-plot-dim-error/tests/mytest-expected/001.json b/128-plot-dim-error/tests/mytest-expected/001.json new file mode 100644 index 00000000..952f51e7 --- /dev/null +++ b/128-plot-dim-error/tests/mytest-expected/001.json @@ -0,0 +1,18 @@ +{ + "input": { + "go": 0 + }, + "output": { + "plot": { + "message": "", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + } + }, + "export": { + + } +} diff --git a/128-plot-dim-error/tests/mytest-expected/001.png b/128-plot-dim-error/tests/mytest-expected/001.png new file mode 100644 index 00000000..22273a23 Binary files /dev/null and b/128-plot-dim-error/tests/mytest-expected/001.png differ diff --git a/128-plot-dim-error/tests/mytest-expected/002.json b/128-plot-dim-error/tests/mytest-expected/002.json new file mode 100644 index 00000000..5bd950a3 --- /dev/null +++ b/128-plot-dim-error/tests/mytest-expected/002.json @@ -0,0 +1,44 @@ +{ + "input": { + "go": 1 + }, + "output": { + "plot": { + "src": "[image data sha1: 0595dcb3f5648fff9be06c38fd07142408df8d0f]", + "width": 400, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 3.16, + "right": 25.84, + "bottom": -2.72, + "top": 124.72 + }, + "range": { + "left": 59.04, + "right": 369.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 400, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/128-plot-dim-error/tests/mytest-expected/002.png b/128-plot-dim-error/tests/mytest-expected/002.png new file mode 100644 index 00000000..9f44ca35 Binary files /dev/null and b/128-plot-dim-error/tests/mytest-expected/002.png differ diff --git a/128-plot-dim-error/tests/mytest.R b/128-plot-dim-error/tests/mytest.R new file mode 100644 index 00000000..db6ab419 --- /dev/null +++ b/128-plot-dim-error/tests/mytest.R @@ -0,0 +1,6 @@ +app <- ShinyDriver$new("../", seed = 100,shinyOptions = list(display.mode = "normal")) +app$snapshotInit("mytest") + +app$snapshot() +app$setInputs(go = "click") +app$snapshot() diff --git a/129-async-perf/tests/mytest-expected-mac/001.json b/129-async-perf/tests/mytest-expected-mac/001.json new file mode 100644 index 00000000..01bb6119 --- /dev/null +++ b/129-async-perf/tests/mytest-expected-mac/001.json @@ -0,0 +1,36 @@ +{ + "input": { + "deepstacktrace": false, + "failure": 0, + "success": 0 + }, + "output": { + "foo1": { + "message": "", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "foo2": { + "message": "", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "time": { + "message": "", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + } + }, + "export": { + + } +} diff --git a/129-async-perf/tests/mytest-expected-mac/001.png b/129-async-perf/tests/mytest-expected-mac/001.png new file mode 100644 index 00000000..4605f8e2 Binary files /dev/null and b/129-async-perf/tests/mytest-expected-mac/001.png differ diff --git a/129-async-perf/tests/mytest-expected-mac/002.json b/129-async-perf/tests/mytest-expected-mac/002.json new file mode 100644 index 00000000..b59dbd1b --- /dev/null +++ b/129-async-perf/tests/mytest-expected-mac/002.json @@ -0,0 +1,36 @@ +{ + "input": { + "deepstacktrace": true, + "failure": 0, + "success": 0 + }, + "output": { + "foo1": { + "message": "", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "foo2": { + "message": "", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "time": { + "message": "", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + } + }, + "export": { + + } +} diff --git a/129-async-perf/tests/mytest-expected-mac/002.png b/129-async-perf/tests/mytest-expected-mac/002.png new file mode 100644 index 00000000..d374483c Binary files /dev/null and b/129-async-perf/tests/mytest-expected-mac/002.png differ diff --git a/129-async-perf/tests/mytest-expected-mac/003.json b/129-async-perf/tests/mytest-expected-mac/003.json new file mode 100644 index 00000000..fd400af9 --- /dev/null +++ b/129-async-perf/tests/mytest-expected-mac/003.json @@ -0,0 +1,22 @@ +{ + "input": { + "deepstacktrace": true, + "failure": 0, + "success": 1 + }, + "output": { + "foo1": "TRUE", + "foo2": { + "message": "", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "time": "Success in 0.01466084 secs" + }, + "export": { + + } +} diff --git a/129-async-perf/tests/mytest-expected-mac/003.png b/129-async-perf/tests/mytest-expected-mac/003.png new file mode 100644 index 00000000..e7e3e7a5 Binary files /dev/null and b/129-async-perf/tests/mytest-expected-mac/003.png differ diff --git a/129-async-perf/tests/mytest-expected-mac/004.json b/129-async-perf/tests/mytest-expected-mac/004.json new file mode 100644 index 00000000..1c12eea1 --- /dev/null +++ b/129-async-perf/tests/mytest-expected-mac/004.json @@ -0,0 +1,19 @@ +{ + "input": { + "deepstacktrace": true, + "failure": 1, + "success": 1 + }, + "output": { + "foo1": "TRUE", + "foo2": { + "message": "boom", + "call": "onFulfilled(...)", + "type": null + }, + "time": "Failure in 0.009162903 secs" + }, + "export": { + + } +} diff --git a/129-async-perf/tests/mytest-expected-mac/004.png b/129-async-perf/tests/mytest-expected-mac/004.png new file mode 100644 index 00000000..538ce4be Binary files /dev/null and b/129-async-perf/tests/mytest-expected-mac/004.png differ diff --git a/129-async-perf/tests/mytest-expected/001.json b/129-async-perf/tests/mytest-expected/001.json new file mode 100644 index 00000000..01bb6119 --- /dev/null +++ b/129-async-perf/tests/mytest-expected/001.json @@ -0,0 +1,36 @@ +{ + "input": { + "deepstacktrace": false, + "failure": 0, + "success": 0 + }, + "output": { + "foo1": { + "message": "", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "foo2": { + "message": "", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "time": { + "message": "", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + } + }, + "export": { + + } +} diff --git a/129-async-perf/tests/mytest-expected/001.png b/129-async-perf/tests/mytest-expected/001.png new file mode 100644 index 00000000..4605f8e2 Binary files /dev/null and b/129-async-perf/tests/mytest-expected/001.png differ diff --git a/129-async-perf/tests/mytest-expected/002.json b/129-async-perf/tests/mytest-expected/002.json new file mode 100644 index 00000000..b59dbd1b --- /dev/null +++ b/129-async-perf/tests/mytest-expected/002.json @@ -0,0 +1,36 @@ +{ + "input": { + "deepstacktrace": true, + "failure": 0, + "success": 0 + }, + "output": { + "foo1": { + "message": "", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "foo2": { + "message": "", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "time": { + "message": "", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + } + }, + "export": { + + } +} diff --git a/129-async-perf/tests/mytest-expected/002.png b/129-async-perf/tests/mytest-expected/002.png new file mode 100644 index 00000000..d374483c Binary files /dev/null and b/129-async-perf/tests/mytest-expected/002.png differ diff --git a/129-async-perf/tests/mytest-expected/003.json b/129-async-perf/tests/mytest-expected/003.json new file mode 100644 index 00000000..f2a0de33 --- /dev/null +++ b/129-async-perf/tests/mytest-expected/003.json @@ -0,0 +1,22 @@ +{ + "input": { + "deepstacktrace": true, + "failure": 0, + "success": 1 + }, + "output": { + "foo1": "TRUE", + "foo2": { + "message": "", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "time": "Success in 0.01407504 secs" + }, + "export": { + + } +} diff --git a/129-async-perf/tests/mytest-expected/003.png b/129-async-perf/tests/mytest-expected/003.png new file mode 100644 index 00000000..43198ba4 Binary files /dev/null and b/129-async-perf/tests/mytest-expected/003.png differ diff --git a/129-async-perf/tests/mytest-expected/004.json b/129-async-perf/tests/mytest-expected/004.json new file mode 100644 index 00000000..b33a8971 --- /dev/null +++ b/129-async-perf/tests/mytest-expected/004.json @@ -0,0 +1,19 @@ +{ + "input": { + "deepstacktrace": true, + "failure": 1, + "success": 1 + }, + "output": { + "foo1": "TRUE", + "foo2": { + "message": "boom", + "call": "onFulfilled(...)", + "type": null + }, + "time": "Failure in 0.01456499 secs" + }, + "export": { + + } +} diff --git a/129-async-perf/tests/mytest-expected/004.png b/129-async-perf/tests/mytest-expected/004.png new file mode 100644 index 00000000..e45da95b Binary files /dev/null and b/129-async-perf/tests/mytest-expected/004.png differ diff --git a/129-async-perf/tests/mytest.R b/129-async-perf/tests/mytest.R new file mode 100644 index 00000000..734ae6e8 --- /dev/null +++ b/129-async-perf/tests/mytest.R @@ -0,0 +1,13 @@ +app <- ShinyDriver$new("../", seed = 100,shinyOptions = list(display.mode = "normal")) +app$snapshotInit("mytest") + +app$snapshot() +app$setInputs(deepstacktrace = TRUE) +app$snapshot() +app$setInputs(success = "click") +app$snapshot() +app$setInputs(failure = "click") +app$snapshot() +app$setInputs(success = "click") +app$setInputs(success = "click") +app$setInputs(success = "click") diff --git a/130-onInputChange/app.R b/130-onInputChange/app.R new file mode 100644 index 00000000..89d5e823 --- /dev/null +++ b/130-onInputChange/app.R @@ -0,0 +1,74 @@ +library(shiny) + +op <- options(digits.secs = 3) +onStop(function() { + options(op) +}) + +testCaseUI <- function(expectation, explanation, code) { + tagList( + hr(), + pre(code), + p( + strong(expectation), + br(), + explanation + ), + tags$button( + class = "btn btn-default", + onclick = code, + "Run" + ) + ) +} + +ui <- fluidPage( + h2("Test cases for setInputValue priorities"), + div(style = "max-width: 600px", + testCaseUI( + "Clicking the button should print a console message, but only the first time it's clicked.", + "All subsequent calls are deduplicated.", + "Shiny.setInputValue('one', 1);" + ), + testCaseUI( + "Clicking the button should print a console message, every time.", + "Events are never subject to deduplication.", + "Shiny.setInputValue('two', 2, {priority: 'event'});" + ), + testCaseUI( + "Clicking the button should print two console messages, every time.", + "Events are not coalesced.", + "Shiny.setInputValue('three', 3, {priority: 'event'});\nShiny.setInputValue('three', 3, {priority: 'event'});" + ), + testCaseUI( + "Clicking the button should print one console message, every time.", + "On the first click, the first (non-event) call coalesces into the second call; on subsequent clicks, it's ignored due to deduplication.", + "Shiny.setInputValue('four', 4);\nShiny.setInputValue('four', 4, {priority: 'event'});" + ), + testCaseUI( + "Clicking the button should print one console message, every time.", + "The second (non-event) call is ignored due to deduplication.", + "Shiny.setInputValue('five', 5, {priority: 'event'});\nShiny.setInputValue('five', 5);" + ), + testCaseUI( + "Clicking the button should print one console message, every time.", + "The first (non-event) call coalesces into the second call.", + "Shiny.setInputValue('six', '6a');\nShiny.setInputValue('six', '6b', {priority: 'event'});" + ), + testCaseUI( + "Clicking the button should print two console messages, every time.", + "Because the event call happens first, the second call is not coalesced.", + "Shiny.setInputValue('seven', '7a', {priority: 'event'});\nShiny.setInputValue('seven', '7b');" + ) + ) +) + +server <- function(input, output, session) { + lapply(c("one", "two", "three", "four", "five", "six", "seven"), function(i) { + observeEvent(input[[i]], { + message("[", Sys.time(), "] ", i, ": ", input[[i]]) + }) + }) +} + +shinyApp(ui, server) diff --git a/130-onInputChange/tests/mytest-expected-mac/001.json b/130-onInputChange/tests/mytest-expected-mac/001.json new file mode 100644 index 00000000..8cfa0eb9 --- /dev/null +++ b/130-onInputChange/tests/mytest-expected-mac/001.json @@ -0,0 +1,11 @@ +{ + "input": { + + }, + "output": { + + }, + "export": { + + } +} diff --git a/130-onInputChange/tests/mytest-expected-mac/001.png b/130-onInputChange/tests/mytest-expected-mac/001.png new file mode 100644 index 00000000..a9fabcee Binary files /dev/null and b/130-onInputChange/tests/mytest-expected-mac/001.png differ diff --git a/130-onInputChange/tests/mytest-expected-mac/002.json b/130-onInputChange/tests/mytest-expected-mac/002.json new file mode 100644 index 00000000..8cfa0eb9 --- /dev/null +++ b/130-onInputChange/tests/mytest-expected-mac/002.json @@ -0,0 +1,11 @@ +{ + "input": { + + }, + "output": { + + }, + "export": { + + } +} diff --git a/130-onInputChange/tests/mytest-expected-mac/002.png b/130-onInputChange/tests/mytest-expected-mac/002.png new file mode 100644 index 00000000..a9fabcee Binary files /dev/null and b/130-onInputChange/tests/mytest-expected-mac/002.png differ diff --git a/130-onInputChange/tests/mytest-expected-mac/003.json b/130-onInputChange/tests/mytest-expected-mac/003.json new file mode 100644 index 00000000..8cfa0eb9 --- /dev/null +++ b/130-onInputChange/tests/mytest-expected-mac/003.json @@ -0,0 +1,11 @@ +{ + "input": { + + }, + "output": { + + }, + "export": { + + } +} diff --git a/130-onInputChange/tests/mytest-expected-mac/003.png b/130-onInputChange/tests/mytest-expected-mac/003.png new file mode 100644 index 00000000..a9fabcee Binary files /dev/null and b/130-onInputChange/tests/mytest-expected-mac/003.png differ diff --git a/130-onInputChange/tests/mytest-expected/001.json b/130-onInputChange/tests/mytest-expected/001.json new file mode 100644 index 00000000..8cfa0eb9 --- /dev/null +++ b/130-onInputChange/tests/mytest-expected/001.json @@ -0,0 +1,11 @@ +{ + "input": { + + }, + "output": { + + }, + "export": { + + } +} diff --git a/130-onInputChange/tests/mytest-expected/001.png b/130-onInputChange/tests/mytest-expected/001.png new file mode 100644 index 00000000..a9fabcee Binary files /dev/null and b/130-onInputChange/tests/mytest-expected/001.png differ diff --git a/130-onInputChange/tests/mytest-expected/002.json b/130-onInputChange/tests/mytest-expected/002.json new file mode 100644 index 00000000..8cfa0eb9 --- /dev/null +++ b/130-onInputChange/tests/mytest-expected/002.json @@ -0,0 +1,11 @@ +{ + "input": { + + }, + "output": { + + }, + "export": { + + } +} diff --git a/130-onInputChange/tests/mytest-expected/002.png b/130-onInputChange/tests/mytest-expected/002.png new file mode 100644 index 00000000..a9fabcee Binary files /dev/null and b/130-onInputChange/tests/mytest-expected/002.png differ diff --git a/130-onInputChange/tests/mytest-expected/003.json b/130-onInputChange/tests/mytest-expected/003.json new file mode 100644 index 00000000..8cfa0eb9 --- /dev/null +++ b/130-onInputChange/tests/mytest-expected/003.json @@ -0,0 +1,11 @@ +{ + "input": { + + }, + "output": { + + }, + "export": { + + } +} diff --git a/130-onInputChange/tests/mytest-expected/003.png b/130-onInputChange/tests/mytest-expected/003.png new file mode 100644 index 00000000..a9fabcee Binary files /dev/null and b/130-onInputChange/tests/mytest-expected/003.png differ diff --git a/130-onInputChange/tests/mytest.R b/130-onInputChange/tests/mytest.R new file mode 100644 index 00000000..48f31cea --- /dev/null +++ b/130-onInputChange/tests/mytest.R @@ -0,0 +1,12 @@ +app <- ShinyDriver$new("../", seed = 100,shinyOptions = list(display.mode = "normal")) +app$snapshotInit("mytest") + +# Input 'one' was set, but doesn't have an input binding. +app$snapshot() +# Input 'two' was set, but doesn't have an input binding. +# Input 'seven' was set, but doesn't have an input binding. +# Input 'seven' was set, but doesn't have an input binding. +app$snapshot() +# Input 'six' was set, but doesn't have an input binding. +# Input 'six' was set, but doesn't have an input binding. +app$snapshot() diff --git a/130-output-null/tests/mytest-expected-mac/001.json b/130-output-null/tests/mytest-expected-mac/001.json new file mode 100644 index 00000000..23a9fe3e --- /dev/null +++ b/130-output-null/tests/mytest-expected-mac/001.json @@ -0,0 +1,44 @@ +{ + "input": { + "clear": 0 + }, + "output": { + "plot": { + "src": "[image data sha1: 4fb51d61fe13e543211848beadcbb3749431a4c3]", + "width": 962, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 3.16, + "right": 25.84, + "bottom": -2.72, + "top": 124.72 + }, + "range": { + "left": 59.04, + "right": 931.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 962, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/130-output-null/tests/mytest-expected-mac/001.png b/130-output-null/tests/mytest-expected-mac/001.png new file mode 100644 index 00000000..6bed9f8b Binary files /dev/null and b/130-output-null/tests/mytest-expected-mac/001.png differ diff --git a/130-output-null/tests/mytest-expected-mac/002.json b/130-output-null/tests/mytest-expected-mac/002.json new file mode 100644 index 00000000..3e4c4a77 --- /dev/null +++ b/130-output-null/tests/mytest-expected-mac/002.json @@ -0,0 +1,18 @@ +{ + "input": { + "clear": 1 + }, + "output": { + "plot": { + "message": "", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + } + }, + "export": { + + } +} diff --git a/130-output-null/tests/mytest-expected-mac/002.png b/130-output-null/tests/mytest-expected-mac/002.png new file mode 100644 index 00000000..10bd5896 Binary files /dev/null and b/130-output-null/tests/mytest-expected-mac/002.png differ diff --git a/130-output-null/tests/mytest-expected-mac/003.json b/130-output-null/tests/mytest-expected-mac/003.json new file mode 100644 index 00000000..27503ecf --- /dev/null +++ b/130-output-null/tests/mytest-expected-mac/003.json @@ -0,0 +1,18 @@ +{ + "input": { + "clear": 2 + }, + "output": { + "plot": { + "message": "", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + } + }, + "export": { + + } +} diff --git a/130-output-null/tests/mytest-expected-mac/003.png b/130-output-null/tests/mytest-expected-mac/003.png new file mode 100644 index 00000000..10bd5896 Binary files /dev/null and b/130-output-null/tests/mytest-expected-mac/003.png differ diff --git a/130-output-null/tests/mytest-expected/001.json b/130-output-null/tests/mytest-expected/001.json new file mode 100644 index 00000000..23a9fe3e --- /dev/null +++ b/130-output-null/tests/mytest-expected/001.json @@ -0,0 +1,44 @@ +{ + "input": { + "clear": 0 + }, + "output": { + "plot": { + "src": "[image data sha1: 4fb51d61fe13e543211848beadcbb3749431a4c3]", + "width": 962, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 3.16, + "right": 25.84, + "bottom": -2.72, + "top": 124.72 + }, + "range": { + "left": 59.04, + "right": 931.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 962, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/130-output-null/tests/mytest-expected/001.png b/130-output-null/tests/mytest-expected/001.png new file mode 100644 index 00000000..6bed9f8b Binary files /dev/null and b/130-output-null/tests/mytest-expected/001.png differ diff --git a/130-output-null/tests/mytest-expected/002.json b/130-output-null/tests/mytest-expected/002.json new file mode 100644 index 00000000..3e4c4a77 --- /dev/null +++ b/130-output-null/tests/mytest-expected/002.json @@ -0,0 +1,18 @@ +{ + "input": { + "clear": 1 + }, + "output": { + "plot": { + "message": "", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + } + }, + "export": { + + } +} diff --git a/130-output-null/tests/mytest-expected/002.png b/130-output-null/tests/mytest-expected/002.png new file mode 100644 index 00000000..10bd5896 Binary files /dev/null and b/130-output-null/tests/mytest-expected/002.png differ diff --git a/130-output-null/tests/mytest-expected/003.json b/130-output-null/tests/mytest-expected/003.json new file mode 100644 index 00000000..27503ecf --- /dev/null +++ b/130-output-null/tests/mytest-expected/003.json @@ -0,0 +1,18 @@ +{ + "input": { + "clear": 2 + }, + "output": { + "plot": { + "message": "", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + } + }, + "export": { + + } +} diff --git a/130-output-null/tests/mytest-expected/003.png b/130-output-null/tests/mytest-expected/003.png new file mode 100644 index 00000000..10bd5896 Binary files /dev/null and b/130-output-null/tests/mytest-expected/003.png differ diff --git a/130-output-null/tests/mytest.R b/130-output-null/tests/mytest.R new file mode 100644 index 00000000..d61c5b06 --- /dev/null +++ b/130-output-null/tests/mytest.R @@ -0,0 +1,8 @@ +app <- ShinyDriver$new("../", seed = 100,shinyOptions = list(display.mode = "normal")) +app$snapshotInit("mytest") + +app$snapshot() +app$setInputs(clear = "click") +app$snapshot() +app$setInputs(clear = "click") +app$snapshot() diff --git a/131-renderplot-args/tests/mytest-expected-mac/001.json b/131-renderplot-args/tests/mytest-expected-mac/001.json new file mode 100644 index 00000000..8659bce0 --- /dev/null +++ b/131-renderplot-args/tests/mytest-expected-mac/001.json @@ -0,0 +1,44 @@ +{ + "input": { + + }, + "output": { + "plot": { + "src": "[image data sha1: 99d9c0b041998a7e649adf6e2d4a9fca9b05f5cb]", + "width": 962, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 3.16, + "right": 25.84, + "bottom": -2.72, + "top": 124.72 + }, + "range": { + "left": 59.04, + "right": 931.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 962, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/131-renderplot-args/tests/mytest-expected-mac/001.png b/131-renderplot-args/tests/mytest-expected-mac/001.png new file mode 100644 index 00000000..c2d376ed Binary files /dev/null and b/131-renderplot-args/tests/mytest-expected-mac/001.png differ diff --git a/131-renderplot-args/tests/mytest-expected/001.json b/131-renderplot-args/tests/mytest-expected/001.json new file mode 100644 index 00000000..8659bce0 --- /dev/null +++ b/131-renderplot-args/tests/mytest-expected/001.json @@ -0,0 +1,44 @@ +{ + "input": { + + }, + "output": { + "plot": { + "src": "[image data sha1: 99d9c0b041998a7e649adf6e2d4a9fca9b05f5cb]", + "width": 962, + "height": 400, + "coordmap": { + "panels": [ + { + "domain": { + "left": 3.16, + "right": 25.84, + "bottom": -2.72, + "top": 124.72 + }, + "range": { + "left": 59.04, + "right": 931.76, + "bottom": 325.56, + "top": 58.04 + }, + "log": { + "x": null, + "y": null + }, + "mapping": { + + } + } + ], + "dims": { + "width": 962, + "height": 400 + } + } + } + }, + "export": { + + } +} diff --git a/131-renderplot-args/tests/mytest-expected/001.png b/131-renderplot-args/tests/mytest-expected/001.png new file mode 100644 index 00000000..c2d376ed Binary files /dev/null and b/131-renderplot-args/tests/mytest-expected/001.png differ diff --git a/131-renderplot-args/tests/mytest.R b/131-renderplot-args/tests/mytest.R new file mode 100644 index 00000000..7c1e03c6 --- /dev/null +++ b/131-renderplot-args/tests/mytest.R @@ -0,0 +1,4 @@ +app <- ShinyDriver$new("../", seed = 100,shinyOptions = list(display.mode = "normal")) +app$snapshotInit("mytest") + +app$snapshot() diff --git a/132-async-events/app.R b/132-async-events/app.R index bd19531c..e083669e 100644 --- a/132-async-events/app.R +++ b/132-async-events/app.R @@ -6,9 +6,9 @@ ui <- fluidPage( radioButtons("type", "Type of event", c( "Success" = "success", - "Error" = "error", "Silent error (i.e. req(FALSE))" = "silent", - "Validation error" = "validation" + "Validation error" = "validation", + "Error" = "error" )), hr(), @@ -39,10 +39,6 @@ ui <- fluidPage( actionButton("success", "Success"), "After a one second delay, you should see a success message printed at the R console" ), - p( - actionButton("error", "Error"), - "The session should be disconnected and an error printed at the console" - ), p( actionButton("silent", "Silent error (i.e. req(FALSE))"), "Should have no effect" @@ -50,6 +46,10 @@ ui <- fluidPage( p( actionButton("validation", "Validation error"), "Should have no effect" + ), + p( + actionButton("error", "Error"), + "The session should be disconnected and an error printed at the console" ) ) diff --git a/132-async-events/tests/mytest-expected-mac/001.json b/132-async-events/tests/mytest-expected-mac/001.json new file mode 100644 index 00000000..29043d6f --- /dev/null +++ b/132-async-events/tests/mytest-expected-mac/001.json @@ -0,0 +1,16 @@ +{ + "input": { + "error": 0, + "silent": 0, + "success": 0, + "type": "success", + "validation": 0 + }, + "output": { + "async_output": "normal value", + "sync_output": "normal value" + }, + "export": { + + } +} diff --git a/132-async-events/tests/mytest-expected-mac/001.png b/132-async-events/tests/mytest-expected-mac/001.png new file mode 100644 index 00000000..631767f7 Binary files /dev/null and b/132-async-events/tests/mytest-expected-mac/001.png differ diff --git a/132-async-events/tests/mytest-expected-mac/002.json b/132-async-events/tests/mytest-expected-mac/002.json new file mode 100644 index 00000000..80d512bb --- /dev/null +++ b/132-async-events/tests/mytest-expected-mac/002.json @@ -0,0 +1,24 @@ +{ + "input": { + "error": 0, + "silent": 0, + "success": 0, + "type": "error", + "validation": 0 + }, + "output": { + "async_output": { + "message": "error!", + "call": "eventReactiveHandler(...)", + "type": null + }, + "sync_output": { + "message": "error!", + "call": "eventReactiveHandler(...)", + "type": null + } + }, + "export": { + + } +} diff --git a/132-async-events/tests/mytest-expected-mac/002.png b/132-async-events/tests/mytest-expected-mac/002.png new file mode 100644 index 00000000..91f89ee5 Binary files /dev/null and b/132-async-events/tests/mytest-expected-mac/002.png differ diff --git a/132-async-events/tests/mytest-expected-mac/003.json b/132-async-events/tests/mytest-expected-mac/003.json new file mode 100644 index 00000000..50aebda7 --- /dev/null +++ b/132-async-events/tests/mytest-expected-mac/003.json @@ -0,0 +1,30 @@ +{ + "input": { + "error": 0, + "silent": 0, + "success": 0, + "type": "silent", + "validation": 0 + }, + "output": { + "async_output": { + "message": "", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "sync_output": { + "message": "", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + } + }, + "export": { + + } +} diff --git a/132-async-events/tests/mytest-expected-mac/003.png b/132-async-events/tests/mytest-expected-mac/003.png new file mode 100644 index 00000000..c33d185a Binary files /dev/null and b/132-async-events/tests/mytest-expected-mac/003.png differ diff --git a/132-async-events/tests/mytest-expected-mac/004.json b/132-async-events/tests/mytest-expected-mac/004.json new file mode 100644 index 00000000..1c9290f2 --- /dev/null +++ b/132-async-events/tests/mytest-expected-mac/004.json @@ -0,0 +1,30 @@ +{ + "input": { + "error": 0, + "silent": 0, + "success": 0, + "type": "validation", + "validation": 0 + }, + "output": { + "async_output": { + "message": "Validation error", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "sync_output": { + "message": "Validation error", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + } + }, + "export": { + + } +} diff --git a/132-async-events/tests/mytest-expected-mac/004.png b/132-async-events/tests/mytest-expected-mac/004.png new file mode 100644 index 00000000..3c1bde21 Binary files /dev/null and b/132-async-events/tests/mytest-expected-mac/004.png differ diff --git a/132-async-events/tests/mytest-expected-mac/005.json b/132-async-events/tests/mytest-expected-mac/005.json new file mode 100644 index 00000000..b3fcfddc --- /dev/null +++ b/132-async-events/tests/mytest-expected-mac/005.json @@ -0,0 +1,30 @@ +{ + "input": { + "error": 0, + "silent": 0, + "success": 1, + "type": "validation", + "validation": 0 + }, + "output": { + "async_output": { + "message": "Validation error", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "sync_output": { + "message": "Validation error", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + } + }, + "export": { + + } +} diff --git a/132-async-events/tests/mytest-expected-mac/005.png b/132-async-events/tests/mytest-expected-mac/005.png new file mode 100644 index 00000000..3c1bde21 Binary files /dev/null and b/132-async-events/tests/mytest-expected-mac/005.png differ diff --git a/132-async-events/tests/mytest-expected-mac/006.json b/132-async-events/tests/mytest-expected-mac/006.json new file mode 100644 index 00000000..d8117980 --- /dev/null +++ b/132-async-events/tests/mytest-expected-mac/006.json @@ -0,0 +1,30 @@ +{ + "input": { + "error": 1, + "silent": 0, + "success": 1, + "type": "validation", + "validation": 0 + }, + "output": { + "async_output": { + "message": "Validation error", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "sync_output": { + "message": "Validation error", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + } + }, + "export": { + + } +} diff --git a/132-async-events/tests/mytest-expected-mac/006.png b/132-async-events/tests/mytest-expected-mac/006.png new file mode 100644 index 00000000..3c1bde21 Binary files /dev/null and b/132-async-events/tests/mytest-expected-mac/006.png differ diff --git a/132-async-events/tests/mytest-expected/001.json b/132-async-events/tests/mytest-expected/001.json new file mode 100644 index 00000000..29043d6f --- /dev/null +++ b/132-async-events/tests/mytest-expected/001.json @@ -0,0 +1,16 @@ +{ + "input": { + "error": 0, + "silent": 0, + "success": 0, + "type": "success", + "validation": 0 + }, + "output": { + "async_output": "normal value", + "sync_output": "normal value" + }, + "export": { + + } +} diff --git a/132-async-events/tests/mytest-expected/001.png b/132-async-events/tests/mytest-expected/001.png new file mode 100644 index 00000000..78ae0c6b Binary files /dev/null and b/132-async-events/tests/mytest-expected/001.png differ diff --git a/132-async-events/tests/mytest-expected/002.json b/132-async-events/tests/mytest-expected/002.json new file mode 100644 index 00000000..80d512bb --- /dev/null +++ b/132-async-events/tests/mytest-expected/002.json @@ -0,0 +1,24 @@ +{ + "input": { + "error": 0, + "silent": 0, + "success": 0, + "type": "error", + "validation": 0 + }, + "output": { + "async_output": { + "message": "error!", + "call": "eventReactiveHandler(...)", + "type": null + }, + "sync_output": { + "message": "error!", + "call": "eventReactiveHandler(...)", + "type": null + } + }, + "export": { + + } +} diff --git a/132-async-events/tests/mytest-expected/002.png b/132-async-events/tests/mytest-expected/002.png new file mode 100644 index 00000000..de421f92 Binary files /dev/null and b/132-async-events/tests/mytest-expected/002.png differ diff --git a/132-async-events/tests/mytest-expected/003.json b/132-async-events/tests/mytest-expected/003.json new file mode 100644 index 00000000..50aebda7 --- /dev/null +++ b/132-async-events/tests/mytest-expected/003.json @@ -0,0 +1,30 @@ +{ + "input": { + "error": 0, + "silent": 0, + "success": 0, + "type": "silent", + "validation": 0 + }, + "output": { + "async_output": { + "message": "", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "sync_output": { + "message": "", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + } + }, + "export": { + + } +} diff --git a/132-async-events/tests/mytest-expected/003.png b/132-async-events/tests/mytest-expected/003.png new file mode 100644 index 00000000..4dd4025f Binary files /dev/null and b/132-async-events/tests/mytest-expected/003.png differ diff --git a/132-async-events/tests/mytest-expected/004.json b/132-async-events/tests/mytest-expected/004.json new file mode 100644 index 00000000..1c9290f2 --- /dev/null +++ b/132-async-events/tests/mytest-expected/004.json @@ -0,0 +1,30 @@ +{ + "input": { + "error": 0, + "silent": 0, + "success": 0, + "type": "validation", + "validation": 0 + }, + "output": { + "async_output": { + "message": "Validation error", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "sync_output": { + "message": "Validation error", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + } + }, + "export": { + + } +} diff --git a/132-async-events/tests/mytest-expected/004.png b/132-async-events/tests/mytest-expected/004.png new file mode 100644 index 00000000..ae37612e Binary files /dev/null and b/132-async-events/tests/mytest-expected/004.png differ diff --git a/132-async-events/tests/mytest-expected/005.json b/132-async-events/tests/mytest-expected/005.json new file mode 100644 index 00000000..b3fcfddc --- /dev/null +++ b/132-async-events/tests/mytest-expected/005.json @@ -0,0 +1,30 @@ +{ + "input": { + "error": 0, + "silent": 0, + "success": 1, + "type": "validation", + "validation": 0 + }, + "output": { + "async_output": { + "message": "Validation error", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "sync_output": { + "message": "Validation error", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + } + }, + "export": { + + } +} diff --git a/132-async-events/tests/mytest-expected/005.png b/132-async-events/tests/mytest-expected/005.png new file mode 100644 index 00000000..ae37612e Binary files /dev/null and b/132-async-events/tests/mytest-expected/005.png differ diff --git a/132-async-events/tests/mytest-expected/006.json b/132-async-events/tests/mytest-expected/006.json new file mode 100644 index 00000000..d8117980 --- /dev/null +++ b/132-async-events/tests/mytest-expected/006.json @@ -0,0 +1,30 @@ +{ + "input": { + "error": 1, + "silent": 0, + "success": 1, + "type": "validation", + "validation": 0 + }, + "output": { + "async_output": { + "message": "Validation error", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + }, + "sync_output": { + "message": "Validation error", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + } + }, + "export": { + + } +} diff --git a/132-async-events/tests/mytest-expected/006.png b/132-async-events/tests/mytest-expected/006.png new file mode 100644 index 00000000..ae37612e Binary files /dev/null and b/132-async-events/tests/mytest-expected/006.png differ diff --git a/132-async-events/tests/mytest.R b/132-async-events/tests/mytest.R new file mode 100644 index 00000000..53aa0271 --- /dev/null +++ b/132-async-events/tests/mytest.R @@ -0,0 +1,14 @@ +app <- ShinyDriver$new("../", seed = 100,shinyOptions = list(display.mode = "normal")) +app$snapshotInit("mytest") + +app$snapshot() +app$setInputs(type = "error") +app$snapshot() +app$setInputs(type = "silent") +app$snapshot() +app$setInputs(type = "validation") +app$snapshot() +app$setInputs(success = "click") +app$snapshot() +app$setInputs(error = "click",wait_=FALSE, values_=FALSE) +app$snapshot() diff --git a/133-async-hold-inputs/tests/mytest-expected-mac/001.json b/133-async-hold-inputs/tests/mytest-expected-mac/001.json new file mode 100644 index 00000000..9371034f --- /dev/null +++ b/133-async-hold-inputs/tests/mytest-expected-mac/001.json @@ -0,0 +1,19 @@ +{ + "input": { + "choice": "a", + "go": 0 + }, + "output": { + "out": { + "message": "", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + } + }, + "export": { + + } +} diff --git a/133-async-hold-inputs/tests/mytest-expected-mac/001.png b/133-async-hold-inputs/tests/mytest-expected-mac/001.png new file mode 100644 index 00000000..315066f8 Binary files /dev/null and b/133-async-hold-inputs/tests/mytest-expected-mac/001.png differ diff --git a/133-async-hold-inputs/tests/mytest-expected-mac/002.json b/133-async-hold-inputs/tests/mytest-expected-mac/002.json new file mode 100644 index 00000000..0d6ec0ce --- /dev/null +++ b/133-async-hold-inputs/tests/mytest-expected-mac/002.json @@ -0,0 +1,19 @@ +{ + "input": { + "choice": "b", + "go": 0 + }, + "output": { + "out": { + "message": "", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + } + }, + "export": { + + } +} diff --git a/133-async-hold-inputs/tests/mytest-expected-mac/002.png b/133-async-hold-inputs/tests/mytest-expected-mac/002.png new file mode 100644 index 00000000..47f27b72 Binary files /dev/null and b/133-async-hold-inputs/tests/mytest-expected-mac/002.png differ diff --git a/133-async-hold-inputs/tests/mytest-expected-mac/003.json b/133-async-hold-inputs/tests/mytest-expected-mac/003.json new file mode 100644 index 00000000..60b0058a --- /dev/null +++ b/133-async-hold-inputs/tests/mytest-expected-mac/003.json @@ -0,0 +1,19 @@ +{ + "input": { + "choice": "b", + "go": 1 + }, + "output": { + "out": { + "message": "", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + } + }, + "export": { + + } +} diff --git a/133-async-hold-inputs/tests/mytest-expected-mac/003.png b/133-async-hold-inputs/tests/mytest-expected-mac/003.png new file mode 100644 index 00000000..44dc219f Binary files /dev/null and b/133-async-hold-inputs/tests/mytest-expected-mac/003.png differ diff --git a/133-async-hold-inputs/tests/mytest-expected-mac/004.json b/133-async-hold-inputs/tests/mytest-expected-mac/004.json new file mode 100644 index 00000000..60b0058a --- /dev/null +++ b/133-async-hold-inputs/tests/mytest-expected-mac/004.json @@ -0,0 +1,19 @@ +{ + "input": { + "choice": "b", + "go": 1 + }, + "output": { + "out": { + "message": "", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + } + }, + "export": { + + } +} diff --git a/133-async-hold-inputs/tests/mytest-expected-mac/004.png b/133-async-hold-inputs/tests/mytest-expected-mac/004.png new file mode 100644 index 00000000..0404b1f5 Binary files /dev/null and b/133-async-hold-inputs/tests/mytest-expected-mac/004.png differ diff --git a/133-async-hold-inputs/tests/mytest-expected-mac/005.json b/133-async-hold-inputs/tests/mytest-expected-mac/005.json new file mode 100644 index 00000000..60b0058a --- /dev/null +++ b/133-async-hold-inputs/tests/mytest-expected-mac/005.json @@ -0,0 +1,19 @@ +{ + "input": { + "choice": "b", + "go": 1 + }, + "output": { + "out": { + "message": "", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + } + }, + "export": { + + } +} diff --git a/133-async-hold-inputs/tests/mytest-expected-mac/005.png b/133-async-hold-inputs/tests/mytest-expected-mac/005.png new file mode 100644 index 00000000..44dc219f Binary files /dev/null and b/133-async-hold-inputs/tests/mytest-expected-mac/005.png differ diff --git a/133-async-hold-inputs/tests/mytest-expected/001.json b/133-async-hold-inputs/tests/mytest-expected/001.json new file mode 100644 index 00000000..9371034f --- /dev/null +++ b/133-async-hold-inputs/tests/mytest-expected/001.json @@ -0,0 +1,19 @@ +{ + "input": { + "choice": "a", + "go": 0 + }, + "output": { + "out": { + "message": "", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + } + }, + "export": { + + } +} diff --git a/133-async-hold-inputs/tests/mytest-expected/001.png b/133-async-hold-inputs/tests/mytest-expected/001.png new file mode 100644 index 00000000..315066f8 Binary files /dev/null and b/133-async-hold-inputs/tests/mytest-expected/001.png differ diff --git a/133-async-hold-inputs/tests/mytest-expected/002.json b/133-async-hold-inputs/tests/mytest-expected/002.json new file mode 100644 index 00000000..0d6ec0ce --- /dev/null +++ b/133-async-hold-inputs/tests/mytest-expected/002.json @@ -0,0 +1,19 @@ +{ + "input": { + "choice": "b", + "go": 0 + }, + "output": { + "out": { + "message": "", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + } + }, + "export": { + + } +} diff --git a/133-async-hold-inputs/tests/mytest-expected/002.png b/133-async-hold-inputs/tests/mytest-expected/002.png new file mode 100644 index 00000000..47f27b72 Binary files /dev/null and b/133-async-hold-inputs/tests/mytest-expected/002.png differ diff --git a/133-async-hold-inputs/tests/mytest-expected/003.json b/133-async-hold-inputs/tests/mytest-expected/003.json new file mode 100644 index 00000000..60b0058a --- /dev/null +++ b/133-async-hold-inputs/tests/mytest-expected/003.json @@ -0,0 +1,19 @@ +{ + "input": { + "choice": "b", + "go": 1 + }, + "output": { + "out": { + "message": "", + "call": "NULL", + "type": [ + "shiny.silent.error", + "validation" + ] + } + }, + "export": { + + } +} diff --git a/133-async-hold-inputs/tests/mytest-expected/003.png b/133-async-hold-inputs/tests/mytest-expected/003.png new file mode 100644 index 00000000..44dc219f Binary files /dev/null and b/133-async-hold-inputs/tests/mytest-expected/003.png differ diff --git a/133-async-hold-inputs/tests/mytest-expected/004.json b/133-async-hold-inputs/tests/mytest-expected/004.json new file mode 100644 index 00000000..bd12f4db --- /dev/null +++ b/133-async-hold-inputs/tests/mytest-expected/004.json @@ -0,0 +1,12 @@ +{ + "input": { + "choice": "c", + "go": 2 + }, + "output": { + "out": "c \nc \nc \nc " + }, + "export": { + + } +} diff --git a/133-async-hold-inputs/tests/mytest-expected/004.png b/133-async-hold-inputs/tests/mytest-expected/004.png new file mode 100644 index 00000000..aadabce1 Binary files /dev/null and b/133-async-hold-inputs/tests/mytest-expected/004.png differ diff --git a/133-async-hold-inputs/tests/mytest-expected/005.json b/133-async-hold-inputs/tests/mytest-expected/005.json new file mode 100644 index 00000000..e26aaead --- /dev/null +++ b/133-async-hold-inputs/tests/mytest-expected/005.json @@ -0,0 +1,12 @@ +{ + "input": { + "choice": "b", + "go": 3 + }, + "output": { + "out": "c \nc \nc \nc " + }, + "export": { + + } +} diff --git a/133-async-hold-inputs/tests/mytest-expected/005.png b/133-async-hold-inputs/tests/mytest-expected/005.png new file mode 100644 index 00000000..16263062 Binary files /dev/null and b/133-async-hold-inputs/tests/mytest-expected/005.png differ diff --git a/133-async-hold-inputs/tests/mytest.R b/133-async-hold-inputs/tests/mytest.R new file mode 100644 index 00000000..b3294fe5 --- /dev/null +++ b/133-async-hold-inputs/tests/mytest.R @@ -0,0 +1,14 @@ +app <- ShinyDriver$new("../", seed = 100,shinyOptions = list(display.mode = "normal")) +app$snapshotInit("mytest") + +app$snapshot() +app$setInputs(choice = "b",wait_=FALSE,values_=FALSE) +app$snapshot() +app$setInputs(go = "click",wait_=FALSE,values_=FALSE) +app$snapshot() +app$setInputs(choice = "c",wait_=FALSE,values_=FALSE) +app$setInputs(go = "click",wait_=FALSE,values_=FALSE) +app$snapshot() +app$setInputs(choice = "b",wait_=FALSE,values_=FALSE) +app$setInputs(go = "click",wait_=FALSE,values_=FALSE) +app$snapshot() diff --git a/134-async-hold-timers/tests/mytest-expected-mac/001.json b/134-async-hold-timers/tests/mytest-expected-mac/001.json new file mode 100644 index 00000000..8cfa0eb9 --- /dev/null +++ b/134-async-hold-timers/tests/mytest-expected-mac/001.json @@ -0,0 +1,11 @@ +{ + "input": { + + }, + "output": { + + }, + "export": { + + } +} diff --git a/134-async-hold-timers/tests/mytest-expected-mac/001.png b/134-async-hold-timers/tests/mytest-expected-mac/001.png new file mode 100644 index 00000000..724bbd7c Binary files /dev/null and b/134-async-hold-timers/tests/mytest-expected-mac/001.png differ diff --git a/134-async-hold-timers/tests/mytest-expected/001.json b/134-async-hold-timers/tests/mytest-expected/001.json new file mode 100644 index 00000000..8cfa0eb9 --- /dev/null +++ b/134-async-hold-timers/tests/mytest-expected/001.json @@ -0,0 +1,11 @@ +{ + "input": { + + }, + "output": { + + }, + "export": { + + } +} diff --git a/134-async-hold-timers/tests/mytest-expected/001.png b/134-async-hold-timers/tests/mytest-expected/001.png new file mode 100644 index 00000000..724bbd7c Binary files /dev/null and b/134-async-hold-timers/tests/mytest-expected/001.png differ diff --git a/134-async-hold-timers/tests/mytest.R b/134-async-hold-timers/tests/mytest.R new file mode 100644 index 00000000..2b58176b --- /dev/null +++ b/134-async-hold-timers/tests/mytest.R @@ -0,0 +1,4 @@ +app <- ShinyDriver$new("../", seed = 100,shinyOptions = list(display.mode = "normal")) +app$snapshotInit("mytest") +Sys.sleep(15) +app$snapshot() diff --git a/135-bookmark-uioutput/app.R b/135-bookmark-uioutput/app.R new file mode 100644 index 00000000..d5437dc5 --- /dev/null +++ b/135-bookmark-uioutput/app.R @@ -0,0 +1,47 @@ +library(promises) +library(shiny) + +ui <- function(req) { + fluidPage( + h2("Bookmarking of dynamic inputs"), + p("(For ", + a(href = "https://github.com/rstudio/shiny/pull/2139", "#2139"), ", ", + a(href = "https://github.com/rstudio/shiny/pull/2360", "#2360"), + ")" + ), + p("Change the slider value below, then make a bookmark URL.", + "Navigate to that URL and ensure that the slider value is restored correctly.", + "Then, in the new browser window, change the slider and click on Reset Slider.", + "Make sure the slider returns to the original value of 5."), + uiOutput("ui"), + actionButton("reset", "Reset Slider"), + bookmarkButton() + ) +} + +server <- function(input, output, session) { + output$ui <- renderUI({ + p <- promise(function(resolve, reject) { + input$reset + + # We'll try to consume input$x here with async just to make sure that + # the delay doesn't cause the input$x to be flushed from the + # restoreContext and make input$x not be restored in the next step in + # the promise chain. + sliderInput("x", "x", 1, 10, 5) + + resolve(TRUE) + }) + + p <- p$then(function(value) { + sliderInput("x", "x", 1, 10, 5) + }) + + p + }) +} + +enableBookmarking("url") + +shinyApp(ui, server) + diff --git a/135-bookmark-uioutput/tests/shinytest.R b/135-bookmark-uioutput/tests/shinytest.R new file mode 100644 index 00000000..7021f8ec --- /dev/null +++ b/135-bookmark-uioutput/tests/shinytest.R @@ -0,0 +1,3 @@ +library(shinytest) +shinytest::testApp("../") + diff --git a/135-bookmark-uioutput/tests/shinytests/mytest-expected-mac/001.json b/135-bookmark-uioutput/tests/shinytests/mytest-expected-mac/001.json new file mode 100644 index 00000000..86284230 --- /dev/null +++ b/135-bookmark-uioutput/tests/shinytests/mytest-expected-mac/001.json @@ -0,0 +1,48 @@ +{ + "input": { + "._bookmark_": 0, + "reset": 0, + "x": 5 + }, + "output": { + "ui": { + "html": "
\n