Jump to content

Module talk:Toolbar/testcases

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

All 40 tests passed.

test_basic_arg1
Text Expected Actual
checkY {{toolbar/sandbox|}}
checkY {{toolbar/sandbox|foo}} <span class="plainlinks">(foo)</span> <span class="plainlinks">(foo)</span>
checkY {{toolbar/sandbox|foo|bar}} <span class="plainlinks">(foo | bar)</span> <span class="plainlinks">(foo | bar)</span>
checkY {{toolbar/sandbox|foo|bar|baz}} <span class="plainlinks">(foo | bar | baz)</span> <span class="plainlinks">(foo | bar | baz)</span>
checkY {{toolbar/sandbox|foo||baz}} <span class="plainlinks">(foo | baz)</span> <span class="plainlinks">(foo | baz)</span>
checkY {{toolbar/sandbox|foo| |baz}} <span class="plainlinks">(foo | baz)</span> <span class="plainlinks">(foo | baz)</span>
checkY {{toolbar/sandbox|foo|

|baz}}

<span class="plainlinks">(foo | baz)</span> <span class="plainlinks">(foo | baz)</span>
checkY {{toolbar/sandbox|foo|bar|baz|8=}} <span class="plainlinks">(foo | bar | baz)</span> <span class="plainlinks">(foo | bar | baz)</span>
checkY {{toolbar/sandbox|foo|bar|baz|8= }} <span class="plainlinks">(foo | bar | baz)</span> <span class="plainlinks">(foo | bar | baz)</span>
checkY {{toolbar/sandbox| foo }} <span class="plainlinks">(foo)</span> <span class="plainlinks">(foo)</span>
checkY {{toolbar/sandbox|3=foo}} <span class="plainlinks">(foo)</span> <span class="plainlinks">(foo)</span>
checkY {{toolbar/sandbox|3= foo }} <span class="plainlinks">(foo)</span> <span class="plainlinks">(foo)</span>
checkY {{toolbar/sandbox|foo|bar|class=someclass}} <span class="plainlinks someclass">(foo | bar)</span> <span class="plainlinks someclass">(foo | bar)</span>
checkY {{toolbar/sandbox|foo|bar|class=}} <span class="plainlinks">(foo | bar)</span> <span class="plainlinks">(foo | bar)</span>
checkY {{toolbar/sandbox|foo|bar| class = }} <span class="plainlinks">(foo | bar)</span> <span class="plainlinks">(foo | bar)</span>
checkY {{toolbar/sandbox|foo|bar|class=

}}

<span class="plainlinks">(foo | bar)</span> <span class="plainlinks">(foo | bar)</span>
checkY {{toolbar/sandbox|foo|bar|style=somestyle:somevalue;}} <span class="plainlinks" style="somestyle:somevalue;">(foo | bar)</span> <span class="plainlinks" style="somestyle:somevalue;">(foo | bar)</span>
checkY {{toolbar/sandbox|foo|bar|style=}} <span class="plainlinks">(foo | bar)</span> <span class="plainlinks">(foo | bar)</span>
checkY {{toolbar/sandbox|foo|bar|class= someclass }} <span class="plainlinks someclass">(foo | bar)</span> <span class="plainlinks someclass">(foo | bar)</span>
checkY {{toolbar/sandbox|foo|bar|style= somestyle: somevalue; }} <span class="plainlinks" style="somestyle: somevalue;">(foo | bar)</span> <span class="plainlinks" style="somestyle: somevalue;">(foo | bar)</span>
checkY {{toolbar/sandbox|foo|bar|class=someclass|style=somestyle:somevalue;}} <span class="plainlinks someclass" style="somestyle:somevalue;">(foo | bar)</span> <span class="plainlinks someclass" style="somestyle:somevalue;">(foo | bar)</span>
checkY {{toolbar/sandbox|foo|bar|seperator=comma}} <span class="plainlinks">(foo | bar)</span> <span class="plainlinks">(foo | bar)</span>
checkY {{toolbar/sandbox|foo|bar|seperator=asdf}} <span class="plainlinks">(foo | bar)</span> <span class="plainlinks">(foo | bar)</span>
checkY {{toolbar/sandbox|foo|bar|seperator=漢字}} <span class="plainlinks">(foo | bar)</span> <span class="plainlinks">(foo | bar)</span>
checkY {{toolbar/sandbox|foo|bar|seperator=}} <span class="plainlinks">(foo | bar)</span> <span class="plainlinks">(foo | bar)</span>
checkY {{toolbar/sandbox|foo|bar|seperator= }} <span class="plainlinks">(foo | bar)</span> <span class="plainlinks">(foo | bar)</span>
checkY {{toolbar/sandbox|foo|bar| separator = }} <span class="plainlinks">(foo | bar)</span> <span class="plainlinks">(foo | bar)</span>
checkY {{toolbar/sandbox|foo|bar|漢字}} <span class="plainlinks">(foo | bar | 漢字)</span> <span class="plainlinks">(foo | bar | 漢字)</span>
checkY {{toolbar/sandbox|foo|bar|?}} <span class="plainlinks">(foo | bar | ?)</span> <span class="plainlinks">(foo | bar | ?)</span>
checkY {{toolbar/sandbox|foo|bar|&#x0000;}} <span class="plainlinks">(foo | bar | &#x0000;)</span> <span class="plainlinks">(foo | bar | &#x0000;)</span>
checkY {{toolbar/sandbox|foo|bar|&nbsp;}} <span class="plainlinks">(foo | bar | &nbsp;)</span> <span class="plainlinks">(foo | bar | &nbsp;)</span>
checkY {{toolbar/sandbox|foo|bar|&#x00ac;}} <span class="plainlinks">(foo | bar | &#x00ac;)</span> <span class="plainlinks">(foo | bar | &#x00ac;)</span>
checkY {{toolbar/sandbox|foo|bar|{{#expr:5/5}}}} <span class="plainlinks">(foo | bar | 1)</span> <span class="plainlinks">(foo | bar | 1)</span>
checkY {{toolbar/sandbox|foo|bar|&#x20;}} <span class="plainlinks">(foo | bar | &#x20;)</span> <span class="plainlinks">(foo | bar | &#x20;)</span>
checkY {{toolbar/sandbox|foo|bar|{{#expr:0/5}}}} <span class="plainlinks">(foo | bar | 0)</span> <span class="plainlinks">(foo | bar | 0)</span>
checkY {{toolbar/sandbox|foo|bar|<br/>}} <span class="plainlinks">(foo | bar | <br/>)</span> <span class="plainlinks">(foo | bar | <br/>)</span>
checkY {{toolbar/sandbox|foo|bar|

}}

<span class="plainlinks">(foo | bar)</span> <span class="plainlinks">(foo | bar)</span>
checkY {{toolbar/sandbox|foo|bar|true}} <span class="plainlinks">(foo | bar | true)</span> <span class="plainlinks">(foo | bar | true)</span>
checkY {{toolbar/sandbox|foo|bar|false}} <span class="plainlinks">(foo | bar | false)</span> <span class="plainlinks">(foo | bar | false)</span>
checkY {{toolbar/sandbox|foo|bar|span=no}} (foo | bar) (foo | bar)

Start a discussion about improving the Module:Toolbar/testcases page

Start a discussion