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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
187 'Document.webkitFullscreenEnabled', | 187 'Document.webkitFullscreenEnabled', |
188 'Document.webkitHidden', | 188 'Document.webkitHidden', |
189 'Document.webkitIsFullScreen', | 189 'Document.webkitIsFullScreen', |
190 'Document.webkitPointerLockElement', | 190 'Document.webkitPointerLockElement', |
191 'Document.webkitVisibilityState', | 191 'Document.webkitVisibilityState', |
192 | 192 |
193 'DocumentFragment.querySelector', | 193 'DocumentFragment.querySelector', |
194 'DocumentFragment.querySelectorAll', | 194 'DocumentFragment.querySelectorAll', |
195 'Element.childElementCount', | 195 'Element.childElementCount', |
196 'Element.children', | 196 'Element.children', |
197 'Element.className', | |
198 'Element.firstElementChild', | 197 'Element.firstElementChild', |
199 'Element.getAttribute', | 198 'Element.getAttribute', |
200 'Element.getAttributeNS', | 199 'Element.getAttributeNS', |
201 'Element.getElementsByTagName', | 200 'Element.getElementsByTagName', |
202 'Element.hasAttribute', | 201 'Element.hasAttribute', |
203 'Element.hasAttributeNS', | 202 'Element.hasAttributeNS', |
204 'Element.lastElementChild', | 203 'Element.lastElementChild', |
205 'Element.querySelectorAll', | 204 'Element.querySelectorAll', |
206 'Element.removeAttribute', | 205 'Element.removeAttribute', |
207 'Element.removeAttributeNS', | 206 'Element.removeAttributeNS', |
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
666 'MouseEvent.x', | 665 'MouseEvent.x', |
667 'MouseEvent.y', | 666 'MouseEvent.y', |
668 'Node.compareDocumentPosition', | 667 'Node.compareDocumentPosition', |
669 'Node.get:DOCUMENT_POSITION_CONTAINED_BY', | 668 'Node.get:DOCUMENT_POSITION_CONTAINED_BY', |
670 'Node.get:DOCUMENT_POSITION_CONTAINS', | 669 'Node.get:DOCUMENT_POSITION_CONTAINS', |
671 'Node.get:DOCUMENT_POSITION_DISCONNECTED', | 670 'Node.get:DOCUMENT_POSITION_DISCONNECTED', |
672 'Node.get:DOCUMENT_POSITION_FOLLOWING', | 671 'Node.get:DOCUMENT_POSITION_FOLLOWING', |
673 'Node.get:DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC', | 672 'Node.get:DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC', |
674 'Node.get:DOCUMENT_POSITION_PRECEDING', | 673 'Node.get:DOCUMENT_POSITION_PRECEDING', |
675 'Node.get:baseURI', | 674 'Node.get:baseURI', |
676 'Node.get:nodeName', | |
blois
2013/07/12 21:30:38
Should re-gen w/ go.sh to update dart2js as well.
| |
677 'Node.get:prefix', | 675 'Node.get:prefix', |
678 'Node.hasAttributes', | 676 'Node.hasAttributes', |
679 'Node.isDefaultNamespace', | 677 'Node.isDefaultNamespace', |
680 'Node.isEqualNode', | 678 'Node.isEqualNode', |
681 'Node.isSameNode', | 679 'Node.isSameNode', |
682 'Node.isSupported', | 680 'Node.isSupported', |
683 'Node.lookupNamespaceURI', | 681 'Node.lookupNamespaceURI', |
684 'Node.lookupPrefix', | 682 'Node.lookupPrefix', |
685 'Node.normalize', | 683 'Node.normalize', |
686 'Node.set:nodeValue', | 684 'Node.set:nodeValue', |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
849 | 847 |
850 # We're looking for a sequence of letters which start with capital letter | 848 # We're looking for a sequence of letters which start with capital letter |
851 # then a series of caps and finishes with either the end of the string or | 849 # then a series of caps and finishes with either the end of the string or |
852 # a capital letter. | 850 # a capital letter. |
853 # The [0-9] check is for names such as 2D or 3D | 851 # The [0-9] check is for names such as 2D or 3D |
854 # The following test cases should match as: | 852 # The following test cases should match as: |
855 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 853 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
856 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 854 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
857 # IFrameElement: (I)()(F)rameElement (no change) | 855 # IFrameElement: (I)()(F)rameElement (no change) |
858 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 856 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
OLD | NEW |