Bug 1140625 - Part 3: Fix a bug in bug414526 so we can reopen the test. r=roc
authorJeremy Chen <jeremychen@mozilla.com>
Tue, 24 Mar 2015 01:17:00 -0400
changeset 266158 7b4e1bd6c8aa4908668363a67492dce17a1beecd
parent 266157 65d48bfeb65499937cf1679b5d9949f270737c90
child 266159 ce21be83c48b3bcfd6843a19877d300c576c19e5
push id830
push userraliiev@mozilla.com
push dateFri, 19 Jun 2015 19:24:37 +0000
treeherdermozilla-release@932614382a68 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersroc
bugs1140625, 414526
milestone39.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1140625 - Part 3: Fix a bug in bug414526 so we can reopen the test. r=roc
editor/libeditor/tests/test_bug414526.html
--- a/editor/libeditor/tests/test_bug414526.html
+++ b/editor/libeditor/tests/test_bug414526.html
@@ -121,22 +121,17 @@ function runTests()
   synthesizeKey("VK_DELETE", { });
   is(container.innerHTML, kTestCase1,
      "Pressing delete key at end of editor2 changes the content");
   reset();
 
   editor3.focus();
   moveCaretToEndOf(editor3);
   synthesizeKey("VK_DELETE", { });
-  // Because of a bug in nsFrameSelection::CharacterExtendForDelete, pressing Delete
-  // here puts the selection in the text node inside editor3's inner div, which
-  // causes us to delete the contents of that text node.  This situation shouldn't
-  // happen by the normal caret navigation functions that the user can invoke, so
-  // we can fix it later.
-  todo_is(container.innerHTML, kTestCase1,
+  is(container.innerHTML, kTestCase1,
           "Pressing delete key at end of editor3 changes the content");
   reset();
 
   editor4.focus();
   moveCaretToEndOf(editor4);
   synthesizeKey("VK_DELETE", { });
   is(container.innerHTML, kTestCase1,
      "Pressing delete key at end of editor4 changes the content");