diff options
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']); +}; + + + + |
