Bug 719990 - Failure in testSearch/testReorderSearchEngines.js | could not find element ID: dn. r=ashughes
authorAlex Lakatos <alex.lakatos@softvision.ro>
Mon, 23 Jan 2012 14:45:43 +0200
changeset 1904 1b403bffb3bd61d66913f5960a2273b0f5722ad0
parent 1902 10687420077a590ba89ea345b4cca1a1c793b191
child 1905 084316d88c1802e662ddc2761380de1c10654d21
push id1759
push userahughes@mozilla.com
push dateTue, 24 Jan 2012 06:57:00 +0000
reviewersashughes
bugs719990
Bug 719990 - Failure in testSearch/testReorderSearchEngines.js | could not find element ID: dn. r=ashughes
lib/search.js
--- a/lib/search.js
+++ b/lib/search.js
@@ -266,17 +266,17 @@ engineManager.prototype = {
         break;
       case "button":
         elem = new elementslib.Lookup(this._controller.window.document, MANAGER_BUTTONS +
                                       '/{"dlgtype":"' + spec.subtype + '"}');
         break;
       case "engine_button":
         switch(spec.subtype) {
           case "down":
-            elem = new elementslib.ID(this._controller.window.document, "dn");
+            elem = new elementslib.ID(this._controller.window.document, "down");
             break;
           case "edit":
             elem = new elementslib.ID(this._controller.window.document, "edit");
             break;
           case "remove":
             elem = new elementslib.ID(this._controller.window.document, "remove");
             break;
           case "up":