step_throws.js 227 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 /*jshint strict:false*/ casper.test.begin('step throws', 1, function(test) { casper.start(); casper.then(function() { throw new Error('oops!') }); casper.run(function() { test.done(); }) });