| 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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 'DocumentFragment.querySelectorAll', | 196 'DocumentFragment.querySelectorAll', |
| 197 'Element.childElementCount', | 197 'Element.childElementCount', |
| 198 'Element.children', | 198 'Element.children', |
| 199 'Element.className', | 199 'Element.className', |
| 200 'Element.firstElementChild', | 200 'Element.firstElementChild', |
| 201 'Element.getAttribute', | 201 'Element.getAttribute', |
| 202 'Element.getAttributeNS', | 202 'Element.getAttributeNS', |
| 203 'Element.getElementsByTagName', | 203 'Element.getElementsByTagName', |
| 204 'Element.hasAttribute', | 204 'Element.hasAttribute', |
| 205 'Element.hasAttributeNS', | 205 'Element.hasAttributeNS', |
| 206 'Element.innerHTML', |
| 206 'Element.lastElementChild', | 207 'Element.lastElementChild', |
| 207 'Element.querySelectorAll', | 208 'Element.querySelectorAll', |
| 208 'Element.removeAttribute', | 209 'Element.removeAttribute', |
| 209 'Element.removeAttributeNS', | 210 'Element.removeAttributeNS', |
| 210 'Element.scrollIntoView', | 211 'Element.scrollIntoView', |
| 211 'Element.scrollIntoViewIfNeeded', | 212 'Element.scrollIntoViewIfNeeded', |
| 212 'Element.setAttributeNS', | 213 'Element.setAttributeNS', |
| 213 'Element.setAttribute', | 214 'Element.setAttribute', |
| 214 'Element.setAttributeNS', | 215 'Element.setAttributeNS', |
| 215 'ElementTraversal.childElementCount', | 216 'ElementTraversal.childElementCount', |
| (...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 770 | 771 |
| 771 # We're looking for a sequence of letters which start with capital letter | 772 # We're looking for a sequence of letters which start with capital letter |
| 772 # then a series of caps and finishes with either the end of the string or | 773 # then a series of caps and finishes with either the end of the string or |
| 773 # a capital letter. | 774 # a capital letter. |
| 774 # The [0-9] check is for names such as 2D or 3D | 775 # The [0-9] check is for names such as 2D or 3D |
| 775 # The following test cases should match as: | 776 # The following test cases should match as: |
| 776 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 777 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
| 777 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 778 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
| 778 # IFrameElement: (I)()(F)rameElement (no change) | 779 # IFrameElement: (I)()(F)rameElement (no change) |
| 779 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 780 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
| OLD | NEW |