From 24825b42a284c93ee5b16e761425a568f3e1fdfb Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sat, 8 Sep 2012 14:20:46 -0700 Subject: [PATCH] Cleanup and add test-build to run-test.sh. Former-commit-id: 29d198ca03dbd23b864a96ea48348fb22728056a --- lodash.js | 2 +- test/run-test.sh | 11 ++++++++--- test/test-build.js | 6 ++---- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/lodash.js b/lodash.js index 58dd2955b..c3eb71e7e 100644 --- a/lodash.js +++ b/lodash.js @@ -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 = {}; diff --git a/test/run-test.sh b/test/run-test.sh index 43424e437..034c7092d 100755 --- a/test/run-test.sh +++ b/test/run-test.sh @@ -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 diff --git a/test/test-build.js b/test/test-build.js index 764036e13..d4b52283c 100644 --- a/test/test-build.js +++ b/test/test-build.js @@ -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 } });