OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../fast/js/resources/js-test-pre.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <p id="description"></p> | 7 <p id="description"></p> |
8 <div id="console"></div> | 8 <div id="console"></div> |
9 <script> | 9 <script> |
10 | 10 |
11 description("Tests justifying paragraphs to left, right, and center.") | 11 description("Tests justifying paragraphs to left, right, and center.") |
12 | 12 |
13 var testContainer = document.createElement("div"); | 13 var testContainer = document.createElement("div"); |
14 testContainer.contentEditable = true; | 14 testContainer.contentEditable = true; |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 testJustifying(selectFirstPosition, 'JustifyRight', '<p>hello</p>world', '<p sty
le="text-align: right;">hello</p>world'); | 97 testJustifying(selectFirstPosition, 'JustifyRight', '<p>hello</p>world', '<p sty
le="text-align: right;">hello</p>world'); |
98 testJustifying(selectAll, 'JustifyRight', 'hello<blockquote>world</blockquote>',
'<div style="text-align: right;">hello</div><blockquote style="text-align: righ
t;">world</blockquote>'); | 98 testJustifying(selectAll, 'JustifyRight', 'hello<blockquote>world</blockquote>',
'<div style="text-align: right;">hello</div><blockquote style="text-align: righ
t;">world</blockquote>'); |
99 testJustifying(selectAll, 'JustifyRight', '<h3>hello</h3>world', '<h3 style="tex
t-align: right;">hello</h3><div style="text-align: right;">world</div>'); | 99 testJustifying(selectAll, 'JustifyRight', '<h3>hello</h3>world', '<h3 style="tex
t-align: right;">hello</h3><div style="text-align: right;">world</div>'); |
100 testJustifying(selectFirstPosition, 'JustifyRight', '<div style="text-align: rig
ht;">hello<br>world</div>'); | 100 testJustifying(selectFirstPosition, 'JustifyRight', '<div style="text-align: rig
ht;">hello<br>world</div>'); |
101 | 101 |
102 document.body.removeChild(testContainer); | 102 document.body.removeChild(testContainer); |
103 | 103 |
104 </script> | 104 </script> |
105 </body> | 105 </body> |
106 </html> | 106 </html> |
OLD | NEW |