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 re | 5 import re |
6 | 6 |
7 html_interface_renames = { | 7 html_interface_renames = { |
8 'DOMCoreException': 'DOMException', | 8 'DOMCoreException': 'DOMException', |
9 'DOMFormData': 'FormData', | 9 'DOMFormData': 'FormData', |
10 'DOMURL': 'Url', | 10 'DOMURL': 'Url', |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
247 "HTMLFrameElement.*", | 247 "HTMLFrameElement.*", |
248 "HTMLFrameSetElement.*", | 248 "HTMLFrameSetElement.*", |
249 "HtmlElement.version", | 249 "HtmlElement.version", |
250 "HtmlElement.manifest", | 250 "HtmlElement.manifest", |
251 "Document.version", | 251 "Document.version", |
252 "Document.manifest", | 252 "Document.manifest", |
253 "HTMLIsIndexElement.*", | 253 "HTMLIsIndexElement.*", |
254 "HTMLOptionsCollection.*", | 254 "HTMLOptionsCollection.*", |
255 "HTMLPropertiesCollection.*", | 255 "HTMLPropertiesCollection.*", |
256 "SelectElement.remove", | 256 "SelectElement.remove", |
257 "MenuElement.compact", | |
blois
2012/11/27 00:21:43
Why this change?
Andrei Mouravski
2012/11/27 00:30:14
I wanted to use MenuElement as a test to make sure
| |
257 "NamedNodeMap.*", | 258 "NamedNodeMap.*", |
258 "Node.isEqualNode", | 259 "Node.isEqualNode", |
259 "Node.get:TEXT_NODE", | 260 "Node.get:TEXT_NODE", |
260 "Node.hasAttributes", | 261 "Node.hasAttributes", |
261 "Node.get:DOCUMENT_TYPE_NODE", | 262 "Node.get:DOCUMENT_TYPE_NODE", |
262 "Node.get:DOCUMENT_POSITION_FOLLOWING", | 263 "Node.get:DOCUMENT_POSITION_FOLLOWING", |
263 "Node.lookupNamespaceURI", | 264 "Node.lookupNamespaceURI", |
264 "Node.get:ELEMENT_NODE", | 265 "Node.get:ELEMENT_NODE", |
265 "Node.get:DOCUMENT_FRAGMENT_NODE", | 266 "Node.get:DOCUMENT_FRAGMENT_NODE", |
266 "Node.isDefaultNamespace", | 267 "Node.isDefaultNamespace", |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
372 | 373 |
373 # We're looking for a sequence of letters which start with capital letter | 374 # We're looking for a sequence of letters which start with capital letter |
374 # then a series of caps and finishes with either the end of the string or | 375 # then a series of caps and finishes with either the end of the string or |
375 # a capital letter. | 376 # a capital letter. |
376 # The [0-9] check is for names such as 2D or 3D | 377 # The [0-9] check is for names such as 2D or 3D |
377 # The following test cases should match as: | 378 # The following test cases should match as: |
378 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 379 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
379 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 380 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
380 # IFrameElement: (I)()(F)rameElement (no change) | 381 # IFrameElement: (I)()(F)rameElement (no change) |
381 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 382 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
OLD | NEW |