Skip to content

Commit

Permalink
Remove markdown test for deprecated behavior. (#6634)
Browse files Browse the repository at this point in the history
Googlers, see b/303850407

## Motivation for features / changes
Update to google-internal package markdown_freewisdom no longer has this
behavior.

## Technical description of changes
Removes test that was testing a behavior that has been removed in the
new version
  • Loading branch information
bileschi authored Oct 12, 2023
1 parent 89a5513 commit 4a5a44d
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions tensorboard/plugin_util_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,13 +206,6 @@ def test_sanitizes_combination_result(self):
expected = "&lt;script&gt;alert('unsafe!')&lt;/script&gt;<p>safe</p>"
self.assertEqual(actual, expected)

def test_sanitization_can_have_collateral_damage(self):
inputs = ['<table title="*chuckles* ', "I'm in danger", '<table>">']
combine = lambda xs: "".join(xs)
actual = plugin_util.markdowns_to_safe_html(inputs, combine)
expected = "<table></table>"
self.assertEqual(actual, expected)


class ContextTest(tb_test.TestCase):
def test_context(self):
Expand Down

0 comments on commit 4a5a44d

Please sign in to comment.