commit 9f35a9b93c7d4a67b628705000e4afa47a0cc699
parent fd3528fae1ed9a5415144b22ec167f58a5d56fc2
Author: Jean-Philippe Gravel <jpgravel@chromium.org>
Date: Wed, 3 Dec 2025 14:43:05 +0000
Bug 2003482 [wpt PR 56388] - Use @assert macro in generated canvas WPT test, a=testonly
Automatic update from web-platform-tests
Use @assert macro in generated canvas WPT test
Using `@assert` here is equivalent. This syntax avoid having to repeat
assert parameters twice, and it makes the statement fit within 80
characters.
Change-Id: I15addc8ae969d3d763a7e75d19ee1d86e8271577
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7212939
Reviewed-by: Andres Ricardo Perez <andresrperez@chromium.org>
Commit-Queue: Jean-Philippe Gravel <jpgravel@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1552765}
--
wpt-commits: 289096392a125b290590d324b35895bdc5cabaab
wpt-pr: 56388
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/testing/web-platform/tests/html/canvas/tools/yaml/the-canvas-state.yaml b/testing/web-platform/tests/html/canvas/tools/yaml/the-canvas-state.yaml
@@ -112,7 +112,7 @@
ctx.save();
ctx.{{ variant_names[1] }} = {{ value }};
ctx.restore();
- _assertSame(ctx.{{ variant_names[1] }}, old, "ctx.{{ variant_names[1] }}", "old");
+ @assert ctx.{{ variant_names[1] }} === old;
// Also test that save() doesn't modify the values.
ctx.{{ variant_names[1] }} = {{ value }};
@@ -120,7 +120,7 @@
// We're not interested in failures caused by get(set(x)) != x (e.g.
// from rounding), so compare against `old` instead of against {{ value }}.
ctx.save();
- _assertSame(ctx.{{ variant_names[1] }}, old, "ctx.{{ variant_names[1] }}", "old");
+ @assert ctx.{{ variant_names[1] }} === old;
ctx.restore();
variants_layout: [single_file, multi_files]
variants: