Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
test_misc.TestDumpInterfaces Class Reference

List of all members.

Public Member Functions

def testAllInterfaces

Detailed Description

Definition at line 76 of file test_misc.py.


Member Function Documentation

Definition at line 77 of file test_misc.py.

00077 
00078     def testAllInterfaces(self):
00079         "Dump every interface under the sun!"
00080         import xpcom, xpcom.xpt, xpcom._xpcom
00081         iim = xpcom._xpcom.XPTI_GetInterfaceInfoManager()
00082     
00083         if verbose_level:
00084             print "Dumping every interface I can find"
00085         enum = iim.EnumerateInterfaces()
00086         rc = enum.First()
00087         num = 0
00088         while rc==0:
00089             item = enum.CurrentItem(xpcom._xpcom.IID_nsIInterfaceInfo)
00090             try:
00091                 iid = item.GetIID()
00092             except xpcom.COMException:
00093                 if verbose_level:
00094                     print "Can't dump", item
00095                 continue # Dont bother dumping this.
00096             interface = xpcom.xpt.Interface(iid)
00097             num = num + 1
00098             text = interface.Describe()
00099             if verbose_level:
00100                 print text
00101     
00102             rc = enum.Next()
00103         if num < 200:
00104             print "Only found", num, "interfaces - this seems unusually low!"


The documentation for this class was generated from the following file: