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