@@ -31,23 +31,24 @@ object PrefixedVdomTest extends TestSuite {
3131 def reactNode : ReactNode = H1 (" cool" )
3232 def checkbox (check : Boolean ) = < .input(^ .`type` := " checkbox" , ^ .checked := check)
3333
34- ' short - test(< .div(45 : Short ), " <div>45</div>" )
35- ' byte - test(< .div(50 : Byte ), " <div>50</div>" )
36- ' int - test(< .div(666 ), " <div>666</div>" )
37- ' long - test(< .div(123L ), " <div>123</div>" )
38- ' double - test(< .div(12.3 ), " <div>12.3</div>" )
39- ' string - test(< .div(" yo" ), " <div>yo</div>" )
40- ' reactNode - test(< .div(reactNode), " <div><h1>cool</h1></div>" )
41- ' comp - test(< .div(H1 (" a" )), " <div><h1>a</h1></div>" )
42- ' seqTag - test(< .div(Seq (< .span(1 ), < .span(2 ))), " <div><span>1</span><span>2</span></div>" )
43- ' listTag - test(< .div(List (< .span(1 ), < .span(2 ))), " <div><span>1</span><span>2</span></div>" )
44- ' listComp - test(< .div(List (H1 (" a" ), H1 (" b" ))), " <div><h1>a</h1><h1>b</h1></div>" )
45- ' list2jAry - test(< .div(List (H1 (" a" ), H1 (" b" )).toJsArray), " <div><h1>a</h1><h1>b</h1></div>" )
46- ' jAryTag - test(< .div(JArray (< .span(1 ), < .span(2 ))), " <div><span>1</span><span>2</span></div>" )
47- ' jAryComp - test(< .div(JArray (H1 (" a" ), H1 (" b" ))), " <div><h1>a</h1><h1>b</h1></div>" )
48- ' checkboxT - test(checkbox(true ), """ <input type="checkbox" checked=""/>""" ) // checked="" is new as of React 0.14 but it works
49- ' checkboxF - test(checkbox(false ), """ <input type="checkbox"/>""" )
50- ' aria - test(< .div(^ .aria.label := " ow" , " a" ), """ <div aria-label="ow">a</div>""" )
34+ ' short - test(< .div(45 : Short ), " <div>45</div>" )
35+ ' byte - test(< .div(50 : Byte ), " <div>50</div>" )
36+ ' int - test(< .div(666 ), " <div>666</div>" )
37+ ' long - test(< .div(123L ), " <div>123</div>" )
38+ ' double - test(< .div(12.3 ), " <div>12.3</div>" )
39+ ' string - test(< .div(" yo" ), " <div>yo</div>" )
40+ ' reactNode - test(< .div(reactNode), " <div><h1>cool</h1></div>" )
41+ ' comp - test(< .div(H1 (" a" )), " <div><h1>a</h1></div>" )
42+ ' seqTag - test(< .div(Seq (< .span(1 ), < .span(2 ))), " <div><span>1</span><span>2</span></div>" )
43+ ' listTag - test(< .div(List (< .span(1 ), < .span(2 ))), " <div><span>1</span><span>2</span></div>" )
44+ ' listComp - test(< .div(List (H1 (" a" ), H1 (" b" ))), " <div><h1>a</h1><h1>b</h1></div>" )
45+ ' list2jAry - test(< .div(List (H1 (" a" ), H1 (" b" )).toJsArray), " <div><h1>a</h1><h1>b</h1></div>" )
46+ ' jAryTag - test(< .div(JArray (< .span(1 ), < .span(2 ))), " <div><span>1</span><span>2</span></div>" )
47+ ' jAryComp - test(< .div(JArray (H1 (" a" ), H1 (" b" ))), " <div><h1>a</h1><h1>b</h1></div>" )
48+ ' checkboxT - test(checkbox(true ), """ <input type="checkbox" checked=""/>""" ) // checked="" is new as of React 0.14 but it works
49+ ' checkboxF - test(checkbox(false ), """ <input type="checkbox"/>""" )
50+ ' aria - test(< .div(^ .aria.label := " ow" , " a" ), """ <div aria-label="ow">a</div>""" )
51+ ' jsDict - test(< .div(^ .style := js.Dictionary (" a" -> " b" )), """ <div style="a:b;"></div>""" )
5152
5253 ' dangerouslySetInnerHtml - test(< .div(^ .dangerouslySetInnerHtml(" <span>" )), " <div><span></div>" )
5354
0 commit comments