Use @license in the copyright/license header. [closes #138]

Former-commit-id: 3b924dad24d56e0fd33e4df1341b09c6165521a1
This commit is contained in:
John-David Dalton
2012-12-22 14:51:28 -06:00
parent bd8f882c94
commit bda4747e9c
12 changed files with 307 additions and 320 deletions

View File

@@ -569,8 +569,8 @@
QUnit.module('independent builds');
(function() {
var reComment = /\/\*![\s\S]+?\*\//,
reCustom = /Custom Build/;
var reCustom = /Custom Build/,
reLicense = /^\/\**\s+\* @license[\s\S]+?\*\/\n/;
asyncTest('debug only', function() {
var start = _.once(QUnit.start);
@@ -585,7 +585,7 @@
build(['-d', '-s', 'backbone'], function(source, filePath) {
equal(path.basename(filePath, '.js'), 'lodash.custom');
var comment = source.match(reComment);
var comment = source.match(reLicense);
ok(reCustom.test(comment));
start();
});
@@ -604,7 +604,7 @@
build(['-m', '-s', 'backbone'], function(source, filePath) {
equal(path.basename(filePath, '.js'), 'lodash.custom.min');
var comment = source.match(reComment);
var comment = source.match(reLicense);
ok(reCustom.test(comment));
start();
});
@@ -985,35 +985,6 @@
/*--------------------------------------------------------------------------*/
QUnit.module('minify underscore');
(function() {
asyncTest('`node minify underscore.js`', function() {
var source = fs.readFileSync(path.join(__dirname, '..', 'vendor', 'underscore', 'underscore.js'), 'utf8'),
start = _.once(QUnit.start);
minify(source, {
'isSilent': true,
'workingName': 'underscore.min',
'onComplete': function(result) {
var context = createContext();
try {
vm.runInContext(result, context);
} catch(e) {
console.log(e);
}
var underscore = context._ || {};
ok(_.isString(underscore.VERSION));
ok(!/Lo-Dash/.test(result) && result.match(/\n/g).length < source.match(/\n/g).length);
start();
}
});
});
}());
/*--------------------------------------------------------------------------*/
QUnit.module('mobile build');
(function() {