aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/support.js
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2016-04-10 15:42:44 -0400
committerDave Methvin <dave.methvin@gmail.com>2016-04-11 13:32:51 -0400
commite5ffcb0838c894e26f4ff32dfec162cf624d8d7d (patch)
tree1a57c3a0cbf026dcd98d1f821dc9ed6f848f46d3 /test/unit/support.js
parent08d73d7f9c7eec2f0abd14d00bf903625728ef17 (diff)
downloadjquery-e5ffcb0838c894e26f4ff32dfec162cf624d8d7d.tar.gz
jquery-e5ffcb0838c894e26f4ff32dfec162cf624d8d7d.zip
Tests: Refactor testIframe() to make it DRYer and more consistent
Ref gh-3040 Closes gh-3049
Diffstat (limited to 'test/unit/support.js')
-rw-r--r--test/unit/support.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/unit/support.js b/test/unit/support.js
index 3e6af1ae7..ff5d66f87 100644
--- a/test/unit/support.js
+++ b/test/unit/support.js
@@ -18,10 +18,10 @@ function getComputedSupport( support ) {
}
if ( jQuery.css ) {
- testIframeWithCallback(
+ testIframe(
"body background is not lost if set prior to loading jQuery (#9239)",
"support/bodyBackground.html",
- function( color, support, assert ) {
+ function( assert, jQuery, window, document, color, support ) {
assert.expect( 2 );
var okValue = {
"#000000": true,
@@ -37,10 +37,10 @@ if ( jQuery.css ) {
// This test checks CSP only for browsers with "Content-Security-Policy" header support
// i.e. no old WebKit or old Firefox
-testIframeWithCallback(
+testIframe(
"Check CSP (https://developer.mozilla.org/en-US/docs/Security/CSP) restrictions",
"support/csp.php",
- function( support, assert ) {
+ function( assert, jQuery, window, document, support ) {
var done = assert.async();
assert.expect( 2 );