| 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 'UIEvent.initUIEvent', | 311 'UIEvent.initUIEvent', |
| 312 'UIEvent.keyCode', | 312 'UIEvent.keyCode', |
| 313 'UIEvent.layerX', | 313 'UIEvent.layerX', |
| 314 'UIEvent.layerY', | 314 'UIEvent.layerY', |
| 315 'UIEvent.pageX', | 315 'UIEvent.pageX', |
| 316 'UIEvent.pageY', | 316 'UIEvent.pageY', |
| 317 'WebGLRenderingContext.texImage2D', | 317 'WebGLRenderingContext.texImage2D', |
| 318 'WheelEvent.initWebKitWheelEvent', | 318 'WheelEvent.initWebKitWheelEvent', |
| 319 'WheelEvent.deltaX', | 319 'WheelEvent.deltaX', |
| 320 'WheelEvent.deltaY', | 320 'WheelEvent.deltaY', |
| 321 'Window.createImageBitmap', | |
| 322 'Window.getComputedStyle', | 321 'Window.getComputedStyle', |
| 323 'Window.clearInterval', | 322 'Window.clearInterval', |
| 324 'Window.clearTimeout', | 323 'Window.clearTimeout', |
| 325 'Window.moveTo', | 324 'Window.moveTo', |
| 326 'Window.requestAnimationFrame', | 325 'Window.requestAnimationFrame', |
| 327 'Window.setInterval', | 326 'Window.setInterval', |
| 328 'Window.setTimeout', | 327 'Window.setTimeout', |
| 329 ]) | 328 ]) |
| 330 | 329 |
| 331 # Members from the standard dom that exist in the dart:html library with | 330 # Members from the standard dom that exist in the dart:html library with |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 483 'CanvasRenderingContext2D.setLineCap', | 482 'CanvasRenderingContext2D.setLineCap', |
| 484 'CanvasRenderingContext2D.setLineJoin', | 483 'CanvasRenderingContext2D.setLineJoin', |
| 485 'CanvasRenderingContext2D.setLineWidth', | 484 'CanvasRenderingContext2D.setLineWidth', |
| 486 'CanvasRenderingContext2D.setMiterLimit', | 485 'CanvasRenderingContext2D.setMiterLimit', |
| 487 'CanvasRenderingContext2D.setShadow', | 486 'CanvasRenderingContext2D.setShadow', |
| 488 'CanvasRenderingContext2D.setStrokeColor', | 487 'CanvasRenderingContext2D.setStrokeColor', |
| 489 'CharacterData.remove', | 488 'CharacterData.remove', |
| 490 'Window.call:blur', | 489 'Window.call:blur', |
| 491 'Window.call:focus', | 490 'Window.call:focus', |
| 492 'Window.clientInformation', | 491 'Window.clientInformation', |
| 492 'Window.createImageBitmap', |
| 493 'Window.get:frames', | 493 'Window.get:frames', |
| 494 'Window.get:length', | 494 'Window.get:length', |
| 495 'Window.on:beforeUnload', | 495 'Window.on:beforeUnload', |
| 496 'Window.on:webkitTransitionEnd', | 496 'Window.on:webkitTransitionEnd', |
| 497 'Window.pagePopupController', | 497 'Window.pagePopupController', |
| 498 'Window.prompt', | 498 'Window.prompt', |
| 499 'Window.webkitCancelAnimationFrame', | 499 'Window.webkitCancelAnimationFrame', |
| 500 'Window.webkitCancelRequestAnimationFrame', | 500 'Window.webkitCancelRequestAnimationFrame', |
| 501 'Window.webkitIndexedDB', | 501 'Window.webkitIndexedDB', |
| 502 'Window.webkitRequestAnimationFrame', | 502 'Window.webkitRequestAnimationFrame', |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 586 'Element.removeAttributeNode', | 586 'Element.removeAttributeNode', |
| 587 'Element.set:outerHTML', | 587 'Element.set:outerHTML', |
| 588 'Element.setAttributeNode', | 588 'Element.setAttributeNode', |
| 589 'Element.setAttributeNodeNS', | 589 'Element.setAttributeNodeNS', |
| 590 'Element.webkitCreateShadowRoot', | 590 'Element.webkitCreateShadowRoot', |
| 591 'Element.webkitPseudo', | 591 'Element.webkitPseudo', |
| 592 'Element.webkitShadowRoot', | 592 'Element.webkitShadowRoot', |
| 593 'Event.returnValue', | 593 'Event.returnValue', |
| 594 'Event.srcElement', | 594 'Event.srcElement', |
| 595 'EventSource.URL', | 595 'EventSource.URL', |
| 596 'FontFaceSet.load', |
| 597 'FontFaceSet.ready', |
| 596 'HTMLAnchorElement.charset', | 598 'HTMLAnchorElement.charset', |
| 597 'HTMLAnchorElement.coords', | 599 'HTMLAnchorElement.coords', |
| 598 'HTMLAnchorElement.rev', | 600 'HTMLAnchorElement.rev', |
| 599 'HTMLAnchorElement.shape', | 601 'HTMLAnchorElement.shape', |
| 600 'HTMLAnchorElement.text', | 602 'HTMLAnchorElement.text', |
| 601 'HTMLAppletElement.*', | 603 'HTMLAppletElement.*', |
| 602 'HTMLAreaElement.noHref', | 604 'HTMLAreaElement.noHref', |
| 603 'HTMLBRElement.clear', | 605 'HTMLBRElement.clear', |
| 604 'HTMLBaseFontElement.*', | 606 'HTMLBaseFontElement.*', |
| 605 'HTMLBodyElement.aLink', | 607 'HTMLBodyElement.aLink', |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 693 'HTMLTableRowElement.chOff', | 695 'HTMLTableRowElement.chOff', |
| 694 'HTMLTableRowElement.vAlign', | 696 'HTMLTableRowElement.vAlign', |
| 695 'HTMLTableSectionElement.align', | 697 'HTMLTableSectionElement.align', |
| 696 'HTMLTableSectionElement.ch', | 698 'HTMLTableSectionElement.ch', |
| 697 'HTMLTableSectionElement.chOff', | 699 'HTMLTableSectionElement.chOff', |
| 698 'HTMLTableSectionElement.vAlign', | 700 'HTMLTableSectionElement.vAlign', |
| 699 'HTMLTitleElement.text', | 701 'HTMLTitleElement.text', |
| 700 'HTMLUListElement.compact', | 702 'HTMLUListElement.compact', |
| 701 'HTMLUListElement.type', | 703 'HTMLUListElement.type', |
| 702 'Location.valueOf', | 704 'Location.valueOf', |
| 705 'MessageEvent.ports', |
| 703 'MessageEvent.webkitInitMessageEvent', | 706 'MessageEvent.webkitInitMessageEvent', |
| 704 'MouseEvent.x', | 707 'MouseEvent.x', |
| 705 'MouseEvent.y', | 708 'MouseEvent.y', |
| 709 'Navigator.registerServiceWorker', |
| 710 'Navigator.unregisterServiceWorker', |
| 706 'Node.compareDocumentPosition', | 711 'Node.compareDocumentPosition', |
| 707 'Node.get:DOCUMENT_POSITION_CONTAINED_BY', | 712 'Node.get:DOCUMENT_POSITION_CONTAINED_BY', |
| 708 'Node.get:DOCUMENT_POSITION_CONTAINS', | 713 'Node.get:DOCUMENT_POSITION_CONTAINS', |
| 709 'Node.get:DOCUMENT_POSITION_DISCONNECTED', | 714 'Node.get:DOCUMENT_POSITION_DISCONNECTED', |
| 710 'Node.get:DOCUMENT_POSITION_FOLLOWING', | 715 'Node.get:DOCUMENT_POSITION_FOLLOWING', |
| 711 'Node.get:DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC', | 716 'Node.get:DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC', |
| 712 'Node.get:DOCUMENT_POSITION_PRECEDING', | 717 'Node.get:DOCUMENT_POSITION_PRECEDING', |
| 713 'Node.get:prefix', | 718 'Node.get:prefix', |
| 714 'Node.hasAttributes', | 719 'Node.hasAttributes', |
| 715 'Node.isDefaultNamespace', | 720 'Node.isDefaultNamespace', |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 936 | 941 |
| 937 # We're looking for a sequence of letters which start with capital letter | 942 # We're looking for a sequence of letters which start with capital letter |
| 938 # then a series of caps and finishes with either the end of the string or | 943 # then a series of caps and finishes with either the end of the string or |
| 939 # a capital letter. | 944 # a capital letter. |
| 940 # The [0-9] check is for names such as 2D or 3D | 945 # The [0-9] check is for names such as 2D or 3D |
| 941 # The following test cases should match as: | 946 # The following test cases should match as: |
| 942 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 947 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
| 943 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 948 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
| 944 # IFrameElement: (I)()(F)rameElement (no change) | 949 # IFrameElement: (I)()(F)rameElement (no change) |
| 945 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 950 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
| OLD | NEW |