marker = NullMarker() test_difference(idl, parser.markup(marker)) assert (marker.text == idl) print(parser.markup(Marker())) print("Complexity: " + unicode(parser.complexityFactor)) for construct in parser.constructs: print( unicode(construct.idlType) + u': ' + unicode(construct.normalName)) for member in construct: print(' ' + member.idlType + ': ' + unicode(member.normalName) + ' (' + unicode(member.name) + ')') print("FIND:") print(parser.find('round').fullName) print(parser.find('Foo/method/y').fullName) print(parser.find('Foo.method').fullName) print(parser.find('Foo(constructor)').fullName) print(parser.find('longest').fullName) print(parser.find('fooArg').fullName) print(parser.find('Window').fullName) print(parser.find('mediaText').fullName) print(parser.find('Foo.method').markup(Marker())) for method in parser.findAll('Foo.method'): print(method.fullName) print("NORMALIZE:") print(parser.normalizedMethodName('foo')) print(parser.normalizedMethodName('unknown')) print(parser.normalizedMethodName('testMethod(short one, double two)'))
print("MARKED UP:") marker = NullMarker() test_difference(idl, parser.markup(marker)) assert(marker.text == idl) print(parser.markup(Marker())) print("Complexity: " + unicode(parser.complexityFactor)) for construct in parser.constructs: print(unicode(construct.idlType) + u': ' + unicode(construct.normalName)) for member in construct: print(' ' + member.idlType + ': ' + unicode(member.normalName) + ' (' + unicode(member.name) + ')') print("FIND:") print(parser.find('round').fullName) print(parser.find('Foo/method/y').fullName) print(parser.find('Foo.method').fullName) print(parser.find('Foo(constructor)').fullName) print(parser.find('longest').fullName) print(parser.find('fooArg').fullName) print(parser.find('Window').fullName) print(parser.find('mediaText').fullName) print(parser.find('Foo.method').markup(Marker())) for method in parser.findAll('Foo.method'): print(method.fullName) print("NORMALIZE:") print(parser.normalizedMethodName('foo')) print(parser.normalizedMethodName('unknown')) print(parser.normalizedMethodName('testMethod(short one, double two)'))