linkdialogplugin_test.js
No description.

File Location

/goog/editor/plugins/linkdialogplugin_test.js


Public Protected Private

Global Functions

setUp()
No description.
code »
setUpAnchor()
No description.
code »
setUpGivenAnchor()
No description.
code »
setUpRealEditableField()
Setup a real editable field (instead of a mock) and register the plugin to it.
code »
tearDown()
No description.
code »
tearDownRealEditableField()
Tear down the real editable field.
code »
testBug1607766()
Regression test for http://b/issue?id=1607766 . Without the fix, this should give an Invalid Argument error in IE, because the editable field caches a selection util that has a reference to the node of the link text before it is edited (which gets replaced by a new node for the new text after editing).
code »
testBug2215546()
Regression test for http://b/issue?id=2215546 .
code »
testBug7279077ScrollOnFocus()
Test that link insertion doesn't scroll the field to the top after clicking Cancel or OK.
code »
testCancel()
Tests that when the Cancel event fires the link is unchanged.
code »
testCancelNew()
Tests that when the Cancel event fires for a new link it gets removed.
code »
testCancelNewMultiple()
Tests that when the Cancel event fires for a new link it gets removed.
code »
testCreateDialog()
Tests that the plugin's dialog is properly created.
code »
testIsSafeSchemeToOpen()
No description.
code »
testOk()
Tests that when the OK event fires the link is properly updated.
code »
testOkNewMultiple()
Tests that when the Cancel event fires for a new link it gets removed.
code »
testOkNoFollowDisabled()
No description.
code »
testOkNoFollowDisabledHasMoreRelValues()
No description.
code »
testOkNoFollowDisabledHasMoreRelValues&testOkNoFollowDisabledHasMoreRelValues()
No description.
code »
testOkNoFollowEnabled()
No description.
code »
testOkNoFollowEnabledHasMoreRelValues()
No description.
code »
testOkNoFollowInUppercase()
No description.
code »
testOkNoFollowInUppercaseWithMoreValues()
No description.
code »
testOkOpenInNewWindow()
Tests the anchor's target is correctly modified with the "open in new window" feature on.
code »
testRestoreSelectionOnCancel(opt_isNew)
Tests that the selection is cleared when the dialog opens and is correctly restored after cancel is clicked.
Arguments:
opt_isNew : boolean=
Whether to test behavior when creating a new link (cancelling will flatten it).
code »
testRestoreSelectionOnCancelNew()
Tests that the selection is cleared when the dialog opens and is correctly restored after cancel is clicked and the new link is removed.
code »
testRestoreSelectionOnOk()
Tests that the selection is cleared when the dialog opens and is correctly restored after cancel is clicked.
code »
testShouldOpenWithWhitelist()
No description.
code »
testTestLinkDisabledForInvalidScheme()
Tests that the BeforeTestLink event is suppressed for invalid url schemes.
code »
verifyRelNoFollow()
No description.
code »

Global Variables

NEW_LINK_TEXT :
No description.
Code »
NEW_LINK_URL :
No description.
Code »
OLD_LINK_TEXT :
No description.
Code »
OLD_LINK_URL :
No description.
Code »
anchorElem :
No description.
Code »
anchorElem2 :
No description.
Code »
anchorElem3 :
No description.
Code »
extraAnchors :
No description.
Code »
fieldElem :
No description.
Code »
fieldObj : goog.editor.Field
No description.
Code »
isNew :
No description.
Code »
linkObj : goog.editor.Link
No description.
Code »
No description.
Code »
No description.
Code »
No description.
Code »
No description.
Code »

Directory plugins

File Reference