Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Unified Diff: LayoutTests/fast/events/script-tests/event-input-contentEditable.js

Issue 14969020: Avoid adding placeholder when deleting last text in root (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed bad TestExpectations behavior and unnecessary results churn. Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/events/script-tests/event-input-contentEditable.js
diff --git a/LayoutTests/fast/events/script-tests/event-input-contentEditable.js b/LayoutTests/fast/events/script-tests/event-input-contentEditable.js
index 6d8f97237ef2df987a47183a03e5826e047045be..8caa5bef84e84971a134d36d83bce5b82b8c40f7 100644
--- a/LayoutTests/fast/events/script-tests/event-input-contentEditable.js
+++ b/LayoutTests/fast/events/script-tests/event-input-contentEditable.js
@@ -51,7 +51,7 @@ var target2 = setupForFiringTest('<p id="target2" contentEditable>This text shou
document.execCommand("insertText", false, target2Text);
// An "delete" command should dispatch an input event.
-var target3 = setupForFiringTest('<p id="target3" contentEditable>This text shouldn be deleted.</p>', "<br>");
+var target3 = setupForFiringTest('<p id="target3" contentEditable>This text shouldn be deleted.</p>', '');
document.execCommand("delete", false);
// A command other than text-editing should dispatch an input event.
@@ -88,7 +88,7 @@ var target7 = setupForFiringTest('<p id="target7" contentEditable>Replaced</p>',
sel.selectAllChildren(target7);
eventSender.keyDown('X');
-var target8 = setupForFiringTest('<p id="target8" contentEditable>Deleted</p>', '<br>');
+var target8 = setupForFiringTest('<p id="target8" contentEditable>Deleted</p>', '');
sel.selectAllChildren(target8);
eventSender.keyDown('delete');

Powered by Google App Engine
This is Rietveld 408576698