Fix tests for new stack clearing in IE

This commit is contained in:
Gregg Van Hove
2016-10-14 15:53:00 -07:00
parent 9750ae59e7
commit 0e9b9a11c3
4 changed files with 22 additions and 15 deletions

View File

@@ -1,12 +1,6 @@
describe("ClearStack", function() {
it("works in an integrationy way", function(done) {
var global = {
setTimeout: typeof setTimeout === 'undefined' ? undefined : setTimeout,
setImmediate: typeof setImmediate === 'undefined' ? undefined : setImmediate,
MessageChannel: typeof MessageChannel === 'undefined' ? undefined : MessageChannel,
process: typeof process === 'undefined' ? undefined : process
},
clearStack = jasmineUnderTest.getClearStack(global);
var clearStack = jasmineUnderTest.getClearStack(jasmineUnderTest.getGlobal());
clearStack(function() {
done();