Open Bug 2028542 Opened 5 months ago

Rewrite and re-enable dom/tests/mochitest/pointerlock/test_pointerlock-api.html

Categories

(Core :: DOM: Core & HTML, task)

task

Tracking

()

People

(Reporter: arai, Unassigned)

References

Details

dom/tests/mochitest/pointerlock/test_pointerlock-api.html is disabled due to causing intermittent failure in various configuration.
The testcase has timing-dependent code such as the following:

https://searchfox.org/firefox-main/rev/65f89c383b216d3b4f210657c9af12a32048fb67/dom/tests/mochitest/pointerlock/test_pointerlock-api.html#81-83

// Try to stabilize the state before running the next test.
SimpleTest.waitForFocus(
  () => requestAnimationFrame(() => setTimeout(runNextTest)));

with multiple sub tests inside it, with overwriting the test harness.
It should be rewritten with more stable and reliable way, and each sub-test should be split into standalone test.

You need to log in before you can comment on or make changes to this bug.