mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 00:05:36 +00:00
ee6633da5c
For static components, I don't intend to allow removing or replacing CID entries, only contract ID entries. And I would generally prefer, when restoring overrides of those classes, to not create a new dynamic factory entry for the contract ID. We already have the ability to mock components without either of those issues, but registering a new CID entry for the mock (without unregistering the original), and then restoring the original by calling `registerFactory` with a null factory object. This patch updates our existing mocks to behave that way, and paves the way for the rest of the patches. Differential Revision: https://phabricator.services.mozilla.com/D15031 --HG-- extra : rebase_source : 449f37ae8a3cc970e5f864d10e43e88d9e7e4bf6 extra : source : bedaa9c437ad30ea88bdc0e8fc83f4a2e980812e |
||
---|---|---|
.. | ||
tests | ||
ajv-4.1.1.js | ||
AppData.jsm | ||
AppInfo.jsm | ||
Assert.jsm | ||
CoverageUtils.jsm | ||
FileTestUtils.jsm | ||
MockRegistrar.jsm | ||
MockRegistry.jsm | ||
moz.build | ||
sinon-2.3.2.js | ||
StructuredLog.jsm | ||
TestUtils.jsm |