Index: trunk/extensions/PagedTiffHandler/selenium/PagedTiffHandler_tests.php |
— | — | @@ -17,8 +17,8 @@ |
18 | 18 | { |
19 | 19 | public function uploadFile($filename) |
20 | 20 | { |
21 | | - global $wgUITestsWikiUrl; |
22 | | - $this->open($wgUITestsWikiUrl.'/index.php?title=Special:Upload'); |
| 21 | + global $wgSeleniumTestsWikiUrl; |
| 22 | + $this->open($wgSeleniumTestsWikiUrl.'/index.php?title=Special:Upload'); |
23 | 23 | $this->type("wpUploadFile", dirname(__FILE__)."\\testImages\\".$filename); |
24 | 24 | $this->check("wpIgnoreWarning"); |
25 | 25 | $this->click("wpUpload"); |
— | — | @@ -90,8 +90,8 @@ |
91 | 91 | } |
92 | 92 | public function runTest() |
93 | 93 | { |
94 | | - global $wgUITestsWikiUrl; |
95 | | - $this->open($wgUITestsWikiUrl.'/index.php?title=Image:'.ucfirst($this->filename).'&action=delete'); |
| 94 | + global $wgSeleniumTestsWikiUrl; |
| 95 | + $this->open($wgSeleniumTestsWikiUrl.'/index.php?title=Image:'.ucfirst($this->filename).'&action=delete'); |
96 | 96 | $this->type("wpReason", "Remove test file"); |
97 | 97 | $this->click("mw-filedelete-submit"); |
98 | 98 | $this->waitForPageToLoad(10000); |
— | — | @@ -108,18 +108,18 @@ |
109 | 109 | |
110 | 110 | public function tearDown() |
111 | 111 | { |
112 | | - global $wgUITestsWikiUrl; |
| 112 | + global $wgSeleniumTestsWikiUrl; |
113 | 113 | parent::tearDown(); |
114 | 114 | //Clear EmbedTiffTest page for future tests |
115 | | - $this->open($wgUITestsWikiUrl.'/index.php?title=EmbedTiffTest&action=edit'); |
| 115 | + $this->open($wgSeleniumTestsWikiUrl.'/index.php?title=EmbedTiffTest&action=edit'); |
116 | 116 | $this->type("wpTextbox1", ""); |
117 | 117 | $this->click("wpSave"); |
118 | 118 | } |
119 | 119 | |
120 | 120 | public function preparePage($text) |
121 | 121 | { |
122 | | - global $wgUITestsWikiUrl; |
123 | | - $this->open($wgUITestsWikiUrl.'/index.php?title=EmbedTiffTest&action=edit'); |
| 122 | + global $wgSeleniumTestsWikiUrl; |
| 123 | + $this->open($wgSeleniumTestsWikiUrl.'/index.php?title=EmbedTiffTest&action=edit'); |
124 | 124 | $this->type("wpTextbox1", $text); |
125 | 125 | $this->click("wpSave"); |
126 | 126 | $this->waitForPageToLoad(10000); |
— | — | @@ -133,16 +133,16 @@ |
134 | 134 | { |
135 | 135 | parent::tearDown(); |
136 | 136 | //Clear EmbedTiffTest page for future tests |
137 | | - $this->open($wgUITestsWikiUrl.'/index.php?title=Image:'.$this->image.'&action=edit'); |
| 137 | + $this->open($wgSeleniumTestsWikiUrl.'/index.php?title=Image:'.$this->image.'&action=edit'); |
138 | 138 | $this->type("wpTextbox1", ""); |
139 | 139 | $this->click("wpSave"); |
140 | 140 | } |
141 | 141 | |
142 | 142 | public function prepareImagePage($image, $text) |
143 | 143 | { |
144 | | - global $wgUITestsWikiUrl; |
| 144 | + global $wgSeleniumTestsWikiUrl; |
145 | 145 | $this->image = $image; |
146 | | - $this->open($wgUITestsWikiUrl.'/index.php?title=Image:'.$image.'&action=edit'); |
| 146 | + $this->open($wgSeleniumTestsWikiUrl.'/index.php?title=Image:'.$image.'&action=edit'); |
147 | 147 | $this->type("wpTextbox1", $text); |
148 | 148 | $this->click("wpSave"); |
149 | 149 | $this->waitForPageToLoad(10000); |
— | — | @@ -158,8 +158,8 @@ |
159 | 159 | { |
160 | 160 | $this->prepareImagePage("Multipage.tiff","[[Category:Wiki]]\n"); |
161 | 161 | |
162 | | - global $wgUITestsWikiUrl; |
163 | | - $this->open($wgUITestsWikiUrl.'/index.php?title=Category:Wiki'); |
| 162 | + global $wgSeleniumTestsWikiUrl; |
| 163 | + $this->open($wgSeleniumTestsWikiUrl.'/index.php?title=Category:Wiki'); |
164 | 164 | |
165 | 165 | //Ergebnis chekcen |
166 | 166 | $source = $this->getAttribute("//div[@class='gallerybox']//a[@class='image']//img@src"); |
— | — | @@ -177,8 +177,8 @@ |
178 | 178 | { |
179 | 179 | $this->preparePage("<gallery>\nImage:Multipage.tiff\n</gallery>\n"); |
180 | 180 | |
181 | | - //global $wgUITestsWikiUrl; |
182 | | - //$this->open($wgUITestsWikiUrl.'/index.php?title=GalleryTest'); |
| 181 | + //global $wgSeleniumTestsWikiUrl; |
| 182 | + //$this->open($wgSeleniumTestsWikiUrl.'/index.php?title=GalleryTest'); |
183 | 183 | |
184 | 184 | //Ergebnis chekcen |
185 | 185 | //$source = $this->getAttribute("//div[@class='gallerybox']//a[@title='Multipage.tiff']//img@src"); |