@@ -13,75 +13,75 @@ var testMap = [
13
13
silent : true ,
14
14
javascriptEnabled : true
15
15
} , '_main/' ] ,
16
- [ { } , 'namespacing/' ] ,
17
- [ {
18
- math : 'parens'
19
- } , 'math/strict/' ] ,
20
- [ {
21
- math : 'parens-division'
22
- } , 'math/parens-division/' ] ,
23
- [ {
24
- math : 'always'
25
- } , 'math/always/' ] ,
26
- // Use legacy strictMath: true here to demonstrate it still works
27
- [ { strictMath : true , strictUnits : true , javascriptEnabled : true } , '../errors/eval/' ,
28
- lessTester . testErrors , null ] ,
29
- [ { strictMath : true , strictUnits : true , javascriptEnabled : true } , '../errors/parse/' ,
30
- lessTester . testErrors , null ] ,
31
- [ { math : 'strict' , strictUnits : true , javascriptEnabled : true } , 'js-type-errors/' ,
32
- lessTester . testTypeErrors , null ] ,
33
- [ { math : 'strict' , strictUnits : true , javascriptEnabled : false } , 'no-js-errors/' ,
34
- lessTester . testErrors , null ] ,
35
- [ { math : 'strict' , dumpLineNumbers : 'comments' } , 'debug/' , null ,
36
- function ( name ) { return name + '-comments' ; } ] ,
37
- [ { math : 'strict' , dumpLineNumbers : 'mediaquery' } , 'debug/' , null ,
38
- function ( name ) { return name + '-mediaquery' ; } ] ,
39
- [ { math : 'strict' , dumpLineNumbers : 'all' } , 'debug/' , null ,
40
- function ( name ) { return name + '-all' ; } ] ,
41
- // TODO: Change this to rewriteUrls: false once the relativeUrls option is removed
42
- [ { math : 'strict' , relativeUrls : false , rootpath : 'folder (1)/' } , 'static-urls/' ] ,
43
- [ { math : 'strict' , compress : true } , 'compression/' ] ,
16
+ // [{}, 'namespacing/'],
17
+ // [{
18
+ // math: 'parens'
19
+ // }, 'math/strict/'],
20
+ // [{
21
+ // math: 'parens-division'
22
+ // }, 'math/parens-division/'],
23
+ // [{
24
+ // math: 'always'
25
+ // }, 'math/always/'],
26
+ // // Use legacy strictMath: true here to demonstrate it still works
27
+ // [{strictMath: true, strictUnits: true, javascriptEnabled: true}, '../errors/eval/',
28
+ // lessTester.testErrors, null],
29
+ // [{strictMath: true, strictUnits: true, javascriptEnabled: true}, '../errors/parse/',
30
+ // lessTester.testErrors, null],
31
+ // [{math: 'strict', strictUnits: true, javascriptEnabled: true}, 'js-type-errors/',
32
+ // lessTester.testTypeErrors, null],
33
+ // [{math: 'strict', strictUnits: true, javascriptEnabled: false}, 'no-js-errors/',
34
+ // lessTester.testErrors, null],
35
+ // [{math: 'strict', dumpLineNumbers: 'comments'}, 'debug/', null,
36
+ // function(name) { return name + '-comments'; }],
37
+ // [{math: 'strict', dumpLineNumbers: 'mediaquery'}, 'debug/', null,
38
+ // function(name) { return name + '-mediaquery'; }],
39
+ // [{math: 'strict', dumpLineNumbers: 'all'}, 'debug/', null,
40
+ // function(name) { return name + '-all'; }],
41
+ // // TODO: Change this to rewriteUrls: false once the relativeUrls option is removed
42
+ // [{math: 'strict', relativeUrls: false, rootpath: 'folder (1)/'}, 'static-urls/'],
43
+ // [{math: 'strict', compress: true}, 'compression/'],
44
44
45
- [ { math : 0 , strictUnits : true } , 'units/strict/' ] ,
46
- [ { math : 0 , strictUnits : false } , 'units/no-strict/' ] ,
45
+ // [{math: 0, strictUnits: true}, 'units/strict/'],
46
+ // [{math: 0, strictUnits: false}, 'units/no-strict/'],
47
47
48
- [ { math : 'strict' , strictUnits : true , sourceMap : true , globalVars : true } , 'sourcemaps/' ,
49
- lessTester . testSourcemap , null , null ,
50
- function ( filename , type , baseFolder ) {
51
- if ( type === 'vars' ) {
52
- return path . join ( baseFolder , filename ) + '.json' ;
53
- }
54
- return path . join ( 'test/sourcemaps' , filename ) + '.json' ;
55
- } ] ,
48
+ // [{math: 'strict', strictUnits: true, sourceMap: true, globalVars: true }, 'sourcemaps/',
49
+ // lessTester.testSourcemap, null, null,
50
+ // function(filename, type, baseFolder) {
51
+ // if (type === 'vars') {
52
+ // return path.join(baseFolder, filename) + '.json';
53
+ // }
54
+ // return path.join('test/sourcemaps', filename) + '.json';
55
+ // }],
56
56
57
- [ { math : 'strict' , strictUnits : true , globalVars : true } , '_main/import/json/' ,
58
- lessTester . testImports , null , true ,
59
- function ( filename , type , baseFolder ) {
60
- return path . join ( baseFolder , filename ) + '.json' ;
61
- } ] ,
62
- [ { math : 'strict' , strictUnits : true , sourceMap : { sourceMapFileInline : true } } ,
63
- 'sourcemaps-empty/' , lessTester . testEmptySourcemap ] ,
64
- [ { math : 'strict' , strictUnits : true , sourceMap : { disableSourcemapAnnotation : true } } ,
65
- 'sourcemaps-disable-annotation/' , lessTester . testSourcemapWithoutUrlAnnotation ] ,
66
- [ { math : 'strict' , strictUnits : true , sourceMap : true } ,
67
- 'sourcemaps-variable-selector/' , lessTester . testSourcemapWithVariableInSelector ] ,
68
- [ { globalVars : true , banner : '/**\n * Test\n */\n' } , 'globalVars/' ,
69
- null , null , null , function ( name , type , baseFolder ) { return path . join ( baseFolder , name ) + '.json' ; } ] ,
70
- [ { modifyVars : true } , 'modifyVars/' ,
71
- null , null , null , function ( name , type , baseFolder ) { return path . join ( baseFolder , name ) + '.json' ; } ] ,
72
- [ { urlArgs : '424242' } , 'url-args/' ] ,
73
- [ { rewriteUrls : 'all' } , 'rewrite-urls-all/' ] ,
74
- [ { rewriteUrls : 'local' } , 'rewrite-urls-local/' ] ,
75
- [ { rootpath : 'http://example.com/assets/css/' , rewriteUrls : 'all' } , 'rootpath-rewrite-urls-all/' ] ,
76
- [ { rootpath : 'http://example.com/assets/css/' , rewriteUrls : 'local' } , 'rootpath-rewrite-urls-local/' ] ,
77
- [ { paths : [ 'data/' , '_main/import/' ] } , 'include-path/' ] ,
78
- [ { paths : 'data/' } , 'include-path-string/' ] ,
79
- [ { plugin : 'test/plugins/postprocess/' } , 'postProcessorPlugin/' ] ,
80
- [ { plugin : 'test/plugins/preprocess/' } , 'preProcessorPlugin/' ] ,
81
- [ { plugin : 'test/plugins/visitor/' } , 'visitorPlugin/' ] ,
82
- [ { plugin : 'test/plugins/filemanager/' } , 'filemanagerPlugin/' ] ,
83
- [ { math : 0 } , '3rd-party/' ] ,
84
- [ { processImports : false } , 'process-imports/' ]
57
+ // [{math: 'strict', strictUnits: true, globalVars: true }, '_main/import/json/',
58
+ // lessTester.testImports, null, true,
59
+ // function(filename, type, baseFolder) {
60
+ // return path.join(baseFolder, filename) + '.json';
61
+ // }],
62
+ // [{math: 'strict', strictUnits: true, sourceMap: {sourceMapFileInline: true}},
63
+ // 'sourcemaps-empty/', lessTester.testEmptySourcemap],
64
+ // [{math: 'strict', strictUnits: true, sourceMap: {disableSourcemapAnnotation: true}},
65
+ // 'sourcemaps-disable-annotation/', lessTester.testSourcemapWithoutUrlAnnotation],
66
+ // [{math: 'strict', strictUnits: true, sourceMap: true},
67
+ // 'sourcemaps-variable-selector/', lessTester.testSourcemapWithVariableInSelector],
68
+ // [{globalVars: true, banner: '/**\n * Test\n */\n'}, 'globalVars/',
69
+ // null, null, null, function(name, type, baseFolder) { return path.join(baseFolder, name) + '.json'; }],
70
+ // [{modifyVars: true}, 'modifyVars/',
71
+ // null, null, null, function(name, type, baseFolder) { return path.join(baseFolder, name) + '.json'; }],
72
+ // [{urlArgs: '424242'}, 'url-args/'],
73
+ // [{rewriteUrls: 'all'}, 'rewrite-urls-all/'],
74
+ // [{rewriteUrls: 'local'}, 'rewrite-urls-local/'],
75
+ // [{rootpath: 'http://example.com/assets/css/', rewriteUrls: 'all'}, 'rootpath-rewrite-urls-all/'],
76
+ // [{rootpath: 'http://example.com/assets/css/', rewriteUrls: 'local'}, 'rootpath-rewrite-urls-local/'],
77
+ // [{paths: ['data/', '_main/import/']}, 'include-path/'],
78
+ // [{paths: 'data/'}, 'include-path-string/'],
79
+ // [{plugin: 'test/plugins/postprocess/'}, 'postProcessorPlugin/'],
80
+ // [{plugin: 'test/plugins/preprocess/'}, 'preProcessorPlugin/'],
81
+ // [{plugin: 'test/plugins/visitor/'}, 'visitorPlugin/'],
82
+ // [{plugin: 'test/plugins/filemanager/'}, 'filemanagerPlugin/'],
83
+ // [{math: 0}, '3rd-party/'],
84
+ // [{ processImports: false }, 'process-imports/']
85
85
] ;
86
86
testMap . forEach ( function ( args ) {
87
87
lessTester . runTestSet . apply ( lessTester , args )
0 commit comments