| 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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 'MouseEvent.clientY', | 258 'MouseEvent.clientY', |
| 259 'MouseEvent.webkitMovementX', | 259 'MouseEvent.webkitMovementX', |
| 260 'MouseEvent.webkitMovementY', | 260 'MouseEvent.webkitMovementY', |
| 261 'MouseEvent.offsetX', | 261 'MouseEvent.offsetX', |
| 262 'MouseEvent.offsetY', | 262 'MouseEvent.offsetY', |
| 263 'MouseEvent.screenX', | 263 'MouseEvent.screenX', |
| 264 'MouseEvent.screenY', | 264 'MouseEvent.screenY', |
| 265 'MutationEvent.initMutationEvent', | 265 'MutationEvent.initMutationEvent', |
| 266 'Node.attributes', | 266 'Node.attributes', |
| 267 'Node.childNodes', | 267 'Node.childNodes', |
| 268 'Node.firstChild', | |
| 269 'Node.lastChild', | |
| 270 'Node.localName', | 268 'Node.localName', |
| 271 'Node.namespaceURI', | 269 'Node.namespaceURI', |
| 272 'Node.removeChild', | 270 'Node.removeChild', |
| 273 'Node.replaceChild', | 271 'Node.replaceChild', |
| 274 'Screen.availHeight', | 272 'Screen.availHeight', |
| 275 'Screen.availLeft', | 273 'Screen.availLeft', |
| 276 'Screen.availTop', | 274 'Screen.availTop', |
| 277 'Screen.availWidth', | 275 'Screen.availWidth', |
| 278 'Storage.clear', | 276 'Storage.clear', |
| 279 'Storage.getItem', | 277 'Storage.getItem', |
| (...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 772 | 770 |
| 773 # We're looking for a sequence of letters which start with capital letter | 771 # We're looking for a sequence of letters which start with capital letter |
| 774 # then a series of caps and finishes with either the end of the string or | 772 # then a series of caps and finishes with either the end of the string or |
| 775 # a capital letter. | 773 # a capital letter. |
| 776 # The [0-9] check is for names such as 2D or 3D | 774 # The [0-9] check is for names such as 2D or 3D |
| 777 # The following test cases should match as: | 775 # The following test cases should match as: |
| 778 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 776 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
| 779 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 777 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
| 780 # IFrameElement: (I)()(F)rameElement (no change) | 778 # IFrameElement: (I)()(F)rameElement (no change) |
| 781 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 779 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
| OLD | NEW |