Aleksander Machniak
2015-05-27 1cb6e91e998d861c8e6b67cfc9bf83108331ca50
Merge branch 'master' of github.com:roundcube/roundcubemail
4 files modified
14 ■■■■ changed files
program/lib/Roundcube/bootstrap.php 5 ●●●●● patch | view | raw | blame | history
tests/Selenium/Mail/Getunread.php 2 ●●● patch | view | raw | blame | history
tests/Selenium/Mail/List.php 2 ●●● patch | view | raw | blame | history
tests/Selenium/bootstrap.php 5 ●●●●● patch | view | raw | blame | history
program/lib/Roundcube/bootstrap.php
@@ -99,8 +99,9 @@
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');
}
/**
tests/Selenium/Mail/Getunread.php
@@ -32,6 +32,6 @@
        $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));
    }
}
tests/Selenium/Mail/List.php
@@ -42,7 +42,7 @@
        $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);
tests/Selenium/bootstrap.php
@@ -337,6 +337,11 @@
        return $response;
    }
    protected function getText($element)
    {
        return $element->text() ?: $element->attribute('textContent');
    }
    protected function assertHasClass($classname, $element)
    {
        $this->assertContains($classname, $element->attribute('class'));