Electrolysis/e10s test tips: Difference between revisions

Jump to navigation Jump to search
Adjust about page reference
(Note about mousewheel and touch events)
(Adjust about page reference)
Line 66: Line 66:
If you have a test that is failing intermittently, look to ensure that BrowserTestUtils is used to open, load and switch tabs. While you do, remove any custom loading and tab switching or focusing code in tests and use BrowserTestUtils instead. Sometimes this will be located in a head.js file, shared between tests in a directory.
If you have a test that is failing intermittently, look to ensure that BrowserTestUtils is used to open, load and switch tabs. While you do, remove any custom loading and tab switching or focusing code in tests and use BrowserTestUtils instead. Sometimes this will be located in a head.js file, shared between tests in a directory.


The browser loading methods don't tend to work well with "about:" URLs. You may instead just use waitForEvent(browser, "load"), or in some cases, just pass false for the third argument to not wait for the url to load.
The browser loading methods don't tend to work well with some cases such as error pages or "about:blank" URLs. You may instead just use waitForEvent(browser, "load"), or in some cases, just pass false for the third argument to not wait for the url to load.


=== Synthesizing mouse events ===
=== Synthesizing mouse events ===
287

edits

Navigation menu