| 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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 'MouseEvent.clientY', | 266 'MouseEvent.clientY', |
| 267 'MouseEvent.webkitMovementX', | 267 'MouseEvent.webkitMovementX', |
| 268 'MouseEvent.webkitMovementY', | 268 'MouseEvent.webkitMovementY', |
| 269 'MouseEvent.offsetX', | 269 'MouseEvent.offsetX', |
| 270 'MouseEvent.offsetY', | 270 'MouseEvent.offsetY', |
| 271 'MouseEvent.screenX', | 271 'MouseEvent.screenX', |
| 272 'MouseEvent.screenY', | 272 'MouseEvent.screenY', |
| 273 'MutationEvent.initMutationEvent', | 273 'MutationEvent.initMutationEvent', |
| 274 'MutationObserver.observe', | 274 'MutationObserver.observe', |
| 275 'Node.attributes', | 275 'Node.attributes', |
| 276 'Node.baseURI', |
| 276 'Node.localName', | 277 'Node.localName', |
| 277 'Node.namespaceURI', | 278 'Node.namespaceURI', |
| 278 'Node.removeChild', | 279 'Node.removeChild', |
| 279 'Node.replaceChild', | 280 'Node.replaceChild', |
| 280 'ParentNode.childElementCount', | 281 'ParentNode.childElementCount', |
| 281 'ParentNode.children', | 282 'ParentNode.children', |
| 282 'ParentNode.firstElementChild', | 283 'ParentNode.firstElementChild', |
| 283 'ParentNode.lastElementChild', | 284 'ParentNode.lastElementChild', |
| 284 'RTCPeerConnection.createAnswer', | 285 'RTCPeerConnection.createAnswer', |
| 285 'RTCPeerConnection.createOffer', | 286 'RTCPeerConnection.createOffer', |
| (...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 699 'MessageEvent.webkitInitMessageEvent', | 700 'MessageEvent.webkitInitMessageEvent', |
| 700 'MouseEvent.x', | 701 'MouseEvent.x', |
| 701 'MouseEvent.y', | 702 'MouseEvent.y', |
| 702 'Node.compareDocumentPosition', | 703 'Node.compareDocumentPosition', |
| 703 'Node.get:DOCUMENT_POSITION_CONTAINED_BY', | 704 'Node.get:DOCUMENT_POSITION_CONTAINED_BY', |
| 704 'Node.get:DOCUMENT_POSITION_CONTAINS', | 705 'Node.get:DOCUMENT_POSITION_CONTAINS', |
| 705 'Node.get:DOCUMENT_POSITION_DISCONNECTED', | 706 'Node.get:DOCUMENT_POSITION_DISCONNECTED', |
| 706 'Node.get:DOCUMENT_POSITION_FOLLOWING', | 707 'Node.get:DOCUMENT_POSITION_FOLLOWING', |
| 707 'Node.get:DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC', | 708 'Node.get:DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC', |
| 708 'Node.get:DOCUMENT_POSITION_PRECEDING', | 709 'Node.get:DOCUMENT_POSITION_PRECEDING', |
| 709 'Node.get:baseURI', | |
| 710 'Node.get:prefix', | 710 'Node.get:prefix', |
| 711 'Node.hasAttributes', | 711 'Node.hasAttributes', |
| 712 'Node.isDefaultNamespace', | 712 'Node.isDefaultNamespace', |
| 713 'Node.isEqualNode', | 713 'Node.isEqualNode', |
| 714 'Node.isSameNode', | 714 'Node.isSameNode', |
| 715 'Node.isSupported', | 715 'Node.isSupported', |
| 716 'Node.lookupNamespaceURI', | 716 'Node.lookupNamespaceURI', |
| 717 'Node.lookupPrefix', | 717 'Node.lookupPrefix', |
| 718 'Node.normalize', | 718 'Node.normalize', |
| 719 'Node.set:nodeValue', | 719 'Node.set:nodeValue', |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 894 | 894 |
| 895 # We're looking for a sequence of letters which start with capital letter | 895 # We're looking for a sequence of letters which start with capital letter |
| 896 # then a series of caps and finishes with either the end of the string or | 896 # then a series of caps and finishes with either the end of the string or |
| 897 # a capital letter. | 897 # a capital letter. |
| 898 # The [0-9] check is for names such as 2D or 3D | 898 # The [0-9] check is for names such as 2D or 3D |
| 899 # The following test cases should match as: | 899 # The following test cases should match as: |
| 900 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 900 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
| 901 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 901 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
| 902 # IFrameElement: (I)()(F)rameElement (no change) | 902 # IFrameElement: (I)()(F)rameElement (no change) |
| 903 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 903 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
| OLD | NEW |