diff options
| author | Misko Hevery | 2010-08-18 16:23:12 -0700 |
|---|---|---|
| committer | Misko Hevery | 2010-08-18 17:26:33 -0700 |
| commit | 5ddd8d958686c5075b6c58b700f19b4bdea90e1d (patch) | |
| tree | f43da0153fb41244425c00fc728a17028671ce03 /test/ParserTest.js | |
| parent | 1087270c95f6bbafd3715c9a5eecdafac79c9daa (diff) | |
| download | angular.js-5ddd8d958686c5075b6c58b700f19b4bdea90e1d.tar.bz2 | |
stringify names for better compression, remove dead functions, removed underscore.js compatibility
Diffstat (limited to 'test/ParserTest.js')
| -rw-r--r-- | test/ParserTest.js | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/test/ParserTest.js b/test/ParserTest.js index d7fd2f94..8d690ecf 100644 --- a/test/ParserTest.js +++ b/test/ParserTest.js @@ -409,34 +409,6 @@ ParserTest.prototype.testMissingThrowsError = function() { } }; -ParserTest.prototype.testItShouldCreateClosureFunctionWithNoArguments = function () { - var scope = createScope(); - var fn = scope.$eval("{:value}"); - scope.$set("value", 1); - assertEquals(1, fn()); - scope.$set("value", 2); - assertEquals(2, fn()); - fn = scope.$eval("{():value}"); - assertEquals(2, fn()); -}; - -ParserTest.prototype.testItShouldCreateClosureFunctionWithArguments = function () { - var scope = createScope(); - scope.$set("value", 1); - var fn = scope.$eval("{(a):value+a}"); - assertEquals(11, fn(10)); - scope.$set("value", 2); - assertEquals(12, fn(10)); - fn = scope.$eval("{(a,b):value+a+b}"); - assertEquals(112, fn(10, 100)); -}; - -ParserTest.prototype.testItShouldHaveDefaultArugument = function(){ - var scope = createScope(); - var fn = scope.$eval("{:$*2}"); - assertEquals(4, fn(2)); -}; - ParserTest.prototype.testDoubleNegationBug = function (){ var scope = createScope(); assertEquals(true, scope.$eval('true')); |
