Open Bug 862626 Opened 7 years ago Updated 2 years ago

expose ChromeUtils as a global symbol in browser chrome, avoid re-loading chrome-harness.js for every test

Categories

(Testing :: Mochitest, defect)

defect
Not set

Tracking

(Not tracked)

People

(Reporter: Gavin, Unassigned)

Details

Attachments

(1 file)

Essentially landing bug 857073's original patch, and also adjusting the test harness to avoid loading these scripts unless they are referenced in the test. Might even reduce test times!
So I was wrong about how this works - the script is already only loaded once by the Tester object, and then just referenced again from every testScope. But there are some inefficiencies with the chrome-harness script, and some testScope initialization stuff that could be fixed up.
Summary: expose ChromeUtils as a global symbol in browser chrome, and load it and EventUtils lazily → expose ChromeUtils as a global symbol in browser chrome, avoid re-loading chrome-harness.js for every test
Attached patch patchSplinter Review
Something like this (still not tested).
Component: BrowserTest → Mochitest
You need to log in before you can comment on or make changes to this bug.