No ticket. Remove version sniffing from test/unit/support.js, browsers got updated.

parent 14272ba9
...@@ -79,11 +79,10 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec ...@@ -79,11 +79,10 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec
); );
(function() { (function() {
var expected, version, var expected,
userAgent = window.navigator.userAgent; userAgent = window.navigator.userAgent;
if ( /chrome/i.test( userAgent ) ) { if ( /chrome/i.test( userAgent ) ) {
version = userAgent.match( /chrome\/(\d+)/i )[ 1 ];
expected = { expected = {
"ajax": true, "ajax": true,
"appendChecked": true, "appendChecked": true,
...@@ -111,7 +110,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec ...@@ -111,7 +110,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec
"optDisabled": true, "optDisabled": true,
"optSelected": true, "optSelected": true,
"ownLast": false, "ownLast": false,
"pixelPosition": version >= 28, "pixelPosition": true,
"radioValue": true, "radioValue": true,
"reliableHiddenOffsets": true, "reliableHiddenOffsets": true,
"reliableMarginRight": true, "reliableMarginRight": true,
...@@ -417,12 +416,11 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec ...@@ -417,12 +416,11 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec
"tbody": true "tbody": true
}; };
} else if ( /firefox/i.test( userAgent ) ) { } else if ( /firefox/i.test( userAgent ) ) {
version = userAgent.match( /firefox\/(\d+)/i )[ 1 ];
expected = { expected = {
"ajax": true, "ajax": true,
"appendChecked": true, "appendChecked": true,
"boxSizing": true, "boxSizing": true,
"boxSizingReliable": version >= 23, "boxSizingReliable": true,
"changeBubbles": true, "changeBubbles": true,
"checkClone": true, "checkClone": true,
"checkOn": true, "checkOn": true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment