| 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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 'ParentNode.children', | 296 'ParentNode.children', |
| 297 'ParentNode.firstElementChild', | 297 'ParentNode.firstElementChild', |
| 298 'ParentNode.lastElementChild', | 298 'ParentNode.lastElementChild', |
| 299 'RTCPeerConnection.createAnswer', | 299 'RTCPeerConnection.createAnswer', |
| 300 'RTCPeerConnection.createOffer', | 300 'RTCPeerConnection.createOffer', |
| 301 'RTCPeerConnection.getStats', | 301 'RTCPeerConnection.getStats', |
| 302 'Screen.availHeight', | 302 'Screen.availHeight', |
| 303 'Screen.availLeft', | 303 'Screen.availLeft', |
| 304 'Screen.availTop', | 304 'Screen.availTop', |
| 305 'Screen.availWidth', | 305 'Screen.availWidth', |
| 306 'ShadowRoot.resetStyleInheritance', |
| 306 'Storage.clear', | 307 'Storage.clear', |
| 307 'Storage.getItem', | 308 'Storage.getItem', |
| 308 'Storage.key', | 309 'Storage.key', |
| 309 'Storage.length', | 310 'Storage.length', |
| 310 'Storage.removeItem', | 311 'Storage.removeItem', |
| 311 'Storage.setItem', | 312 'Storage.setItem', |
| 312 'StorageEvent.initStorageEvent', | 313 'StorageEvent.initStorageEvent', |
| 313 'TextEvent.initTextEvent', | 314 'TextEvent.initTextEvent', |
| 314 'Touch.clientX', | 315 'Touch.clientX', |
| 315 'Touch.clientY', | 316 'Touch.clientY', |
| (...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 964 | 965 |
| 965 # We're looking for a sequence of letters which start with capital letter | 966 # We're looking for a sequence of letters which start with capital letter |
| 966 # then a series of caps and finishes with either the end of the string or | 967 # then a series of caps and finishes with either the end of the string or |
| 967 # a capital letter. | 968 # a capital letter. |
| 968 # The [0-9] check is for names such as 2D or 3D | 969 # The [0-9] check is for names such as 2D or 3D |
| 969 # The following test cases should match as: | 970 # The following test cases should match as: |
| 970 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 971 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
| 971 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 972 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
| 972 # IFrameElement: (I)()(F)rameElement (no change) | 973 # IFrameElement: (I)()(F)rameElement (no change) |
| 973 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 974 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
| OLD | NEW |