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="../../resources/js-test.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <script> | 7 <script> |
8 description('Various tests for the main element.'); | 8 description('Various tests for the main element.'); |
9 | 9 |
10 var testParent = document.createElement('div'); | 10 var testParent = document.createElement('div'); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 var selection = window.getSelection(); | 42 var selection = window.getSelection(); |
43 selection.selectAllChildren(editable); | 43 selection.selectAllChildren(editable); |
44 document.execCommand('FormatBlock', false, 'main'); | 44 document.execCommand('FormatBlock', false, 'main'); |
45 selection.removeAllRanges(); | 45 selection.removeAllRanges(); |
46 shouldBe('document.getElementById("span2").parentNode.nodeName', '"MAIN"'); | 46 shouldBe('document.getElementById("span2").parentNode.nodeName', '"MAIN"'); |
47 document.body.removeChild(editable); | 47 document.body.removeChild(editable); |
48 | 48 |
49 </script> | 49 </script> |
50 </body> | 50 </body> |
51 </html> | 51 </html> |
OLD | NEW |