Skip to content

Commit

Permalink
Correct QUnit check, this might fix swarm failures
Browse files Browse the repository at this point in the history
  • Loading branch information
markelog committed Aug 19, 2013
1 parent f92a446 commit 42cd19f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/jquery.js
Expand Up @@ -5,8 +5,8 @@

var i, len,
// Parent is the current window if not an iframe, which is fine
src = /^(.*)test\//.exec( parent.location.pathname )[1],
QUnit = QUnit || parent.QUnit,
src = window.location.pathname.split( "test" )[ 0 ],
QUnit = window.QUnit || parent.QUnit,
require = require || parent.require;

// Config parameter to force basic code paths
Expand Down

0 comments on commit 42cd19f

Please sign in to comment.