From f40c41db4cf177ebd42881b555086d0c4146f1b2 Mon Sep 17 00:00:00 2001 From: "Mark A. Hershberger" Date: Sat, 4 Sep 2010 01:02:56 +0000 Subject: [PATCH] Add changes that I missed in r72340 --- maintenance/tests/selenium/Selenium.php | 41 +++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/maintenance/tests/selenium/Selenium.php b/maintenance/tests/selenium/Selenium.php index de7d9e0347..2662a75c27 100644 --- a/maintenance/tests/selenium/Selenium.php +++ b/maintenance/tests/selenium/Selenium.php @@ -149,6 +149,47 @@ class Selenium { return $t; } + public function setUrl( $url ) { + self::$url = $url; + } + + static public function getUrl() { + return self::$url; + } + + public function setPort( $port ) { + $this->port = $port; + } + + public function setUser( $user ) { + $this->user = $user; + } + + public function setPass( $pass ) { + $this->pass = $pass; + } + + public function setHost( $host ) { + $this->host = $host; + } + + public function setVerbose( $verbose ) { + $this->verbose = $verbose; + } + + public function setBrowser( $b ) { + $browsers = $this->setupBrowsers(); + if ( !isset( $browsers[$b] ) ) { + throw new MWException( "Invalid Browser: $b.\n" ); + } + $this->browser = $browsers[$b]; + } + + public function __call( $name, $args ) { + $t = call_user_func_array( array( $this->tester, $name), $args ); + return $t; + } + // Prevent external cloning protected function __clone() { } // Prevent external construction -- 2.20.1