aboutsummaryrefslogtreecommitdiffstats
path: root/test/scenario/TestContext.js
blob: 0c8e614339c3107a6b8bfcfdb8293009030e2a90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
var _window, runner, log, $scenario;

function logger(text) {
  return function(done){
    log += text;
    (done||noop)();
  };
}

function setUpContext() {
  _window = {};
  runner = new angular.scenario.Runner(_window, _jQuery);
  $scenario = _window.$scenario;
  log = '';
}