mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset afff429aaf9a because of bad commit message
This commit is contained in:
parent
694206936a
commit
9d01c7314b
@ -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
|
||||
|
@ -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();
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user