aboutsummaryrefslogtreecommitdiffstats
path: root/test/formsTest.js
blob: e834e9387519c73c083df1ce7620af0fcd151841 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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']);
};