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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 'Element.children', | 198 'Element.children', |
199 'Element.firstElementChild', | 199 'Element.firstElementChild', |
200 'ParentNode.childElementCount', | 200 'ParentNode.childElementCount', |
201 'ParentNode.children', | 201 'ParentNode.children', |
202 'ParentNode.firstElementChild', | 202 'ParentNode.firstElementChild', |
203 'Element.getAttribute', | 203 'Element.getAttribute', |
204 'Element.getAttributeNS', | 204 'Element.getAttributeNS', |
205 'Element.getElementsByTagName', | 205 'Element.getElementsByTagName', |
206 'Element.hasAttribute', | 206 'Element.hasAttribute', |
207 'Element.hasAttributeNS', | 207 'Element.hasAttributeNS', |
| 208 'Element.innerHTML', |
208 'ParentNode.lastElementChild', | 209 'ParentNode.lastElementChild', |
209 'Element.querySelectorAll', | 210 'Element.querySelectorAll', |
210 'Element.removeAttribute', | 211 'Element.removeAttribute', |
211 'Element.removeAttributeNS', | 212 'Element.removeAttributeNS', |
212 'Element.scrollIntoView', | 213 'Element.scrollIntoView', |
213 'Element.scrollIntoViewIfNeeded', | 214 'Element.scrollIntoViewIfNeeded', |
214 'Element.setAttributeNS', | 215 'Element.setAttributeNS', |
215 'Element.setAttribute', | 216 'Element.setAttribute', |
216 'Element.setAttributeNS', | 217 'Element.setAttributeNS', |
217 'Event.initEvent', | 218 'Event.initEvent', |
(...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
864 | 865 |
865 # We're looking for a sequence of letters which start with capital letter | 866 # We're looking for a sequence of letters which start with capital letter |
866 # then a series of caps and finishes with either the end of the string or | 867 # then a series of caps and finishes with either the end of the string or |
867 # a capital letter. | 868 # a capital letter. |
868 # The [0-9] check is for names such as 2D or 3D | 869 # The [0-9] check is for names such as 2D or 3D |
869 # The following test cases should match as: | 870 # The following test cases should match as: |
870 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 871 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
871 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 872 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
872 # IFrameElement: (I)()(F)rameElement (no change) | 873 # IFrameElement: (I)()(F)rameElement (no change) |
873 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 874 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
OLD | NEW |