| 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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 'MutationObserver.observe', | 321 'MutationObserver.observe', |
| 322 'Node.attributes', | 322 'Node.attributes', |
| 323 'Node.localName', | 323 'Node.localName', |
| 324 'Node.namespaceURI', | 324 'Node.namespaceURI', |
| 325 'Node.removeChild', | 325 'Node.removeChild', |
| 326 'Node.replaceChild', | 326 'Node.replaceChild', |
| 327 'ParentNode.childElementCount', | 327 'ParentNode.childElementCount', |
| 328 'ParentNode.children', | 328 'ParentNode.children', |
| 329 'ParentNode.firstElementChild', | 329 'ParentNode.firstElementChild', |
| 330 'ParentNode.lastElementChild', | 330 'ParentNode.lastElementChild', |
| 331 'ParentNode.querySelectorAll', |
| 331 'RTCPeerConnection.createAnswer', | 332 'RTCPeerConnection.createAnswer', |
| 332 'RTCPeerConnection.createOffer', | 333 'RTCPeerConnection.createOffer', |
| 333 'RTCPeerConnection.getStats', | 334 'RTCPeerConnection.getStats', |
| 334 'Screen.availHeight', | 335 'Screen.availHeight', |
| 335 'Screen.availLeft', | 336 'Screen.availLeft', |
| 336 'Screen.availTop', | 337 'Screen.availTop', |
| 337 'Screen.availWidth', | 338 'Screen.availWidth', |
| 338 'ServiceWorkerGlobalScope.fetch', | 339 'ServiceWorkerGlobalScope.fetch', |
| 339 'ShadowRoot.resetStyleInheritance', | 340 'ShadowRoot.resetStyleInheritance', |
| 340 'Storage.clear', | 341 'Storage.clear', |
| (...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1020 | 1021 |
| 1021 # We're looking for a sequence of letters which start with capital letter | 1022 # We're looking for a sequence of letters which start with capital letter |
| 1022 # then a series of caps and finishes with either the end of the string or | 1023 # then a series of caps and finishes with either the end of the string or |
| 1023 # a capital letter. | 1024 # a capital letter. |
| 1024 # The [0-9] check is for names such as 2D or 3D | 1025 # The [0-9] check is for names such as 2D or 3D |
| 1025 # The following test cases should match as: | 1026 # The following test cases should match as: |
| 1026 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 1027 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
| 1027 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 1028 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
| 1028 # IFrameElement: (I)()(F)rameElement (no change) | 1029 # IFrameElement: (I)()(F)rameElement (no change) |
| 1029 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 1030 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
| OLD | NEW |