test-agent
Advanced tools
Comparing version 0.23.8 to 0.23.9
@@ -69,2 +69,20 @@ (function(window) { | ||
extend: function extend(target, obj1, objN) { | ||
var result = target || {}; | ||
for (var key in obj1) { | ||
if (obj1.hasOwnProperty(key)) { | ||
result[key] = obj1[key]; | ||
} | ||
} | ||
for (var key in objN) { | ||
if (objN.hasOwnProperty(key)) { | ||
result[key] = objN[key]; | ||
} | ||
} | ||
return result; | ||
}, | ||
getReporter: function getReporter(box) { | ||
@@ -138,15 +156,10 @@ var stream = TestAgent.Mocha.JsonStreamReporter, | ||
// due to a bug in mocha, iframes added to the DOM are | ||
// detected as global leaks in FF 21+, these global ignores | ||
// are a workaround. see also: | ||
// https://developer.mozilla.org/en-US/docs/Site_Compatibility_for_Firefox_21 | ||
var globalIgnores = ['0', '1', '2', '3', '4', '5']; | ||
var options = self.extend({}, self.setup, { | ||
ui: self.ui, | ||
timeout: self.timeout, | ||
reporter: self.getReporter(box) | ||
}); | ||
//setup mocha | ||
box.mocha.setup({ | ||
globals: globalIgnores, | ||
ui: self.ui, | ||
reporter: self.getReporter(box), | ||
timeout: self.timeout | ||
}); | ||
box.mocha.setup(options); | ||
}); | ||
@@ -153,0 +166,0 @@ |
@@ -61,4 +61,4 @@ (function(window) { | ||
MochaReporter.console.debug = consoleShim.bind(null, 'log'); | ||
MochaReporter.console.log = consoleShim.bind(null, 'log'); | ||
MochaReporter.console.debug = consoleShim.bind(null, 'log'); | ||
MochaReporter.console.info = consoleShim.bind(null, 'info'); | ||
@@ -65,0 +65,0 @@ MochaReporter.console.warn = consoleShim.bind(null, 'warn'); |
{ | ||
"name": "test-agent", | ||
"version": "0.23.8", | ||
"version": "0.23.9", | ||
"author": "James Lal", | ||
@@ -5,0 +5,0 @@ "description": "execute client side tests from browser report back to cli", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
252619
7880