| 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 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 584 'HTMLTableSectionElement.ch', | 584 'HTMLTableSectionElement.ch', |
| 585 'HTMLTableSectionElement.chOff', | 585 'HTMLTableSectionElement.chOff', |
| 586 'HTMLTableSectionElement.vAlign', | 586 'HTMLTableSectionElement.vAlign', |
| 587 'HTMLTitleElement.text', | 587 'HTMLTitleElement.text', |
| 588 'HTMLUListElement.compact', | 588 'HTMLUListElement.compact', |
| 589 'HTMLUListElement.type', | 589 'HTMLUListElement.type', |
| 590 'MessageEvent.webkitInitMessageEvent', | 590 'MessageEvent.webkitInitMessageEvent', |
| 591 'MouseEvent.x', | 591 'MouseEvent.x', |
| 592 'MouseEvent.y', | 592 'MouseEvent.y', |
| 593 'Node.compareDocumentPosition', | 593 'Node.compareDocumentPosition', |
| 594 'Node.get:ATTRIBUTE_NODE', | |
| 595 'Node.get:CDATA_SECTION_NODE', | |
| 596 'Node.get:COMMENT_NODE', | |
| 597 'Node.get:DOCUMENT_FRAGMENT_NODE', | |
| 598 'Node.get:DOCUMENT_NODE', | |
| 599 'Node.get:DOCUMENT_POSITION_CONTAINED_BY', | 594 'Node.get:DOCUMENT_POSITION_CONTAINED_BY', |
| 600 'Node.get:DOCUMENT_POSITION_CONTAINS', | 595 'Node.get:DOCUMENT_POSITION_CONTAINS', |
| 601 'Node.get:DOCUMENT_POSITION_DISCONNECTED', | 596 'Node.get:DOCUMENT_POSITION_DISCONNECTED', |
| 602 'Node.get:DOCUMENT_POSITION_FOLLOWING', | 597 'Node.get:DOCUMENT_POSITION_FOLLOWING', |
| 603 'Node.get:DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC', | 598 'Node.get:DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC', |
| 604 'Node.get:DOCUMENT_POSITION_PRECEDING', | 599 'Node.get:DOCUMENT_POSITION_PRECEDING', |
| 605 'Node.get:DOCUMENT_TYPE_NODE', | |
| 606 'Node.get:ELEMENT_NODE', | |
| 607 'Node.get:ENTITY_NODE', | |
| 608 'Node.get:ENTITY_REFERENCE_NODE', | |
| 609 'Node.get:NOTATION_NODE', | |
| 610 'Node.get:PROCESSING_INSTRUCTION_NODE', | |
| 611 'Node.get:TEXT_NODE', | |
| 612 'Node.get:baseURI', | 600 'Node.get:baseURI', |
| 613 'Node.get:nodeName', | 601 'Node.get:nodeName', |
| 614 'Node.get:prefix', | 602 'Node.get:prefix', |
| 615 'Node.hasAttributes', | 603 'Node.hasAttributes', |
| 616 'Node.isDefaultNamespace', | 604 'Node.isDefaultNamespace', |
| 617 'Node.isEqualNode', | 605 'Node.isEqualNode', |
| 618 'Node.isSameNode', | 606 'Node.isSameNode', |
| 619 'Node.isSupported', | 607 'Node.isSupported', |
| 620 'Node.lookupNamespaceURI', | 608 'Node.lookupNamespaceURI', |
| 621 'Node.lookupPrefix', | 609 'Node.lookupPrefix', |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 767 | 755 |
| 768 # We're looking for a sequence of letters which start with capital letter | 756 # We're looking for a sequence of letters which start with capital letter |
| 769 # then a series of caps and finishes with either the end of the string or | 757 # then a series of caps and finishes with either the end of the string or |
| 770 # a capital letter. | 758 # a capital letter. |
| 771 # The [0-9] check is for names such as 2D or 3D | 759 # The [0-9] check is for names such as 2D or 3D |
| 772 # The following test cases should match as: | 760 # The following test cases should match as: |
| 773 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 761 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
| 774 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 762 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
| 775 # IFrameElement: (I)()(F)rameElement (no change) | 763 # IFrameElement: (I)()(F)rameElement (no change) |
| 776 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 764 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
| OLD | NEW |