Creates a concrete instance of goog.ui.editor.AbstractDialog by adding
a plain implementation of createDialogControl().
Arguments:
Returns: goog.ui.editor.AbstractDialog
The created dialog.
|
code » | ||
Creates a concrete instance of the abstract class
goog.editor.plugins.AbstractDialogPlugin
and registers it with the mock editable field being used.
Returns: goog.editor.plugins.AbstractDialogPlugin
The created plugin.
|
code » | ||
![]()
Sets up the mock event handler to expect a CLOSED event.
|
code » | ||
![]()
Sets up the mock event handler to expect an OPENED event.
|
code » | ||
![]()
No description.
|
code » | ||
![]()
No description.
|
code » | ||
![]()
Setup a real editable field (instead of a mock) and register the plugin to
it.
|
code » | ||
![]()
No description.
|
code » | ||
![]()
Tear down the real editable field.
|
code » | ||
![]()
Tests that after the dialog is hidden via a keystroke, the editable field
doesn't fire an extra SELECTIONCHANGE event due to the keyup from that
keystroke.
There is also a robot test in dialog_robot.html to test debouncing the
SELECTIONCHANGE event when the dialog closes.
|
code » | ||
![]()
Tests the simple flow of calling execCommand (which opens the
dialog) and immediately disposing of the plugin (which closes the dialog).
Arguments:
|
code » | ||
![]()
Tests execCommand and dispose while reusing the dialog.
|
code » | ||
![]()
Tests the flow of calling execCommand (which opens the dialog) and
then hiding it (simulating that a user did somthing to cause the dialog to
close).
Arguments:
|
code » | ||
![]()
Tests execCommand and hide while reusing the dialog.
|
code » | ||
![]()
Tests the flow of calling execCommand (which opens a dialog) and
then calling it again before the first dialog is closed. This is not
something anyone should be doing since dialogs are (usually?) modal so the
user can't do another execCommand before closing the first dialog. But
since the API makes it possible, I thought it would be good to guard
against and unit test.
Arguments:
|
code » | ||
![]()
Tests execCommand twice while reusing the dialog.
|
code » | ||
![]()
Tests that the selection is cleared when the dialog opens and is
correctly restored after it closes.
|
code » |