We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4bcd0c commit 152a8f6Copy full SHA for 152a8f6
1 file changed
test/test.js
@@ -2,6 +2,15 @@ var expect = require('expect.js');
2
// Note: IE8 requires that catch be referenced as ['catch'] on a promise
3
4
describe('CrossStorageClient', function() {
5
+ // Mocha detects the frame id as being leaked in IE
6
+ var userAgent = window.navigator.userAgent;
7
+ var ieDetected = (userAgent.indexOf('MSIE ') !== false ||
8
+ !!navigator.userAgent.match(/Trident.*rv\:11\./));
9
+
10
+ if (global.mocha && ieDetected) {
11
+ global.mocha.globals(['CrossStorageClient-*']);
12
+ }
13
14
var origin, url, storage;
15
16
this.timeout((window.location.hostname === 'localhost') ? 5000 : 60000);
0 commit comments