File size: 2,329 Bytes
9aaa76b | 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 | # context("test-module_dendrogram")
# set.seed(42)
#
#
#
# # colordendLabelsUI -------------------------------------------------------
#
# a <- colordendLabelsUI("hi")
# test_that("colordendLabelsUI", {
# expect_identical(class(a), "shiny.tag")
# expect_identical(a$name, "div")
# expect_identical(a$attribs$id, "hi-absPanelDendLabels")
# expect_identical(a$attribs$class, "shiny-html-output")
# expect_known_hash(a, "e8d66dac3e")
#
# })
#
#
# # addDotsActionUI ---------------------------------------------------------
#
# a <- addDotsActionUI("hi")
# test_that("addDotsActionUI", {
# expect_identical(class(a),c("shiny.tag.list", "list"))
# expect_known_hash(a, "d659acae6c")
# })
#
#
# # plotHier ----------------------------------------------------------------
#
# a <- plotHier("hi")
# test_that("plotHier", {
# expect_identical(class(a),c("shiny.tag.list", "list"))
# expect_known_hash(a, "bffad66f2f")
# })
#
#
# # downloadHier ------------------------------------------------------------
#
# a <- downloadHier("hi")
# test_that("downloadHier", {
# expect_identical(class(a),"shiny.tag")
# expect_known_hash(a, "a181c75d70")
# })
#
# # downloadSvg -------------------------------------------------------------
#
# a <- downloadSvg("hi")
# test_that("downloadSvg", {
# expect_identical(class(a[[1]]),"shiny.tag")
# expect_identical(class(a[[2]]),"shiny.tag")
# expect_identical(class(a[[2]]),"shiny.tag")
# expect_known_hash(a, "addf5fc4a8")
# })
#
#
#
#
#
#
#
# # modDendLines_WellPanel --------------------------------------------------
#
# a <- modDendLines_WellPanel(function(x)x)
# test_that("modDendLines_WellPanel", {
# expect_identical(class(a),c("shiny.tag.list", "list" ))
# expect_known_hash(a, "26f4ebdf4a")
# })
#
#
# # modDendDotsMod_WellPanel ------------------------------------------------
#
# a <- modDendDotsMod_WellPanel(function(x)x)
# test_that("modDendDotsMod_WellPanel", {
# expect_identical(class(a),c("shiny.tag.list", "list" ))
# expect_known_hash(a, "da265f2a5d")
# })
#
#
# # colorPicker -------------------------------------------------------------
#
#
# a <- colorPicker(function() 1:3,
# function(x)x)
#
# test_that("colorPicker", {
# expect_known_hash(a, "5928c7abe0")
# })
#
#
#
#
#
|