Closed Bug 1706195 Opened 3 years ago Closed 3 years ago

Refactor test code that deals with compositorAPZTestData

Categories

(Core :: Panning and Zooming, task)

task

Tracking

()

RESOLVED FIXED
91 Branch
Tracking Status
firefox91 --- fixed

People

(Reporter: kats, Assigned: kats)

Details

Attachments

(3 files)

Spinoff from https://phabricator.services.mozilla.com/D112501?id=428746#inline-627046

There's some duplicated code around handling the getCompositorAPZTestData() structure that can be refactored.

The helper function will parse both (1, 2) as well as (x=1, y=2)
strings, similarly to how parseRect works.

Even if requirePaints is false, we still index into the APZ test
data using paints.length - 1 and use those data structures
unconditionally. Therefore the code still requires a paint either
way in order to not throw an exception.

Depends on D116531

Pushed by kgupta@mozilla.staktrace.com:
https://hg.mozilla.org/integration/autoland/rev/31f06b7e22fa
Extract a parsePoint helper function. r=hiro
https://hg.mozilla.org/integration/autoland/rev/9b7b9db3a1f4
Drop requirePaints argument in test helper. r=hiro
https://hg.mozilla.org/integration/autoland/rev/12cc3a645367
Extract a getLastApzcTree helper function. r=hiro
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: