mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 11:27:50 +00:00
Cleanup and add test-build to run-test.sh.
Former-commit-id: 29d198ca03dbd23b864a96ea48348fb22728056a
This commit is contained in:
@@ -222,7 +222,7 @@
|
|||||||
*/
|
*/
|
||||||
try {
|
try {
|
||||||
var useSourceURL = (Function('//@')(), !window.attachEvent);
|
var useSourceURL = (Function('//@')(), !window.attachEvent);
|
||||||
} catch(e){ }
|
} catch(e) { }
|
||||||
|
|
||||||
/** Used to identify object classifications that are array-like */
|
/** Used to identify object classifications that are array-like */
|
||||||
var arrayLikeClasses = {};
|
var arrayLikeClasses = {};
|
||||||
|
|||||||
@@ -1,9 +1,14 @@
|
|||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
for cmd in rhino ringo narwhal node; do
|
for cmd in rhino ringo narwhal node; do
|
||||||
echo ""
|
echo ""
|
||||||
echo "Testing in $cmd..."
|
echo "Testing in $cmd..."
|
||||||
$cmd test.js
|
$cmd test.js
|
||||||
done
|
done
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo "Testing build..."
|
||||||
|
node test-build.js
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Testing in a browser..."
|
echo "Testing in a browser..."
|
||||||
open index.html
|
open index.html
|
||||||
|
|||||||
@@ -414,7 +414,7 @@
|
|||||||
|
|
||||||
/*--------------------------------------------------------------------------*/
|
/*--------------------------------------------------------------------------*/
|
||||||
|
|
||||||
QUnit.module('build');
|
QUnit.module('lodash build');
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
var commands = [
|
var commands = [
|
||||||
@@ -514,9 +514,7 @@
|
|||||||
QUnit.module('strict modifier');
|
QUnit.module('strict modifier');
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
var object = {};
|
var object = Object.create(Object.prototype, {
|
||||||
|
|
||||||
Object.defineProperties(object, {
|
|
||||||
'a': { 'value': _.identify },
|
'a': { 'value': _.identify },
|
||||||
'b': { 'value': null }
|
'b': { 'value': null }
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user