Bug 183818

Summary: [Web Animations] Make imported/mozilla/css-animations/test_pseudoElement-get-animations.html pass reliably
Product: WebKit Reporter: Antoine Quint <graouts>
Component: AnimationsAssignee: Antoine Quint <graouts>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, cmarcelo, dbates, dino, esprehn+autocc, ews-watchlist, kangil.han, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=186484
Attachments:
Description Flags
Patch
none
Patch
dino: review+, ews-watchlist: commit-queue-
Archive of layout-test-results from ews204 for win-future none

Antoine Quint
Reported 2018-03-21 08:34:24 PDT
The new tests added under imported/mozilla/css-animations and imported/mozilla/css-transitions are mostly failing reliably, flaky or timing out.
Attachments
Patch (17.95 KB, patch)
2018-06-19 08:26 PDT, Antoine Quint
no flags
Patch (18.04 KB, patch)
2018-06-19 09:31 PDT, Antoine Quint
dino: review+
ews-watchlist: commit-queue-
Archive of layout-test-results from ews204 for win-future (12.75 MB, application/zip)
2018-06-19 12:38 PDT, EWS Watchlist
no flags
Radar WebKit Bug Importer
Comment 1 2018-06-11 02:17:48 PDT
Antoine Quint
Comment 2 2018-06-19 08:26:24 PDT
Antoine Quint
Comment 3 2018-06-19 09:31:28 PDT
EWS Watchlist
Comment 4 2018-06-19 12:38:47 PDT
Comment on attachment 343062 [details] Patch Attachment 343062 [details] did not pass win-ews (win): Output: http://webkit-queues.webkit.org/results/8250507 New failing tests: imported/mozilla/css-animations/test_pseudoElement-get-animations.html
EWS Watchlist
Comment 5 2018-06-19 12:38:59 PDT
Created attachment 343081 [details] Archive of layout-test-results from ews204 for win-future The attached test failures were seen while running run-webkit-tests on the win-ews. Bot: ews204 Port: win-future Platform: CYGWIN_NT-6.1-2.9.0-0.318-5-3-x86_64-64bit
Dean Jackson
Comment 6 2018-06-19 13:20:14 PDT
Comment on attachment 343062 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=343062&action=review > Source/WebCore/animation/AnimationTimeline.cpp:145 > +Vector<RefPtr<WebAnimation>> AnimationTimeline::animationsForElement(Element& element, bool sorted) const Use a enum class Ordering::Sorted Ordering::Unsorted rather than a bool parameter > Source/WebCore/animation/AnimationTimeline.cpp:160 > + if (lhsTransition->generationTime() == rhsTransition->generationTime()) > + return lhsTransition->transitionProperty().utf8() < rhsTransition->transitionProperty().utf8(); > + return lhsTransition->generationTime() < rhsTransition->generationTime(); Make the logic here match the comment if (l->genTime != r->genTime) return l->genTime < r->genTime; return l->prop < r->prop
Antoine Quint
Comment 7 2018-06-20 00:07:09 PDT
(In reply to Dean Jackson from comment #6) > Comment on attachment 343062 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=343062&action=review > > > Source/WebCore/animation/AnimationTimeline.cpp:145 > > +Vector<RefPtr<WebAnimation>> AnimationTimeline::animationsForElement(Element& element, bool sorted) const > > Use a enum class Ordering::Sorted Ordering::Unsorted rather than a bool > parameter > > > Source/WebCore/animation/AnimationTimeline.cpp:160 > > + if (lhsTransition->generationTime() == rhsTransition->generationTime()) > > + return lhsTransition->transitionProperty().utf8() < rhsTransition->transitionProperty().utf8(); > > + return lhsTransition->generationTime() < rhsTransition->generationTime(); > > Make the logic here match the comment > > if (l->genTime != r->genTime) > return l->genTime < r->genTime; > > return l->prop < r->prop Thanks for the feedback, will address both in the commit.
Antoine Quint
Comment 8 2018-06-20 00:07:46 PDT
Note You need to log in before you can comment on or make changes to this bug.