Tests: fix Safari userAgent detection

(cherry-picked from 3f3f4589)
parent 8366f60c
...@@ -378,7 +378,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec ...@@ -378,7 +378,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec
"submitBubbles": false, "submitBubbles": false,
"tbody": false "tbody": false
}; };
} else if ( /7\.0\.\d+ safari/i.test( userAgent ) ) { } else if ( /7\.0(\.\d+|) safari/i.test( userAgent ) ) {
expected = { expected = {
"ajax": true, "ajax": true,
"appendChecked": true, "appendChecked": true,
...@@ -415,7 +415,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec ...@@ -415,7 +415,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec
"submitBubbles": true, "submitBubbles": true,
"tbody": true "tbody": true
}; };
} else if ( /6\.0\.\d+ safari/i.test( userAgent ) ) { } else if ( /6\.0(\.\d+|) safari/i.test( userAgent ) ) {
expected = { expected = {
"ajax": true, "ajax": true,
"appendChecked": true, "appendChecked": true,
...@@ -452,7 +452,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec ...@@ -452,7 +452,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec
"submitBubbles": true, "submitBubbles": true,
"tbody": true "tbody": true
}; };
} else if ( /5\.1\.1 safari/i.test( userAgent ) ) { } else if ( /5\.1(\.\d+|) safari/i.test( userAgent ) ) {
expected = { expected = {
"ajax": true, "ajax": true,
"appendChecked": false, "appendChecked": false,
......
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