Bug 480697 - [SeaMonkey] mochitest-a11y: test_name.xul fails now: '... combobox list ... toolbaritem_textbox ...', r=marcoz
authorAlexander Surkov <surkov.alexander@gmail.com>
Mon, 01 Feb 2010 23:20:07 +0800
changeset 37795 5e3ff51d66592cf4d2bec2a5246f49bd399f8256
parent 37794 f1cf6e5613517af27148cd4d216438c1cc8dcdb8
child 37796 84840dc16645c99e221584affff360a273916273
push id11437
push usersurkov.alexander@gmail.com
push dateMon, 01 Feb 2010 15:21:59 +0000
treeherdermozilla-central@84840dc16645 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmarcoz
bugs480697
milestone1.9.3a1pre
Bug 480697 - [SeaMonkey] mochitest-a11y: test_name.xul fails now: '... combobox list ... toolbaritem_textbox ...', r=marcoz
accessible/tests/mochitest/test_name.xul
--- a/accessible/tests/mochitest/test_name.xul
+++ b/accessible/tests/mochitest/test_name.xul
@@ -142,20 +142,20 @@
 
       //////////////////////////////////////////////////////////////////////////
       // Name from the @title attribute of <toolbaritem/> (original bug 237249).
 
       // Direct child of toolbaritem.
       var textboxAcc = testName("toolbaritem_textbox", "ooospspss");
 
       // Element from anonymous content of direct child of toolbaritem.
-      var dropmarkerAcc = textboxAcc.lastChild;
-      testRole(dropmarkerAcc, ROLE_PUSHBUTTON);
-      is(dropmarkerAcc.name, "ooospspss",
-         "Wrong name for dropmarker of autocomplete textbox 'toolbaritem_textbox'.");
+      var entryAcc = textboxAcc.firstChild;
+      testRole(entryAcc, ROLE_ENTRY);
+      is(entryAcc.name, "ooospspss",
+         "Wrong name for text entry of autocomplete textbox 'toolbaritem_textbox'.");
 
       // Child from subtree of toolbaritem.
       testName("toolbaritem_hboxbutton", "ooospspss");
 
 
       //////////////////////////////////////////////////////////////////////////
       // Name from children
 
@@ -331,31 +331,31 @@
   <!-- name from children, hidden children -->
   <vbox role="listbox" tabindex="0">
     <hbox id="lb_opt1_children_hidden" role="option" tabindex="0">
       <description>i am visible</description>
       <description style="display:none">i am hidden</description>
     </hbox>
   </vbox>
 
-  </vbox>
-  </hbox>
-
   <!-- bug 441991; create name from other menuitem label listitem's own label -->
   <hbox>
-  <listbox>
-  <listitem id="li_labelledby"
-            label="The moment the event starts"
-            aria-labelledby="menuitem-DISPLAY li_labelledby"/>
-  </listbox>
-  <menulist>
-    <menupopup>
-      <menuitem id="menuitem-DISPLAY"
-                value="DISPLAY"
-                label="Show an Alert"/>
-      <menuitem id="menuitem-EMAIL"
-                value="EMAIL"
-                label="Send an E-mail"/>
-    </menupopup>
-  </menulist>
-  </hbox>  
+    <listbox>
+    <listitem id="li_labelledby"
+              label="The moment the event starts"
+              aria-labelledby="menuitem-DISPLAY li_labelledby"/>
+    </listbox>
+    <menulist>
+      <menupopup>
+        <menuitem id="menuitem-DISPLAY"
+                  value="DISPLAY"
+                  label="Show an Alert"/>
+        <menuitem id="menuitem-EMAIL"
+                  value="EMAIL"
+                  label="Send an E-mail"/>
+      </menupopup>
+    </menulist>
+  </hbox>
+
+  </vbox> <!-- close tests area -->
+  </hbox> <!-- close main area -->
 </window>