Skip to content

Commit

Permalink
refs #8: Added a test case showing the problem.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Ward committed Jan 15, 2015
1 parent 7a781dd commit 4735e84
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions htmltreediff/tests.py
Expand Up @@ -821,6 +821,49 @@
}),
]
),
(
'TD content change does not show TD removal',
'''
<table>
<tbody>
<tr>
<td>AAA</td>
<td>BBB</td>
</tr>
</tbody>
</table>
''',
collapse('''
<table>
<tbody>
<tr>
<td>ZZZ</td>
<td>BBB</td>
</tr>
</tbody>
</table>
'''),
collapse('''
<table>
<tbody>
<tr>
<td><del>AAA</del><ins>ZZZ</ins></td>
<td>BBB</td>
</tr>
</tbody>
</table>
'''),
[ # TODO This may not be correct

This comment has been minimized.

Copy link
@michaelgzoller

michaelgzoller Jan 19, 2015

Is there a timeline for this TODO? Did you mean to leave this here?

This comment has been minimized.

Copy link
@michaelgzoller

michaelgzoller Jan 19, 2015

Whoops, I'm on an early commit. My bad.

('delete', [0, 0, 0, 0], {
'node_type': Node.TEXT_NODE,
'node_value': u'AAA',
}),
('insert', [0, 0, 0, 0], {
'node_type': Node.TEXT_NODE,
'node_value': u'ZZZ',
}),
],
),
]

# test cases that should not be run in reverse
Expand Down

0 comments on commit 4735e84

Please sign in to comment.