Skip to content

Commit

Permalink
Ensure Firefox browser doesn't necessarily imply Firefox OS
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Dec 11, 2014
1 parent 1418435 commit 9c532a9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/detect.html
Expand Up @@ -384,6 +384,7 @@ <h1>Zepto Detect unit tests</h1>
t.assertEqual('6.0.2', browser.version)

t.assertTrue(browser.firefox)
t.assertFalse(!!os.firefoxos)
})

detect(UA.Firefox_13_Tablet, function(os, browser){
Expand All @@ -392,6 +393,7 @@ <h1>Zepto Detect unit tests</h1>
t.assertTrue(os.android)
t.assertFalse(os.phone)
t.assertTrue(os.tablet)
t.assertFalse(!!os.firefoxos)
})

detect(UA.Firefox_13_Phone, function(os, browser){
Expand All @@ -400,6 +402,7 @@ <h1>Zepto Detect unit tests</h1>
t.assertTrue(os.android)
t.assertTrue(os.phone)
t.assertFalse(os.tablet)
t.assertFalse(!!os.firefoxos)
})

detect(UA.Firefox_Os_Phone, function(os, browser){
Expand Down

0 comments on commit 9c532a9

Please sign in to comment.