r72341 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r72340‎ | r72341 | r72342 >
Date:01:02, 4 September 2010
Author:mah
Status:ok
Tags:
Comment:
Add changes that I missed in r72340
Modified paths:
  • /trunk/phase3/maintenance/tests/selenium/Selenium.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/tests/selenium/Selenium.php
@@ -149,6 +149,47 @@
150150 return $t;
151151 }
152152
 153+ public function setUrl( $url ) {
 154+ self::$url = $url;
 155+ }
 156+
 157+ static public function getUrl() {
 158+ return self::$url;
 159+ }
 160+
 161+ public function setPort( $port ) {
 162+ $this->port = $port;
 163+ }
 164+
 165+ public function setUser( $user ) {
 166+ $this->user = $user;
 167+ }
 168+
 169+ public function setPass( $pass ) {
 170+ $this->pass = $pass;
 171+ }
 172+
 173+ public function setHost( $host ) {
 174+ $this->host = $host;
 175+ }
 176+
 177+ public function setVerbose( $verbose ) {
 178+ $this->verbose = $verbose;
 179+ }
 180+
 181+ public function setBrowser( $b ) {
 182+ $browsers = $this->setupBrowsers();
 183+ if ( !isset( $browsers[$b] ) ) {
 184+ throw new MWException( "Invalid Browser: $b.\n" );
 185+ }
 186+ $this->browser = $browsers[$b];
 187+ }
 188+
 189+ public function __call( $name, $args ) {
 190+ $t = call_user_func_array( array( $this->tester, $name), $args );
 191+ return $t;
 192+ }
 193+
153194 // Prevent external cloning
154195 protected function __clone() { }
155196 // Prevent external construction

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r72340* Remove $wg*Selenium* globals as they are only used for testing....mah00:58, 4 September 2010

Status & tagging log