diff options
Diffstat (limited to 'gfx/wr/wrench/reftests/gradient')
-rw-r--r-- | gfx/wr/wrench/reftests/gradient/radial-border-radius-large-ref.png | bin | 0 -> 17159 bytes | |||
-rw-r--r-- | gfx/wr/wrench/reftests/gradient/radial-border-radius-large.yaml | 21 | ||||
-rw-r--r-- | gfx/wr/wrench/reftests/gradient/reftest.list | 7 |
3 files changed, 25 insertions, 3 deletions
diff --git a/gfx/wr/wrench/reftests/gradient/radial-border-radius-large-ref.png b/gfx/wr/wrench/reftests/gradient/radial-border-radius-large-ref.png Binary files differnew file mode 100644 index 0000000000..b86542ad0b --- /dev/null +++ b/gfx/wr/wrench/reftests/gradient/radial-border-radius-large-ref.png diff --git a/gfx/wr/wrench/reftests/gradient/radial-border-radius-large.yaml b/gfx/wr/wrench/reftests/gradient/radial-border-radius-large.yaml new file mode 100644 index 0000000000..ed052f4bb4 --- /dev/null +++ b/gfx/wr/wrench/reftests/gradient/radial-border-radius-large.yaml @@ -0,0 +1,21 @@ +# This test contains a radial gradient with rounded corners. +# The primitive is large enough to exercise the quad nine-patch +# code path. +# In addition the primitive contains a large solid color portion +# causing the gradient optimization to split it into two primitives. +--- +root: + items: + - type: clip + id: 5 + complex: + - rect: [10, 10, 750, 500] + radius: 32 + - type: radial-gradient + bounds: 10 10 750 500 + center: 0 0 + radius: 400 350 + stops: [0.0, red, 1.0, blue] + clip-chain: [5] + + diff --git a/gfx/wr/wrench/reftests/gradient/reftest.list b/gfx/wr/wrench/reftests/gradient/reftest.list index 5c55c29b06..c33fec2ebe 100644 --- a/gfx/wr/wrench/reftests/gradient/reftest.list +++ b/gfx/wr/wrench/reftests/gradient/reftest.list @@ -82,13 +82,14 @@ fuzzy(1,7) == tiling-conic-3.yaml tiling-conic-3-ref.yaml platform(linux,mac) == linear-aligned-border-radius.yaml linear-aligned-border-radius.png # interpolation fuzz from sampling texture-baked gradient ramps platform(linux,mac) fuzzy-range(<=1,*1404) == repeat-border-radius.yaml repeat-border-radius.png +fuzzy(3,6000) == radial-border-radius-large.yaml radial-border-radius-large-ref.png == conic.yaml conic-ref.yaml fuzzy(1,57) == conic-simple.yaml conic-simple.png fuzzy(255,302) == conic-angle.yaml conic-angle.png == conic-center.yaml conic-center.png fuzzy(1,2) == conic-angle-wraparound.yaml conic-angle.yaml -fuzzy-if(env(android,device),254,146) fuzzy-if(not(env(android,device)),1,1) == conic-angle-wraparound-negative.yaml conic-angle.yaml # Android device is Samsung Galaxy A51 +fuzzy-if(env(android,device),255,155) fuzzy-if(not(env(android,device)),1,1) == conic-angle-wraparound-negative.yaml conic-angle.yaml # Android device is Samsung Galaxy A51 fuzzy(1,333) == conic-color-wheel.yaml conic-color-wheel.png # gradient caching tests @@ -118,8 +119,8 @@ fuzzy-range(<=1,1) == gradient_cache_hardstop_clip.yaml gradient_cache_hardstop_ # Exercise the cached gradient scaling code path fuzzy(2,23000) == linear-large.yaml linear-large-ref.yaml == conic-large.yaml conic-large-ref.yaml -fuzzy-if(env(android,device),254,1) == conic-large-hard-stop.yaml conic-large-hard-stop-ref.yaml # Android device is Samsung Galaxy A51 -fuzzy(1,7000) == radial-large.yaml radial-large-ref.png +fuzzy-if(env(android,device),255,1) == conic-large-hard-stop.yaml conic-large-hard-stop-ref.yaml # Android device is Samsung Galaxy A51 +fuzzy(1,80000) == radial-large.yaml radial-large-ref.png # crash tests == linear-far-endpoints.yaml linear-far-endpoints.yaml |