!! version 2 # Only run these tests if the TimedMediaHandler is loaded. !! hooks extension:TimedMediaHandler !! endhooks !! test Simple video element !! config wgParserEnableLegacyMediaDOM=false !! wikitext [[File:Video.ogv]] !! html/php

!! html/parsoid

!! end !! test Simple video element (legacy) !! config wgParserEnableLegacyMediaDOM=true !! wikitext [[File:Video.ogv]] !! html/php

!! html/parsoid

!! end !! test Simple thumbed video !! config wgParserEnableLegacyMediaDOM=false !! wikitext [[File:Video.ogv|thumb]] !! html/php
!! html/parsoid
!! end !! test Simple thumbed video (legacy) !! config wgParserEnableLegacyMediaDOM=true !! wikitext [[File:Video.ogv|thumb]] !! html/php
!! html/parsoid
!! end !! test Simple video with border !! config wgParserEnableLegacyMediaDOM=false !! wikitext [[File:Video.ogv|border]] !! html/php

!! html/parsoid

!! end !! test Video in a !! config wgParserEnableLegacyMediaDOM=false !! wikitext File:Video.ogv !! html/php !! html/parsoid !! end !! test Video with thumbtime=1:25 !! config wgParserEnableLegacyMediaDOM=false !! wikitext [[File:Video.ogv|thumbtime=1:25]] !! html/php

!! html/parsoid

!! end !! test Video with starttime offset !! config wgParserEnableLegacyMediaDOM=false !! wikitext [[File:Video.ogv|start=1:25]] !! html/php

!! html/parsoid

!! end !! test Video with starttime and endtime offsets !! config wgParserEnableLegacyMediaDOM=false !! wikitext [[File:Video.ogv|start=0:1.2|end=00:00:2.3]] !! html/php

!! html/parsoid

!! end !! test Video with unsupported alt !! config wgParserEnableLegacyMediaDOM=false !! wikitext [[File:Video.ogv|alt=Test]] !! html/php

!! html/parsoid

!! end !! test Video with unsupported link !! config wgParserEnableLegacyMediaDOM=false !! wikitext [[File:Video.ogv|link=Example]] !! html/php

!! html/parsoid

!! end !! test Video with different thumb image !! config wgParserEnableLegacyMediaDOM=false !! wikitext [[File:Video.ogv|thumbnail=Foobar.jpg]] !! html/php
!! html/parsoid
!! end !! test Video with different thumb image (legacy) !! config wgParserEnableLegacyMediaDOM=true !! wikitext [[File:Video.ogv|thumbnail=Foobar.jpg]] !! html/php
Video.ogv
!! html/parsoid
!! end !! test Image with video thumb !! config wgParserEnableLegacyMediaDOM=false !! wikitext [[File:Foobar.jpg|thumbnail=Video.ogv]] !! html/php
!! html/parsoid
!! end !! test Simple audio element !! config wgParserEnableLegacyMediaDOM=false !! wikitext [[File:Audio.oga]] !! html/php

!! html/parsoid

!! end ## For backwards compatibility with Parsoid content versions up to 1.7.0 !! test Simple audio element, rendered as a video tag !! options parsoid=html2wt !! html/parsoid

!! wikitext [[File:Audio.oga]] !! end !! test Flag disablecontrols as bogus options in Parsoid !! config wgParserEnableLegacyMediaDOM=false !! wikitext [[File:Video.ogv|disablecontrols=ok|These are bogus.]] !! html/php

!! html/parsoid

!! end !! test Video with flag muted and loop !! config wgParserEnableLegacyMediaDOM=false !! wikitext [[File:Video.ogv|muted|loop|These are bogus.]] !! html/php

!! html/parsoid

!! end