Fix tests for testswarm

This commit is contained in:
Timmy Willison
2013-08-19 15:01:00 -04:00
parent f5f36dbd89
commit 04f12635c0

7
test/jquery.js vendored
View File

@@ -4,10 +4,9 @@
/* jshint eqeqeq: false */
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,
require = require || parent.require;
src = /^(.*)test\//.exec( window.location.pathname )[1],
QUnit = window.QUnit || parent.QUnit,
require = window.require || parent.require;
// Config parameter to force basic code paths
QUnit.config.urlConfig.push({