Bug 221820 - Part 6: Fix a failing test; r=bzbarsky
authorEhsan Akhgari <ehsan@mozilla.com>
Tue, 06 Apr 2010 16:44:12 -0400
changeset 40513 ec0aae9c570d56d9faa371b88d55ffae412a2d11
parent 40512 26ecdf01c65acfac6cae19bebd12c043e3170a72
child 40514 40038cc9f245f07b2cc6b1bd42b39aecdcf1b2a2
push id12639
push usereakhgari@mozilla.com
push dateTue, 06 Apr 2010 20:46:58 +0000
treeherdermozilla-central@40038cc9f245 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbzbarsky
bugs221820
milestone1.9.3a4pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
Bug 221820 - Part 6: Fix a failing test; r=bzbarsky
layout/forms/test/test_bug446663.html
--- a/layout/forms/test/test_bug446663.html
+++ b/layout/forms/test/test_bug446663.html
@@ -22,16 +22,17 @@ https://bugzilla.mozilla.org/show_bug.cg
 <script class="testbody" type="text/javascript">
 
 /** Test for Bug 446663 **/
 
 function test_edit_cmds(id) {
   netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
 
   var elm = document.getElementById(id);
+  elm.focus();
   elm.select();
   elm.controllers.getControllerForCommand('cmd_cut')
                          .doCommand('cmd_cut');
   is(elm.value, '', id + " cut");
 
   elm.controllers.getControllerForCommand('cmd_undo')
                          .doCommand('cmd_undo');
   is(elm.value, '123', id + " undo");