cvs: pear /Selenium Selenium.php

From: Date: Thu, 12 Oct 2006 17:03:51 +0000
Subject: cvs: pear /Selenium Selenium.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-42503@lists.php.net to get a copy of this message
shin Thu Oct 12 17:03:51 2006 UTC Modified files: /pear/Selenium Selenium.php Log: Fixed Method Name "isTextPattern" to "isTextPresent". "isTextPattern" is wrong. http://cvs.php.net/viewvc.cgi/pear/Selenium/Selenium.php?r1=1.2&r2=1.3&diff_format=u Index: pear/Selenium/Selenium.php diff -u pear/Selenium/Selenium.php:1.2 pear/Selenium/Selenium.php:1.3 --- pear/Selenium/Selenium.php:1.2 Sun Oct 8 18:16:37 2006 +++ pear/Selenium/Selenium.php Thu Oct 12 17:03:51 2006 @@ -913,7 +913,7 @@ return $this->getString('getAttribute', array($attributeLocator)); } // }}} - // {{{ isTextPattern($pattern) + // {{{ isTextPresent($pattern) /** * Verifies that the specified text pattern appears somewhere on the rendered page shown to the user. * @@ -922,9 +922,9 @@ * @return boolean on success * @throws Selenium_Exception */ - public function isTextPattern($pattern) + public function isTextPresent($pattern) { - return $this->getBoolean('isTextPattern', array($pattern)); + return $this->getBoolean('isTextPresent', array($pattern)); } // }}} // {{{ isElementPresent($locator) @@ -1314,7 +1314,6 @@ private function getStringArray($verb, $args = array()) { $csv = $this->getString($verb, $args); - $token = ''; $tokens = array(); $letters = preg_split('//', $csv, -1, PREG_SPLIT_NO_EMPTY); @@ -1352,7 +1351,6 @@ private function getBoolean($verb, $args = array()) { $result = $this->getString($verb, $args); - switch ($result) { case 'true': return true;

« previous php.pear.cvs (#42503) next »