Skip to content

Commit

Permalink
remove wrong tests, srcset is not allowed in video/audio
Browse files Browse the repository at this point in the history
  • Loading branch information
MrTango committed Jun 8, 2022
1 parent fc8cae0 commit 0ffd853
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions plone/outputfilters/tests/test_resolveuid_and_caption.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,16 +453,6 @@ def test_audio_resolveuid(self):
text_out = """<audio src="http://nohost/plone/image.jpg"></audio>"""
self._assertTransformsTo(text_in, text_out)

def test_source_resolveuid(self):
text_in = """<video><source src="resolveuid/%s"/></video>""" % self.UID
text_out = """<video><source src="http://nohost/plone/image.jpg"/></video>"""
self._assertTransformsTo(text_in, text_out)

def test_source_resolveuid_srcset(self):
text_in = """<video><source mimetype="video/mp4" srcset="resolveuid/%s"/></video>""" % self.UID
text_out = """<video><source mimetype="video/mp4" srcset="http://nohost/plone/image.jpg"/></video>"""
self._assertTransformsTo(text_in, text_out)

def test_image_captioning_resolveuid_no_scale_plone_namedfile(self):
self._makeDummyContent()
text_in = """<img class="captioned" src="resolveuid/foo2/@@images/image"/>"""
Expand Down

0 comments on commit 0ffd853

Please sign in to comment.