From c9c176a53b1632ca2b1c6ed27382ab72ac21d45d Mon Sep 17 00:00:00 2001 From: Adam Abrons Date: Tue, 5 Jan 2010 16:36:58 -0800 Subject: angular.js --- test/formsTest.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 test/formsTest.js (limited to 'test/formsTest.js') 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']); +}; + + + + -- cgit v1.2.3