(function( $ ) {
+var reset, jshintLoaded;
+
window.TestHelpers = {};
function includeStyle( url ) {
document.write( "<script src='../../../" + url + "'></script>" );
}
+reset = QUnit.reset;
+QUnit.reset = function() {
+ // Ensure jQuery events and data on the fixture are properly removed
+ jQuery("#qunit-fixture").empty();
+ // Let QUnit reset the fixture
+ reset.apply( this, arguments );
+};
+
+
QUnit.config.requireExpects = true;
QUnit.config.urlConfig.push({
tooltip: "Skip running JSHint, e.g. within TestSwarm, where Jenkins runs it already"
});
-var jshintLoaded = false;
+jshintLoaded = false;
TestHelpers.testJshint = function( module ) {
if ( QUnit.urlParams.nojshint ) {
return;