| 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 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 'ParentNode.children', | 311 'ParentNode.children', |
| 312 'ParentNode.firstElementChild', | 312 'ParentNode.firstElementChild', |
| 313 'ParentNode.lastElementChild', | 313 'ParentNode.lastElementChild', |
| 314 'RTCPeerConnection.createAnswer', | 314 'RTCPeerConnection.createAnswer', |
| 315 'RTCPeerConnection.createOffer', | 315 'RTCPeerConnection.createOffer', |
| 316 'RTCPeerConnection.getStats', | 316 'RTCPeerConnection.getStats', |
| 317 'Screen.availHeight', | 317 'Screen.availHeight', |
| 318 'Screen.availLeft', | 318 'Screen.availLeft', |
| 319 'Screen.availTop', | 319 'Screen.availTop', |
| 320 'Screen.availWidth', | 320 'Screen.availWidth', |
| 321 'ShadowRoot.applyAuthorStyles', |
| 321 'ShadowRoot.resetStyleInheritance', | 322 'ShadowRoot.resetStyleInheritance', |
| 322 'Storage.clear', | 323 'Storage.clear', |
| 323 'Storage.getItem', | 324 'Storage.getItem', |
| 324 'Storage.key', | 325 'Storage.key', |
| 325 'Storage.length', | 326 'Storage.length', |
| 326 'Storage.removeItem', | 327 'Storage.removeItem', |
| 327 'Storage.setItem', | 328 'Storage.setItem', |
| 328 'StorageEvent.initStorageEvent', | 329 'StorageEvent.initStorageEvent', |
| 329 'TextEvent.initTextEvent', | 330 'TextEvent.initTextEvent', |
| 330 'Touch.clientX', | 331 'Touch.clientX', |
| (...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 980 | 981 |
| 981 # We're looking for a sequence of letters which start with capital letter | 982 # We're looking for a sequence of letters which start with capital letter |
| 982 # then a series of caps and finishes with either the end of the string or | 983 # then a series of caps and finishes with either the end of the string or |
| 983 # a capital letter. | 984 # a capital letter. |
| 984 # The [0-9] check is for names such as 2D or 3D | 985 # The [0-9] check is for names such as 2D or 3D |
| 985 # The following test cases should match as: | 986 # The following test cases should match as: |
| 986 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 987 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
| 987 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 988 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
| 988 # IFrameElement: (I)()(F)rameElement (no change) | 989 # IFrameElement: (I)()(F)rameElement (no change) |
| 989 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 990 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
| OLD | NEW |