2020-04-01 19:44:44 +00:00
|
|
|
!! Version 2
|
|
|
|
# Force the test runner to ensure the extension is loaded
|
|
|
|
!! hooks
|
|
|
|
inputbox
|
|
|
|
!! endhooks
|
|
|
|
|
2016-07-08 06:18:43 +00:00
|
|
|
!! test
|
|
|
|
InputBox type=search
|
|
|
|
!! wikitext
|
|
|
|
<inputbox>
|
|
|
|
type=search
|
|
|
|
</inputbox>
|
2021-09-30 18:46:38 +00:00
|
|
|
!! html
|
2024-03-09 18:43:32 +00:00
|
|
|
<div class="mw-inputbox-centered" style=""><form name="searchbox" class="searchbox mw-inputbox-form" action="/wiki/Special:Search"><div class="cdx-text-input"><input class="mw-inputbox-input mw-searchInput searchboxInput cdx-text-input__input" name="search" placeholder="" size="50" dir="ltr" /></div><br /><input type="submit" name="go" value="Try exact match" class="cdx-button" /> <input type="submit" name="fulltext" value="Search full text" class="cdx-button" /></form></div>
|
2016-07-08 06:18:43 +00:00
|
|
|
!! end
|
|
|
|
|
|
|
|
!! test
|
|
|
|
InputBox type=create
|
|
|
|
!! wikitext
|
|
|
|
<inputbox>
|
|
|
|
type=create
|
|
|
|
</inputbox>
|
2021-09-30 18:46:38 +00:00
|
|
|
!! html
|
2024-03-09 18:43:32 +00:00
|
|
|
<div class="mw-inputbox-centered" style=""><form name="createbox" class="createbox mw-inputbox-form" action="/index.php" method="get"><input type="hidden" value="edit" name="action" /><div class="cdx-text-input"><input name="title" class="mw-inputbox-input mw-inputbox-createbox cdx-text-input__input" placeholder="" required="" size="50" dir="ltr" /></div><br /><input type="submit" name="create" value="Create page" class="cdx-button cdx-button--action-progressive cdx-button--weight-primary" /></form></div>
|
2016-10-04 20:24:54 +00:00
|
|
|
!! end
|
|
|
|
|
|
|
|
!! test
|
|
|
|
InputBox type=create with minor
|
|
|
|
!! wikitext
|
|
|
|
<inputbox>
|
|
|
|
type=create
|
|
|
|
minor=1
|
|
|
|
</inputbox>
|
2021-09-30 18:46:38 +00:00
|
|
|
!! html
|
2024-03-09 18:43:32 +00:00
|
|
|
<div class="mw-inputbox-centered" style=""><form name="createbox" class="createbox mw-inputbox-form" action="/index.php" method="get"><input type="hidden" value="edit" name="action" /><input type="hidden" value="1" name="minor" /><div class="cdx-text-input"><input name="title" class="mw-inputbox-input mw-inputbox-createbox cdx-text-input__input" placeholder="" required="" size="50" dir="ltr" /></div><br /><input type="submit" name="create" value="Create page" class="cdx-button cdx-button--action-progressive cdx-button--weight-primary" /></form></div>
|
2016-10-04 20:24:54 +00:00
|
|
|
!! end
|
|
|
|
|
|
|
|
!! test
|
|
|
|
InputBox type=create with minor=0
|
|
|
|
!! wikitext
|
|
|
|
<inputbox>
|
|
|
|
type=create
|
|
|
|
minor=0
|
|
|
|
</inputbox>
|
2021-09-30 18:46:38 +00:00
|
|
|
!! html
|
2024-03-09 18:43:32 +00:00
|
|
|
<div class="mw-inputbox-centered" style=""><form name="createbox" class="createbox mw-inputbox-form" action="/index.php" method="get"><input type="hidden" value="edit" name="action" /><input type="hidden" value="0" name="minor" /><div class="cdx-text-input"><input name="title" class="mw-inputbox-input mw-inputbox-createbox cdx-text-input__input" placeholder="" required="" size="50" dir="ltr" /></div><br /><input type="submit" name="create" value="Create page" class="cdx-button cdx-button--action-progressive cdx-button--weight-primary" /></form></div>
|
2016-10-04 20:24:54 +00:00
|
|
|
!! end
|
|
|
|
|
|
|
|
!! test
|
|
|
|
InputBox type=create with preloadparams
|
|
|
|
!! wikitext
|
|
|
|
<inputbox>
|
|
|
|
type=create
|
|
|
|
preloadparams[]=param1
|
|
|
|
preloadparams[]=param2
|
|
|
|
</inputbox>
|
2021-09-30 18:46:38 +00:00
|
|
|
!! html
|
2024-03-09 18:43:32 +00:00
|
|
|
<div class="mw-inputbox-centered" style=""><form name="createbox" class="createbox mw-inputbox-form" action="/index.php" method="get"><input type="hidden" value="edit" name="action" /><input type="hidden" value="param1" name="preloadparams[]" /><input type="hidden" value="param2" name="preloadparams[]" /><div class="cdx-text-input"><input name="title" class="mw-inputbox-input mw-inputbox-createbox cdx-text-input__input" placeholder="" required="" size="50" dir="ltr" /></div><br /><input type="submit" name="create" value="Create page" class="cdx-button cdx-button--action-progressive cdx-button--weight-primary" /></form></div>
|
2016-10-04 20:24:54 +00:00
|
|
|
!! end
|
|
|
|
|
|
|
|
!! test
|
|
|
|
InputBox type=create with empty preloadparams
|
|
|
|
!! wikitext
|
|
|
|
<inputbox>
|
|
|
|
type=create
|
|
|
|
preloadparams[]=
|
|
|
|
preloadparams[]=
|
|
|
|
</inputbox>
|
2021-09-30 18:46:38 +00:00
|
|
|
!! html
|
2024-03-09 18:43:32 +00:00
|
|
|
<div class="mw-inputbox-centered" style=""><form name="createbox" class="createbox mw-inputbox-form" action="/index.php" method="get"><input type="hidden" value="edit" name="action" /><input type="hidden" name="preloadparams[]" /><input type="hidden" name="preloadparams[]" /><div class="cdx-text-input"><input name="title" class="mw-inputbox-input mw-inputbox-createbox cdx-text-input__input" placeholder="" required="" size="50" dir="ltr" /></div><br /><input type="submit" name="create" value="Create page" class="cdx-button cdx-button--action-progressive cdx-button--weight-primary" /></form></div>
|
2016-10-04 20:24:54 +00:00
|
|
|
!! end
|
|
|
|
|
|
|
|
!! test
|
|
|
|
InputBox type=create with editintro
|
|
|
|
!! wikitext
|
|
|
|
<inputbox>
|
|
|
|
type=create
|
|
|
|
editintro=MediaWiki:Test
|
|
|
|
</inputbox>
|
2021-09-30 18:46:38 +00:00
|
|
|
!! html
|
2024-03-09 18:43:32 +00:00
|
|
|
<div class="mw-inputbox-centered" style=""><form name="createbox" class="createbox mw-inputbox-form" action="/index.php" method="get"><input type="hidden" value="edit" name="action" /><input type="hidden" value="MediaWiki:Test" name="editintro" /><div class="cdx-text-input"><input name="title" class="mw-inputbox-input mw-inputbox-createbox cdx-text-input__input" placeholder="" required="" size="50" dir="ltr" /></div><br /><input type="submit" name="create" value="Create page" class="cdx-button cdx-button--action-progressive cdx-button--weight-primary" /></form></div>
|
2016-10-04 20:24:54 +00:00
|
|
|
!! end
|
|
|
|
|
|
|
|
!! test
|
|
|
|
InputBox type=create with empty editintro
|
|
|
|
!! wikitext
|
|
|
|
<inputbox>
|
|
|
|
type=create
|
|
|
|
editintro=
|
|
|
|
</inputbox>
|
2021-09-30 18:46:38 +00:00
|
|
|
!! html
|
2024-03-09 18:43:32 +00:00
|
|
|
<div class="mw-inputbox-centered" style=""><form name="createbox" class="createbox mw-inputbox-form" action="/index.php" method="get"><input type="hidden" value="edit" name="action" /><input type="hidden" name="editintro" /><div class="cdx-text-input"><input name="title" class="mw-inputbox-input mw-inputbox-createbox cdx-text-input__input" placeholder="" required="" size="50" dir="ltr" /></div><br /><input type="submit" name="create" value="Create page" class="cdx-button cdx-button--action-progressive cdx-button--weight-primary" /></form></div>
|
2016-10-04 20:24:54 +00:00
|
|
|
!! end
|
|
|
|
|
|
|
|
!! test
|
|
|
|
InputBox type=create with summary
|
|
|
|
!! wikitext
|
|
|
|
<inputbox>
|
|
|
|
type=create
|
|
|
|
summary=Summary test
|
|
|
|
</inputbox>
|
2021-09-30 18:46:38 +00:00
|
|
|
!! html
|
2024-03-09 18:43:32 +00:00
|
|
|
<div class="mw-inputbox-centered" style=""><form name="createbox" class="createbox mw-inputbox-form" action="/index.php" method="get"><input type="hidden" value="edit" name="action" /><input type="hidden" value="Summary test" name="summary" /><div class="cdx-text-input"><input name="title" class="mw-inputbox-input mw-inputbox-createbox cdx-text-input__input" placeholder="" required="" size="50" dir="ltr" /></div><br /><input type="submit" name="create" value="Create page" class="cdx-button cdx-button--action-progressive cdx-button--weight-primary" /></form></div>
|
2016-10-04 20:24:54 +00:00
|
|
|
!! end
|
|
|
|
|
|
|
|
!! test
|
|
|
|
InputBox type=create with empty summary
|
|
|
|
!! wikitext
|
|
|
|
<inputbox>
|
|
|
|
type=create
|
|
|
|
summary=
|
|
|
|
</inputbox>
|
2021-09-30 18:46:38 +00:00
|
|
|
!! html
|
2024-03-09 18:43:32 +00:00
|
|
|
<div class="mw-inputbox-centered" style=""><form name="createbox" class="createbox mw-inputbox-form" action="/index.php" method="get"><input type="hidden" value="edit" name="action" /><input type="hidden" name="summary" /><div class="cdx-text-input"><input name="title" class="mw-inputbox-input mw-inputbox-createbox cdx-text-input__input" placeholder="" required="" size="50" dir="ltr" /></div><br /><input type="submit" name="create" value="Create page" class="cdx-button cdx-button--action-progressive cdx-button--weight-primary" /></form></div>
|
2016-10-04 20:24:54 +00:00
|
|
|
!! end
|
|
|
|
|
|
|
|
!! test
|
|
|
|
InputBox type=create with nosummary
|
|
|
|
!! wikitext
|
|
|
|
<inputbox>
|
|
|
|
type=create
|
|
|
|
nosummary=true
|
|
|
|
</inputbox>
|
2021-09-30 18:46:38 +00:00
|
|
|
!! html
|
2024-03-09 18:43:32 +00:00
|
|
|
<div class="mw-inputbox-centered" style=""><form name="createbox" class="createbox mw-inputbox-form" action="/index.php" method="get"><input type="hidden" value="edit" name="action" /><input type="hidden" value="true" name="nosummary" /><div class="cdx-text-input"><input name="title" class="mw-inputbox-input mw-inputbox-createbox cdx-text-input__input" placeholder="" required="" size="50" dir="ltr" /></div><br /><input type="submit" name="create" value="Create page" class="cdx-button cdx-button--action-progressive cdx-button--weight-primary" /></form></div>
|
2016-10-04 20:24:54 +00:00
|
|
|
!! end
|
|
|
|
|
|
|
|
!! test
|
|
|
|
InputBox type=create with empty nosummary
|
|
|
|
!! wikitext
|
|
|
|
<inputbox>
|
|
|
|
type=create
|
|
|
|
nosummary=
|
|
|
|
</inputbox>
|
2021-09-30 18:46:38 +00:00
|
|
|
!! html
|
2024-03-09 18:43:32 +00:00
|
|
|
<div class="mw-inputbox-centered" style=""><form name="createbox" class="createbox mw-inputbox-form" action="/index.php" method="get"><input type="hidden" value="edit" name="action" /><input type="hidden" name="nosummary" /><div class="cdx-text-input"><input name="title" class="mw-inputbox-input mw-inputbox-createbox cdx-text-input__input" placeholder="" required="" size="50" dir="ltr" /></div><br /><input type="submit" name="create" value="Create page" class="cdx-button cdx-button--action-progressive cdx-button--weight-primary" /></form></div>
|
2016-10-04 20:24:54 +00:00
|
|
|
!! end
|
|
|
|
|
|
|
|
!! test
|
|
|
|
InputBox type=create with prefix
|
|
|
|
!! wikitext
|
|
|
|
<inputbox>
|
|
|
|
type=create
|
|
|
|
prefix=Test/
|
|
|
|
</inputbox>
|
2021-09-30 18:46:38 +00:00
|
|
|
!! html
|
2024-03-09 18:43:32 +00:00
|
|
|
<div class="mw-inputbox-centered" style=""><form name="createbox" class="createbox mw-inputbox-form" action="/index.php" method="get"><input type="hidden" value="edit" name="action" /><input type="hidden" value="Test/" name="prefix" /><div class="cdx-text-input"><input name="title" class="mw-inputbox-input mw-inputbox-createbox cdx-text-input__input" placeholder="" required="" size="50" dir="ltr" /></div><br /><input type="submit" name="create" value="Create page" class="cdx-button cdx-button--action-progressive cdx-button--weight-primary" /></form></div>
|
2016-10-04 20:24:54 +00:00
|
|
|
!! end
|
|
|
|
|
|
|
|
!! test
|
|
|
|
InputBox type=create with empty prefix
|
|
|
|
!! wikitext
|
|
|
|
<inputbox>
|
|
|
|
type=create
|
|
|
|
prefix=
|
|
|
|
</inputbox>
|
2021-09-30 18:46:38 +00:00
|
|
|
!! html
|
2024-03-09 18:43:32 +00:00
|
|
|
<div class="mw-inputbox-centered" style=""><form name="createbox" class="createbox mw-inputbox-form" action="/index.php" method="get"><input type="hidden" value="edit" name="action" /><div class="cdx-text-input"><input name="title" class="mw-inputbox-input mw-inputbox-createbox cdx-text-input__input" placeholder="" required="" size="50" dir="ltr" /></div><br /><input type="submit" name="create" value="Create page" class="cdx-button cdx-button--action-progressive cdx-button--weight-primary" /></form></div>
|
2016-10-04 20:24:54 +00:00
|
|
|
!! end
|
|
|
|
|
|
|
|
!! test
|
|
|
|
InputBox type=create with preload
|
|
|
|
!! wikitext
|
|
|
|
<inputbox>
|
|
|
|
type=create
|
|
|
|
preload=test
|
|
|
|
</inputbox>
|
2021-09-30 18:46:38 +00:00
|
|
|
!! html
|
2024-03-09 18:43:32 +00:00
|
|
|
<div class="mw-inputbox-centered" style=""><form name="createbox" class="createbox mw-inputbox-form" action="/index.php" method="get"><input type="hidden" value="edit" name="action" /><input type="hidden" value="test" name="preload" /><div class="cdx-text-input"><input name="title" class="mw-inputbox-input mw-inputbox-createbox cdx-text-input__input" placeholder="" required="" size="50" dir="ltr" /></div><br /><input type="submit" name="create" value="Create page" class="cdx-button cdx-button--action-progressive cdx-button--weight-primary" /></form></div>
|
2016-10-04 20:24:54 +00:00
|
|
|
!! end
|
|
|
|
|
|
|
|
!! test
|
|
|
|
InputBox type=create with empty preload
|
|
|
|
!! wikitext
|
|
|
|
<inputbox>
|
|
|
|
type=create
|
|
|
|
preload=
|
|
|
|
</inputbox>
|
2021-09-30 18:46:38 +00:00
|
|
|
!! html
|
2024-03-09 18:43:32 +00:00
|
|
|
<div class="mw-inputbox-centered" style=""><form name="createbox" class="createbox mw-inputbox-form" action="/index.php" method="get"><input type="hidden" value="edit" name="action" /><input type="hidden" name="preload" /><div class="cdx-text-input"><input name="title" class="mw-inputbox-input mw-inputbox-createbox cdx-text-input__input" placeholder="" required="" size="50" dir="ltr" /></div><br /><input type="submit" name="create" value="Create page" class="cdx-button cdx-button--action-progressive cdx-button--weight-primary" /></form></div>
|
2016-07-08 06:18:43 +00:00
|
|
|
!! end
|
|
|
|
|
|
|
|
!! test
|
|
|
|
InputBox type=comment
|
|
|
|
!! wikitext
|
|
|
|
<inputbox>
|
|
|
|
type=comment
|
|
|
|
</inputbox>
|
2021-09-30 18:46:38 +00:00
|
|
|
!! html
|
2024-03-09 18:43:32 +00:00
|
|
|
<div class="mw-inputbox-centered" style=""><form name="createbox" class="createbox mw-inputbox-form" action="/index.php" method="get"><input type="hidden" value="edit" name="action" /><input type="hidden" value="new" name="section" /><div class="cdx-text-input"><input name="title" class="mw-inputbox-input mw-inputbox-createbox cdx-text-input__input" placeholder="" required="" size="50" dir="ltr" /></div><br /><input type="submit" name="create" value="New section" class="cdx-button cdx-button--action-progressive cdx-button--weight-primary" /></form></div>
|
2016-07-08 06:18:43 +00:00
|
|
|
!! end
|
|
|
|
|
|
|
|
!! test
|
|
|
|
InputBox type=commenttitle
|
|
|
|
!! wikitext
|
|
|
|
<inputbox>
|
|
|
|
type=commenttitle
|
|
|
|
</inputbox>
|
2021-09-30 18:46:38 +00:00
|
|
|
!! html
|
2024-03-09 18:43:32 +00:00
|
|
|
<div class="mw-inputbox-centered" style=""><form name="commentbox" class="commentbox mw-inputbox-form" action="/index.php" method="get"><input type="hidden" value="edit" name="action" /><div class="cdx-text-input"><input name="preloadtitle" class="mw-inputbox-input commentboxInput cdx-text-input__input" placeholder="" size="50" dir="ltr" /></div><input type="hidden" value="new" name="section" /><input type="hidden" name="title" /><br /><input type="submit" name="create" value="New section" class="cdx-button cdx-button--action-progressive cdx-button--weight-primary" /></form></div>
|
2016-07-08 06:18:43 +00:00
|
|
|
!! end
|
|
|
|
|
|
|
|
!! test
|
|
|
|
InputBox type=fulltext
|
|
|
|
!! wikitext
|
|
|
|
<inputbox>
|
|
|
|
type=fulltext
|
|
|
|
</inputbox>
|
2021-09-30 18:46:38 +00:00
|
|
|
!! html
|
2024-03-09 18:43:32 +00:00
|
|
|
<div class="mw-inputbox-centered" style=""><form name="searchbox" class="searchbox mw-inputbox-form" action="/wiki/Special:Search"><div class="cdx-text-input"><input class="mw-inputbox-input mw-searchInput searchboxInput cdx-text-input__input" name="search" placeholder="" size="50" dir="ltr" /></div><br /><input type="submit" name="fulltext" value="Search full text" class="cdx-button" /><input type="hidden" value="Search" name="fulltext" /></form></div>
|
2016-07-08 06:18:43 +00:00
|
|
|
!! end
|
|
|
|
|
|
|
|
!! test
|
|
|
|
InputBox type=move
|
|
|
|
!! wikitext
|
|
|
|
<inputbox>
|
|
|
|
type=move
|
|
|
|
</inputbox>
|
2021-09-30 18:46:38 +00:00
|
|
|
!! html
|
2024-03-09 18:43:32 +00:00
|
|
|
<div class="mw-inputbox-centered" style=""><form name="movebox" class="mw-movebox mw-inputbox-form" action="/index.php" method="get"><input type="hidden" value="Special:MovePage/" name="title" /><input type="hidden" name="wpReason" /><input type="hidden" name="prefix" /><div class="cdx-text-input"><input name="wpNewTitle" class="mw-inputbox-input mw-moveboxInput cdx-text-input__input" placeholder="" size="50" dir="ltr" /></div><br /><input type="submit" value="Move page" class="cdx-button cdx-button--action-progressive cdx-button--weight-primary" /></form></div>
|
2016-07-08 06:18:43 +00:00
|
|
|
!! end
|
2017-08-24 19:45:31 +00:00
|
|
|
|
|
|
|
!! test
|
|
|
|
InputBox type=search with tour
|
|
|
|
!! wikitext
|
|
|
|
<inputbox>
|
|
|
|
type=search
|
|
|
|
tour=test
|
|
|
|
</inputbox>
|
2021-09-30 18:46:38 +00:00
|
|
|
!! html
|
2024-03-09 18:43:32 +00:00
|
|
|
<div class="mw-inputbox-centered" style=""><form name="searchbox" class="searchbox mw-inputbox-form" action="/wiki/Special:Search"><div class="cdx-text-input"><input class="mw-inputbox-input mw-searchInput searchboxInput cdx-text-input__input" name="search" placeholder="" size="50" dir="ltr" /></div><input type="hidden" value="test" name="tour" /><br /><input type="submit" name="go" value="Try exact match" class="cdx-button" /> <input type="submit" name="fulltext" value="Search full text" class="cdx-button" /></form></div>
|
2017-11-21 04:01:57 +00:00
|
|
|
!! end
|
|
|
|
|
|
|
|
!! test
|
|
|
|
InputBox langconvert
|
|
|
|
!! options
|
2019-07-06 19:29:07 +00:00
|
|
|
language=sr variant=sr-Latn
|
2017-11-21 04:01:57 +00:00
|
|
|
!! wikitext
|
|
|
|
<inputbox>
|
|
|
|
type=create
|
2019-07-06 19:29:07 +00:00
|
|
|
default=-{sr-Latn: Some latin; sr-Cyrl: Not latin }-
|
|
|
|
placeholder=-{sr-Latn: Latn; sr-Cyrl: Cyrl}-
|
2017-11-21 04:01:57 +00:00
|
|
|
</inputbox>
|
2021-09-30 18:46:38 +00:00
|
|
|
!! html
|
2024-03-09 18:43:32 +00:00
|
|
|
<div class="mw-inputbox-centered" style=""><form name="createbox" class="createbox mw-inputbox-form" action="/index.php" method="get"><input type="hidden" value="edit" name="action" /><div class="cdx-text-input"><input name="title" class="mw-inputbox-input mw-inputbox-createbox cdx-text-input__input" value="Some latin" placeholder="Latn" required="" size="50" dir="ltr" /></div><br /><input type="submit" name="create" value="Napravi stranicu" class="cdx-button cdx-button--action-progressive cdx-button--weight-primary" /></form></div>
|
2017-11-21 04:01:57 +00:00
|
|
|
!! end
|
2020-01-22 22:58:00 +00:00
|
|
|
|
|
|
|
!! test
|
|
|
|
InputBox type=search with aria label
|
|
|
|
!! wikitext
|
|
|
|
<inputbox>
|
|
|
|
type=search
|
|
|
|
arialabel=Search this wiki
|
|
|
|
</inputbox>
|
2021-09-30 18:46:38 +00:00
|
|
|
!! html
|
2024-03-09 18:43:32 +00:00
|
|
|
<div class="mw-inputbox-centered" style=""><form name="searchbox" class="searchbox mw-inputbox-form" action="/wiki/Special:Search"><div class="cdx-text-input"><input class="mw-inputbox-input mw-searchInput searchboxInput cdx-text-input__input" name="search" placeholder="" size="50" dir="ltr" aria-label="Search this wiki" /></div><br /><input type="submit" name="go" value="Try exact match" class="cdx-button" /> <input type="submit" name="fulltext" value="Search full text" class="cdx-button" /></form></div>
|
2020-08-04 18:23:54 +00:00
|
|
|
!! end
|