Cleanup and add test-build to run-test.sh.

Former-commit-id: 29d198ca03dbd23b864a96ea48348fb22728056a
This commit is contained in:
John-David Dalton
2012-09-08 14:20:46 -07:00
parent 4f7323f7fc
commit 24825b42a2
3 changed files with 11 additions and 8 deletions

View File

@@ -222,7 +222,7 @@
*/
try {
var useSourceURL = (Function('//@')(), !window.attachEvent);
} catch(e){ }
} catch(e) { }
/** Used to identify object classifications that are array-like */
var arrayLikeClasses = {};

View File

@@ -1,9 +1,14 @@
cd "$(dirname "$0")"
for cmd in rhino ringo narwhal node; do
echo ""
echo "Testing in $cmd..."
$cmd test.js
echo ""
echo "Testing in $cmd..."
$cmd test.js
done
echo ""
echo "Testing build..."
node test-build.js
echo ""
echo "Testing in a browser..."
open index.html

View File

@@ -414,7 +414,7 @@
/*--------------------------------------------------------------------------*/
QUnit.module('build');
QUnit.module('lodash build');
(function() {
var commands = [
@@ -514,9 +514,7 @@
QUnit.module('strict modifier');
(function() {
var object = {};
Object.defineProperties(object, {
var object = Object.create(Object.prototype, {
'a': { 'value': _.identify },
'b': { 'value': null }
});