Bug 1330796 - Follow-up: Add key code to KEY_Enter. r=masayuki
authorJorg K <jorgk@jorgk.com>
Tue, 17 Jan 2017 10:40:00 -0500
changeset 374762 c4acba4df2b205a75c1f858c9b431ecfde531673
parent 374761 1eeaa7ae6b3afdd7726fff211e9da814d5202575
child 374763 e32814fc5ab6fdb9e723b8109aa8f398b1c883f6
push id6996
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 20:48:21 +0000
treeherdermozilla-beta@d89512dab048 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmasayuki
bugs1330796
milestone53.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 1330796 - Follow-up: Add key code to KEY_Enter. r=masayuki
editor/libeditor/tests/test_bug1330796.html
--- a/editor/libeditor/tests/test_bug1330796.html
+++ b/editor/libeditor/tests/test_bug1330796.html
@@ -70,18 +70,18 @@ SimpleTest.waitForFocus(function() {
 
   for (i = 0; i < tests.length; i++) {
     theEdit.innerHTML = tests[i][0];
     theEdit.focus();
     var theText = theEdit.firstChild.firstChild;
     // Position set at the beginning , middle and end of the text.
     sel.collapse(theText, tests[i][1]);
 
-    synthesizeKey("KEY_Enter", {});
-    synthesizeKey("x", {});
+    synthesizeKey("KEY_Enter", { code: "Enter" });
+    synthesizeKey("x", { code: "KeyX" });
     is(theEdit.innerHTML, tests[i][2], "unexpected HTML for test " + i.toString());
   }
 
   SimpleTest.finish();
 
 });
 
 function makeMailEditor() {