Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 746721a87a8f355da35c98c5624f721ec38229c3
      
https://github.com/WebKit/WebKit/commit/746721a87a8f355da35c98c5624f721ec38229c3
  Author: Sam Weinig <s...@webkit.org>
  Date:   2025-03-05 (Wed, 05 Mar 2025)

  Changed paths:
    M Source/WebCore/CMakeLists.txt
    M Source/WebCore/DerivedSources-input.xcfilelist
    M Source/WebCore/DerivedSources.make
    M Source/WebCore/WebCore.xcodeproj/project.pbxproj
    R Source/WebCore/css/process-css-properties.py
    R Source/WebCore/css/process-css-pseudo-selectors.py
    R Source/WebCore/css/process-css-values.py
    A Source/WebCore/css/scripts/process-css-properties.py
    A Source/WebCore/css/scripts/process-css-pseudo-selectors.py
    A Source/WebCore/css/scripts/process-css-values.py
    A Source/WebCore/css/scripts/test/TestCSSProperties.json
    A 
Source/WebCore/css/scripts/test/TestCSSPropertiesResults/CSSPropertyNames.gperf
    A 
Source/WebCore/css/scripts/test/TestCSSPropertiesResults/CSSPropertyNames.h
    A 
Source/WebCore/css/scripts/test/TestCSSPropertiesResults/CSSPropertyParsing.cpp
    A 
Source/WebCore/css/scripts/test/TestCSSPropertiesResults/CSSPropertyParsing.h
    A 
Source/WebCore/css/scripts/test/TestCSSPropertiesResults/CSSStyleDeclaration+PropertyNames.idl
    A 
Source/WebCore/css/scripts/test/TestCSSPropertiesResults/StyleBuilderGenerated.cpp
    A 
Source/WebCore/css/scripts/test/TestCSSPropertiesResults/StyleInterpolationWrapperMap.cpp
    A 
Source/WebCore/css/scripts/test/TestCSSPropertiesResults/StyleInterpolationWrapperMap.h
    A 
Source/WebCore/css/scripts/test/TestCSSPropertiesResults/StylePropertyShorthandFunctions.cpp
    A 
Source/WebCore/css/scripts/test/TestCSSPropertiesResults/StylePropertyShorthandFunctions.h
    A Tools/Scripts/run-css-property-code-generation-tests
    A Tools/Scripts/webkitpy/css_properties/__init__.py
    A Tools/Scripts/webkitpy/css_properties/main.py

  Log Message:
  -----------
  Add support for testing process-css-properties.py
https://bugs.webkit.org/show_bug.cgi?id=289105

Reviewed by Antti Koivisto.

With more complex code generation coming to process-css-properties.py
to support more complex grammars, its now useful to have the ability
to directly test the output of the script. That can now be done with
the new `run-css-property-code-generation-tests` script.

The testing script is modeled after run-bindings-tests, testing the
a full run of process-css-properties.py but with a test JSON file. The
output is then checked in, and subsequent runs diff the output with that
checked in result. When process-css-properties.py or new cases are added
to the JSON file, running the script with `--reset-results` allow the
reference results to regenerated.

* Tools/Scripts/run-css-property-code-generation-tests: Added.
* Tools/Scripts/webkitpy/css_properties/__init__.py: Added.
* Tools/Scripts/webkitpy/css_properties/main.py: Added.
    - Adds test running and implementation.

* Source/WebCore/CMakeLists.txt:
* Source/WebCore/DerivedSources-input.xcfilelist:
* Source/WebCore/DerivedSources.make:
* Source/WebCore/WebCore.xcodeproj/project.pbxproj:
* Source/WebCore/css/scripts/process-css-properties.py: Renamed from 
Source/WebCore/css/process-css-properties.py.
* Source/WebCore/css/scripts/process-css-values.py: Renamed from 
Source/WebCore/css/process-css-values.py.
    - Moves CSS related scripts to new Source/WebCore/css/scripts directory.

* Source/WebCore/css/scripts/test/TestCSSProperties.json: Added.
* 
Source/WebCore/css/scripts/test/TestCSSPropertiesResults/CSSPropertyNames.gperf:
 Added.
* Source/WebCore/css/scripts/test/TestCSSPropertiesResults/CSSPropertyNames.h: 
Added.
* 
Source/WebCore/css/scripts/test/TestCSSPropertiesResults/CSSPropertyParsing.cpp:
 Added.
* 
Source/WebCore/css/scripts/test/TestCSSPropertiesResults/CSSPropertyParsing.h: 
Added.
* 
Source/WebCore/css/scripts/test/TestCSSPropertiesResults/CSSStyleDeclaration+PropertyNames.idl:
 Added.
* 
Source/WebCore/css/scripts/test/TestCSSPropertiesResults/StyleBuilderGenerated.cpp:
 Added.
* 
Source/WebCore/css/scripts/test/TestCSSPropertiesResults/StyleInterpolationWrapperMap.cpp:
 Added.
* 
Source/WebCore/css/scripts/test/TestCSSPropertiesResults/StyleInterpolationWrapperMap.h:
 Added.
* 
Source/WebCore/css/scripts/test/TestCSSPropertiesResults/StylePropertyShorthandFunctions.cpp:
 Added.
* 
Source/WebCore/css/scripts/test/TestCSSPropertiesResults/StylePropertyShorthandFunctions.h:
 Added.
    - Initial test properties JSON and its initial reference results.

Canonical link: https://commits.webkit.org/291640@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to