Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Side by Side Diff: tools/dom/scripts/htmlrenamer.py

Issue 758123003: Workaround for canPlayType in Dartium (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add regression test Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/html/audioelement_test.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 690 matching lines...) Expand 10 before | Expand all | Expand 10 after
701 'HTMLImageElement.hspace', 701 'HTMLImageElement.hspace',
702 'HTMLImageElement.longDesc', 702 'HTMLImageElement.longDesc',
703 'HTMLImageElement.name', 703 'HTMLImageElement.name',
704 'HTMLImageElement.vspace', 704 'HTMLImageElement.vspace',
705 'HTMLInputElement.align', 705 'HTMLInputElement.align',
706 'HTMLLegendElement.align', 706 'HTMLLegendElement.align',
707 'HTMLLinkElement.charset', 707 'HTMLLinkElement.charset',
708 'HTMLLinkElement.rev', 708 'HTMLLinkElement.rev',
709 'HTMLLinkElement.target', 709 'HTMLLinkElement.target',
710 'HTMLMarqueeElement.*', 710 'HTMLMarqueeElement.*',
711 'HTMLMediaElement.canPlayType',
711 'HTMLMenuElement.compact', 712 'HTMLMenuElement.compact',
712 'HTMLMetaElement.scheme', 713 'HTMLMetaElement.scheme',
713 'HTMLOListElement.compact', 714 'HTMLOListElement.compact',
714 'HTMLObjectElement.align', 715 'HTMLObjectElement.align',
715 'HTMLObjectElement.archive', 716 'HTMLObjectElement.archive',
716 'HTMLObjectElement.border', 717 'HTMLObjectElement.border',
717 'HTMLObjectElement.codeBase', 718 'HTMLObjectElement.codeBase',
718 'HTMLObjectElement.codeType', 719 'HTMLObjectElement.codeType',
719 'HTMLObjectElement.declare', 720 'HTMLObjectElement.declare',
720 'HTMLObjectElement.hspace', 721 'HTMLObjectElement.hspace',
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
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)
OLDNEW
« no previous file with comments | « tests/html/audioelement_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698