1 Test for handling of line breaks following the pre element.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 PASS roundTrip('<pre></pre>') is '<pre></pre>'
7 PASS roundTrip('<pre>\n</pre>') is '<pre></pre>'
8 PASS roundTrip('<pre>\n\n</pre>') is '<pre>\n</pre>'
9 PASS roundTrip('<pre>x\n</pre>') is '<pre>x\n</pre>'
10 PASS roundTrip('<pre><\n</pre>') is '<pre><\n</pre>'
11 PASS roundTrip('<pre>=\n</pre>') is '<pre>=\n</pre>'
12 PASS roundTrip('<pre><a></a></pre>') is '<pre><a></a></pre>'
13 PASS roundTrip('<pre><a>\n</a></pre>') is '<pre><a>\n</a></pre>'
14 PASS roundTrip('<pre>\n<a></a></pre>') is '<pre><a></a></pre>'
15 PASS roundTrip('<pre>\n<a>\n</a></pre>') is '<pre><a>\n</a></pre>'
16 PASS roundTrip('<listing></listing>') is '<listing></listing>'
17 PASS roundTrip('<listing>\n</listing>') is '<listing></listing>'
18 PASS roundTrip('<listing>\n\n</listing>') is '<listing>\n</listing>'
19 PASS roundTrip('<listing>x\n</listing>') is '<listing>x\n</listing>'
20 PASS roundTrip('<listing><\n</listing>') is '<listing><\n</listing>'
21 PASS roundTrip('<listing>=\n</listing>') is '<listing>=\n</listing>'
22 PASS roundTrip('<listing><a></a></listing>') is '<listing><a></a></listing>'
23 PASS roundTrip('<listing><a>\n</a></listing>') is '<listing><a>\n</a></listing>'
24 PASS roundTrip('<listing>\n<a></a></listing>') is '<listing><a></a></listing>'
25 PASS roundTrip('<listing>\n<a>\n</a></listing>') is '<listing><a>\n</a></listing>'
26 PASS roundTrip('<div></div>') is '<div></div>'
27 PASS roundTrip('<div>\n</div>') is '<div>\n</div>'
28 PASS roundTrip('<div>\n\n</div>') is '<div>\n\n</div>'
29 PASS roundTrip('<div>x\n</div>') is '<div>x\n</div>'
30 PASS roundTrip('<div><\n</div>') is '<div><\n</div>'
31 PASS roundTrip('<div>=\n</div>') is '<div>=\n</div>'
32 PASS roundTrip('<div><a></a></div>') is '<div><a></a></div>'
33 PASS roundTrip('<div><a>\n</a></div>') is '<div><a>\n</a></div>'
34 PASS roundTrip('<div>\n<a></a></div>') is '<div>\n<a></a></div>'
35 PASS roundTrip('<div>\n<a>\n</a></div>') is '<div>\n<a>\n</a></div>'
36 PASS successfullyParsed is true