Searched defs:mock (Results 1 - 1 of 1) sorted by relevance

/yui3/src/test/js/
H A DMock.js2 * Creates a new mock object.
7 * should be stubbed out on the mock object.
14 var mock,
17 //try to create mock that keeps prototype chain intact
22 mock = new f();
24 mock = {};
31 mock[name] = function(name){
41 return mock;
45 * Assigns an expectation to a mock object. This is used to create
46 * methods and properties on the mock objec
30 if (typeof template[name] == "function"){ function
[all...]

Completed in 7 milliseconds