!! Version 2
# Force the test runner to ensure the extension is loaded
!! hooks
imagemap
!! endhooks
!! test
imagemap test 1
!! config
wgParserEnableLegacyMediaDOM=false
!! wikitext
!! end !! test imagemap test 1 (legacy) !! config wgParserEnableLegacyMediaDOM=true !! wikitext
!! end !! test imagemap test 2 !! config wgParserEnableLegacyMediaDOM=false !! wikitext
!! end !! test imagemap test 2 (legacy) !! config wgParserEnableLegacyMediaDOM=true !! wikitext
!! end !! test imagemap test 3 !! config wgParserEnableLegacyMediaDOM=false !! wikitext
Error: Must specify an image in the first line.
!! html/parsoidError: imagemap_no_image
!! end !! test Invalid image title !! wikitextError: Must specify an image in the first line.
!! html/parsoidError: imagemap_no_image
!! end !! test Image does not exist !! wikitextError: Image is invalid or non-existent.
!! html/parsoidError: imagemap_invalid_image
!! end !! test Invalid description type !! wikitextError: Invalid desc specification, must be one of: top-right, bottom-right, bottom-left, top-left, none
.
Error: imagemap_invalid_desc
!! end !! test No link title !! wikitextError: No valid link was found at the end of line 3.
!! html/parsoidError: imagemap_no_link
!! end !! test Invalid link title !! wikitextError: Invalid title in link at line 3.
!! html/parsoidError: imagemap_invalid_title
!! end ## FIXME: Note the difference in the link alt !! test Link with wikitext syntax in content !! config wgParserEnableLegacyMediaDOM=false !! wikitext