Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
04e4224bb1
@ -440,6 +440,20 @@ abstract class PMA_SeleniumBase extends PHPUnit_Extensions_Selenium2TestCase
|
||||
*/
|
||||
public function typeInTextArea($text)
|
||||
{
|
||||
/**
|
||||
* Firefox needs some escaping of a text, see
|
||||
* http://code.google.com/p/selenium/issues/detail?id=1723
|
||||
*/
|
||||
if (strtolower($this->getBrowser()) == 'firefox') {
|
||||
$text = str_replace(
|
||||
"(",
|
||||
PHPUnit_Extensions_Selenium2TestCase_Keys::SHIFT
|
||||
. PHPUnit_Extensions_Selenium2TestCase_Keys::NUMPAD9
|
||||
. PHPUnit_Extensions_Selenium2TestCase_Keys::NULL,
|
||||
$text
|
||||
);
|
||||
}
|
||||
|
||||
$this->byClassName("CodeMirror-scroll")->click();
|
||||
$this->keys($text);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user