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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 'KeyboardEvent.initKeyboardEvent', | 313 'KeyboardEvent.initKeyboardEvent', |
314 'KeyboardEvent.keyIdentifier', | 314 'KeyboardEvent.keyIdentifier', |
315 'MediaKeys.createSession', | 315 'MediaKeys.createSession', |
316 'MediaKeySession.update', | 316 'MediaKeySession.update', |
317 'MessageEvent.initMessageEvent', | 317 'MessageEvent.initMessageEvent', |
318 'MouseEvent.initMouseEvent', | 318 'MouseEvent.initMouseEvent', |
319 'MouseEvent.clientX', | 319 'MouseEvent.clientX', |
320 'MouseEvent.clientY', | 320 'MouseEvent.clientY', |
321 'MouseEvent.movementX', | 321 'MouseEvent.movementX', |
322 'MouseEvent.movementY', | 322 'MouseEvent.movementY', |
323 'MouseEvent.webkitMovementX', | |
324 'MouseEvent.webkitMovementY', | |
325 'MouseEvent.offsetX', | 323 'MouseEvent.offsetX', |
326 'MouseEvent.offsetY', | 324 'MouseEvent.offsetY', |
327 'MouseEvent.screenX', | 325 'MouseEvent.screenX', |
328 'MouseEvent.screenY', | 326 'MouseEvent.screenY', |
329 'MutationObserver.observe', | 327 'MutationObserver.observe', |
330 'Node.attributes', | 328 'Node.attributes', |
331 'Node.localName', | 329 'Node.localName', |
332 'Node.namespaceURI', | 330 'Node.namespaceURI', |
333 'Node.removeChild', | 331 'Node.removeChild', |
334 'Node.replaceChild', | 332 'Node.replaceChild', |
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
763 'HTMLUListElement.compact', | 761 'HTMLUListElement.compact', |
764 'HTMLUListElement.type', | 762 'HTMLUListElement.type', |
765 'IDBDatabase.transaction', # We do this in a template without the generated
implementation at all. | 763 'IDBDatabase.transaction', # We do this in a template without the generated
implementation at all. |
766 'KeyboardEvent.charCode', | 764 'KeyboardEvent.charCode', |
767 'KeyboardEvent.keyCode', | 765 'KeyboardEvent.keyCode', |
768 'KeyboardEvent.which', | 766 'KeyboardEvent.which', |
769 'Location.valueOf', | 767 'Location.valueOf', |
770 'MessageEvent.data', | 768 'MessageEvent.data', |
771 'MessageEvent.ports', | 769 'MessageEvent.ports', |
772 'MessageEvent.webkitInitMessageEvent', | 770 'MessageEvent.webkitInitMessageEvent', |
| 771 'MouseEvent.webkitMovementX', |
| 772 'MouseEvent.webkitMovementY', |
773 'MouseEvent.x', | 773 'MouseEvent.x', |
774 'MouseEvent.y', | 774 'MouseEvent.y', |
775 'Navigator.registerServiceWorker', | 775 'Navigator.registerServiceWorker', |
776 'Navigator.unregisterServiceWorker', | 776 'Navigator.unregisterServiceWorker', |
777 'Navigator.isProtocolHandlerRegistered', | 777 'Navigator.isProtocolHandlerRegistered', |
778 'Navigator.unregisterProtocolHandler', | 778 'Navigator.unregisterProtocolHandler', |
779 'Node.compareDocumentPosition', | 779 'Node.compareDocumentPosition', |
780 'Node.get:DOCUMENT_POSITION_CONTAINED_BY', | 780 'Node.get:DOCUMENT_POSITION_CONTAINED_BY', |
781 'Node.get:DOCUMENT_POSITION_CONTAINS', | 781 'Node.get:DOCUMENT_POSITION_CONTAINS', |
782 'Node.get:DOCUMENT_POSITION_DISCONNECTED', | 782 'Node.get:DOCUMENT_POSITION_DISCONNECTED', |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1028 | 1028 |
1029 # We're looking for a sequence of letters which start with capital letter | 1029 # We're looking for a sequence of letters which start with capital letter |
1030 # then a series of caps and finishes with either the end of the string or | 1030 # then a series of caps and finishes with either the end of the string or |
1031 # a capital letter. | 1031 # a capital letter. |
1032 # The [0-9] check is for names such as 2D or 3D | 1032 # The [0-9] check is for names such as 2D or 3D |
1033 # The following test cases should match as: | 1033 # The following test cases should match as: |
1034 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 1034 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
1035 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 1035 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
1036 # IFrameElement: (I)()(F)rameElement (no change) | 1036 # IFrameElement: (I)()(F)rameElement (no change) |
1037 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 1037 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
OLD | NEW |