tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

snapshot-multiframe.yaml (1329B)


      1 # This test exercises wrench's multi-frame reftest feature by capturing an
      2 # out-of-view stacking context snapshot in the first frame and displaying it
      3 # as an image in the second frame.
      4 # It also exercises webrender's ability to render a frame without compositing
      5 # it into the window.
      6 ---
      7 frames:
      8  # First frame
      9  - root:
     10    # Don't present this frame into the window.
     11    present: false
     12    items:
     13      - type: stacking-context
     14        bounds: [0, 0, 100, 100]
     15        items:
     16        - type: rect
     17          bounds: [ 0, 0, 320, 250 ]
     18          color: [100, 50, 10]
     19        - type: stacking-context
     20          # The snapshotted stacking context is far out of the view
     21          bounds: [100000, 0, 200, 200]
     22          snapshot:
     23            name: "snap0"
     24            area: [0, 0, 100, 200]
     25          items:
     26            - type: rect
     27              bounds: [ 0, 0, 90, 100 ]
     28              color: [0, 150, 0]
     29            - type: rect
     30              bounds: [ 10, 100, 90, 100 ]
     31              color: [150, 0, 0]
     32      # This red rectangle that covers the view should not be shown because
     33      # it is not part of a snapshot and the frame is not presented.
     34      - type: rect
     35        bounds: [0, 0, 1000, 1000]
     36        color: red
     37  # Second frame
     38  - root:
     39    items:
     40      - image: snapshot(snap0)
     41        bounds: [0, 0, 100, 200]