gecko-dev/js/xpconnect/tests/unit/test_bug677864.js
Nika Layzell d2f648498e Bug 1477432 - Part 8: Remove test-only Components.classesById and Components.interfacesById, r=mccr8
These two interfaces are effectively never used, so to avoid needing to support
ClassID2JSValue with the new implementation, I remove them entirely.

Differential Revision: https://phabricator.services.mozilla.com/D2285
2018-11-16 17:27:42 -05:00

9 lines
272 B
JavaScript

function check_cl(iface, desc) {
Assert.equal(iface.QueryInterface(Ci.nsIClassInfo).classDescription, desc);
}
function run_test() {
check_cl(Ci, 'XPCComponents_Interfaces');
check_cl(Cc, 'XPCComponents_Classes');
check_cl(Cr, 'XPCComponents_Results');
}