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

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

Issue 1387273002: Fix Crypto.getRandomValues to modify its argument, fix tests (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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 | « tests/html/html.status ('k') | tools/dom/templates/html/impl/impl_Crypto.darttemplate » ('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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 'AudioNode.connect', 190 'AudioNode.connect',
191 'Cache.add', 191 'Cache.add',
192 'Cache.delete', 192 'Cache.delete',
193 'Cache.keys', 193 'Cache.keys',
194 'Cache.match', 194 'Cache.match',
195 'Cache.matchAll', 195 'Cache.matchAll',
196 'Cache.put', 196 'Cache.put',
197 'CanvasRenderingContext2D.arc', 197 'CanvasRenderingContext2D.arc',
198 'CanvasRenderingContext2D.drawImage', 198 'CanvasRenderingContext2D.drawImage',
199 'CanvasRenderingContext2D.getLineDash', 199 'CanvasRenderingContext2D.getLineDash',
200 'Crypto.getRandomValues',
200 'CSSStyleDeclaration.getPropertyValue', 201 'CSSStyleDeclaration.getPropertyValue',
201 'CSSStyleDeclaration.setProperty', 202 'CSSStyleDeclaration.setProperty',
202 'CSSStyleDeclaration.var', 203 'CSSStyleDeclaration.var',
203 'CompositionEvent.initCompositionEvent', 204 'CompositionEvent.initCompositionEvent',
204 'CustomEvent.detail', 205 'CustomEvent.detail',
205 'CustomEvent.initCustomEvent', 206 'CustomEvent.initCustomEvent',
206 'DeviceOrientationEvent.initDeviceOrientationEvent', 207 'DeviceOrientationEvent.initDeviceOrientationEvent',
207 'Document.createElement', 208 'Document.createElement',
208 'Document.createElementNS', 209 'Document.createElementNS',
209 'Document.createEvent', 210 'Document.createEvent',
(...skipping 826 matching lines...) Expand 10 before | Expand all | Expand 10 after
1036 1037
1037 # We're looking for a sequence of letters which start with capital letter 1038 # We're looking for a sequence of letters which start with capital letter
1038 # then a series of caps and finishes with either the end of the string or 1039 # then a series of caps and finishes with either the end of the string or
1039 # a capital letter. 1040 # a capital letter.
1040 # The [0-9] check is for names such as 2D or 3D 1041 # The [0-9] check is for names such as 2D or 3D
1041 # The following test cases should match as: 1042 # The following test cases should match as:
1042 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue 1043 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue
1043 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) 1044 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change)
1044 # IFrameElement: (I)()(F)rameElement (no change) 1045 # IFrameElement: (I)()(F)rameElement (no change)
1045 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) 1046 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name)
OLDNEW
« no previous file with comments | « tests/html/html.status ('k') | tools/dom/templates/html/impl/impl_Crypto.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698