mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bug 1352144 - document.execCommand("inserttext", false, "") should work r=masayuki
Behavior per spec and Chrome is to just delete the selection. We already do this for insertHTML. MozReview-Commit-ID: AWZhH6lIwuO --HG-- extra : rebase_source : 353c3b628eb6a609de121e25bb7a11e579d29400
This commit is contained in:
parent
d754d0f933
commit
8f79d37004
@ -952,7 +952,13 @@ NS_IMETHODIMP
|
||||
InsertPlaintextCommand::DoCommand(const char* aCommandName,
|
||||
nsISupports* aCommandRefCon)
|
||||
{
|
||||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
// No value is equivalent to empty string
|
||||
nsCOMPtr<nsIPlaintextEditor> editor = do_QueryInterface(aCommandRefCon);
|
||||
if (NS_WARN_IF(!editor)) {
|
||||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
return editor->InsertText(EmptyString());
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
@ -970,10 +976,7 @@ InsertPlaintextCommand::DoCommandParams(const char* aCommandName,
|
||||
nsresult rv = aParams->GetStringValue(STATE_DATA, text);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
if (!text.IsEmpty())
|
||||
return editor->InsertText(text);
|
||||
|
||||
return NS_OK;
|
||||
return editor->InsertText(text);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
@ -1239,17 +1239,6 @@ HTMLEditRules::WillInsertText(EditAction aAction,
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
}
|
||||
|
||||
if (inString->IsEmpty() && aAction != EditAction::insertIMEText) {
|
||||
// HACK: this is a fix for bug 19395
|
||||
// I can't outlaw all empty insertions
|
||||
// because IME transaction depend on them
|
||||
// There is more work to do to make the
|
||||
// world safe for IME.
|
||||
*aCancel = true;
|
||||
*aHandled = false;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
// initialize out param
|
||||
*aCancel = false;
|
||||
*aHandled = true;
|
||||
|
@ -1000,6 +1000,8 @@ NS_IMETHODIMP
|
||||
HTMLEditor::TypedText(const nsAString& aString,
|
||||
ETypingAction aAction)
|
||||
{
|
||||
MOZ_ASSERT(!aString.IsEmpty() || aAction != eTypedText);
|
||||
|
||||
AutoPlaceHolderBatch batch(this, nsGkAtoms::TypingTxnName);
|
||||
|
||||
if (aAction == eTypedBR) {
|
||||
|
@ -1,880 +1,5 @@
|
||||
[event.html]
|
||||
type: testharness
|
||||
[Simple editable div: beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Simple editable div: input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Simple editable div: beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Simple editable div: input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Editable b: execCommand() must not throw, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Editable b: beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Editable b: input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Editable b: execCommand() must not throw, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Editable b: beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Editable b: input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Changing selection from handler: beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Changing selection from handler: input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Changing selection from handler: beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Changing selection from handler: input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command backColor, value "": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command backColor, value "": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command backColor, value "": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command backColor, value "quasit": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command backColor, value "quasit": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command backColor, value "quasit": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command backColor, value "quasit": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command backColor, value "green": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command backColor, value "green": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command backColor, value "green": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command backColor, value "green": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command createLink, value "": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command createLink, value "": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command createLink, value "": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command createLink, value "quasit": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command createLink, value "quasit": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command createLink, value "quasit": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command createLink, value "quasit": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command createLink, value "http://www.w3.org/community/editing/": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command createLink, value "http://www.w3.org/community/editing/": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command createLink, value "http://www.w3.org/community/editing/": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command createLink, value "http://www.w3.org/community/editing/": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command fontName, value "": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command fontName, value "": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command fontName, value "": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command fontName, value "quasit": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command fontName, value "quasit": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command fontName, value "quasit": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command fontName, value "quasit": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command fontName, value "serif": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command fontName, value "serif": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command fontName, value "serif": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command fontName, value "Helvetica": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command fontName, value "Helvetica": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command fontName, value "Helvetica": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command fontName, value "Helvetica": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command fontSize, value "": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command fontSize, value "": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command fontSize, value "": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command fontSize, value "quasit": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command fontSize, value "quasit": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command fontSize, value "quasit": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command fontSize, value "6": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command fontSize, value "6": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command fontSize, value "6": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command fontSize, value "6": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command fontSize, value "15px": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command fontSize, value "15px": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command fontSize, value "15px": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command fontSize, value "15px": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command foreColor, value "": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command foreColor, value "": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command foreColor, value "": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command foreColor, value "quasit": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command foreColor, value "quasit": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command foreColor, value "quasit": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command foreColor, value "quasit": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command foreColor, value "green": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command foreColor, value "green": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command foreColor, value "green": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command foreColor, value "green": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command hiliteColor, value "": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command hiliteColor, value "": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command hiliteColor, value "": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command hiliteColor, value "quasit": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command hiliteColor, value "quasit": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command hiliteColor, value "quasit": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command hiliteColor, value "quasit": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command hiliteColor, value "green": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command hiliteColor, value "green": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command hiliteColor, value "green": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command hiliteColor, value "green": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command italic, value "": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command italic, value "": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command italic, value "": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command italic, value "": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command italic, value "quasit": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command italic, value "quasit": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command italic, value "quasit": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command italic, value "quasit": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command removeFormat, value "": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command removeFormat, value "": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command removeFormat, value "": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command removeFormat, value "": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command removeFormat, value "quasit": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command removeFormat, value "quasit": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command removeFormat, value "quasit": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command removeFormat, value "quasit": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command strikeThrough, value "": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command strikeThrough, value "": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command strikeThrough, value "": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command strikeThrough, value "": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command strikeThrough, value "quasit": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command strikeThrough, value "quasit": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command strikeThrough, value "quasit": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command strikeThrough, value "quasit": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command subscript, value "": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command subscript, value "": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command subscript, value "": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command subscript, value "": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command subscript, value "quasit": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command subscript, value "quasit": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command subscript, value "quasit": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command subscript, value "quasit": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command superscript, value "": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command superscript, value "": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command superscript, value "": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command superscript, value "": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command superscript, value "quasit": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command superscript, value "quasit": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command superscript, value "quasit": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command superscript, value "quasit": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command underline, value "": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command underline, value "": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command underline, value "": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command underline, value "": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command underline, value "quasit": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command underline, value "quasit": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command underline, value "quasit": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command underline, value "quasit": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command unlink, value "": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command unlink, value "": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command unlink, value "": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command unlink, value "quasit": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command unlink, value "quasit": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command unlink, value "quasit": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command delete, value "": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command delete, value "": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command delete, value "": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command delete, value "": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command delete, value "quasit": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command delete, value "quasit": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command delete, value "quasit": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command delete, value "quasit": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command formatBlock, value "": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command formatBlock, value "": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command formatBlock, value "": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command formatBlock, value "quasit": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command formatBlock, value "quasit": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command formatBlock, value "quasit": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command formatBlock, value "p": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command formatBlock, value "p": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command formatBlock, value "p": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command formatBlock, value "p": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command forwardDelete, value "": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command forwardDelete, value "": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command forwardDelete, value "": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command forwardDelete, value "": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command forwardDelete, value "quasit": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command forwardDelete, value "quasit": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command forwardDelete, value "quasit": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command forwardDelete, value "quasit": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command indent, value "": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command indent, value "": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command indent, value "": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command indent, value "": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command indent, value "quasit": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command indent, value "quasit": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command indent, value "quasit": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command indent, value "quasit": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertHorizontalRule, value "": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertHorizontalRule, value "": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertHorizontalRule, value "": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertHorizontalRule, value "": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertHorizontalRule, value "quasit": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertHorizontalRule, value "quasit": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertHorizontalRule, value "quasit": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertHorizontalRule, value "quasit": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertHorizontalRule, value "id": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertHorizontalRule, value "id": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertHorizontalRule, value "id": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertHorizontalRule, value "id": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertHTML, value "": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertHTML, value "": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertHTML, value "": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertHTML, value "": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertHTML, value "quasit": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertHTML, value "quasit": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertHTML, value "quasit": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertHTML, value "quasit": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertHTML, value "<b>hi</b>": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertHTML, value "<b>hi</b>": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertHTML, value "<b>hi</b>": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertHTML, value "<b>hi</b>": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertImage, value "": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertImage, value "": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertImage, value "": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertImage, value "quasit": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertImage, value "quasit": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertImage, value "quasit": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertImage, value "quasit": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertImage, value "../images/green.png": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertImage, value "../images/green.png": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertImage, value "../images/green.png": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertImage, value "../images/green.png": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertLineBreak, value "": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertLineBreak, value "": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertLineBreak, value "": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertLineBreak, value "": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertLineBreak, value "quasit": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertLineBreak, value "quasit": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertLineBreak, value "quasit": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertLineBreak, value "quasit": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertOrderedList, value "": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertOrderedList, value "": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertOrderedList, value "": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertOrderedList, value "": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertOrderedList, value "quasit": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertOrderedList, value "quasit": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertOrderedList, value "quasit": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertOrderedList, value "quasit": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertParagraph, value "": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertParagraph, value "": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertParagraph, value "": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertParagraph, value "": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertParagraph, value "quasit": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertParagraph, value "quasit": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertParagraph, value "quasit": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertParagraph, value "quasit": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertText, value "": execCommand() must not throw, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertText, value "": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertText, value "": execCommand() must not throw, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertText, value "": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertText, value "": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertText, value "quasit": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertText, value "quasit": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertText, value "quasit": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertText, value "quasit": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertText, value "abc": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertText, value "abc": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertText, value "abc": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertText, value "abc": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertUnorderedList, value "": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertUnorderedList, value "": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertUnorderedList, value "": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertUnorderedList, value "": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertUnorderedList, value "quasit": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertUnorderedList, value "quasit": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertUnorderedList, value "quasit": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertUnorderedList, value "quasit": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command justifyCenter, value "": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command justifyCenter, value "": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command justifyCenter, value "": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command justifyCenter, value "": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command justifyCenter, value "quasit": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command justifyCenter, value "quasit": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command justifyCenter, value "quasit": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command justifyCenter, value "quasit": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command justifyFull, value "": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command justifyFull, value "": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command justifyFull, value "": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command justifyFull, value "": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command justifyFull, value "quasit": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command justifyFull, value "quasit": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command justifyFull, value "quasit": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command justifyFull, value "quasit": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command justifyLeft, value "": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command justifyLeft, value "": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command justifyLeft, value "": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command justifyLeft, value "": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command justifyLeft, value "quasit": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command justifyLeft, value "quasit": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command justifyLeft, value "quasit": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command justifyLeft, value "quasit": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command justifyRight, value "": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command justifyRight, value "": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command justifyRight, value "": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command justifyRight, value "": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command justifyRight, value "quasit": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command justifyRight, value "quasit": input event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command justifyRight, value "quasit": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command justifyRight, value "quasit": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command outdent, value "": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command outdent, value "": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command outdent, value "": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command outdent, value "quasit": beforeinput event, canceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command outdent, value "quasit": beforeinput event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Command outdent, value "quasit": input event, uncanceled]
|
||||
expected: FAIL
|
||||
|
||||
[Editable b: execCommand() must not throw]
|
||||
expected: FAIL
|
||||
@ -924,12 +49,6 @@
|
||||
[Command insertImage, value "": input event]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertText, value "": execCommand() must not throw]
|
||||
expected: FAIL
|
||||
|
||||
[Command insertText, value "": input event]
|
||||
expected: FAIL
|
||||
|
||||
[Command outdent, value "": input event]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -1,11 +1,5 @@
|
||||
[inserttext.html]
|
||||
type: testharness
|
||||
[[["inserttext",""\]\] "foo[bar\]baz": execCommand("inserttext", false, "") return value]
|
||||
expected: FAIL
|
||||
|
||||
[[["inserttext",""\]\] "foo[bar\]baz" compare innerHTML]
|
||||
expected: FAIL
|
||||
|
||||
[[["inserttext","\\t"\]\] "foo[\]bar" compare innerHTML]
|
||||
expected: FAIL
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user