Backed out changeset afff429aaf9a because of bad commit message

This commit is contained in:
Ehsan Akhgari 2012-04-03 17:47:34 -04:00
parent 694206936a
commit 9d01c7314b
2 changed files with 0 additions and 10 deletions

View File

@ -1624,9 +1624,6 @@ NS_IMETHODIMP nsHTMLEditor::PasteTransferable(nsITransferable *aTransferable)
//
NS_IMETHODIMP nsHTMLEditor::PasteNoFormatting(PRInt32 aSelectionType)
{
if (!FireClipboardEvent(NS_PASTE))
return NS_OK;
ForceCompositionEnd();
// Get Clipboard Service

View File

@ -21,11 +21,6 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=410986
/** Test for Bug 410986 **/
var gPasteEvents = 0;
document.getElementById("editor").addEventListener("paste", function() {
++gPasteEvents;
}, false);
SimpleTest.waitForExplicitFinish();
SimpleTest.waitForFocus(function() {
getSelection().selectAllChildren(document.getElementById("contents"));
@ -42,7 +37,6 @@ SimpleTest.waitForFocus(function() {
synthesizeKey("V", {accelKey: true, shiftKey: true});
}
is(ed.innerHTML, "green text", "Content should be pasted in plaintext format");
is(gPasteEvents, 1, "One paste event must be fired");
ed.innerHTML = "";
ed.blur();
@ -57,7 +51,6 @@ SimpleTest.waitForFocus(function() {
synthesizeKey("V", {accelKey: true});
isnot(ed.innerHTML.indexOf("<span style=\"color: green;\">green text</span>"), -1,
"Content should be pasted in HTML format");
is(gPasteEvents, 2, "Two paste events must be fired");
SimpleTest.finish();
},