Changeset 149547 in webkit


Ignore:
Timestamp:
May 3, 2013 7:07:30 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Create a script to import W3C tests
https://bugs.webkit.org/show_bug.cgi?id=111513

Patch by Rebecca Hauck <rhauck@adobe.com> on 2013-05-03
Reviewed by Dirk Pranke.

Script to automate the import of W3C tests into WebKit.
For the full description of how it works, see the comments
at the top of test_importer.py.

  • Scripts/import-w3c-tests: Added.
  • Scripts/webkitpy/w3c/init.py: Added.
  • Scripts/webkitpy/w3c/test_converter.py: Added.

(TestConverter):
(TestConverter.init):
(TestConverter.load_prefixed_prop_list):
(TestConverter.load_file):
(TestConverter.convert_for_webkit):
(TestConverter.convert_testharness_paths):
(TestConverter.convert_prefixed_properties):
(TestConverter.scrub_unprefixed_props):
(TestConverter.replace_tag):

  • Scripts/webkitpy/w3c/test_converter_unittest.py: Added.

(TestConverterTest):
(TestConverterTest.testLoadPrefixedPropList):
(TestConverterTest.test_convertForWebkitNothingToConvert):
(test_convertForWebkitHarnessOnly):
(test_convertForWebkitPropsOnly):
(test_convertForWebkitHarnessAndProps):
(test_convertTestHarnessPaths):
(test_convertPrefixedProperties):
(verifyTestHarnessPaths):
(verifyPrefixedProperties):
(generateTestContent):

  • Scripts/webkitpy/w3c/test_importer.py: Added.

(main):
(parse_args):
(validate_import_directory):
(TestImporter):
(TestImporter.init):
(TestImporter.do_import):
(TestImporter.get_changeset):
(TestImporter.scan_source_directory):
(TestImporter.import_tests):
(TestImporter.setup_destination_directory):
(TestImporter.get_test_status):
(TestImporter.remove_deleted_files):
(TestImporter.write_import_log):

  • Scripts/webkitpy/w3c/test_importer_unittest.py: Added.

(TestImporterTest):
(TestImporterTest.test_ImportDirWithNoTests):

  • Scripts/webkitpy/w3c/test_parser.py: Added.

(TestParser):
(TestParser.init):
(TestParser.load_file):
(TestParser.analyze_test):
(TestParser.get_reftests):
(TestParser.is_jstest):
(TestParser.get_support_files):

  • Scripts/webkitpy/w3c/test_parser_unittest.py: Added.

(TestParserTest):
(TestParserTest.test_analyzeTestReftestOneMatch):
(test_analyzeTestReftestMultipleMatches):
(test_analyzeTestReftestMatchAndMismatch):
(test_analyzeTestReftestWithRefSupportFiles):
(test_analyzeJSTest):
(test_analyzePixelTestAllTrue):
(test_analyzePixelTestAllFalse):
(test_analyzeNonHTMLFile):

Location:
trunk/Tools
Files:
9 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r149545 r149547  
     12013-05-03  Rebecca Hauck  <rhauck@adobe.com>
     2
     3        Create a script to import W3C tests
     4        https://bugs.webkit.org/show_bug.cgi?id=111513
     5
     6        Reviewed by Dirk Pranke.
     7
     8        Script to automate the import of W3C tests into WebKit.
     9        For the full description of how it works, see the comments
     10        at the top of test_importer.py.
     11
     12        * Scripts/import-w3c-tests: Added.
     13        * Scripts/webkitpy/w3c/__init__.py: Added.
     14        * Scripts/webkitpy/w3c/test_converter.py: Added.
     15        (TestConverter):
     16        (TestConverter.__init__):
     17        (TestConverter.load_prefixed_prop_list):
     18        (TestConverter.load_file):
     19        (TestConverter.convert_for_webkit):
     20        (TestConverter.convert_testharness_paths):
     21        (TestConverter.convert_prefixed_properties):
     22        (TestConverter.scrub_unprefixed_props):
     23        (TestConverter.replace_tag):
     24        * Scripts/webkitpy/w3c/test_converter_unittest.py: Added.
     25        (TestConverterTest):
     26        (TestConverterTest.testLoadPrefixedPropList):
     27        (TestConverterTest.test_convertForWebkitNothingToConvert):
     28        (test_convertForWebkitHarnessOnly):
     29        (test_convertForWebkitPropsOnly):
     30        (test_convertForWebkitHarnessAndProps):
     31        (test_convertTestHarnessPaths):
     32        (test_convertPrefixedProperties):
     33        (verifyTestHarnessPaths):
     34        (verifyPrefixedProperties):
     35        (generateTestContent):
     36        * Scripts/webkitpy/w3c/test_importer.py: Added.
     37        (main):
     38        (parse_args):
     39        (validate_import_directory):
     40        (TestImporter):
     41        (TestImporter.__init__):
     42        (TestImporter.do_import):
     43        (TestImporter.get_changeset):
     44        (TestImporter.scan_source_directory):
     45        (TestImporter.import_tests):
     46        (TestImporter.setup_destination_directory):
     47        (TestImporter.get_test_status):
     48        (TestImporter.remove_deleted_files):
     49        (TestImporter.write_import_log):
     50        * Scripts/webkitpy/w3c/test_importer_unittest.py: Added.
     51        (TestImporterTest):
     52        (TestImporterTest.test_ImportDirWithNoTests):
     53        * Scripts/webkitpy/w3c/test_parser.py: Added.
     54        (TestParser):
     55        (TestParser.__init__):
     56        (TestParser.load_file):
     57        (TestParser.analyze_test):
     58        (TestParser.get_reftests):
     59        (TestParser.is_jstest):
     60        (TestParser.get_support_files):
     61        * Scripts/webkitpy/w3c/test_parser_unittest.py: Added.
     62        (TestParserTest):
     63        (TestParserTest.test_analyzeTestReftestOneMatch):
     64        (test_analyzeTestReftestMultipleMatches):
     65        (test_analyzeTestReftestMatchAndMismatch):
     66        (test_analyzeTestReftestWithRefSupportFiles):
     67        (test_analyzeJSTest):
     68        (test_analyzePixelTestAllTrue):
     69        (test_analyzePixelTestAllFalse):
     70        (test_analyzeNonHTMLFile):
     71
    1722013-05-03  Christophe Dumez  <ch.dumez@sisa.samsung.com>
    273
Note: See TracChangeset for help on using the changeset viewer.