@@ -1308,6 +1308,10 @@ getJasmineRequireObj().Env = function(j$) {
|
|||||||
return spyRegistry.spyOnProperty.apply(spyRegistry, arguments);
|
return spyRegistry.spyOnProperty.apply(spyRegistry, arguments);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
this.spyOnAllFunctions = function() {
|
||||||
|
return spyRegistry.spyOnAllFunctions.apply(spyRegistry, arguments);
|
||||||
|
};
|
||||||
|
|
||||||
this.createSpy = function(name, originalFn) {
|
this.createSpy = function(name, originalFn) {
|
||||||
if (arguments.length === 1 && j$.isFunction_(name)) {
|
if (arguments.length === 1 && j$.isFunction_(name)) {
|
||||||
originalFn = name;
|
originalFn = name;
|
||||||
@@ -5482,7 +5486,7 @@ getJasmineRequireObj().interface = function(jasmine, env) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Installs spies on all writable and configurable properties of an object.
|
* Installs spies on all writable and configurable properties of an object.
|
||||||
* @name spyOnProperty
|
* @name spyOnAllFunctions
|
||||||
* @function
|
* @function
|
||||||
* @global
|
* @global
|
||||||
* @param {Object} obj - The object upon which to install the {@link Spy}s
|
* @param {Object} obj - The object upon which to install the {@link Spy}s
|
||||||
|
|||||||
@@ -537,6 +537,10 @@ getJasmineRequireObj().Env = function(j$) {
|
|||||||
return spyRegistry.spyOnProperty.apply(spyRegistry, arguments);
|
return spyRegistry.spyOnProperty.apply(spyRegistry, arguments);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
this.spyOnAllFunctions = function() {
|
||||||
|
return spyRegistry.spyOnAllFunctions.apply(spyRegistry, arguments);
|
||||||
|
};
|
||||||
|
|
||||||
this.createSpy = function(name, originalFn) {
|
this.createSpy = function(name, originalFn) {
|
||||||
if (arguments.length === 1 && j$.isFunction_(name)) {
|
if (arguments.length === 1 && j$.isFunction_(name)) {
|
||||||
originalFn = name;
|
originalFn = name;
|
||||||
|
|||||||
@@ -237,7 +237,7 @@ getJasmineRequireObj().interface = function(jasmine, env) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Installs spies on all writable and configurable properties of an object.
|
* Installs spies on all writable and configurable properties of an object.
|
||||||
* @name spyOnProperty
|
* @name spyOnAllFunctions
|
||||||
* @function
|
* @function
|
||||||
* @global
|
* @global
|
||||||
* @param {Object} obj - The object upon which to install the {@link Spy}s
|
* @param {Object} obj - The object upon which to install the {@link Spy}s
|
||||||
|
|||||||
Reference in New Issue
Block a user