angular.js/test/formsTest.js
2010-01-09 15:02:43 -08:00

18 lines
464 B
JavaScript

nglrTest = TestCase('nglrTest');
nglrTest.prototype.testShiftBind = function(){
expectAsserts(3);
shiftBind('this', function(target, arg) {
assertEquals(this, 'this');
assertEquals(target, 'target');
assertEquals(arg, 'arg');
}).apply('target', ['arg']);
};
nglrTest.prototype.testBind = function(){
expectAsserts(2);
bind('this', function(arg) {
assertEquals(this, 'this');
assertEquals(arg, 'arg');
}).apply('XXX', ['arg']);
};