File tree Expand file tree Collapse file tree 4 files changed +48
-16
lines changed Expand file tree Collapse file tree 4 files changed +48
-16
lines changed Original file line number Diff line number Diff line change 14
14
< link rel ="stylesheet " href ="../../../external/qunit.css " type ="text/css "/>
15
15
< script type ="text/javascript " src ="../../../external/qunit.js "> </ script >
16
16
< script type ="text/javascript " src ="../../jquery.simulate.js "> </ script >
17
- < script type ="text/javascript " src ="../testsuite.js "> </ script >
18
17
19
- <!--
20
18
< script type ="text/javascript " src ="droppable_core.js "> </ script >
21
19
< script type ="text/javascript " src ="droppable_defaults.js "> </ script >
22
20
< script type ="text/javascript " src ="droppable_events.js "> </ script >
23
21
< script type ="text/javascript " src ="droppable_methods.js "> </ script >
24
22
< script type ="text/javascript " src ="droppable_options.js "> </ script >
25
23
< script type ="text/javascript " src ="droppable_tickets.js "> </ script >
26
- -->
27
- < script type ="text/javascript "> test ( "droppable" , function ( ) { ok ( true , "disabled droppable testsuite" ) ; } ) ; </ script >
24
+
25
+ < script type ="text/javascript ">
26
+ // disable this stale testsuite for testswarm only
27
+ var url = window . location . search ;
28
+ url = decodeURIComponent ( url . slice ( url . indexOf ( "swarmURL=" ) + 9 ) ) ;
29
+ if ( url && url . indexOf ( "http" ) == 0 ) {
30
+ // reset config to kill previous tests; make sure testsuite.js is loaded afterwards to init the testswarm script
31
+ QUnit . init ( ) ;
32
+ test ( "droppable" , function ( ) { ok ( true , "disabled droppable testsuite" ) ; } ) ;
33
+ }
34
+ </ script >
35
+ < script type ="text/javascript " src ="../testsuite.js "> </ script >
28
36
</ head >
29
37
< body >
30
38
Original file line number Diff line number Diff line change 15
15
< link rel ="stylesheet " href ="../../../external/qunit.css " type ="text/css "/>
16
16
< script type ="text/javascript " src ="../../../external/qunit.js "> </ script >
17
17
< script type ="text/javascript " src ="../../jquery.simulate.js "> </ script >
18
- < script type ="text/javascript " src ="../testsuite.js "> </ script >
19
18
20
- <!--
21
19
< script type ="text/javascript " src ="resizable_core.js "> </ script >
22
20
< script type ="text/javascript " src ="resizable_defaults.js "> </ script >
23
21
< script type ="text/javascript " src ="resizable_events.js "> </ script >
24
22
< script type ="text/javascript " src ="resizable_methods.js "> </ script >
25
23
< script type ="text/javascript " src ="resizable_options.js "> </ script >
26
24
< script type ="text/javascript " src ="resizable_tickets.js "> </ script >
27
- -->
28
- < script type ="text/javascript "> test ( "resizable" , function ( ) { ok ( true , "disabled resizable testsuite" ) ; } ) ; </ script >
25
+
26
+ < script type ="text/javascript ">
27
+ // disable this stale testsuite for testswarm only
28
+ var url = window . location . search ;
29
+ url = decodeURIComponent ( url . slice ( url . indexOf ( "swarmURL=" ) + 9 ) ) ;
30
+ if ( url && url . indexOf ( "http" ) == 0 ) {
31
+ // reset config to kill previous tests; make sure testsuite.js is loaded afterwards to init the testswarm script
32
+ QUnit . init ( ) ;
33
+ test ( "resizable" , function ( ) { ok ( true , "disabled resizable testsuite" ) ; } ) ;
34
+ }
35
+ </ script >
36
+ < script type ="text/javascript " src ="../testsuite.js "> </ script >
29
37
</ head >
30
38
< body >
31
39
Original file line number Diff line number Diff line change 13
13
< link rel ="stylesheet " href ="../../../external/qunit.css " type ="text/css "/>
14
14
< script type ="text/javascript " src ="../../../external/qunit.js "> </ script >
15
15
< script type ="text/javascript " src ="../../jquery.simulate.js "> </ script >
16
- < script type ="text/javascript " src ="../testsuite.js "> </ script >
17
16
18
- <!--
19
17
< script type ="text/javascript " src ="selectable_core.js "> </ script >
20
18
< script type ="text/javascript " src ="selectable_defaults.js "> </ script >
21
19
< script type ="text/javascript " src ="selectable_events.js "> </ script >
22
20
< script type ="text/javascript " src ="selectable_methods.js "> </ script >
23
21
< script type ="text/javascript " src ="selectable_options.js "> </ script >
24
22
< script type ="text/javascript " src ="selectable_tickets.js "> </ script >
25
- -->
26
- < script type ="text/javascript "> test ( "selectable" , function ( ) { ok ( true , "disabled selectable testsuite" ) ; } ) ; </ script >
23
+
24
+ < script type ="text/javascript ">
25
+ // disable this stale testsuite for testswarm only
26
+ var url = window . location . search ;
27
+ url = decodeURIComponent ( url . slice ( url . indexOf ( "swarmURL=" ) + 9 ) ) ;
28
+ if ( url && url . indexOf ( "http" ) == 0 ) {
29
+ // reset config to kill previous tests; make sure testsuite.js is loaded afterwards to init the testswarm script
30
+ QUnit . init ( ) ;
31
+ test ( "selectable" , function ( ) { ok ( true , "disabled selectable testsuite" ) ; } ) ;
32
+ }
33
+ </ script >
34
+ < script type ="text/javascript " src ="../testsuite.js "> </ script >
27
35
</ head >
28
36
< body >
29
37
Original file line number Diff line number Diff line change 13
13
< link rel ="stylesheet " href ="../../../external/qunit.css " type ="text/css "/>
14
14
< script type ="text/javascript " src ="../../../external/qunit.js "> </ script >
15
15
< script type ="text/javascript " src ="../../jquery.simulate.js "> </ script >
16
- < script type ="text/javascript " src ="../testsuite.js "> </ script >
17
16
18
- <!--
19
17
< script type ="text/javascript " src ="sortable_core.js "> </ script >
20
18
< script type ="text/javascript " src ="sortable_defaults.js "> </ script >
21
19
< script type ="text/javascript " src ="sortable_events.js "> </ script >
22
20
< script type ="text/javascript " src ="sortable_methods.js "> </ script >
23
21
< script type ="text/javascript " src ="sortable_options.js "> </ script >
24
22
< script type ="text/javascript " src ="sortable_tickets.js "> </ script >
25
- -->
26
- < script type ="text/javascript "> test ( "sortable" , function ( ) { ok ( true , "disabled sortable testsuite" ) ; } ) ; </ script >
23
+
24
+ < script type ="text/javascript ">
25
+ // disable this stale testsuite for testswarm only
26
+ var url = window . location . search ;
27
+ url = decodeURIComponent ( url . slice ( url . indexOf ( "swarmURL=" ) + 9 ) ) ;
28
+ if ( url && url . indexOf ( "http" ) == 0 ) {
29
+ // reset config to kill previous tests; make sure testsuite.js is loaded afterwards to init the testswarm script
30
+ QUnit . init ( ) ;
31
+ test ( "sortable" , function ( ) { ok ( true , "disabled sortable testsuite" ) ; } ) ;
32
+ }
33
+ </ script >
34
+ < script type ="text/javascript " src ="../testsuite.js "> </ script >
27
35
</ head >
28
36
< body >
29
37
You can’t perform that action at this time.
0 commit comments