r76948 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r76947‎ | r76948 | r76949 >
Date:16:12, 18 November 2010
Author:mglaser
Status:ok
Tags:
Comment:
* simple smoke test for file upload
Modified paths:
  • /trunk/phase3/maintenance/tests/selenium/data (added) (history)
  • /trunk/phase3/maintenance/tests/selenium/data/Wikipedia-logo-v2-de.png (added) (history)
  • /trunk/phase3/maintenance/tests/selenium/suites/MediawikiCoreSmokeTestCase.php (modified) (history)

Diff [purge]

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
11 + application/octet-stream
Index: trunk/phase3/maintenance/tests/selenium/suites/MediawikiCoreSmokeTestCase.php
@@ -40,7 +40,29 @@
4141 }
4242
4343 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 );
4452
 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+ */
4567 }
4668
4769

Status & tagging log