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

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

Issue 2119243002: Reapply zone tasks. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fix test and update status files for IE. Created 4 years, 5 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
« no previous file with comments | « tools/dom/docs/docs.json ('k') | tools/dom/src/EventStreamProvider.dart » ('j') | 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 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 'Window.pageYOffset', 397 'Window.pageYOffset',
398 398
399 'WindowTimers.clearInterval', 399 'WindowTimers.clearInterval',
400 'WindowTimers.clearTimeout', 400 'WindowTimers.clearTimeout',
401 'WindowTimers.setInterval', 401 'WindowTimers.setInterval',
402 'WindowTimers.setTimeout', 402 'WindowTimers.setTimeout',
403 'Window.moveTo', 403 'Window.moveTo',
404 'Window.requestAnimationFrame', 404 'Window.requestAnimationFrame',
405 'Window.setInterval', 405 'Window.setInterval',
406 'Window.setTimeout', 406 'Window.setTimeout',
407
408 'XMLHttpRequest.send',
407 ]) 409 ])
408 410
409 # Members from the standard dom that exist in the dart:html library with 411 # Members from the standard dom that exist in the dart:html library with
410 # identical functionality but with cleaner names. 412 # identical functionality but with cleaner names.
411 renamed_html_members = monitored.Dict('htmlrenamer.renamed_html_members', { 413 renamed_html_members = monitored.Dict('htmlrenamer.renamed_html_members', {
412 'ConsoleBase.assert': 'assertCondition', 414 'ConsoleBase.assert': 'assertCondition',
413 'CSSKeyframesRule.insertRule': 'appendRule', 415 'CSSKeyframesRule.insertRule': 'appendRule',
414 'DirectoryEntry.getDirectory': '_getDirectory', 416 'DirectoryEntry.getDirectory': '_getDirectory',
415 'DirectoryEntry.getFile': '_getFile', 417 'DirectoryEntry.getFile': '_getFile',
416 'Document.createCDATASection': 'createCDataSection', 418 'Document.createCDATASection': 'createCDataSection',
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after
1030 1032
1031 # We're looking for a sequence of letters which start with capital letter 1033 # We're looking for a sequence of letters which start with capital letter
1032 # then a series of caps and finishes with either the end of the string or 1034 # then a series of caps and finishes with either the end of the string or
1033 # a capital letter. 1035 # a capital letter.
1034 # The [0-9] check is for names such as 2D or 3D 1036 # The [0-9] check is for names such as 2D or 3D
1035 # The following test cases should match as: 1037 # The following test cases should match as:
1036 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue 1038 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue
1037 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) 1039 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change)
1038 # IFrameElement: (I)()(F)rameElement (no change) 1040 # IFrameElement: (I)()(F)rameElement (no change)
1039 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) 1041 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name)
OLDNEW
« no previous file with comments | « tools/dom/docs/docs.json ('k') | tools/dom/src/EventStreamProvider.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698