test_that("maximum length password input", {
x <- shiny::passwordInput("input_id", "Some password input")
y <- "
\n \n \n
"
expect_equal(as.character(htmlSetMaxLength(x, 50)), y)
})
test_that("minimum length password input", {
x <- shiny::passwordInput("input_id", "Some password input")
y <- "
\n \n \n
"
expect_equal(as.character(htmlSetMinLength(x, 3)), y)
})
test_that("min/max length password input", {
x <- shiny::passwordInput("input_id", "Some password input")
y <- "
\n \n \n
"
expect_equal(as.character(htmlSetMaxLength(htmlSetMinLength(x, 3), 50)), y)
})
test_that("maximum length text input", {
x <- shiny::textInput("input_id", "Some text input")
y <- "
\n \n \n
"
expect_equal(as.character(htmlSetMaxLength(x, 50)), y)
})
test_that("minimum length text input", {
x <- shiny::textInput("input_id", "Some text input")
y <- "
\n \n \n
"
expect_equal(as.character(htmlSetMinLength(x, 3)), y)
})
test_that("min/max length text input", {
x <- shiny::textInput("input_id", "Some text input")
y <- "
\n \n \n
"
expect_equal(as.character(htmlSetMaxLength(htmlSetMinLength(x, 3), 50)), y)
})
test_that("maximum length textarea input", {
x <- shiny::textAreaInput("input_id", "Some textarea input")
y <- "
\n \n \n
"
expect_equal(as.character(htmlSetMaxLength(x, 500)), y)
})
test_that("minimum length textarea input", {
x <- shiny::textAreaInput("input_id", "Some textarea input")
y <- "
\n \n \n
"
expect_equal(as.character(htmlSetMinLength(x, 50)), y)
})
test_that("min/max length textarea input", {
x <- shiny::textAreaInput("input_id", "Some textarea input")
y <- "