testing/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.shadowBlur.html
no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD
el -> edacbc72f9c702472e006c7229d01e89ac68a0a0
es-AR -> ca52c046fef480523988cdf8b2c316b4084b496c
he -> e7c0b94abeb7ee044af286e4ebd622ada0804c2e
hye -> fb27399463e03658d760751802e4c655e9a1f787
ia -> 63dea35c49da07c0d7f3ab2f77e2e0682868a737
ka -> 0f521d52f508aa416fda2178642ef9ce0b3bc417
nb-NO -> a453d24c602fd86656e5c1488dff8ab24ac31765
nl -> 77e9f18a051887619223c2f41af62f91a8ce8a86
oc -> 106f94e19e078d7449c9191176eab1c2d99174f4
pt-BR -> affa7ab77d516392d7a5d41d4cd75c19db2ba65c
rm -> f8ebda3f7a4c0aa71b312e4b28f14c8ca08c5fca
tg -> 2d54aae5a06ed5c4e12bbd18fd54b78b5d5ae1b6
<!DOCTYPE html>
<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->
<title>OffscreenCanvas test: 2d.state.saverestore.shadowBlur</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/html/canvas/resources/canvas-tests.js"></script>
<h1>2d.state.saverestore.shadowBlur</h1>
<p class="desc">save()/restore() works for shadowBlur</p>
<script>
var t = async_test("save()/restore() works for shadowBlur");
var t_pass = t.done.bind(t);
var t_fail = t.step_func(function(reason) {
throw reason;
});
t.step(function() {
var canvas = new OffscreenCanvas(100, 50);
var ctx = canvas.getContext('2d');
// Test that restore() undoes any modifications
var old = ctx.shadowBlur;
ctx.save();
ctx.shadowBlur = 5;
ctx.restore();
_assertSame(ctx.shadowBlur, old, "ctx.shadowBlur", "old");
// Also test that save() doesn't modify the values
ctx.shadowBlur = 5;
old = ctx.shadowBlur;
// we're not interested in failures caused by get(set(x)) != x (e.g.
// from rounding), so compare against 'old' instead of against 5
ctx.save();
_assertSame(ctx.shadowBlur, old, "ctx.shadowBlur", "old");
ctx.restore();
t.done();
});
</script>