[webkit-changes] [WebKit/WebKit] 4ee897: Fix constant timeouts in transition tests

Oriol Brufau noreply at github.com
Wed Nov 30 17:25:49 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 4ee897dd423cb67f2715cd1211ddc5b25174369b
      https://github.com/WebKit/WebKit/commit/4ee897dd423cb67f2715cd1211ddc5b25174369b
  Author: Oriol Brufau <obrufau at igalia.com>
  Date:   2022-11-30 (Wed, 30 Nov 2022)

  Changed paths:
    M LayoutTests/TestExpectations
    M LayoutTests/transitions/resources/transition-test-helpers.js

  Log Message:
  -----------
  Fix constant timeouts in transition tests
https://bugs.webkit.org/show_bug.cgi?id=248449

Reviewed by Darin Adler.

In 257041 at main I changed the computed getPropertyCSSValue() for the
border-radius longhands. Previously it was either a CSSPrimitiveValue
holding a length, or a CSSValueList with 2 CSSPrimitiveValue lengths.
To make it consistent with the parser, I made it always return a
CSSPrimitiveValue holding a Pair of CSSPrimitiveValue lengths.

This affected transition-test-helpers.js, which didn't have logic for
the border-radius longhands, so it was falling back to getFloatValue().
This would have already failed in the CSSValueList case, but it went
undetected until I used the CSSPrimitiveValue pair.

Then getFloatValue() started throwing an exception, which would prevent
the tests from completing. Hence a timeout.

This patch adds custom logic for the border-radius longhands, and adds
a try...catch so that exceptions don't cause a timeout.

* LayoutTests/TestExpectations:
* LayoutTests/transitions/resources/transition-test-helpers.js:

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




More information about the webkit-changes mailing list