diff options
| author | Misko Hevery | 2010-02-12 14:16:33 -0800 |
|---|---|---|
| committer | Misko Hevery | 2010-02-12 14:17:44 -0800 |
| commit | 6cc946413622f1cef97997849e73a06a00f876fd (patch) | |
| tree | b0e4e10405fc8cd91e6d55507b3a6a02528928a9 /test/ScopeTest.js | |
| parent | b2a8a089b6c31c8ff176c2483f659caae4f71afb (diff) | |
| download | angular.js-6cc946413622f1cef97997849e73a06a00f876fd.tar.bz2 | |
Fixed negation grouping bug
Make 'this' of validation be scope
Diffstat (limited to 'test/ScopeTest.js')
| -rw-r--r-- | test/ScopeTest.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ScopeTest.js b/test/ScopeTest.js index b066f0cb..24febf19 100644 --- a/test/ScopeTest.js +++ b/test/ScopeTest.js @@ -83,8 +83,9 @@ ScopeTest.prototype.testGlobalFunctionAccess =function(){ ScopeTest.prototype.testValidationEval = function(){ expectAsserts(4); var scope = new Scope(); + scope.set("name", "misko"); angular.validator.testValidator = function(value, expect){ - assertEquals(scope, this.scope); + assertEquals("misko", this.name); return value == expect ? null : "Error text"; }; |
