mirror of
https://github.com/less/less.js.git
synced 2026-01-21 05:08:10 -05:00
do not do bom test unless prep is called - in order to allow plugins to continue to use less acceptance test system without bom tests.
This commit is contained in:
@@ -3,7 +3,8 @@
|
||||
module.exports = function() {
|
||||
var path = require('path'),
|
||||
fs = require('fs'),
|
||||
copyBom = require('./copy-bom')();
|
||||
copyBom = require('./copy-bom')(),
|
||||
doBomTest = false;
|
||||
|
||||
var less = require('../lib/less-node');
|
||||
var stylize = require('../lib/less-node/lessc-helper').stylize;
|
||||
@@ -151,12 +152,15 @@ module.exports = function() {
|
||||
|
||||
function prepBomTest() {
|
||||
copyBom.copyFolderWithBom(normalFolder, bomFolder);
|
||||
doBomTest = true;
|
||||
}
|
||||
|
||||
function runTestSet(options, foldername, verifyFunction, nameModifier, doReplacements, getFilename) {
|
||||
var options2 = options ? JSON.parse(JSON.stringify(options)) : {};
|
||||
runTestSetInternal(normalFolder, options, foldername, verifyFunction, nameModifier, doReplacements, getFilename);
|
||||
runTestSetInternal(bomFolder, options2, foldername, verifyFunction, nameModifier, doReplacements, getFilename);
|
||||
if (doBomTest) {
|
||||
runTestSetInternal(bomFolder, options2, foldername, verifyFunction, nameModifier, doReplacements, getFilename);
|
||||
}
|
||||
}
|
||||
|
||||
function runTestSetNormalOnly(options, foldername, verifyFunction, nameModifier, doReplacements, getFilename) {
|
||||
|
||||
Reference in New Issue
Block a user