Skip to content

Commit

Permalink
Added suite.onSetup hook
Browse files Browse the repository at this point in the history
  • Loading branch information
valueof committed Jul 19, 2011
1 parent 321bcae commit eb1815c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hiro.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ var hiro = (function (window, undefined) {
'hiro.onStart': [], // no arguments
'hiro.onComplete': [], // (success, report)

'suite.onSetup': [], // (suite)
'suite.onStart': [], // (suite)
'suite.onComplete': [], // (suite, success, report)
'suite.onTimeout': [], // (suite)
Expand Down Expand Up @@ -106,6 +107,8 @@ var hiro = (function (window, undefined) {
setUp_: function () {
var self = this;

hiro.trigger('suite.onSetup', [ this ]);

// If user provided a setUp method, call it (this is their chance
// to load any fixtures)
if (self.methods.setUp)
Expand Down

0 comments on commit eb1815c

Please sign in to comment.