diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2018-01-16 12:03:31 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-16 12:03:31 -0500 |
commit | 2fa7c464f019f67c5c0494aaf5ac0f5ecc1ee7a7 (patch) | |
tree | e08ff912e1924c06939f314168c3362d6f1ec0de /vendor/github.com/mssola/user_agent/all_test.go | |
parent | f5c8a71698d0a7a16c68be220e49fe64bfee7f5c (diff) | |
download | chat-2fa7c464f019f67c5c0494aaf5ac0f5ecc1ee7a7.tar.gz chat-2fa7c464f019f67c5c0494aaf5ac0f5ecc1ee7a7.tar.bz2 chat-2fa7c464f019f67c5c0494aaf5ac0f5ecc1ee7a7.zip |
Updated dependencies and added avct/uasurfer (#8089)
* Updated dependencies and added avct/uasurfer
* Added uasurfer to NOTICE.txt
Diffstat (limited to 'vendor/github.com/mssola/user_agent/all_test.go')
-rw-r--r-- | vendor/github.com/mssola/user_agent/all_test.go | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/vendor/github.com/mssola/user_agent/all_test.go b/vendor/github.com/mssola/user_agent/all_test.go index fb0cf054e..a5d5ee648 100644 --- a/vendor/github.com/mssola/user_agent/all_test.go +++ b/vendor/github.com/mssola/user_agent/all_test.go @@ -1,4 +1,4 @@ -// Copyright (C) 2012-2017 Miquel Sabaté Solà <mikisabate@gmail.com> +// Copyright (C) 2012-2018 Miquel Sabaté Solà <mikisabate@gmail.com> // This file is licensed under the MIT license. // See the LICENSE file. @@ -25,11 +25,16 @@ var uastrings = []struct { expected: "Mozilla:5.0 Browser:Googlebot-2.1 Bot:true Mobile:false", }, { - title: "GoogleBotSmartphone", + title: "GoogleBotSmartphone (iPhone)", ua: "Mozilla/5.0 (iPhone; CPU iPhone OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5376e Safari/8536.25 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)", expected: "Mozilla:5.0 Browser:Googlebot-2.1 Bot:true Mobile:true", }, { + title: "GoogleBotSmartphone (Android)", + ua: "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.96 Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)", + expected: "Mozilla:5.0 Browser:Googlebot-2.1 Bot:true Mobile:true", + }, + { title: "BingBot", ua: "Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)", expected: "Mozilla:5.0 Browser:bingbot-2.0 Bot:true Mobile:false", |