r64746 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r64745‎ | r64746 | r64747 >
Date:11:44, 8 April 2010
Author:mglaser
Status:deferred
Tags:
Comment:
adapted tests to file names with information about lossiness
Modified paths:
  • /trunk/extensions/PagedTiffHandler/selenium/PagedTiffHandler_tests.php (modified) (history)

Diff [purge]

Index: trunk/extensions/PagedTiffHandler/selenium/PagedTiffHandler_tests.php
@@ -199,7 +199,7 @@
200200
201201 //Ergebnis chekcen
202202 $source = $this->getAttribute("//div[@class='gallerybox']//a[@class='image']//img@src");
203 - $correct = strstr($source, "/page1-");
 203+ $correct = strstr($source, "-page1-");
204204 $this->assertEquals($correct, true);
205205
206206 }
@@ -219,7 +219,7 @@
220220 //Ergebnis chekcen
221221 //$source = $this->getAttribute("//div[@class='gallerybox']//a[@title='Multipage.tiff']//img@src");
222222 $source = $this->getAttribute("//div[@class='gallerybox']//a[@class='image']//img@src");
223 - $correct = strstr($source, "/page1-");
 223+ $correct = strstr($source, "-page1-");
224224 $this->assertEquals($correct, true);
225225
226226 }
@@ -315,7 +315,7 @@
316316 $this->preparePage("[[Image:Multipage.tiff|page=-1]]\n");
317317
318318 $source = $this->getAttribute("//div[@id='bodyContent']//img@src");
319 - $correct = strstr($source, "/page1-");
 319+ $correct = strstr($source, "-page1-");
320320 $this->assertEquals($correct, true);
321321 }
322322 }
@@ -329,7 +329,7 @@
330330 $this->preparePage("[[Image:Multipage.tiff|page=8]]\n");
331331
332332 $source = $this->getAttribute("//div[@id='bodyContent']//img@src");
333 - $correct = strstr($source, "/page7-");
 333+ $correct = strstr($source, "-page7-");
334334 $this->assertEquals($correct, true);
335335 }
336336 }

Status & tagging log