1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- goog.setTestOnly('goog.testing.singleton');
- goog.provide('goog.testing.singleton');
- goog.testing.singleton.reset = function() {
- var singletons = goog.getObjectByName('goog.instantiatedSingletons_');
- var ctor;
- while (ctor = singletons.pop()) {
- delete ctor.instance_;
- }
- };
- goog.testing.singleton.addSingletonGetter = goog.addSingletonGetter;
|