Commit a3408692 a34086928cb57fe1a56e4912bc43614a9cd4b9d7 by Nicolas Perriault

added Casper#assertEval in assert.js

1 parent e580b7d6
......@@ -27,6 +27,10 @@ phantom.Casper.extend({
}
},
assertEval: function(fn, message) {
return this.assert(this.evaluate(fn), message);
},
assertEvalEquals: function(fn, expected, message) {
return this.assertEquals(this.evaluate(fn), expected, message);
},
......