Merge branch 'master' of github.com:roundcube/roundcubemail
| | |
| | | spl_autoload_register('rcube_autoload'); |
| | | |
| | | // set PEAR error handling (will also load the PEAR main class) |
| | | @PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'rcube_pear_error'); |
| | | |
| | | if (class_exists('PEAR')) { |
| | | @PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'rcube_pear_error'); |
| | | } |
| | | |
| | | |
| | | /** |
| | |
| | | $this->assertHasClass('unread', $li); |
| | | |
| | | $badge = $this->byCssSelector('.folderlist li.inbox span.unreadcount'); |
| | | $this->assertEquals(strval($this->msgcount), $badge->text()); |
| | | $this->assertEquals(strval($this->msgcount), $this->getText($badge)); |
| | | } |
| | | } |
| | |
| | | $this->assertHasClass('unread', $row); |
| | | |
| | | $subject = $this->byCssSelector('.messagelist tbody tr:first-child td.subject'); |
| | | $this->assertEquals('Lines', $subject->text()); |
| | | $this->assertEquals('Lines', $this->getText($subject)); |
| | | |
| | | $icon = $this->byCssSelector('.messagelist tbody tr:first-child td.status span'); |
| | | $this->assertHasClass('unread', $icon); |
| | |
| | | return $response; |
| | | } |
| | | |
| | | protected function getText($element) |
| | | { |
| | | return $element->text() ?: $element->attribute('textContent'); |
| | | } |
| | | |
| | | protected function assertHasClass($classname, $element) |
| | | { |
| | | $this->assertContains($classname, $element->attribute('class')); |