mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-23 19:40:56 +08:00
angular.js
This commit is contained in:
22
test/formsTest.js
Normal file
22
test/formsTest.js
Normal file
@@ -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']);
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user