r62028 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r62027‎ | r62028 | r62029 >
Date:15:05, 5 February 2010
Author:mglaser
Status:deferred
Tags:
Comment:
refactor wgUIestsWikiUrl to wgSeleniumTestsWikiUrl
Modified paths:
  • /trunk/extensions/PagedTiffHandler/selenium/PagedTiffHandler_tests.php (modified) (history)

Diff [purge]

Index: trunk/extensions/PagedTiffHandler/selenium/PagedTiffHandler_tests.php
@@ -17,8 +17,8 @@
1818 {
1919 public function uploadFile($filename)
2020 {
21 - global $wgUITestsWikiUrl;
22 - $this->open($wgUITestsWikiUrl.'/index.php?title=Special:Upload');
 21+ global $wgSeleniumTestsWikiUrl;
 22+ $this->open($wgSeleniumTestsWikiUrl.'/index.php?title=Special:Upload');
2323 $this->type("wpUploadFile", dirname(__FILE__)."\\testImages\\".$filename);
2424 $this->check("wpIgnoreWarning");
2525 $this->click("wpUpload");
@@ -90,8 +90,8 @@
9191 }
9292 public function runTest()
9393 {
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');
9696 $this->type("wpReason", "Remove test file");
9797 $this->click("mw-filedelete-submit");
9898 $this->waitForPageToLoad(10000);
@@ -108,18 +108,18 @@
109109
110110 public function tearDown()
111111 {
112 - global $wgUITestsWikiUrl;
 112+ global $wgSeleniumTestsWikiUrl;
113113 parent::tearDown();
114114 //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');
116116 $this->type("wpTextbox1", "");
117117 $this->click("wpSave");
118118 }
119119
120120 public function preparePage($text)
121121 {
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');
124124 $this->type("wpTextbox1", $text);
125125 $this->click("wpSave");
126126 $this->waitForPageToLoad(10000);
@@ -133,16 +133,16 @@
134134 {
135135 parent::tearDown();
136136 //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');
138138 $this->type("wpTextbox1", "");
139139 $this->click("wpSave");
140140 }
141141
142142 public function prepareImagePage($image, $text)
143143 {
144 - global $wgUITestsWikiUrl;
 144+ global $wgSeleniumTestsWikiUrl;
145145 $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');
147147 $this->type("wpTextbox1", $text);
148148 $this->click("wpSave");
149149 $this->waitForPageToLoad(10000);
@@ -158,8 +158,8 @@
159159 {
160160 $this->prepareImagePage("Multipage.tiff","[[Category:Wiki]]\n");
161161
162 - global $wgUITestsWikiUrl;
163 - $this->open($wgUITestsWikiUrl.'/index.php?title=Category:Wiki');
 162+ global $wgSeleniumTestsWikiUrl;
 163+ $this->open($wgSeleniumTestsWikiUrl.'/index.php?title=Category:Wiki');
164164
165165 //Ergebnis chekcen
166166 $source = $this->getAttribute("//div[@class='gallerybox']//a[@class='image']//img@src");
@@ -177,8 +177,8 @@
178178 {
179179 $this->preparePage("<gallery>\nImage:Multipage.tiff\n</gallery>\n");
180180
181 - //global $wgUITestsWikiUrl;
182 - //$this->open($wgUITestsWikiUrl.'/index.php?title=GalleryTest');
 181+ //global $wgSeleniumTestsWikiUrl;
 182+ //$this->open($wgSeleniumTestsWikiUrl.'/index.php?title=GalleryTest');
183183
184184 //Ergebnis chekcen
185185 //$source = $this->getAttribute("//div[@class='gallerybox']//a[@title='Multipage.tiff']//img@src");

Status & tagging log