!! Version 2
# Force the test runner to ensure the extension is loaded
!! hooks
inputbox
!! endhooks
!! test
InputBox type=search
!! wikitext
type=search
!! html+tidy
!! end
!! test
InputBox type=create
!! wikitext
type=create
!! html+tidy
!! end
!! test
InputBox type=create with minor
!! wikitext
type=create
minor=1
!! html+tidy
!! end
!! test
InputBox type=create with minor=0
!! wikitext
type=create
minor=0
!! html+tidy
!! end
!! test
InputBox type=create with preloadparams
!! wikitext
type=create
preloadparams[]=param1
preloadparams[]=param2
!! html+tidy
!! end
!! test
InputBox type=create with empty preloadparams
!! wikitext
type=create
preloadparams[]=
preloadparams[]=
!! html+tidy
!! end
!! test
InputBox type=create with editintro
!! wikitext
type=create
editintro=MediaWiki:Test
!! html+tidy
!! end
!! test
InputBox type=create with empty editintro
!! wikitext
type=create
editintro=
!! html+tidy
!! end
!! test
InputBox type=create with summary
!! wikitext
type=create
summary=Summary test
!! html+tidy
!! end
!! test
InputBox type=create with empty summary
!! wikitext
type=create
summary=
!! html+tidy
!! end
!! test
InputBox type=create with nosummary
!! wikitext
type=create
nosummary=true
!! html+tidy
!! end
!! test
InputBox type=create with empty nosummary
!! wikitext
type=create
nosummary=
!! html+tidy
!! end
!! test
InputBox type=create with prefix
!! wikitext
type=create
prefix=Test/
!! html+tidy
!! end
!! test
InputBox type=create with empty prefix
!! wikitext
type=create
prefix=
!! html+tidy
!! end
!! test
InputBox type=create with preload
!! wikitext
type=create
preload=test
!! html+tidy
!! end
!! test
InputBox type=create with empty preload
!! wikitext
type=create
preload=
!! html+tidy
!! end
!! test
InputBox type=comment
!! wikitext
type=comment
!! html+tidy
!! end
!! test
InputBox type=commenttitle
!! wikitext
type=commenttitle
!! html+tidy
!! end
!! test
InputBox type=fulltext
!! wikitext
type=fulltext
!! html+tidy
!! end
!! test
InputBox type=move
!! wikitext
type=move
!! html+tidy
!! end
!! test
InputBox type=search with tour
!! wikitext
type=search
tour=test
!! html+tidy
!! end
!! test
InputBox langconvert
!! options
language=sr variant=sr-el
!! wikitext
type=create
default=-{sr-el: Some latin; sr-ec: Not latin }-
placeholder=-{sr-el: el; sr-ec: ec}-
!! html+tidy
!! end
!! test
InputBox type=search with aria label
!! wikitext
type=search
arialabel=Search this wiki
!! html+tidy
!! end