goog.testing.ui.RendererHarness
Classgoog.testing.ui.RendererHarness
> goog.Disposable
goog.testing.ui.RendererHarness(renderer, renderParent, decorateParent)
A driver for testing renderers.
renderer
{goog.ui.ControlRenderer
}
renderParent
{Element
}
decorateParent
{Element
}
.addOnDisposeCallback(callback, opt_scope)
Inherited from goog.Disposable
.
Invokes a callback function when this object is disposed. Callbacks are invoked in the order in which they were added.
callback
{!Function
}
opt_scope
{Object
=}
.assertDomMatches()
Assert that the rendered element and the decorated element match.
.attachControlAndDecorate(control)
Attach a control and decorate the element given in the constructor.
control
{goog.ui.Control
}
Element
}
.attachControlAndRender(control)
Attach a control and render its DOM.
control
{goog.ui.Control
}
Element
}
.creationStack
{string
}Inherited from goog.Disposable
.
If monitoring the goog.Disposable instances is enabled, stores the creation stack trace of the Disposable instance.
.dispose()
Inherited from goog.Disposable
.
Disposes of the object. If the object hasn't already been disposed of, calls {@link #disposeInternal}. Classes that extend {@code goog.Disposable} should override {@link #disposeInternal} in order to delete references to COM objects, DOM nodes, and other disposable objects. Reentrant.
void
}
.disposeInternal()
[protected]Destroy the harness, verifying that all assertions had been checked.
.getDisposed
[deprecated]Deprecated. Use {@link #isDisposed} instead.
Inherited from goog.Disposable
.
boolean
}
.isDisposed()
Inherited from goog.Disposable
.
boolean
}
.registerDisposable(disposable)
Inherited from goog.Disposable
.
Associates a disposable object with this object so that they will be disposed together.
disposable
{goog.disposable.IDisposable
}