File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 11( function ( $ ) {
22
3+ var reset , jshintLoaded ;
4+
35window . TestHelpers = { } ;
46
57function includeStyle ( url ) {
@@ -10,6 +12,15 @@ function includeScript( url ) {
1012 document . write ( "<script src='../../../" + url + "'></script>" ) ;
1113}
1214
15+ reset = QUnit . reset ;
16+ QUnit . reset = function ( ) {
17+ // Ensure jQuery events and data on the fixture are properly removed
18+ jQuery ( "#qunit-fixture" ) . empty ( ) ;
19+ // Let QUnit reset the fixture
20+ reset . apply ( this , arguments ) ;
21+ } ;
22+
23+
1324QUnit . config . requireExpects = true ;
1425
1526QUnit . config . urlConfig . push ( {
@@ -38,7 +49,7 @@ QUnit.config.urlConfig.push({
3849 tooltip : "Skip running JSHint, e.g. within TestSwarm, where Jenkins runs it already"
3950} ) ;
4051
41- var jshintLoaded = false ;
52+ jshintLoaded = false ;
4253TestHelpers . testJshint = function ( module ) {
4354 if ( QUnit . urlParams . nojshint ) {
4455 return ;
You can’t perform that action at this time.
0 commit comments