| 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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 'MouseEvent.clientY', | 281 'MouseEvent.clientY', |
| 282 'MouseEvent.webkitMovementX', | 282 'MouseEvent.webkitMovementX', |
| 283 'MouseEvent.webkitMovementY', | 283 'MouseEvent.webkitMovementY', |
| 284 'MouseEvent.offsetX', | 284 'MouseEvent.offsetX', |
| 285 'MouseEvent.offsetY', | 285 'MouseEvent.offsetY', |
| 286 'MouseEvent.screenX', | 286 'MouseEvent.screenX', |
| 287 'MouseEvent.screenY', | 287 'MouseEvent.screenY', |
| 288 'MutationEvent.initMutationEvent', | 288 'MutationEvent.initMutationEvent', |
| 289 'MutationObserver.observe', | 289 'MutationObserver.observe', |
| 290 'Node.attributes', | 290 'Node.attributes', |
| 291 'Node.baseURI', | |
| 292 'Node.localName', | 291 'Node.localName', |
| 293 'Node.namespaceURI', | 292 'Node.namespaceURI', |
| 294 'Node.removeChild', | 293 'Node.removeChild', |
| 295 'Node.replaceChild', | 294 'Node.replaceChild', |
| 296 'ParentNode.childElementCount', | 295 'ParentNode.childElementCount', |
| 297 'ParentNode.children', | 296 'ParentNode.children', |
| 298 'ParentNode.firstElementChild', | 297 'ParentNode.firstElementChild', |
| 299 'ParentNode.lastElementChild', | 298 'ParentNode.lastElementChild', |
| 300 'RTCPeerConnection.createAnswer', | 299 'RTCPeerConnection.createAnswer', |
| 301 'RTCPeerConnection.createOffer', | 300 'RTCPeerConnection.createOffer', |
| (...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 965 | 964 |
| 966 # We're looking for a sequence of letters which start with capital letter | 965 # We're looking for a sequence of letters which start with capital letter |
| 967 # then a series of caps and finishes with either the end of the string or | 966 # then a series of caps and finishes with either the end of the string or |
| 968 # a capital letter. | 967 # a capital letter. |
| 969 # The [0-9] check is for names such as 2D or 3D | 968 # The [0-9] check is for names such as 2D or 3D |
| 970 # The following test cases should match as: | 969 # The following test cases should match as: |
| 971 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 970 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
| 972 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 971 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
| 973 # IFrameElement: (I)()(F)rameElement (no change) | 972 # IFrameElement: (I)()(F)rameElement (no change) |
| 974 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 973 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
| OLD | NEW |