diff options
| author | Adam Abrons | 2010-01-05 16:36:58 -0800 | 
|---|---|---|
| committer | Adam Abrons | 2010-01-05 16:36:58 -0800 | 
| commit | c9c176a53b1632ca2b1c6ed27382ab72ac21d45d (patch) | |
| tree | b5f719a095c03ee9f8b2721ffdaf1e5ff8c11b41 /test/formsTest.js | |
| download | angular.js-c9c176a53b1632ca2b1c6ed27382ab72ac21d45d.tar.bz2 | |
angular.js
Diffstat (limited to 'test/formsTest.js')
| -rw-r--r-- | test/formsTest.js | 22 | 
1 files changed, 22 insertions, 0 deletions
diff --git a/test/formsTest.js b/test/formsTest.js new file mode 100644 index 00000000..e834e938 --- /dev/null +++ b/test/formsTest.js @@ -0,0 +1,22 @@ +nglrTest = TestCase('nglrTest'); + +nglrTest.prototype.testShiftBind = function(){ +  expectAsserts(3); +  nglr.shiftBind('this', function(target, arg) { +    assertEquals(this, 'this'); +    assertEquals(target, 'target'); +    assertEquals(arg, 'arg'); +  }).apply('target', ['arg']); +}; + +nglrTest.prototype.testBind = function(){ +  expectAsserts(2); +  nglr.bind('this', function(arg) { +    assertEquals(this, 'this'); +    assertEquals(arg, 'arg'); +  }).apply('XXX', ['arg']); +}; + + + +  | 
