| 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 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 'DOMWindow.clientInformation', | 381 'DOMWindow.clientInformation', |
| 382 'DOMWindow.get:frames', | 382 'DOMWindow.get:frames', |
| 383 'DOMWindow.get:length', | 383 'DOMWindow.get:length', |
| 384 'DOMWindow.on:beforeUnload', | 384 'DOMWindow.on:beforeUnload', |
| 385 'DOMWindow.pagePopupController', | 385 'DOMWindow.pagePopupController', |
| 386 'DOMWindow.prompt', | 386 'DOMWindow.prompt', |
| 387 'DOMWindow.webkitCancelAnimationFrame', | 387 'DOMWindow.webkitCancelAnimationFrame', |
| 388 'DOMWindow.webkitCancelRequestAnimationFrame', | 388 'DOMWindow.webkitCancelRequestAnimationFrame', |
| 389 'DOMWindow.webkitIndexedDB', | 389 'DOMWindow.webkitIndexedDB', |
| 390 'DOMWindow.webkitRequestAnimationFrame', | 390 'DOMWindow.webkitRequestAnimationFrame', |
| 391 'Document.adoptNode', | |
| 392 'Document.alinkColor', | 391 'Document.alinkColor', |
| 393 'Document.all', | 392 'Document.all', |
| 394 'Document.applets', | 393 'Document.applets', |
| 395 'Document.bgColor', | 394 'Document.bgColor', |
| 396 'Document.clear', | 395 'Document.clear', |
| 397 'Document.createAttribute', | 396 'Document.createAttribute', |
| 398 'Document.createAttributeNS', | 397 'Document.createAttributeNS', |
| 399 'Document.createComment', | 398 'Document.createComment', |
| 400 'Document.createExpression', | 399 'Document.createExpression', |
| 401 'Document.createNSResolver', | 400 'Document.createNSResolver', |
| (...skipping 15 matching lines...) Expand all Loading... |
| 417 'Document.get:inputEncoding', | 416 'Document.get:inputEncoding', |
| 418 'Document.get:links', | 417 'Document.get:links', |
| 419 'Document.get:plugins', | 418 'Document.get:plugins', |
| 420 'Document.get:scripts', | 419 'Document.get:scripts', |
| 421 'Document.get:width', | 420 'Document.get:width', |
| 422 'Document.get:xmlEncoding', | 421 'Document.get:xmlEncoding', |
| 423 'Document.getElementsByTagNameNS', | 422 'Document.getElementsByTagNameNS', |
| 424 'Document.getOverrideStyle', | 423 'Document.getOverrideStyle', |
| 425 'Document.getSelection', | 424 'Document.getSelection', |
| 426 'Document.images', | 425 'Document.images', |
| 427 'Document.importNode', | |
| 428 'Document.linkColor', | 426 'Document.linkColor', |
| 429 'Document.location', | 427 'Document.location', |
| 430 'Document.open', | 428 'Document.open', |
| 431 'Document.set:domain', | 429 'Document.set:domain', |
| 432 'Document.vlinkColor', | 430 'Document.vlinkColor', |
| 433 'Document.webkitCurrentFullScreenElement', | 431 'Document.webkitCurrentFullScreenElement', |
| 434 'Document.webkitFullScreenKeyboardInputAllowed', | 432 'Document.webkitFullScreenKeyboardInputAllowed', |
| 435 'Document.write', | 433 'Document.write', |
| 436 'Document.writeln', | 434 'Document.writeln', |
| 437 'Document.xmlStandalone', | 435 'Document.xmlStandalone', |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 774 | 772 |
| 775 # We're looking for a sequence of letters which start with capital letter | 773 # We're looking for a sequence of letters which start with capital letter |
| 776 # then a series of caps and finishes with either the end of the string or | 774 # then a series of caps and finishes with either the end of the string or |
| 777 # a capital letter. | 775 # a capital letter. |
| 778 # The [0-9] check is for names such as 2D or 3D | 776 # The [0-9] check is for names such as 2D or 3D |
| 779 # The following test cases should match as: | 777 # The following test cases should match as: |
| 780 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 778 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
| 781 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 779 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
| 782 # IFrameElement: (I)()(F)rameElement (no change) | 780 # IFrameElement: (I)()(F)rameElement (no change) |
| 783 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 781 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
| OLD | NEW |