| 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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 'ElementTraversal.childElementCount', | 213 'ElementTraversal.childElementCount', |
| 214 'ElementTraversal.firstElementChild', | 214 'ElementTraversal.firstElementChild', |
| 215 'ElementTraversal.lastElementChild', | 215 'ElementTraversal.lastElementChild', |
| 216 'Event.initEvent', | 216 'Event.initEvent', |
| 217 'EventTarget.addEventListener', | 217 'EventTarget.addEventListener', |
| 218 'EventTarget.removeEventListener', | 218 'EventTarget.removeEventListener', |
| 219 'Geolocation.clearWatch', | 219 'Geolocation.clearWatch', |
| 220 'Geolocation.getCurrentPosition', | 220 'Geolocation.getCurrentPosition', |
| 221 'Geolocation.watchPosition', | 221 'Geolocation.watchPosition', |
| 222 'HashChangeEvent.initHashChangeEvent', | 222 'HashChangeEvent.initHashChangeEvent', |
| 223 'HTMLCanvasElement.toDataURL', |
| 223 'HTMLTableElement.createCaption', | 224 'HTMLTableElement.createCaption', |
| 224 'HTMLTableElement.createTBody', | 225 'HTMLTableElement.createTBody', |
| 225 'HTMLTableElement.createTFoot', | 226 'HTMLTableElement.createTFoot', |
| 226 'HTMLTableElement.createTHead', | 227 'HTMLTableElement.createTHead', |
| 227 'HTMLTableElement.insertRow', | 228 'HTMLTableElement.insertRow', |
| 228 'HTMLTableElement.rows', | 229 'HTMLTableElement.rows', |
| 229 'HTMLTableElement.tBodies', | 230 'HTMLTableElement.tBodies', |
| 230 'HTMLTableRowElement.cells', | 231 'HTMLTableRowElement.cells', |
| 231 'HTMLTableRowElement.insertCell', | 232 'HTMLTableRowElement.insertCell', |
| 232 'HTMLTableSectionElement.insertRow', | 233 'HTMLTableSectionElement.insertRow', |
| (...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 848 | 849 |
| 849 # We're looking for a sequence of letters which start with capital letter | 850 # We're looking for a sequence of letters which start with capital letter |
| 850 # then a series of caps and finishes with either the end of the string or | 851 # then a series of caps and finishes with either the end of the string or |
| 851 # a capital letter. | 852 # a capital letter. |
| 852 # The [0-9] check is for names such as 2D or 3D | 853 # The [0-9] check is for names such as 2D or 3D |
| 853 # The following test cases should match as: | 854 # The following test cases should match as: |
| 854 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 855 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
| 855 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 856 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
| 856 # IFrameElement: (I)()(F)rameElement (no change) | 857 # IFrameElement: (I)()(F)rameElement (no change) |
| 857 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 858 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
| OLD | NEW |