Permalink
Browse files

Added suite.onSetup hook

  • Loading branch information...
1 parent 321bcae commit eb1815cb03cdf3287d9b25ccb1932ff92f8ba53b @valueof committed Jul 19, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 hiro.js
View
@@ -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)
@@ -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)

0 comments on commit eb1815c

Please sign in to comment.