forked from Wavyzz/dolibarr
Safari can appear in iPad, iPod, iPhone and future Apple products, it is not fair to attach it to one of them.
This commit is contained in:
@@ -163,6 +163,12 @@ class FunctionsLibTest extends PHPUnit_Framework_TestCase
|
||||
$tmp=getBrowserInfo($user_agent);
|
||||
$this->assertEquals('ie',$tmp['browsername']);
|
||||
$this->assertEquals('11.0',$tmp['browserversion']);
|
||||
|
||||
//iPad
|
||||
$user_agent = 'Mozilla/5.0 (iPad; CPU OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5355d Safari/8536.25';
|
||||
$tmp=getBrowserInfo($user_agent);
|
||||
$this->assertEquals('ie',$tmp['browsername']);
|
||||
$this->assertEquals('11.0',$tmp['browserversion']);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user