Index: trunk/phase3/maintenance/tests/selenium/data/Wikipedia-logo-v2-de.png |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
Property changes on: trunk/phase3/maintenance/tests/selenium/data/Wikipedia-logo-v2-de.png |
___________________________________________________________________ |
Added: svn:mime-type |
1 | 1 | + application/octet-stream |
Index: trunk/phase3/maintenance/tests/selenium/suites/MediawikiCoreSmokeTestCase.php |
— | — | @@ -40,7 +40,29 @@ |
41 | 41 | } |
42 | 42 | |
43 | 43 | public function testImageUpload() { |
| 44 | + $this->login(); |
| 45 | + $this->open( $this->getUrl() . |
| 46 | + '/index.php?title=Special:Upload' ); |
| 47 | + $this->type( 'wpUploadFile', dirname( __FILE__ ) . |
| 48 | + "\\..\\data\\Wikipedia-logo-v2-de.png" ); |
| 49 | + $this->check( 'wpIgnoreWarning' ); |
| 50 | + $this->click( 'wpUpload' ); |
| 51 | + $this->waitForPageToLoad( 30000 ); |
44 | 52 | |
| 53 | + $this->assertSeleniumHTMLContains( |
| 54 | + '//h1[@class="firstHeading"]', "Wikipedia-logo-v2-de.png" ); |
| 55 | + |
| 56 | + /* |
| 57 | + $this->open( $this->getUrl() . '/index.php?title=Image:' |
| 58 | + . ucfirst( $this->filename ) . '&action=delete' ); |
| 59 | + $this->type( 'wpReason', 'Remove test file' ); |
| 60 | + $this->click( 'mw-filedelete-submit' ); |
| 61 | + $this->waitForPageToLoad( 10000 ); |
| 62 | + |
| 63 | + // Todo: This message is localized |
| 64 | + $this->assertSeleniumHTMLContains( '//div[@id="bodyContent"]/p', |
| 65 | + ucfirst( $this->filename ) . '.*has been deleted.' ); |
| 66 | + */ |
45 | 67 | } |
46 | 68 | |
47 | 69 | |