let instance = new TestClass(); Assert.ok(instance, "can create an instance"); Assert.ok(instance.QueryInterface(Ci.nsIClassInfo), "can QI to nsIClassInfo");
let otherInstance = Cc["@mozilla.org/test/class;1"].createInstance(
Ci.nsIXPCTestInterfaceA
); Assert.ok(otherInstance, "can create an instance via xpcom");
});
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.