| OLD | NEW | 
|---|
| 1 #!/usr/bin/python | 1 #!/usr/bin/python | 
| 2 # Copyright (c) 2012, the Dart project authors.  Please see the AUTHORS file | 2 # Copyright (c) 2012, the Dart project authors.  Please see the AUTHORS file | 
| 3 # for details. All rights reserved. Use of this source code is governed by a | 3 # for details. All rights reserved. Use of this source code is governed by a | 
| 4 # BSD-style license that can be found in the LICENSE file. | 4 # BSD-style license that can be found in the LICENSE file. | 
| 5 import logging | 5 import logging | 
| 6 import monitored | 6 import monitored | 
| 7 import re | 7 import re | 
| 8 | 8 | 
| 9 typed_array_renames = { | 9 typed_array_renames = { | 
| 10     'ArrayBuffer': 'ByteBuffer', | 10     'ArrayBuffer': 'ByteBuffer', | 
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 42     'HTMLElement' : 'HtmlElement', | 42     'HTMLElement' : 'HtmlElement', | 
| 43     'HTMLHtmlElement' : 'HtmlHtmlElement', | 43     'HTMLHtmlElement' : 'HtmlHtmlElement', | 
| 44     'IDBFactory': 'IdbFactory', # Manual to avoid name conflicts. | 44     'IDBFactory': 'IdbFactory', # Manual to avoid name conflicts. | 
| 45     'Key': 'CryptoKey', | 45     'Key': 'CryptoKey', | 
| 46     'NamedNodeMap': '_NamedNodeMap', | 46     'NamedNodeMap': '_NamedNodeMap', | 
| 47     'NavigatorUserMediaErrorCallback': '_NavigatorUserMediaErrorCallback', | 47     'NavigatorUserMediaErrorCallback': '_NavigatorUserMediaErrorCallback', | 
| 48     'NavigatorUserMediaSuccessCallback': '_NavigatorUserMediaSuccessCallback', | 48     'NavigatorUserMediaSuccessCallback': '_NavigatorUserMediaSuccessCallback', | 
| 49     'NotificationPermissionCallback': '_NotificationPermissionCallback', | 49     'NotificationPermissionCallback': '_NotificationPermissionCallback', | 
| 50     'PositionCallback': '_PositionCallback', | 50     'PositionCallback': '_PositionCallback', | 
| 51     'PositionErrorCallback': '_PositionErrorCallback', | 51     'PositionErrorCallback': '_PositionErrorCallback', | 
|  | 52     'Request': '_Request', | 
| 52     'RTCDTMFSender': 'RtcDtmfSender', | 53     'RTCDTMFSender': 'RtcDtmfSender', | 
| 53     'RTCDTMFToneChangeEvent': 'RtcDtmfToneChangeEvent', | 54     'RTCDTMFToneChangeEvent': 'RtcDtmfToneChangeEvent', | 
| 54     'RTCErrorCallback': '_RtcErrorCallback', | 55     'RTCErrorCallback': '_RtcErrorCallback', | 
| 55     'RTCSessionDescriptionCallback': '_RtcSessionDescriptionCallback', | 56     'RTCSessionDescriptionCallback': '_RtcSessionDescriptionCallback', | 
| 56     'SVGDocument': 'SvgDocument', # Manual to avoid name conflicts. | 57     'SVGDocument': 'SvgDocument', # Manual to avoid name conflicts. | 
| 57     'SVGElement': 'SvgElement', # Manual to avoid name conflicts. | 58     'SVGElement': 'SvgElement', # Manual to avoid name conflicts. | 
| 58     'SVGGradientElement': '_GradientElement', | 59     'SVGGradientElement': '_GradientElement', | 
| 59     'SVGSVGElement': 'SvgSvgElement', # Manual to avoid name conflicts. | 60     'SVGSVGElement': 'SvgSvgElement', # Manual to avoid name conflicts. | 
| 60     'Stream': 'FileStream', | 61     'Stream': 'FileStream', | 
| 61     'StringCallback': '_StringCallback', | 62     'StringCallback': '_StringCallback', | 
| (...skipping 942 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1004 | 1005 | 
| 1005     # We're looking for a sequence of letters which start with capital letter | 1006     # We're looking for a sequence of letters which start with capital letter | 
| 1006     # then a series of caps and finishes with either the end of the string or | 1007     # then a series of caps and finishes with either the end of the string or | 
| 1007     # a capital letter. | 1008     # a capital letter. | 
| 1008     # The [0-9] check is for names such as 2D or 3D | 1009     # The [0-9] check is for names such as 2D or 3D | 
| 1009     # The following test cases should match as: | 1010     # The following test cases should match as: | 
| 1010     #   WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 1011     #   WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 
| 1011     #   XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 1012     #   XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 
| 1012     #   IFrameElement: (I)()(F)rameElement (no change) | 1013     #   IFrameElement: (I)()(F)rameElement (no change) | 
| 1013     return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 1014     return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 
| OLD | NEW | 
|---|