Opened 10 years ago

Closed 10 years ago

#8958 closed defect (fixed)

robot test repeating problem (IE8)

Reported by: bill Owned by: haysmark
Priority: high Milestone: 1.4
Component: TestFramework Version: 1.3.0b3
Keywords: Cc:
Blocked By: Blocking:


I'm getting a problem that when Dialog_a11y.html or Dialog_mouse.html run (and probably other tests too) on my IE8 machine, it runs the test twice (reporting the results twice too). I traced this much:

There's an <input> in runner.html:

<input type="text" tabIndex="-1" style="border:0px

When I load the page (hitting the refresh button on the browser), the onmousewheel handler fires. Not sure why, since I didn't move the mouse wheel. Anyway, that calls doh.robot._onKeyboard(), and that does the setTimeout:

	        var rf = document.getElementsByTagName('input')[0]; = "hidden";
	}, 0);

Then the timeout fires, and doh.robot._run() is called, which calls

That makes the test suite execute. is actually called repeatedly, apparently because of all the deferreds (the test is paused then resumed at each deferred I think), but that seems normal.

The problem is that after (what should be) the final completes, and the results are reported... that's when _initRobot() gets called. Apparently that's supposed to get called first, right?

_initRobot() calls which then runs the entire test suite over.

Change History (2)

comment:1 Changed 10 years ago by bill

Milestone: tbd1.4

Apparently this bug only occurs when the IE8 developer toolbar is turned on. (The debugger doesn't have to be running, just the DOM inspector thing.)

Anyway, I checked in a change in [17226] so _initRobot() only runs once, and that seems to solve the problem.

comment:2 Changed 10 years ago by bill

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.