summaryrefslogtreecommitdiff
path: root/examples/scala-js/jasmine-test-framework/src/main/resources/jasmine-polyfills.js
blob: b1a5d44110331487dee3dae61f00e2c0dc2f731b (plain) (blame)
1
2
3
4
5
6
7
8
9
// jasmine.js requires the following 4 to be defined.
(function() {
  var g = (typeof global === "object" && global && global["Object"] === Object) ? global : this;
  var stub = function() { console.log("jasmine-polyfill.js stub called"); };
  g.setTimeout    = g.setTimeout    || stub;
  g.clearTimeout  = g.clearTimeout  || stub;
  g.setInterval   = g.setInterval   || stub;
  g.clearInterval = g.clearInterval || stub;
}).call(this);