@@ -41,14 +41,14 @@ test_that("Layout errors", {
4141test_that(" Layout basics" , {
4242 expect_identical(
4343 set_get_layout_new(div(" one" ), h2(" two" )),
44- set_get_layout_old(dash :: htmlDiv(list (
45- dash :: htmlDiv(" one" ), dash :: htmlH2(" two" )
44+ set_get_layout_old(htmlDiv(list (
45+ htmlDiv(" one" ), htmlH2(" two" )
4646 )))
4747 )
4848 expect_identical(set_get_layout_new(" one" , " two" ), set_get_layout_new(list (" one" , " two" )))
4949 expect_identical(
5050 set_get_layout_new(function () div(" one" , " two" )),
51- set_get_layout_old(function () dash :: htmlDiv(list (" one" , " two" )))
51+ set_get_layout_old(function () htmlDiv(list (" one" , " two" )))
5252 )
5353})
5454
@@ -75,15 +75,15 @@ test_that("No need to place everything in containers and lists", {
7575 expect_error(set_get_layout_old(" test" ))
7676 expect_identical(
7777 set_get_layout_new(div(" one" , " two" )),
78- set_get_layout_old(dash :: htmlDiv(list (" one" , " two" )))
78+ set_get_layout_old(htmlDiv(list (" one" , " two" )))
7979 )
80- expect_identical(set_get_layout_new(" test" ), set_get_layout_old(dash :: htmlSpan(" test" )))
80+ expect_identical(set_get_layout_new(" test" ), set_get_layout_old(htmlSpan(" test" )))
8181 expect_identical(
8282 set_get_layout_new(" one" , 5 , TRUE ),
83- set_get_layout_old(dash :: htmlDiv(list (
84- dash :: htmlSpan(" one" ),
85- dash :: htmlSpan(5 ),
86- dash :: htmlSpan(TRUE )
83+ set_get_layout_old(htmlDiv(list (
84+ htmlSpan(" one" ),
85+ htmlSpan(5 ),
86+ htmlSpan(TRUE )
8787 )))
8888 )
8989})
@@ -101,7 +101,7 @@ test_that("Function as layout works", {
101101 app2 <- Dash $ new()
102102 set.seed(1000 )
103103 runif(1 )
104- app2 $ layout(dash :: htmlDiv(runif(1 )))
104+ app2 $ layout(htmlDiv(runif(1 )))
105105 app2_layout <- app2 $ layout_get()
106106 expect_identical(app1_layout1 , app2_layout )
107107
@@ -114,7 +114,7 @@ test_that("Function as layout works", {
114114 expect_false(identical(app1_fx_layout1 , app1_fx_layout2 ))
115115 app2_fx <- Dash $ new()
116116 set.seed(1000 )
117- app2_fx $ layout(function () dash :: htmlDiv(runif(1 )))
117+ app2_fx $ layout(function () htmlDiv(runif(1 )))
118118 app2_fx_layout1 <- app2_fx $ layout_get()
119119 app2_fx_layout2 <- app2_fx $ layout_get()
120120 expect_identical(app1_fx_layout1 , app2_fx_layout1 )
@@ -124,19 +124,19 @@ test_that("Function as layout works", {
124124test_that(" Sample apps layout are identical with the compact syntax" , {
125125 expect_identical(
126126 set_get_layout_old(
127- dash :: htmlDiv(list (
128- dash :: htmlDiv(' Dash To-Do List' ),
129- dash :: dccInput(id = ' new-item' ),
130- dash :: htmlButton(" Add" , id = " add" ),
131- dash :: htmlButton(" Clear Done" , id = " clear-done" ),
132- dash :: htmlDiv(id = " list-container" ),
133- dash :: htmlDiv(id = " totals" )
127+ htmlDiv(list (
128+ htmlDiv(' Dash To-Do List' ),
129+ dccInput(id = ' new-item' ),
130+ htmlButton(" Add" , id = " add" ),
131+ htmlButton(" Clear Done" , id = " clear-done" ),
132+ htmlDiv(id = " list-container" ),
133+ htmlDiv(id = " totals" )
134134 ))
135135 ),
136136
137137 set_get_layout_new(
138138 div(' Dash To-Do List' ),
139- dash :: dccInput(id = ' new-item' ),
139+ dccInput(id = ' new-item' ),
140140 button(" Add" , id = " add" ),
141141 button(" Clear Done" , id = " clear-done" ),
142142 div(id = " list-container" ),
@@ -146,11 +146,11 @@ test_that("Sample apps layout are identical with the compact syntax", {
146146
147147 expect_identical(
148148 set_get_layout_old(
149- dash :: htmlDiv(
149+ htmlDiv(
150150 list (
151- dash :: htmlH1(' Hello Dash' ),
152- dash :: htmlDiv(children = " Dash: A web application framework for R." ),
153- dash :: dccGraph(
151+ htmlH1(' Hello Dash' ),
152+ htmlDiv(children = " Dash: A web application framework for R." ),
153+ dccGraph(
154154 figure = list (
155155 data = list (
156156 list (
@@ -176,7 +176,7 @@ test_that("Sample apps layout are identical with the compact syntax", {
176176 set_get_layout_new(
177177 h1(' Hello Dash' ),
178178 div(" Dash: A web application framework for R." ),
179- dash :: dccGraph(
179+ dccGraph(
180180 figure = list (
181181 data = list (
182182 list (
0 commit comments