RetroZilla/extensions/webservices/interfaceinfo/tests/ifaceinfotest.js

22 lines
744 B
JavaScript
Raw Normal View History

2015-10-21 05:03:22 +02:00
const IDL_GENERATOR =
new Components.Constructor("@mozilla.org/interfaceinfotoidl;1",
"nsIInterfaceInfoToIDL");
var gen = new IDL_GENERATOR();
function generateIDL(iid) {return gen.generateIDL(iid, false, false);}
print();
print();
print(generateIDL(Components.interfaces.nsISupports));
print("//------------------------------------------------------------");
print(generateIDL(Components.interfaces.nsIDataType));
print("//------------------------------------------------------------");
print(generateIDL(Components.interfaces.nsIScriptableInterfaceInfo));
print("//------------------------------------------------------------");
print(generateIDL(Components.interfaces.nsIVariant));
print();
print();