Index: trunk/phase3/tests/phpunit/includes/XmlTest.php |
— | — | @@ -100,36 +100,36 @@ |
101 | 101 | |
102 | 102 | |
103 | 103 | $this->assertEquals( |
104 | | - '<label for="year">From year (and earlier):</label> <input name="year" size="4" value="2011" id="year" maxlength="4" /> <label for="month">From month (and earlier):</label> <select id="month" name="month" class="mw-month-selector"><option value="-1">all</option> |
105 | | -<option value="1">January</option> |
106 | | -<option value="2" selected="selected">February</option> |
107 | | -<option value="3">March</option> |
108 | | -<option value="4">April</option> |
109 | | -<option value="5">May</option> |
110 | | -<option value="6">June</option> |
111 | | -<option value="7">July</option> |
112 | | -<option value="8">August</option> |
113 | | -<option value="9">September</option> |
114 | | -<option value="10">October</option> |
115 | | -<option value="11">November</option> |
116 | | -<option value="12">December</option></select>', |
| 104 | + '<label for="year">From year (and earlier):</label> <input name="year" size="4" value="2011" id="year" maxlength="4" /> <label for="month">From month (and earlier):</label> <select id="month" name="month" class="mw-month-selector"><option value="-1">all</option>' . "\n" . |
| 105 | +'<option value="1">January</option>' . "\n" . |
| 106 | +'<option value="2" selected="selected">February</option>' . "\n" . |
| 107 | +'<option value="3">March</option>' . "\n" . |
| 108 | +'<option value="4">April</option>' . "\n" . |
| 109 | +'<option value="5">May</option>' . "\n" . |
| 110 | +'<option value="6">June</option>' . "\n" . |
| 111 | +'<option value="7">July</option>' . "\n" . |
| 112 | +'<option value="8">August</option>' . "\n" . |
| 113 | +'<option value="9">September</option>' . "\n" . |
| 114 | +'<option value="10">October</option>' . "\n" . |
| 115 | +'<option value="11">November</option>' . "\n" . |
| 116 | +'<option value="12">December</option></select>', |
117 | 117 | Xml::dateMenu( 2011, 02 ), |
118 | 118 | "Date menu for february 2011" |
119 | 119 | ); |
120 | 120 | $this->assertEquals( |
121 | | - '<label for="year">From year (and earlier):</label> <input name="year" size="4" value="2011" id="year" maxlength="4" /> <label for="month">From month (and earlier):</label> <select id="month" name="month" class="mw-month-selector"><option value="-1">all</option> |
122 | | -<option value="1">January</option> |
123 | | -<option value="2">February</option> |
124 | | -<option value="3">March</option> |
125 | | -<option value="4">April</option> |
126 | | -<option value="5">May</option> |
127 | | -<option value="6">June</option> |
128 | | -<option value="7">July</option> |
129 | | -<option value="8">August</option> |
130 | | -<option value="9">September</option> |
131 | | -<option value="10">October</option> |
132 | | -<option value="11">November</option> |
133 | | -<option value="12">December</option></select>', |
| 121 | + '<label for="year">From year (and earlier):</label> <input name="year" size="4" value="2011" id="year" maxlength="4" /> <label for="month">From month (and earlier):</label> <select id="month" name="month" class="mw-month-selector"><option value="-1">all</option>' . "\n" . |
| 122 | +'<option value="1">January</option>' . "\n" . |
| 123 | +'<option value="2">February</option>' . "\n" . |
| 124 | +'<option value="3">March</option>' . "\n" . |
| 125 | +'<option value="4">April</option>' . "\n" . |
| 126 | +'<option value="5">May</option>' . "\n" . |
| 127 | +'<option value="6">June</option>' . "\n" . |
| 128 | +'<option value="7">July</option>' . "\n" . |
| 129 | +'<option value="8">August</option>' . "\n" . |
| 130 | +'<option value="9">September</option>' . "\n" . |
| 131 | +'<option value="10">October</option>' . "\n" . |
| 132 | +'<option value="11">November</option>' . "\n" . |
| 133 | +'<option value="12">December</option></select>', |
134 | 134 | Xml::dateMenu( 2011, -1), |
135 | 135 | "Date menu with negative month for 'All'" |
136 | 136 | ); |
— | — | @@ -146,19 +146,19 @@ |
147 | 147 | |
148 | 148 | # @todo FIXME: Please note there is no year there! |
149 | 149 | $this->assertEquals( |
150 | | - '<label for="year">From year (and earlier):</label> <input name="year" size="4" value="" id="year" maxlength="4" /> <label for="month">From month (and earlier):</label> <select id="month" name="month" class="mw-month-selector"><option value="-1">all</option> |
151 | | -<option value="1">January</option> |
152 | | -<option value="2">February</option> |
153 | | -<option value="3">March</option> |
154 | | -<option value="4">April</option> |
155 | | -<option value="5">May</option> |
156 | | -<option value="6">June</option> |
157 | | -<option value="7">July</option> |
158 | | -<option value="8">August</option> |
159 | | -<option value="9">September</option> |
160 | | -<option value="10">October</option> |
161 | | -<option value="11">November</option> |
162 | | -<option value="12">December</option></select>', |
| 150 | + '<label for="year">From year (and earlier):</label> <input name="year" size="4" value="" id="year" maxlength="4" /> <label for="month">From month (and earlier):</label> <select id="month" name="month" class="mw-month-selector"><option value="-1">all</option>' . "\n" . |
| 151 | +'<option value="1">January</option>' . "\n" . |
| 152 | +'<option value="2">February</option>' . "\n" . |
| 153 | +'<option value="3">March</option>' . "\n" . |
| 154 | +'<option value="4">April</option>' . "\n" . |
| 155 | +'<option value="5">May</option>' . "\n" . |
| 156 | +'<option value="6">June</option>' . "\n" . |
| 157 | +'<option value="7">July</option>' . "\n" . |
| 158 | +'<option value="8">August</option>' . "\n" . |
| 159 | +'<option value="9">September</option>' . "\n" . |
| 160 | +'<option value="10">October</option>' . "\n" . |
| 161 | +'<option value="11">November</option>' . "\n" . |
| 162 | +'<option value="12">December</option></select>', |
163 | 163 | Xml::dateMenu( '', ''), |
164 | 164 | "Date menu with neither year or month" |
165 | 165 | ); |
Index: trunk/phase3/tests/phpunit/includes/XmlSelectTest.php |
— | — | @@ -79,9 +79,9 @@ |
80 | 80 | $this->select->addOption( 'bar1' ); |
81 | 81 | $this->select->addOption( 'foo2' ); |
82 | 82 | $this->assertEquals( |
83 | | -'<select><option value="foo1">foo1</option> |
84 | | -<option value="bar1" selected="selected">bar1</option> |
85 | | -<option value="foo2">foo2</option></select>', $this->select->getHTML() ); |
| 83 | +'<select><option value="foo1">foo1</option>' . "\n" . |
| 84 | +'<option value="bar1" selected="selected">bar1</option>' . "\n" . |
| 85 | +'<option value="foo2">foo2</option></select>', $this->select->getHTML() ); |
86 | 86 | } |
87 | 87 | |
88 | 88 | /** |
— | — | @@ -95,9 +95,9 @@ |
96 | 96 | $this->select->addOption( 'foo2' ); |
97 | 97 | $this->select->setDefault( 'bar1' ); # setting default after adding options |
98 | 98 | $this->assertEquals( |
99 | | -'<select><option value="foo1">foo1</option> |
100 | | -<option value="bar1" selected="selected">bar1</option> |
101 | | -<option value="foo2">foo2</option></select>', $this->select->getHTML() ); |
| 99 | +'<select><option value="foo1">foo1</option>' . "\n" . |
| 100 | +'<option value="bar1" selected="selected">bar1</option>' . "\n" . |
| 101 | +'<option value="foo2">foo2</option></select>', $this->select->getHTML() ); |
102 | 102 | } |
103 | 103 | |
104 | 104 | public function testGetAttributes() { |