OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <title>innerHTML getter for pre/textarea/listing with initial LF</title> | 2 <title>innerHTML getter for pre/textarea/listing with initial LF</title> |
3 <script src=../../../../../resources/testharness.js></script> | 3 <script src=../../../../../resources/testharness.js></script> |
4 <script src=../../../../../resources/testharnessreport.js></script> | 4 <script src=../../../../../resources/testharnessreport.js></script> |
5 <div id="outer"> | 5 <div id="outer"> |
6 <div id="inner"> | 6 <div id="inner"> |
7 <pre id="pre1"> | 7 <pre id="pre1"> |
8 x</pre> | 8 x</pre> |
9 <pre id="pre2"> | 9 <pre id="pre2"> |
10 | 10 |
(...skipping 28 matching lines...) Expand all Loading... |
39 ['pre', 'textarea', 'listing'].forEach(function(tag) { | 39 ['pre', 'textarea', 'listing'].forEach(function(tag) { |
40 test(function() { | 40 test(function() { |
41 assert_equals(document.getElementById(tag + '1').innerHTML, expected_1); | 41 assert_equals(document.getElementById(tag + '1').innerHTML, expected_1); |
42 }, tag + '1'); | 42 }, tag + '1'); |
43 | 43 |
44 test(function() { | 44 test(function() { |
45 assert_equals(document.getElementById(tag + '2').innerHTML, expected_2); | 45 assert_equals(document.getElementById(tag + '2').innerHTML, expected_2); |
46 }, tag + '2'); | 46 }, tag + '2'); |
47 }); | 47 }); |
48 </script> | 48 </script> |
OLD | NEW |