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 { 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 = {};

View File

@@ -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

View File

@@ -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 }
}); });