Changeset 4859
- Timestamp:
- 08/29/06 23:32:53 (2 years ago)
- Files:
-
- spinoffs/prototype/test/unit/dom.html (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
spinoffs/prototype/test/unit/dom.html
r4857 r4859 79 79 }}, 80 80 81 testElementUpdateInTable : function() {with(this) {81 testElementUpdateInTableRow: function() {with(this) { 82 82 $('second_row').update('<td id="i_am_a_td">test</td>'); 83 83 assertEqual('test',$('i_am_a_td').innerHTML); … … 85 85 Element.update('second_row','<td id="i_am_a_td">another <span>test</span></td>'); 86 86 assertEqual('another <span>test</span>',$('i_am_a_td').innerHTML.toLowerCase()); 87 87 }}, 88 89 testElementUpdateInTableCell: function() {with(this) { 88 90 Element.update('a_cell','another <span>test</span>'); 89 91 assertEqual('another <span>test</span>',$('a_cell').innerHTML.toLowerCase()); 90 92 }}, 93 94 testElementUpdateInTable: function() {with(this) { 91 95 Element.update('table','<tr><td>boo!</td></tr>'); 92 assert Equal('<tr><td>boo!</td></tr>',$('table').innerHTML.toLowerCase());96 assertMatch(/^<tr>\s*<td>boo!<\/td><\/tr>$/,$('table').innerHTML.toLowerCase()); 93 97 }} 94 98