| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="../../../resources/testharness.js"></script> | 2 <script src="../../resources/testharness.js"></script> |
| 3 <script src="../../../resources/testharnessreport.js"></script> | 3 <script src="../../resources/testharnessreport.js"></script> |
| 4 <script> | 4 <script> |
| 5 | 5 |
| 6 test(function () { | 6 test(function () { |
| 7 var child = document.createElement('p'); | 7 var child = document.createElement('p'); |
| 8 assert_true('replaceWith' in child); | 8 assert_true('replaceWith' in child); |
| 9 var replaceWith = 'mine'; | 9 var replaceWith = 'mine'; |
| 10 var getAttribute = 'mine'; | 10 var getAttribute = 'mine'; |
| 11 with (child) { | 11 with (child) { |
| 12 assert_true(replaceWith === 'mine'); | 12 assert_true(replaceWith === 'mine'); |
| 13 assert_false(getAttribute === 'mine'); | 13 assert_false(getAttribute === 'mine'); |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 assert_equals(parent.firstChild, child); | 133 assert_equals(parent.firstChild, child); |
| 134 }, nodeName + '.replaceWith() with a Document as an argument should throw.')
; | 134 }, nodeName + '.replaceWith() with a Document as an argument should throw.')
; |
| 135 } | 135 } |
| 136 | 136 |
| 137 test_replaceWith('Comment'); | 137 test_replaceWith('Comment'); |
| 138 test_replaceWith('Element'); | 138 test_replaceWith('Element'); |
| 139 test_replaceWith('Text'); | 139 test_replaceWith('Text'); |
| 140 | 140 |
| 141 </script> | 141 </script> |
| 142 </html> | 142 </html> |
| OLD | NEW |