Changeset 150317 in webkit


Ignore:
Timestamp:
May 17, 2013 7:40:37 PM (11 years ago)
Author:
dpranke@chromium.org
Message:

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

Reviewed by Ryosuke Niwa.

This patch attempts to re-land the 'import-w3c-tests'
script and accompanying modules. The tests and code have
been cleaned up so that we do not log anything to stdout/stderr
while running the tests (thanks to outputcapture) and do not
write into the source tree while running the tests, and much
but not all of the code has been converted over to using the webkitpy

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

(W3CTestConverter):
(W3CTestConverter.init):
(W3CTestConverter.path_from_webkit_root):
(W3CTestConverter.read_webkit_prefixed_css_property_list):
(W3CTestConverter.convert_for_webkit):
(W3CTestConverter.convert_css):
(W3CTestConverter.convert_html):
(W3CTestConverter.convert_testharness_paths):
(W3CTestConverter.convert_prefixed_properties):
(W3CTestConverter.add_webkit_prefix_to_unprefixed_properties):
(W3CTestConverter.replace_tag):

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

(W3CTestConverterTest):
(W3CTestConverterTest.fake_dir_path):
(W3CTestConverterTest.test_read_prefixed_property_list):
(W3CTestConverterTest.test_convert_for_webkit_nothing_to_convert):
(test_convert_for_webkit_harness_only):
(test_convert_for_webkit_properties_only):
(test_convert_for_webkit_harness_and_properties):
(test_convert_test_harness_paths):
(test_convert_prefixed_properties):
(verify_conversion_happened):
(verify_no_conversion_happened):
(verify_test_harness_paths):
(verify_prefixed_properties):
(generate_test_content):

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

(main):
(parse_args):
(validate_import_directory):
(TestImporter):
(TestImporter.init):
(TestImporter.path_from_webkit_root):
(TestImporter.do_import):
(TestImporter.load_changeset):
(TestImporter.find_importable_tests):
(TestImporter.import_tests):
(TestImporter.setup_destination_directory):
(TestImporter.update_test_status):
(TestImporter.remove_deleted_files):
(TestImporter.write_import_log):

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

(TestImporterTest):
(TestImporterTest.test_import_dir_with_no_tests):

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

(TestParser):
(TestParser.init):
(TestParser.load_file):
(TestParser.analyze_test):
(TestParser.reference_links_of_type):
(TestParser.is_jstest):
(TestParser.support_files):

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

(TestParserTest):
(TestParserTest.test_analyze_test_reftest_one_match):
(test_analyze_test_reftest_multiple_matches):
(test_analyze_test_reftest_match_and_mismatch):
(test_analyze_test_reftest_with_ref_support_Files):
(test_analyze_jstest):
(test_analyze_pixel_test_all_true):
(test_analyze_pixel_test_all_false):
(test_analyze_non_html_file):

Location:
trunk/Tools
Files:
8 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r150303 r150317  
     12013-05-17  Dirk Pranke  <dpranke@chromium.org>
     2
     3        Create a script to import W3C tests
     4        https://bugs.webkit.org/show_bug.cgi?id=111513
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        This patch attempts to re-land the 'import-w3c-tests'
     9        script and accompanying modules.  The tests and code have
     10        been cleaned up so that we do not log anything to stdout/stderr
     11        while running the tests (thanks to outputcapture) and do not
     12        write into the source tree while running the tests, and much
     13        but not all of the code has been converted over to using the webkitpy
     14
     15        * Scripts/import-w3c-tests: Added.
     16        * Scripts/webkitpy/w3c/__init__.py: Added.
     17        * Scripts/webkitpy/w3c/test_converter.py: Added.
     18        (W3CTestConverter):
     19        (W3CTestConverter.__init__):
     20        (W3CTestConverter.path_from_webkit_root):
     21        (W3CTestConverter.read_webkit_prefixed_css_property_list):
     22        (W3CTestConverter.convert_for_webkit):
     23        (W3CTestConverter.convert_css):
     24        (W3CTestConverter.convert_html):
     25        (W3CTestConverter.convert_testharness_paths):
     26        (W3CTestConverter.convert_prefixed_properties):
     27        (W3CTestConverter.add_webkit_prefix_to_unprefixed_properties):
     28        (W3CTestConverter.replace_tag):
     29        * Scripts/webkitpy/w3c/test_converter_unittest.py: Added.
     30        (W3CTestConverterTest):
     31        (W3CTestConverterTest.fake_dir_path):
     32        (W3CTestConverterTest.test_read_prefixed_property_list):
     33        (W3CTestConverterTest.test_convert_for_webkit_nothing_to_convert):
     34        (test_convert_for_webkit_harness_only):
     35        (test_convert_for_webkit_properties_only):
     36        (test_convert_for_webkit_harness_and_properties):
     37        (test_convert_test_harness_paths):
     38        (test_convert_prefixed_properties):
     39        (verify_conversion_happened):
     40        (verify_no_conversion_happened):
     41        (verify_test_harness_paths):
     42        (verify_prefixed_properties):
     43        (generate_test_content):
     44        * Scripts/webkitpy/w3c/test_importer.py: Added.
     45        (main):
     46        (parse_args):
     47        (validate_import_directory):
     48        (TestImporter):
     49        (TestImporter.__init__):
     50        (TestImporter.path_from_webkit_root):
     51        (TestImporter.do_import):
     52        (TestImporter.load_changeset):
     53        (TestImporter.find_importable_tests):
     54        (TestImporter.import_tests):
     55        (TestImporter.setup_destination_directory):
     56        (TestImporter.update_test_status):
     57        (TestImporter.remove_deleted_files):
     58        (TestImporter.write_import_log):
     59        * Scripts/webkitpy/w3c/test_importer_unittest.py: Added.
     60        (TestImporterTest):
     61        (TestImporterTest.test_import_dir_with_no_tests):
     62        * Scripts/webkitpy/w3c/test_parser.py: Added.
     63        (TestParser):
     64        (TestParser.__init__):
     65        (TestParser.load_file):
     66        (TestParser.analyze_test):
     67        (TestParser.reference_links_of_type):
     68        (TestParser.is_jstest):
     69        (TestParser.support_files):
     70        * Scripts/webkitpy/w3c/test_parser_unittest.py: Added.
     71        (TestParserTest):
     72        (TestParserTest.test_analyze_test_reftest_one_match):
     73        (test_analyze_test_reftest_multiple_matches):
     74        (test_analyze_test_reftest_match_and_mismatch):
     75        (test_analyze_test_reftest_with_ref_support_Files):
     76        (test_analyze_jstest):
     77        (test_analyze_pixel_test_all_true):
     78        (test_analyze_pixel_test_all_false):
     79        (test_analyze_non_html_file):
     80
    1812013-05-17  Ryosuke Niwa  <rniwa@webkit.org>
    282
Note: See TracChangeset for help on using the changeset viewer.