| OLD | NEW |
| 1 #!/usr/bin/env python | |
| 2 | |
| 3 # Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. | 1 # Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. |
| 4 # | 2 # |
| 5 # Redistribution and use in source and binary forms, with or without | 3 # Redistribution and use in source and binary forms, with or without |
| 6 # modification, are permitted provided that the following conditions | 4 # modification, are permitted provided that the following conditions |
| 7 # are met: | 5 # are met: |
| 8 # | 6 # |
| 9 # 1. Redistributions of source code must retain the above | 7 # 1. Redistributions of source code must retain the above |
| 10 # copyright notice, this list of conditions and the following | 8 # copyright notice, this list of conditions and the following |
| 11 # disclaimer. | 9 # disclaimer. |
| 12 # 2. Redistributions in binary form must reproduce the above | 10 # 2. Redistributions in binary form must reproduce the above |
| 13 # copyright notice, this list of conditions and the following | 11 # copyright notice, this list of conditions and the following |
| 14 # disclaimer in the documentation and/or other materials | 12 # disclaimer in the documentation and/or other materials |
| 15 # provided with the distribution. | 13 # provided with the distribution. |
| 16 # | 14 # |
| 17 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER "AS IS" AND ANY | 15 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER "AS IS" AND ANY |
| 18 # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | 16 # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 19 # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | 17 # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
| 20 # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE | 18 # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE |
| 21 # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, | 19 # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, |
| 22 # OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | 20 # OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
| 23 # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | 21 # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
| 24 # PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 22 # PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 25 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR | 23 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR |
| 26 # TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF | 24 # TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF |
| 27 # THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 25 # THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 28 # SUCH DAMAGE. | 26 # SUCH DAMAGE. |
| 29 | 27 |
| 30 import os | 28 import os |
| 31 import re | 29 import re |
| 32 import webkitpy.thirdparty.unittest2 as unittest | 30 import unittest |
| 33 | 31 |
| 34 from webkitpy.common.host import Host | 32 from webkitpy.common.host import Host |
| 35 from webkitpy.common.system.outputcapture import OutputCapture | 33 from webkitpy.common.system.outputcapture import OutputCapture |
| 36 from webkitpy.common.webkit_finder import WebKitFinder | 34 from webkitpy.common.webkit_finder import WebKitFinder |
| 37 from webkitpy.thirdparty.BeautifulSoup import BeautifulSoup | 35 from webkitpy.thirdparty.BeautifulSoup import BeautifulSoup |
| 38 from webkitpy.w3c.test_converter import _W3CTestConverter | 36 from webkitpy.w3c.test_converter import _W3CTestConverter |
| 39 | 37 |
| 40 DUMMY_FILENAME = 'dummy.html' | 38 DUMMY_FILENAME = 'dummy.html' |
| 41 DUMMY_PATH = 'dummy/testharness/path' | 39 DUMMY_PATH = 'dummy/testharness/path' |
| 42 | 40 |
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 # through the list to replace the double-digit tokens first | 378 # through the list to replace the double-digit tokens first |
| 381 index = len(test_properties) - 1 | 379 index = len(test_properties) - 1 |
| 382 while index >= 0: | 380 while index >= 0: |
| 383 # Use the unprefixed version | 381 # Use the unprefixed version |
| 384 test_prop = test_properties[index].replace('-webkit-', '') | 382 test_prop = test_properties[index].replace('-webkit-', '') |
| 385 # Replace the token | 383 # Replace the token |
| 386 html = html.replace('@test' + str(index) + '@', test_prop) | 384 html = html.replace('@test' + str(index) + '@', test_prop) |
| 387 index -= 1 | 385 index -= 1 |
| 388 | 386 |
| 389 return (test_properties, html) | 387 return (test_properties, html) |
| OLD | NEW |