OLD | NEW |
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../fast/js/resources/js-test-pre.js"></script> | 4 <script src="../../fast/js/resources/js-test-pre.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <p id="description">This test checks that deletion does not leave unnecessary ne
sted divs.</p> | 7 <p id="description">This test checks that deletion does not leave unnecessary ne
sted divs.</p> |
8 <div id="console"></div> | 8 <div id="console"></div> |
9 <script> | 9 <script> |
10 | 10 |
(...skipping 28 matching lines...) Expand all Loading... |
39 testDelete("div", "<div><div>Hello</div></div>", "<br>"); | 39 testDelete("div", "<div><div>Hello</div></div>", "<br>"); |
40 testDelete("div", "<div><b><div><i>Hello</i></div></b></div>", "<b><br></b>"); | 40 testDelete("div", "<div><b><div><i>Hello</i></div></b></div>", "<b><br></b>"); |
41 testDelete("div", "<div><b><div style=\"border: solid red\"><i>Hello</i></div></
b></div>", "<b><div style=\"border: solid red\"><br></div></b>"); | 41 testDelete("div", "<div><b><div style=\"border: solid red\"><i>Hello</i></div></
b></div>", "<b><div style=\"border: solid red\"><br></div></b>"); |
42 testDelete("div", "<div>Hello</div><div>world</div>", "<br>"); | 42 testDelete("div", "<div>Hello</div><div>world</div>", "<br>"); |
43 testDelete("div", "<div>Hello</div><div>world</div>", "<br>"); | 43 testDelete("div", "<div>Hello</div><div>world</div>", "<br>"); |
44 testDelete("div", "<div><p>Hello</p></div><p>world</p></div>", "<p><br></p>"); | 44 testDelete("div", "<div><p>Hello</p></div><p>world</p></div>", "<p><br></p>"); |
45 | 45 |
46 root.style.display = "none"; | 46 root.style.display = "none"; |
47 | 47 |
48 </script> | 48 </script> |
49 <script src="../../fast/js/resources/js-test-post.js"></script> | |
50 </body> | 49 </body> |
51 </html> | 50 </html> |
OLD | NEW |