Index: trunk/phase3/tests/phpunit/includes/XmlTest.php |
— | — | @@ -193,52 +193,6 @@ |
194 | 194 | ); |
195 | 195 | } |
196 | 196 | |
197 | | - function testNamespaceSelector() { |
198 | | - $this->assertEquals( |
199 | | - '<select class="namespaceselector" id="namespace" name="namespace">' . "\n" . |
200 | | -'<option value="0">(Main)</option>' . "\n" . |
201 | | -'<option value="1">Talk</option>' . "\n" . |
202 | | -'<option value="2">User</option>' . "\n" . |
203 | | -'<option value="3">User talk</option>' . "\n" . |
204 | | -'<option value="4">MyWiki</option>' . "\n" . |
205 | | -'<option value="5">MyWiki Talk</option>' . "\n" . |
206 | | -'<option value="6">File</option>' . "\n" . |
207 | | -'<option value="7">File talk</option>' . "\n" . |
208 | | -'<option value="8">MediaWiki</option>' . "\n" . |
209 | | -'<option value="9">MediaWiki talk</option>' . "\n" . |
210 | | -'<option value="10">Template</option>' . "\n" . |
211 | | -'<option value="11">Template talk</option>' . "\n" . |
212 | | -'<option value="100">Custom</option>' . "\n" . |
213 | | -'<option value="101">Custom talk</option>' . "\n" . |
214 | | -'</select>', |
215 | | - Xml::namespaceSelector(), |
216 | | - 'Basic namespace selector without custom options' |
217 | | - ); |
218 | | - $this->assertEquals( |
219 | | - '<label for="namespace">Select a namespace:</label>' . |
220 | | -' <select class="namespaceselector" id="namespace" name="myname">' . "\n" . |
221 | | -'<option value="all">all</option>' . "\n" . |
222 | | -'<option value="0">(Main)</option>' . "\n" . |
223 | | -'<option value="1">Talk</option>' . "\n" . |
224 | | -'<option value="2" selected="">User</option>' . "\n" . |
225 | | -'<option value="3">User talk</option>' . "\n" . |
226 | | -'<option value="4">MyWiki</option>' . "\n" . |
227 | | -'<option value="5">MyWiki Talk</option>' . "\n" . |
228 | | -'<option value="6">File</option>' . "\n" . |
229 | | -'<option value="7">File talk</option>' . "\n" . |
230 | | -'<option value="8">MediaWiki</option>' . "\n" . |
231 | | -'<option value="9">MediaWiki talk</option>' . "\n" . |
232 | | -'<option value="10">Template</option>' . "\n" . |
233 | | -'<option value="11">Template talk</option>' . "\n" . |
234 | | -'<option value="100">Custom</option>' . "\n" . |
235 | | -'<option value="101">Custom talk</option>' . "\n" . |
236 | | -'</select>', |
237 | | - Xml::namespaceSelector( $selected = '2', $all = 'all', $element_name = 'myname', $label = 'Select a namespace:' ), |
238 | | - 'Basic namespace selector with custom values' |
239 | | - ); |
240 | | - } |
241 | | - |
242 | | - |
243 | 197 | # |
244 | 198 | # textarea |
245 | 199 | # |