Bug 733848 - Intermittent accessible/name/test_markup.html, mouse wave over image, r=tbsaunde
authorAlexander Surkov <surkov.alexander@gmail.com>
Sat, 27 Oct 2012 07:43:24 +0900
changeset 111711 d699695265af7113e43a19c75ca0a5b35499a0b6
parent 111710 1323dc441e74b4ce130cc0e561765d327845483e
child 111712 a32865b52f011804c5bfdd07fe5d08063f2ae1e9
push id93
push usernmatsakis@mozilla.com
push dateWed, 31 Oct 2012 21:26:57 +0000
reviewerstbsaunde
bugs733848
milestone19.0a1
Bug 733848 - Intermittent accessible/name/test_markup.html, mouse wave over image, r=tbsaunde
accessible/tests/mochitest/name/markup.js
accessible/tests/mochitest/name/test_markup.html
--- a/accessible/tests/mochitest/name/markup.js
+++ b/accessible/tests/mochitest/name/markup.js
@@ -106,16 +106,22 @@ function testNamesForMarkup(aMarkupElm)
 
   var child = aMarkupElm.firstChild;
   while (child) {
     var newChild = document.importNode(child, true);
     div.appendChild(newChild);
     child = child.nextSibling;
   }
 
+  // Wave over images to create frames.
+  var imgElms = div.getElementsByTagName("html:img");
+  for (var idx = 0; idx < imgElms.length; idx++) {
+    waveOverImageMap(imgElms[idx]);
+  }
+
   if (gDumpToConsole) {
     dump("\nProcessing markup. Wait for reorder event on " +
          prettyName(document) + "'\n");
   }
   waitForEvent(EVENT_REORDER, document, testNamesForMarkupRules,
                 null, aMarkupElm, div);
 
   document.body.appendChild(div);
--- a/accessible/tests/mochitest/name/test_markup.html
+++ b/accessible/tests/mochitest/name/test_markup.html
@@ -1,16 +1,18 @@
 <html>
 
 <head>
   <title>nsIAccessible::name calculation for elements</title>
   <link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css" />
 
   <script type="application/javascript"
           src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
+  <script type="application/javascript"
+          src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
 
   <script type="application/javascript"
           src="../common.js"></script>
   <script type="application/javascript"
           src="../events.js"></script>
   <script type="application/javascript"
           src="../name.js"></script>
   <script type="application/javascript"