gecko-dev/js/xpconnect/tests/unit/test_bug677864.js
Bobby Holley e59ba552a5 Bug 951948 - Get rid of manual nsIClassInfo and nsIXPCScriptable implementations for nsXPCComponents. r=mrbkap
The macro-driven ClassInfo stuff doesn't do getClassDescription, so we need to
change that test.
2014-01-14 18:49:29 -08:00

12 lines
481 B
JavaScript

function check_cl(iface, desc) {
do_check_eq(iface.QueryInterface(Components.interfaces.nsIClassInfo).classDescription, desc);
}
function run_test() {
check_cl(Components.interfaces, 'XPCComponents_Interfaces');
check_cl(Components.interfacesByID, 'XPCComponents_InterfacesByID');
check_cl(Components.classes, 'XPCComponents_Classes');
check_cl(Components.classesByID, 'XPCComponents_ClassesByID');
check_cl(Components.results, 'XPCComponents_Results');
}