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

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

Issue 12210073: Re-submit of 12213058 to fix CharacterData.remove (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 months 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/cdata_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 html_interface_renames = monitored.Dict('htmlrenamer.html_interface_renames', { 9 html_interface_renames = monitored.Dict('htmlrenamer.html_interface_renames', {
10 'CDATASection': 'CDataSection', 10 'CDATASection': 'CDataSection',
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 'CanvasRenderingContext2D.drawImageFromRect', 223 'CanvasRenderingContext2D.drawImageFromRect',
224 'CanvasRenderingContext2D.setAlpha', 224 'CanvasRenderingContext2D.setAlpha',
225 'CanvasRenderingContext2D.setCompositeOperation', 225 'CanvasRenderingContext2D.setCompositeOperation',
226 'CanvasRenderingContext2D.setFillColor', 226 'CanvasRenderingContext2D.setFillColor',
227 'CanvasRenderingContext2D.setLineCap', 227 'CanvasRenderingContext2D.setLineCap',
228 'CanvasRenderingContext2D.setLineJoin', 228 'CanvasRenderingContext2D.setLineJoin',
229 'CanvasRenderingContext2D.setLineWidth', 229 'CanvasRenderingContext2D.setLineWidth',
230 'CanvasRenderingContext2D.setMiterLimit', 230 'CanvasRenderingContext2D.setMiterLimit',
231 'CanvasRenderingContext2D.setShadow', 231 'CanvasRenderingContext2D.setShadow',
232 'CanvasRenderingContext2D.setStrokeColor', 232 'CanvasRenderingContext2D.setStrokeColor',
233 'CharacterData.remove',
233 'DOMWindow.call:blur', 234 'DOMWindow.call:blur',
234 'DOMWindow.clientInformation', 235 'DOMWindow.clientInformation',
235 'DOMWindow.call:focus', 236 'DOMWindow.call:focus',
236 'DOMWindow.get:frames', 237 'DOMWindow.get:frames',
237 'DOMWindow.get:length', 238 'DOMWindow.get:length',
238 'DOMWindow.prompt', 239 'DOMWindow.prompt',
239 'DOMWindow.webkitCancelRequestAnimationFrame', 240 'DOMWindow.webkitCancelRequestAnimationFrame',
240 'DOMWindow.webkitIndexedDB', 241 'DOMWindow.webkitIndexedDB',
241 'Document.adoptNode', 242 'Document.adoptNode',
242 'Document.alinkColor', 243 'Document.alinkColor',
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 574
574 # We're looking for a sequence of letters which start with capital letter 575 # We're looking for a sequence of letters which start with capital letter
575 # then a series of caps and finishes with either the end of the string or 576 # then a series of caps and finishes with either the end of the string or
576 # a capital letter. 577 # a capital letter.
577 # The [0-9] check is for names such as 2D or 3D 578 # The [0-9] check is for names such as 2D or 3D
578 # The following test cases should match as: 579 # The following test cases should match as:
579 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue 580 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue
580 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) 581 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change)
581 # IFrameElement: (I)()(F)rameElement (no change) 582 # IFrameElement: (I)()(F)rameElement (no change)
582 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) 583 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name)
OLDNEW
« no previous file with comments | « tests/html/cdata_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698