USING: html.streams html.streams.private accessors io
-io.streams.string io.styles kernel namespaces tools.test
-sbufs sequences inspector colors xml.writer
+io.streams.string io.styles kernel multiline namespaces
+tools.test sbufs sequences inspector colors xml.writer
classes.predicate prettyprint ;
IN: html.streams.tests
[ H{ } [ ] with-nesting nl ] make-html-string
] unit-test
-{ } [ [ { 1 2 3 } describe ] with-html-writer drop ] unit-test
+{ [=[
+array with 3 elements
+<br/>
+<table style="display: inline-table; border-collapse: collapse;">
+ <tr>
+ <td valign="top" style="border: 1px solid #cccccc; padding: 2px; ">
+ <div style="display: inline-block; ">
+ 0
+ </div>
+ </td>
+ <td valign="top" style="border: 1px solid #cccccc; padding: 2px; ">
+ <div style="display: inline-block; ">
+ 1
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" style="border: 1px solid #cccccc; padding: 2px; ">
+ <div style="display: inline-block; ">
+ 1
+ </div>
+ </td>
+ <td valign="top" style="border: 1px solid #cccccc; padding: 2px; ">
+ <div style="display: inline-block; ">
+ 2
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" style="border: 1px solid #cccccc; padding: 2px; ">
+ <div style="display: inline-block; ">
+ 2
+ </div>
+ </td>
+ <td valign="top" style="border: 1px solid #cccccc; padding: 2px; ">
+ <div style="display: inline-block; ">
+ 3
+ </div>
+ </td>
+ </tr>
+</table>
+<br/>]=]
+} [ [ { 1 2 3 } describe ] with-html-writer pprint-xml>string ] unit-test