Bug 569425. Use a synthesized mouse move to force image maps in these tests to setup because there is currently no non-hacky way to do that. r=dbaron
☠☠ backed out by 0bf458761ea2 ☠ ☠
authorTimothy Nikkel <tnikkel@gmail.com>
Tue, 08 Jun 2010 14:18:04 -0500
changeset 43321 2f539cc84d9750e6de1de5d44f8ade2b82cad024
parent 43320 0f7e3b92bf6f144296a4fe43d06a745236daa36d
child 43322 12ea060fa735e65799cc40bfebcf49369a1960a1
child 43328 0bf458761ea2d29bc48e333a8d2afd38238d7e83
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdbaron
bugs569425
milestone1.9.3a5pre
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 569425. Use a synthesized mouse move to force image maps in these tests to setup because there is currently no non-hacky way to do that. r=dbaron
accessible/tests/mochitest/states/test_aria_imgmap.html
accessible/tests/mochitest/tree/test_aria_imgmap.html
--- a/accessible/tests/mochitest/states/test_aria_imgmap.html
+++ b/accessible/tests/mochitest/states/test_aria_imgmap.html
@@ -3,27 +3,34 @@
 <head>
   <title>Test usemap elements and ARIA</title>
   <link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css" />
 
   <script type="application/javascript"
           src="chrome://mochikit/content/MochiKit/packed.js"></script>
   <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="chrome://mochikit/content/a11y/accessible/common.js"></script>
   <script type="application/javascript"
           src="chrome://mochikit/content/a11y/accessible/role.js"></script>
   <script type="application/javascript"
           src="chrome://mochikit/content/a11y/accessible/states.js"></script>
 
   <script type="application/javascript">
   function doTest()
   {
+    //XXX We send a useless mouse move to the image to force it to setup its
+    // image map, because flushing layout won't do it. Hopefully bug 135040
+    // will make this not suck.
+    synthesizeMouse($("imagemap"), 10, 10, { type: "mousemove" });
+
     testStates("t1", 0, EXT_STATE_EDITABLE, STATE_LINKED);
     testStates("t2", 0, EXT_STATE_EDITABLE, STATE_LINKED);
     testStates("rb1", (STATE_CHECKABLE | STATE_CHECKED), 0, STATE_LINKED);
     testStates("rb2", STATE_CHECKABLE, 0, STATE_CHECKED, STATE_LINKED);
     testStates("cb1", (STATE_CHECKABLE | STATE_CHECKED), 0, STATE_LINKED);
     testStates("cbox", (STATE_HASPOPUP | STATE_COLLAPSED),
                EXT_STATE_EXPANDABLE, STATE_LINKED);
 
--- a/accessible/tests/mochitest/tree/test_aria_imgmap.html
+++ b/accessible/tests/mochitest/tree/test_aria_imgmap.html
@@ -3,27 +3,34 @@
 <head>
   <title>Test usemap elements and ARIA</title>
   <link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css" />
 
   <script type="application/javascript"
           src="chrome://mochikit/content/MochiKit/packed.js"></script>
   <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="chrome://mochikit/content/a11y/accessible/common.js"></script>
   <script type="application/javascript"
           src="chrome://mochikit/content/a11y/accessible/role.js"></script>
   <script type="application/javascript"
           src="chrome://mochikit/content/a11y/accessible/states.js"></script>
 
   <script type="application/javascript">
   function doTest()
   {
+    //XXX We send a useless mouse move to the image to force it to setup its
+    // image map, because flushing layout won't do it. Hopefully bug 135040
+    // will make this not suck.
+    synthesizeMouse($("imagemap"), 10, 10, { type: "mousemove" });
+
     var accTree = {
       role: ROLE_IMAGE_MAP,
       children: [
         {
           role: ROLE_ENTRY,
           name: "first name"
         },
         {