|
1 | | -var JqueryUi = require( "../lib/jquery-ui" ); |
| 1 | +var JqueryUi = require( "../lib/jquery-ui" ), |
| 2 | + semver = require( "semver" ); |
2 | 3 |
|
3 | 4 | function notNull( data ) { |
4 | 5 | if ( data instanceof Buffer ) { |
@@ -26,37 +27,16 @@ var tests = { |
26 | 27 | test.ok( notNull( file.data ), "Null file \"" + file.path + "\"." ); |
27 | 28 | }); |
28 | 29 | test.done(); |
29 | | - }, |
30 | | - "test: demo files present": function( test ) { |
31 | | - var files = this.jqueryUi.files(); |
32 | | - test.expect( files.demoFiles.length ); |
33 | | - files.demoFiles.forEach(function( file ) { |
34 | | - test.ok( notNull( file.data ), "Null file \"" + file.path + "\"." ); |
35 | | - }); |
36 | | - test.done(); |
37 | | - }, |
38 | | - "test: doc files present": function( test ) { |
39 | | - var files = this.jqueryUi.files(); |
40 | | - test.expect( files.docFiles.length ); |
41 | | - files.docFiles.forEach(function( file ) { |
42 | | - test.ok( notNull( file.data ), "Null file \"" + file.path + "\"." ); |
43 | | - }); |
44 | | - test.done(); |
45 | | - }, |
46 | | - "test: base theme files present": function( test ) { |
47 | | - var files = this.jqueryUi.files(); |
48 | | - test.expect( files.baseThemeFiles.length ); |
49 | | - files.baseThemeFiles.forEach(function( file ) { |
50 | | - test.ok( notNull( file.data ), "Null file \"" + file.path + "\"." ); |
51 | | - }); |
52 | | - test.done(); |
53 | 30 | } |
54 | 31 | }; |
55 | 32 |
|
56 | 33 | module.exports = {}; |
57 | 34 |
|
58 | 35 | // Build tests for each jqueryUi release |
59 | | -JqueryUi.all().forEach(function( jqueryUi ) { |
| 36 | +JqueryUi.all().filter(function( jqueryUi ) { |
| 37 | + // Filter supported releases only |
| 38 | + return semver.gte( jqueryUi.pkg.version, "1.11.0-a" ); |
| 39 | +}).forEach(function( jqueryUi ) { |
60 | 40 | function deepTestBuild( obj, tests ) { |
61 | 41 | Object.keys( tests ).forEach(function( i ) { |
62 | 42 | if ( typeof tests[ i ] === "object" ) { |
|
0 commit comments