goog.Disposable | |
goog.testing.ui.RendererHarness | goog.Disposable |
renderer
: goog.ui.ControlRenderer
A renderer to test.
|
renderParent
: Element
The parent of the element where controls will
be rendered.
|
decorateParent
: Element
The parent of the element where controls will
be decorated.
|
![]()
Assert that the rendered element and the decorated element match.
|
code » | ||
Attach a control and decorate the element given in the constructor.
Arguments:
Returns: Element
The element created.
|
code » | ||
Attach a control and render its DOM.
Arguments:
Returns: Element
The element created.
|
code » | ||
![]()
Destroy the harness, verifying that all assertions had been checked.
|
code » |
![]()
Invokes a callback function when this object is disposed. Callbacks are
invoked in the order in which they were added.
Arguments:
|
code » | |||
![]()
Disposes of the object. If the object hasn't already been disposed of, calls
#disposeInternal . Classes that extend goog.Disposable should
override #disposeInternal in order to delete references to COM
objects, DOM nodes, and other disposable objects. Reentrant.
Returns: void
Nothing.
|
code » | |||
![]()
Deletes or nulls out any references to COM objects, DOM nodes, or other
disposable objects. Classes that extend
goog.Disposable should
override this method.
Not reentrant. To avoid calling it twice, it must only be called from the
subclass' disposeInternal method. Everywhere else the public
dispose method must be used.
For example:
mypackage.MyClass = function() { mypackage.MyClass.base(this, 'constructor'); // Constructor logic specific to MyClass. ... }; goog.inherits(mypackage.MyClass, goog.Disposable); mypackage.MyClass.prototype.disposeInternal = function() { // Dispose logic specific to MyClass. ... // Call superclass's disposeInternal at the end of the subclass's, like // in C++, to avoid hard-to-catch issues. mypackage.MyClass.base(this, 'disposeInternal'); }; |
code » | |||
Use
#isDisposed instead.
No description.
Returns: boolean
Whether the object has been disposed of.
|
code » | |||
No description.
Returns: boolean
Whether the object has been disposed of.
|
code » | |||
![]()
Associates a disposable object with this object so that they will be disposed
together.
Arguments:
|
code » |
![]()
No description.
|
Code » | |
A control to create by decoration.
|
Code » | |
![]()
The original HTML of the decorated element.
|
Code » | |
![]()
Teh parent of the element where controls will be decorated.
|
Code » | |
A control to create by rendering.
|
Code » | |
![]()
The original HTML of the render element.
|
Code » | |
![]()
The parent of the element where controls will be rendered.
|
Code » | |
The renderer under test.
|
Code » | |
![]()
Whether all the necessary assert methods have been called.
|
Code » |
![]()
No description.
|
Code » |