Index: trunk/extensions/PagedTiffHandler/selenium/PagedTiffHandler_tests.php |
— | — | @@ -19,7 +19,7 @@ |
20 | 20 | |
21 | 21 | class SeleniumCheckPrerequisites extends SeleniumTestCase { |
22 | 22 | public $name = 'Check prerequisites'; |
23 | | - private $allChecksOk = true; |
| 23 | + private $prerequisiteError = null; |
24 | 24 | |
25 | 25 | public function runTest() { |
26 | 26 | global $wgSeleniumTestsWikiUrl; |
— | — | @@ -28,22 +28,22 @@ |
29 | 29 | |
30 | 30 | $source = $this->getAttribute( "//div[@id='bodyContent']//ul@id" ); |
31 | 31 | if ( $source != 'filetoc' ) { |
32 | | - $this->allChecksOk = false; |
| 32 | + $this->prerequisiteError = 'Image:Multipage.tiff must exist.'; |
33 | 33 | } |
34 | 34 | |
35 | 35 | // Check for language |
36 | 36 | $this->open($wgSeleniumTestsWikiUrl . '/api.php?action=query&meta=userinfo&uiprop=options&format=xml'); |
37 | 37 | |
38 | | - $source = $this->getAttribute( "//options/@language" ); |
39 | | - if ( $source != 'en' ) { |
40 | | - $this->allChecksOk = false; |
| 38 | + $lang = $this->getAttribute( "//options/@language" ); |
| 39 | + if ( $lang != 'en' ) { |
| 40 | + $this->prerequisiteError = 'interface language must be set to English (en), but was '.$lang.'.'; |
41 | 41 | } |
42 | 42 | } |
43 | 43 | |
44 | 44 | public function tearDown() { |
45 | | - if ( !$this->allChecksOk ) { |
| 45 | + if ( $this->prerequisiteError ) { |
46 | 46 | $this->selenium->stop(); |
47 | | - die( 'failed' ); |
| 47 | + die( 'failed: ' . $this->prerequisiteError . "\n" ); |
48 | 48 | } |
49 | 49 | } |
50 | 50 | } |