Do you mean something like:

```
this.waitFor(function () { ... }, Y.bind(this.resume, this));
```

The call to `resume` is unnecessary since `wait(callback, timeout)` automatically resumes the test with `callback` after `timeout` ms. In fact, doing something like:

```
var self = this,
    remaining = 100;

setTimeout(function () { self.resume(function () { alert('This resumes the test before the waitFor timer'); }) }, 200);

this.waitFor(function () { return !(remaining--); }, function () { alert('Unexpected test behavior'); });
```

is akin to

```
var self = this;

setTimeout(function () { self.resume(function () { alert('I lose :('); }) }, 200);
setTimeout(function () { self.resume(function () { alert('I WIN :)'); }) }, 100);

this.wait();
```