| 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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 'Element.firstElementChild', | 230 'Element.firstElementChild', |
| 231 'Element.getElementsByTagName', | 231 'Element.getElementsByTagName', |
| 232 'Element.scrollIntoView', | 232 'Element.scrollIntoView', |
| 233 'Element.scrollIntoViewIfNeeded', | 233 'Element.scrollIntoViewIfNeeded', |
| 234 'Element.removeAttribute', | 234 'Element.removeAttribute', |
| 235 'Element.removeAttributeNS', | 235 'Element.removeAttributeNS', |
| 236 'Element.hasAttribute', | 236 'Element.hasAttribute', |
| 237 'Element.hasAttributeNS', | 237 'Element.hasAttributeNS', |
| 238 'Element.innerHTML', | 238 'Element.innerHTML', |
| 239 'Element.querySelectorAll', | 239 'Element.querySelectorAll', |
| 240 # TODO(vsm): These have been converted from int to double in Chrome 36. |
| 241 # Special case them so we run on 34, 35, and 36. |
| 242 'Element.offsetLeft', |
| 243 'Element.offsetTop', |
| 244 'Element.offsetWidth', |
| 245 'Element.offsetHeight', |
| 246 'Element.clientLeft', |
| 247 'Element.clientTop', |
| 248 'Element.clientWidth', |
| 249 'Element.clientHeight', |
| 250 'Element.scrollLeft', |
| 251 'Element.scrollTop', |
| 252 'Element.scrollWidth', |
| 253 'Element.scrollHeight', |
| 254 |
| 240 'Event.initEvent', | 255 'Event.initEvent', |
| 241 'Geolocation.clearWatch', | 256 'Geolocation.clearWatch', |
| 242 'Geolocation.getCurrentPosition', | 257 'Geolocation.getCurrentPosition', |
| 243 'Geolocation.watchPosition', | 258 'Geolocation.watchPosition', |
| 244 'HashChangeEvent.initHashChangeEvent', | 259 'HashChangeEvent.initHashChangeEvent', |
| 245 'HTMLCanvasElement.toDataURL', | 260 'HTMLCanvasElement.toDataURL', |
| 246 'HTMLTableElement.createCaption', | 261 'HTMLTableElement.createCaption', |
| 247 'HTMLTableElement.createTFoot', | 262 'HTMLTableElement.createTFoot', |
| 248 'HTMLTableElement.createTHead', | 263 'HTMLTableElement.createTHead', |
| 249 'HTMLTableElement.createTBody', | 264 'HTMLTableElement.createTBody', |
| (...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 965 | 980 |
| 966 # We're looking for a sequence of letters which start with capital letter | 981 # We're looking for a sequence of letters which start with capital letter |
| 967 # then a series of caps and finishes with either the end of the string or | 982 # then a series of caps and finishes with either the end of the string or |
| 968 # a capital letter. | 983 # a capital letter. |
| 969 # The [0-9] check is for names such as 2D or 3D | 984 # The [0-9] check is for names such as 2D or 3D |
| 970 # The following test cases should match as: | 985 # The following test cases should match as: |
| 971 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 986 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
| 972 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 987 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
| 973 # IFrameElement: (I)()(F)rameElement (no change) | 988 # IFrameElement: (I)()(F)rameElement (no change) |
| 974 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 989 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
| OLD | NEW |