mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 16:22:00 +00:00
Bug 1881871 [wpt PR 44765] - Re-enable filter.alpha layer WPT tests by adding fuzzy tags, a=testonly
Automatic update from web-platform-tests Re-enable filter.alpha layer WPT tests by adding fuzzy tags Fixed: 40286998 Change-Id: I69eb2454709ac724a255214114cfab9e4b5abe47 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5321985 Reviewed-by: Michael Ludwig <michaelludwig@google.com> Commit-Queue: Jean-Philippe Gravel <jpgravel@chromium.org> Cr-Commit-Position: refs/heads/main@{#1265215} -- wpt-commits: 9143d58b250dc66ff0a2288779d366da5d70a3a7 wpt-pr: 44765
This commit is contained in:
parent
f46f9a9480
commit
f33c602abb
@ -1,6 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->
|
||||
<link rel="match" href="2d.layer.global-states.filter.alpha.blending-expected.html">
|
||||
<meta name=fuzzy content="maxDifference=0-1; totalPixels=0-2440">
|
||||
<title>Canvas test: 2d.layer.global-states.filter.alpha.blending</title>
|
||||
<h1>2d.layer.global-states.filter.alpha.blending</h1>
|
||||
<p class="desc">Checks that layers with filters correctly use global render states.</p>
|
||||
|
@ -1,6 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->
|
||||
<link rel="match" href="2d.layer.global-states.filter.alpha.composite-expected.html">
|
||||
<meta name=fuzzy content="maxDifference=0-1; totalPixels=0-5204">
|
||||
<title>Canvas test: 2d.layer.global-states.filter.alpha.composite</title>
|
||||
<h1>2d.layer.global-states.filter.alpha.composite</h1>
|
||||
<p class="desc">Checks that layers with filters correctly use global render states.</p>
|
||||
|
@ -1,6 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->
|
||||
<link rel="match" href="2d.layer.global-states.filter.alpha-expected.html">
|
||||
<meta name=fuzzy content="maxDifference=0-2; totalPixels=0-6766">
|
||||
<title>Canvas test: 2d.layer.global-states.filter.alpha</title>
|
||||
<h1>2d.layer.global-states.filter.alpha</h1>
|
||||
<p class="desc">Checks that layers with filters correctly use global render states.</p>
|
||||
|
@ -1,6 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->
|
||||
<link rel="match" href="2d.layer.global-states.filter.alpha.shadow-expected.html">
|
||||
<meta name=fuzzy content="maxDifference=0-2; totalPixels=0-6311">
|
||||
<title>Canvas test: 2d.layer.global-states.filter.alpha.shadow</title>
|
||||
<h1>2d.layer.global-states.filter.alpha.shadow</h1>
|
||||
<p class="desc">Checks that layers with filters correctly use global render states.</p>
|
||||
|
@ -1,6 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->
|
||||
<link rel="match" href="2d.layer.global-states.filter.alpha.blending-expected.html">
|
||||
<meta name=fuzzy content="maxDifference=0-1; totalPixels=0-2440">
|
||||
<title>Canvas test: 2d.layer.global-states.filter.alpha.blending</title>
|
||||
<h1>2d.layer.global-states.filter.alpha.blending</h1>
|
||||
<p class="desc">Checks that layers with filters correctly use global render states.</p>
|
||||
|
@ -2,6 +2,7 @@
|
||||
<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->
|
||||
<html class="reftest-wait">
|
||||
<link rel="match" href="2d.layer.global-states.filter.alpha.blending-expected.html">
|
||||
<meta name=fuzzy content="maxDifference=0-1; totalPixels=0-2440">
|
||||
<title>Canvas test: 2d.layer.global-states.filter.alpha.blending</title>
|
||||
<h1>2d.layer.global-states.filter.alpha.blending</h1>
|
||||
<p class="desc">Checks that layers with filters correctly use global render states.</p>
|
||||
|
@ -1,6 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->
|
||||
<link rel="match" href="2d.layer.global-states.filter.alpha.composite-expected.html">
|
||||
<meta name=fuzzy content="maxDifference=0-1; totalPixels=0-5204">
|
||||
<title>Canvas test: 2d.layer.global-states.filter.alpha.composite</title>
|
||||
<h1>2d.layer.global-states.filter.alpha.composite</h1>
|
||||
<p class="desc">Checks that layers with filters correctly use global render states.</p>
|
||||
|
@ -2,6 +2,7 @@
|
||||
<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->
|
||||
<html class="reftest-wait">
|
||||
<link rel="match" href="2d.layer.global-states.filter.alpha.composite-expected.html">
|
||||
<meta name=fuzzy content="maxDifference=0-1; totalPixels=0-5204">
|
||||
<title>Canvas test: 2d.layer.global-states.filter.alpha.composite</title>
|
||||
<h1>2d.layer.global-states.filter.alpha.composite</h1>
|
||||
<p class="desc">Checks that layers with filters correctly use global render states.</p>
|
||||
|
@ -1,6 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->
|
||||
<link rel="match" href="2d.layer.global-states.filter.alpha-expected.html">
|
||||
<meta name=fuzzy content="maxDifference=0-2; totalPixels=0-6766">
|
||||
<title>Canvas test: 2d.layer.global-states.filter.alpha</title>
|
||||
<h1>2d.layer.global-states.filter.alpha</h1>
|
||||
<p class="desc">Checks that layers with filters correctly use global render states.</p>
|
||||
|
@ -1,6 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->
|
||||
<link rel="match" href="2d.layer.global-states.filter.alpha.shadow-expected.html">
|
||||
<meta name=fuzzy content="maxDifference=0-2; totalPixels=0-6311">
|
||||
<title>Canvas test: 2d.layer.global-states.filter.alpha.shadow</title>
|
||||
<h1>2d.layer.global-states.filter.alpha.shadow</h1>
|
||||
<p class="desc">Checks that layers with filters correctly use global render states.</p>
|
||||
|
@ -2,6 +2,7 @@
|
||||
<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->
|
||||
<html class="reftest-wait">
|
||||
<link rel="match" href="2d.layer.global-states.filter.alpha.shadow-expected.html">
|
||||
<meta name=fuzzy content="maxDifference=0-2; totalPixels=0-6311">
|
||||
<title>Canvas test: 2d.layer.global-states.filter.alpha.shadow</title>
|
||||
<h1>2d.layer.global-states.filter.alpha.shadow</h1>
|
||||
<p class="desc">Checks that layers with filters correctly use global render states.</p>
|
||||
|
@ -2,6 +2,7 @@
|
||||
<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->
|
||||
<html class="reftest-wait">
|
||||
<link rel="match" href="2d.layer.global-states.filter.alpha-expected.html">
|
||||
<meta name=fuzzy content="maxDifference=0-2; totalPixels=0-6766">
|
||||
<title>Canvas test: 2d.layer.global-states.filter.alpha</title>
|
||||
<h1>2d.layer.global-states.filter.alpha</h1>
|
||||
<p class="desc">Checks that layers with filters correctly use global render states.</p>
|
||||
|
@ -44,7 +44,7 @@
|
||||
variants: &global-state-variants
|
||||
no-global-states:
|
||||
render_states: // No global states.
|
||||
alpha:
|
||||
alpha: &global-state-alpha
|
||||
render_states: ctx.globalAlpha = 0.6;
|
||||
blending:
|
||||
render_states: ctx.globalCompositeOperation = 'multiply';
|
||||
@ -56,15 +56,15 @@
|
||||
ctx.shadowOffsetY = 10;
|
||||
ctx.shadowColor = 'rgba(255, 165, 0, 0.5)';
|
||||
ctx.shadowBlur = 3;
|
||||
alpha.blending:
|
||||
alpha.blending: &global-state-alpha-blending
|
||||
render_states: |-
|
||||
ctx.globalAlpha = 0.6;
|
||||
ctx.globalCompositeOperation = 'multiply';
|
||||
alpha.composite:
|
||||
alpha.composite: &global-state-alpha-composite
|
||||
render_states: |-
|
||||
ctx.globalAlpha = 0.6;
|
||||
ctx.globalCompositeOperation = 'source-in';
|
||||
alpha.shadow:
|
||||
alpha.shadow: &global-state-alpha-shadow
|
||||
render_states: |-
|
||||
ctx.globalAlpha = 0.5;
|
||||
ctx.shadowOffsetX = -10;
|
||||
@ -167,7 +167,20 @@
|
||||
ctx.drawImage(img, 0, 0);
|
||||
};
|
||||
img.src = 'data:image/svg+xml;base64,' + btoa(svg);
|
||||
variants: *global-state-variants
|
||||
variants:
|
||||
<<: *global-state-variants
|
||||
alpha:
|
||||
<<: *global-state-alpha
|
||||
fuzzy: maxDifference=0-2; totalPixels=0-6766
|
||||
alpha.blending:
|
||||
<<: *global-state-alpha-blending
|
||||
fuzzy: maxDifference=0-1; totalPixels=0-2440
|
||||
alpha.composite:
|
||||
<<: *global-state-alpha-composite
|
||||
fuzzy: maxDifference=0-1; totalPixels=0-5204
|
||||
alpha.shadow:
|
||||
<<: *global-state-alpha-shadow
|
||||
fuzzy: maxDifference=0-2; totalPixels=0-6311
|
||||
|
||||
- name: 2d.layer.global-filter
|
||||
desc: Tests that layers ignore the global context filter.
|
||||
|
Loading…
Reference in New Issue
Block a user