summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-10-26 12:07:10 +0200
committerJoas Schilling <coding@schilljs.com>2016-10-26 12:07:10 +0200
commitc20ab0049f91cbace09cbec3ce35e9b41515f179 (patch)
tree73a342c80f4a7b1ebcb80f468f1e415e0230fa90 /tests
parentfdcb8edd78c645e722716fec1d12fa8fac750553 (diff)
downloadnextcloud-server-c20ab0049f91cbace09cbec3ce35e9b41515f179.tar.gz
nextcloud-server-c20ab0049f91cbace09cbec3ce35e9b41515f179.zip
Identify Chromium as Chrome
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/AppFramework/Http/RequestTest.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/lib/AppFramework/Http/RequestTest.php b/tests/lib/AppFramework/Http/RequestTest.php
index 420b73a22d9..1ba20869439 100644
--- a/tests/lib/AppFramework/Http/RequestTest.php
+++ b/tests/lib/AppFramework/Http/RequestTest.php
@@ -792,6 +792,20 @@ class RequestTest extends \Test\TestCase {
false,
],
[
+ 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36',
+ [
+ Request::USER_AGENT_CHROME
+ ],
+ true,
+ ],
+ [
+ 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/53.0.2785.143 Chrome/53.0.2785.143 Safari/537.36',
+ [
+ Request::USER_AGENT_CHROME
+ ],
+ true,
+ ],
+ [
'Mozilla/5.0 (Linux; Android 4.4; Nexus 4 Build/KRT16S) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.59 Mobile Safari/537.36',
[
Request::USER_AGENT_ANDROID_MOBILE_CHROME