Permalink
Browse files

Tests: fix Safari userAgent detection

  • Loading branch information...
1 parent 37d036a commit 3f3f458974fe0bdccfe9042c9503fd2d03e2f6ff @mgol mgol committed Jan 22, 2014
Showing with 3 additions and 3 deletions.
  1. +3 −3 test/unit/support.js
View
@@ -131,7 +131,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec
"radioValue": false,
"reliableMarginRight": true
};
- } else if ( /7\.0\.\d+ safari/i.test( userAgent ) ) {
+ } else if ( /7\.0(\.\d+|) safari/i.test( userAgent ) ) {
expected = {
"ajax": true,
"boxSizingReliable": true,
@@ -147,7 +147,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec
"radioValue": true,
"reliableMarginRight": true
};
- } else if ( /6\.0\.\d+ safari/i.test( userAgent ) ) {
+ } else if ( /6\.0(\.\d+|) safari/i.test( userAgent ) ) {
expected = {
"ajax": true,
"boxSizingReliable": true,
@@ -163,7 +163,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec
"radioValue": true,
"reliableMarginRight": true
};
- } else if ( /5\.1\.\d+ safari/i.test( userAgent ) ) {
+ } else if ( /5\.1(\.\d+|) safari/i.test( userAgent ) ) {
expected = {
"ajax":true,
"boxSizingReliable": true,

0 comments on commit 3f3f458

Please sign in to comment.