tor-browser

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

commit 69354c86eec294a46d9e77e9d5938abdb1b873af
parent 0b380e13ca46e9893d019d3e379ad530aa0cf571
Author: Jean-Philippe Gravel <jpgravel@chromium.org>
Date:   Wed,  3 Dec 2025 14:42:08 +0000

Bug 2003440 [wpt PR 56376] - Fix WPT canvas test comment indentation and punctuation, a=testonly

Automatic update from web-platform-tests
Fix WPT canvas test comment indentation and punctuation

Change-Id: I9977e7867dc852100999839eb40c0469d09dcf3f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7212938
Commit-Queue: Jean-Philippe Gravel <jpgravel@chromium.org>
Reviewed-by: Andres Ricardo Perez <andresrperez@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1552295}

--
Use backticks

--

wpt-commits: b09e79bd6747622d73351ebdb51b5eb0c49ddec7, 37b6423453df43710ba8f675d09774c8c84234f3
wpt-pr: 56376

Diffstat:
Mtesting/web-platform/tests/html/canvas/element/the-canvas-state/2d.state.saverestore.fillStyle.html | 16++++++++--------
Mtesting/web-platform/tests/html/canvas/element/the-canvas-state/2d.state.saverestore.font.html | 16++++++++--------
Mtesting/web-platform/tests/html/canvas/element/the-canvas-state/2d.state.saverestore.globalAlpha.html | 16++++++++--------
Mtesting/web-platform/tests/html/canvas/element/the-canvas-state/2d.state.saverestore.globalCompositeOperation.html | 16++++++++--------
Mtesting/web-platform/tests/html/canvas/element/the-canvas-state/2d.state.saverestore.lineCap.html | 16++++++++--------
Mtesting/web-platform/tests/html/canvas/element/the-canvas-state/2d.state.saverestore.lineJoin.html | 16++++++++--------
Mtesting/web-platform/tests/html/canvas/element/the-canvas-state/2d.state.saverestore.lineWidth.html | 16++++++++--------
Mtesting/web-platform/tests/html/canvas/element/the-canvas-state/2d.state.saverestore.miterLimit.html | 16++++++++--------
Mtesting/web-platform/tests/html/canvas/element/the-canvas-state/2d.state.saverestore.shadowBlur.html | 16++++++++--------
Mtesting/web-platform/tests/html/canvas/element/the-canvas-state/2d.state.saverestore.shadowColor.html | 16++++++++--------
Mtesting/web-platform/tests/html/canvas/element/the-canvas-state/2d.state.saverestore.shadowOffsetX.html | 16++++++++--------
Mtesting/web-platform/tests/html/canvas/element/the-canvas-state/2d.state.saverestore.shadowOffsetY.html | 16++++++++--------
Mtesting/web-platform/tests/html/canvas/element/the-canvas-state/2d.state.saverestore.strokeStyle.html | 16++++++++--------
Mtesting/web-platform/tests/html/canvas/element/the-canvas-state/2d.state.saverestore.textAlign.html | 16++++++++--------
Mtesting/web-platform/tests/html/canvas/element/the-canvas-state/2d.state.saverestore.textBaseline.html | 16++++++++--------
Mtesting/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.fillStyle.html | 16++++++++--------
Mtesting/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.fillStyle.worker.js | 16++++++++--------
Mtesting/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.globalAlpha.html | 16++++++++--------
Mtesting/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.globalAlpha.worker.js | 16++++++++--------
Mtesting/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.globalCompositeOperation.html | 16++++++++--------
Mtesting/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.globalCompositeOperation.worker.js | 16++++++++--------
Mtesting/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.lineCap.html | 16++++++++--------
Mtesting/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.lineCap.worker.js | 16++++++++--------
Mtesting/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.lineJoin.html | 16++++++++--------
Mtesting/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.lineJoin.worker.js | 16++++++++--------
Mtesting/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.lineWidth.html | 16++++++++--------
Mtesting/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.lineWidth.worker.js | 16++++++++--------
Mtesting/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.miterLimit.html | 16++++++++--------
Mtesting/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.miterLimit.worker.js | 16++++++++--------
Mtesting/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.shadowBlur.html | 16++++++++--------
Mtesting/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.shadowBlur.worker.js | 16++++++++--------
Mtesting/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.shadowColor.html | 16++++++++--------
Mtesting/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.shadowColor.worker.js | 16++++++++--------
Mtesting/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.shadowOffsetX.html | 16++++++++--------
Mtesting/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.shadowOffsetX.worker.js | 16++++++++--------
Mtesting/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.shadowOffsetY.html | 16++++++++--------
Mtesting/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.shadowOffsetY.worker.js | 16++++++++--------
Mtesting/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.strokeStyle.html | 16++++++++--------
Mtesting/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.strokeStyle.worker.js | 16++++++++--------
Mtesting/web-platform/tests/html/canvas/tools/yaml/the-canvas-state.yaml | 8++++----
40 files changed, 316 insertions(+), 316 deletions(-)

diff --git a/testing/web-platform/tests/html/canvas/element/the-canvas-state/2d.state.saverestore.fillStyle.html b/testing/web-platform/tests/html/canvas/element/the-canvas-state/2d.state.saverestore.fillStyle.html @@ -17,18 +17,18 @@ test(t => { canvas.height = 150; const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.fillStyle; ctx.save(); ctx.fillStyle = "#ff0000"; ctx.restore(); _assertSame(ctx.fillStyle, old, "ctx.fillStyle", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.fillStyle = "#ff0000"; old = ctx.fillStyle; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against "#ff0000" + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against "#ff0000". ctx.save(); _assertSame(ctx.fillStyle, old, "ctx.fillStyle", "old"); ctx.restore(); @@ -40,18 +40,18 @@ test(t => { canvas.height = 0; const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.fillStyle; ctx.save(); ctx.fillStyle = "#ff0000"; ctx.restore(); _assertSame(ctx.fillStyle, old, "ctx.fillStyle", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.fillStyle = "#ff0000"; old = ctx.fillStyle; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against "#ff0000" + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against "#ff0000". ctx.save(); _assertSame(ctx.fillStyle, old, "ctx.fillStyle", "old"); ctx.restore(); diff --git a/testing/web-platform/tests/html/canvas/element/the-canvas-state/2d.state.saverestore.font.html b/testing/web-platform/tests/html/canvas/element/the-canvas-state/2d.state.saverestore.font.html @@ -17,18 +17,18 @@ test(t => { canvas.height = 150; const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.font; ctx.save(); ctx.font = "25px serif"; ctx.restore(); _assertSame(ctx.font, old, "ctx.font", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.font = "25px serif"; old = ctx.font; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against "25px serif" + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against "25px serif". ctx.save(); _assertSame(ctx.font, old, "ctx.font", "old"); ctx.restore(); @@ -40,18 +40,18 @@ test(t => { canvas.height = 0; const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.font; ctx.save(); ctx.font = "25px serif"; ctx.restore(); _assertSame(ctx.font, old, "ctx.font", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.font = "25px serif"; old = ctx.font; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against "25px serif" + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against "25px serif". ctx.save(); _assertSame(ctx.font, old, "ctx.font", "old"); ctx.restore(); diff --git a/testing/web-platform/tests/html/canvas/element/the-canvas-state/2d.state.saverestore.globalAlpha.html b/testing/web-platform/tests/html/canvas/element/the-canvas-state/2d.state.saverestore.globalAlpha.html @@ -17,18 +17,18 @@ test(t => { canvas.height = 150; const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.globalAlpha; ctx.save(); ctx.globalAlpha = 0.5; ctx.restore(); _assertSame(ctx.globalAlpha, old, "ctx.globalAlpha", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.globalAlpha = 0.5; old = ctx.globalAlpha; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against 0.5 + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against 0.5. ctx.save(); _assertSame(ctx.globalAlpha, old, "ctx.globalAlpha", "old"); ctx.restore(); @@ -40,18 +40,18 @@ test(t => { canvas.height = 0; const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.globalAlpha; ctx.save(); ctx.globalAlpha = 0.5; ctx.restore(); _assertSame(ctx.globalAlpha, old, "ctx.globalAlpha", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.globalAlpha = 0.5; old = ctx.globalAlpha; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against 0.5 + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against 0.5. ctx.save(); _assertSame(ctx.globalAlpha, old, "ctx.globalAlpha", "old"); ctx.restore(); diff --git a/testing/web-platform/tests/html/canvas/element/the-canvas-state/2d.state.saverestore.globalCompositeOperation.html b/testing/web-platform/tests/html/canvas/element/the-canvas-state/2d.state.saverestore.globalCompositeOperation.html @@ -17,18 +17,18 @@ test(t => { canvas.height = 150; const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.globalCompositeOperation; ctx.save(); ctx.globalCompositeOperation = "copy"; ctx.restore(); _assertSame(ctx.globalCompositeOperation, old, "ctx.globalCompositeOperation", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.globalCompositeOperation = "copy"; old = ctx.globalCompositeOperation; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against "copy" + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against "copy". ctx.save(); _assertSame(ctx.globalCompositeOperation, old, "ctx.globalCompositeOperation", "old"); ctx.restore(); @@ -40,18 +40,18 @@ test(t => { canvas.height = 0; const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.globalCompositeOperation; ctx.save(); ctx.globalCompositeOperation = "copy"; ctx.restore(); _assertSame(ctx.globalCompositeOperation, old, "ctx.globalCompositeOperation", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.globalCompositeOperation = "copy"; old = ctx.globalCompositeOperation; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against "copy" + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against "copy". ctx.save(); _assertSame(ctx.globalCompositeOperation, old, "ctx.globalCompositeOperation", "old"); ctx.restore(); diff --git a/testing/web-platform/tests/html/canvas/element/the-canvas-state/2d.state.saverestore.lineCap.html b/testing/web-platform/tests/html/canvas/element/the-canvas-state/2d.state.saverestore.lineCap.html @@ -17,18 +17,18 @@ test(t => { canvas.height = 150; const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.lineCap; ctx.save(); ctx.lineCap = "round"; ctx.restore(); _assertSame(ctx.lineCap, old, "ctx.lineCap", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.lineCap = "round"; old = ctx.lineCap; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against "round" + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against "round". ctx.save(); _assertSame(ctx.lineCap, old, "ctx.lineCap", "old"); ctx.restore(); @@ -40,18 +40,18 @@ test(t => { canvas.height = 0; const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.lineCap; ctx.save(); ctx.lineCap = "round"; ctx.restore(); _assertSame(ctx.lineCap, old, "ctx.lineCap", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.lineCap = "round"; old = ctx.lineCap; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against "round" + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against "round". ctx.save(); _assertSame(ctx.lineCap, old, "ctx.lineCap", "old"); ctx.restore(); diff --git a/testing/web-platform/tests/html/canvas/element/the-canvas-state/2d.state.saverestore.lineJoin.html b/testing/web-platform/tests/html/canvas/element/the-canvas-state/2d.state.saverestore.lineJoin.html @@ -17,18 +17,18 @@ test(t => { canvas.height = 150; const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.lineJoin; ctx.save(); ctx.lineJoin = "round"; ctx.restore(); _assertSame(ctx.lineJoin, old, "ctx.lineJoin", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.lineJoin = "round"; old = ctx.lineJoin; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against "round" + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against "round". ctx.save(); _assertSame(ctx.lineJoin, old, "ctx.lineJoin", "old"); ctx.restore(); @@ -40,18 +40,18 @@ test(t => { canvas.height = 0; const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.lineJoin; ctx.save(); ctx.lineJoin = "round"; ctx.restore(); _assertSame(ctx.lineJoin, old, "ctx.lineJoin", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.lineJoin = "round"; old = ctx.lineJoin; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against "round" + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against "round". ctx.save(); _assertSame(ctx.lineJoin, old, "ctx.lineJoin", "old"); ctx.restore(); diff --git a/testing/web-platform/tests/html/canvas/element/the-canvas-state/2d.state.saverestore.lineWidth.html b/testing/web-platform/tests/html/canvas/element/the-canvas-state/2d.state.saverestore.lineWidth.html @@ -17,18 +17,18 @@ test(t => { canvas.height = 150; const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.lineWidth; ctx.save(); ctx.lineWidth = 0.5; ctx.restore(); _assertSame(ctx.lineWidth, old, "ctx.lineWidth", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.lineWidth = 0.5; old = ctx.lineWidth; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against 0.5 + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against 0.5. ctx.save(); _assertSame(ctx.lineWidth, old, "ctx.lineWidth", "old"); ctx.restore(); @@ -40,18 +40,18 @@ test(t => { canvas.height = 0; const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.lineWidth; ctx.save(); ctx.lineWidth = 0.5; ctx.restore(); _assertSame(ctx.lineWidth, old, "ctx.lineWidth", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.lineWidth = 0.5; old = ctx.lineWidth; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against 0.5 + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against 0.5. ctx.save(); _assertSame(ctx.lineWidth, old, "ctx.lineWidth", "old"); ctx.restore(); diff --git a/testing/web-platform/tests/html/canvas/element/the-canvas-state/2d.state.saverestore.miterLimit.html b/testing/web-platform/tests/html/canvas/element/the-canvas-state/2d.state.saverestore.miterLimit.html @@ -17,18 +17,18 @@ test(t => { canvas.height = 150; const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.miterLimit; ctx.save(); ctx.miterLimit = 0.5; ctx.restore(); _assertSame(ctx.miterLimit, old, "ctx.miterLimit", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.miterLimit = 0.5; old = ctx.miterLimit; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against 0.5 + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against 0.5. ctx.save(); _assertSame(ctx.miterLimit, old, "ctx.miterLimit", "old"); ctx.restore(); @@ -40,18 +40,18 @@ test(t => { canvas.height = 0; const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.miterLimit; ctx.save(); ctx.miterLimit = 0.5; ctx.restore(); _assertSame(ctx.miterLimit, old, "ctx.miterLimit", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.miterLimit = 0.5; old = ctx.miterLimit; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against 0.5 + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against 0.5. ctx.save(); _assertSame(ctx.miterLimit, old, "ctx.miterLimit", "old"); ctx.restore(); diff --git a/testing/web-platform/tests/html/canvas/element/the-canvas-state/2d.state.saverestore.shadowBlur.html b/testing/web-platform/tests/html/canvas/element/the-canvas-state/2d.state.saverestore.shadowBlur.html @@ -17,18 +17,18 @@ test(t => { canvas.height = 150; const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // 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 + // 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 + // 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(); @@ -40,18 +40,18 @@ test(t => { canvas.height = 0; const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // 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 + // 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 + // 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(); diff --git a/testing/web-platform/tests/html/canvas/element/the-canvas-state/2d.state.saverestore.shadowColor.html b/testing/web-platform/tests/html/canvas/element/the-canvas-state/2d.state.saverestore.shadowColor.html @@ -17,18 +17,18 @@ test(t => { canvas.height = 150; const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.shadowColor; ctx.save(); ctx.shadowColor = "#ff0000"; ctx.restore(); _assertSame(ctx.shadowColor, old, "ctx.shadowColor", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.shadowColor = "#ff0000"; old = ctx.shadowColor; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against "#ff0000" + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against "#ff0000". ctx.save(); _assertSame(ctx.shadowColor, old, "ctx.shadowColor", "old"); ctx.restore(); @@ -40,18 +40,18 @@ test(t => { canvas.height = 0; const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.shadowColor; ctx.save(); ctx.shadowColor = "#ff0000"; ctx.restore(); _assertSame(ctx.shadowColor, old, "ctx.shadowColor", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.shadowColor = "#ff0000"; old = ctx.shadowColor; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against "#ff0000" + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against "#ff0000". ctx.save(); _assertSame(ctx.shadowColor, old, "ctx.shadowColor", "old"); ctx.restore(); diff --git a/testing/web-platform/tests/html/canvas/element/the-canvas-state/2d.state.saverestore.shadowOffsetX.html b/testing/web-platform/tests/html/canvas/element/the-canvas-state/2d.state.saverestore.shadowOffsetX.html @@ -17,18 +17,18 @@ test(t => { canvas.height = 150; const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.shadowOffsetX; ctx.save(); ctx.shadowOffsetX = 5; ctx.restore(); _assertSame(ctx.shadowOffsetX, old, "ctx.shadowOffsetX", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.shadowOffsetX = 5; old = ctx.shadowOffsetX; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against 5 + // 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.shadowOffsetX, old, "ctx.shadowOffsetX", "old"); ctx.restore(); @@ -40,18 +40,18 @@ test(t => { canvas.height = 0; const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.shadowOffsetX; ctx.save(); ctx.shadowOffsetX = 5; ctx.restore(); _assertSame(ctx.shadowOffsetX, old, "ctx.shadowOffsetX", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.shadowOffsetX = 5; old = ctx.shadowOffsetX; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against 5 + // 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.shadowOffsetX, old, "ctx.shadowOffsetX", "old"); ctx.restore(); diff --git a/testing/web-platform/tests/html/canvas/element/the-canvas-state/2d.state.saverestore.shadowOffsetY.html b/testing/web-platform/tests/html/canvas/element/the-canvas-state/2d.state.saverestore.shadowOffsetY.html @@ -17,18 +17,18 @@ test(t => { canvas.height = 150; const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.shadowOffsetY; ctx.save(); ctx.shadowOffsetY = 5; ctx.restore(); _assertSame(ctx.shadowOffsetY, old, "ctx.shadowOffsetY", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.shadowOffsetY = 5; old = ctx.shadowOffsetY; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against 5 + // 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.shadowOffsetY, old, "ctx.shadowOffsetY", "old"); ctx.restore(); @@ -40,18 +40,18 @@ test(t => { canvas.height = 0; const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.shadowOffsetY; ctx.save(); ctx.shadowOffsetY = 5; ctx.restore(); _assertSame(ctx.shadowOffsetY, old, "ctx.shadowOffsetY", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.shadowOffsetY = 5; old = ctx.shadowOffsetY; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against 5 + // 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.shadowOffsetY, old, "ctx.shadowOffsetY", "old"); ctx.restore(); diff --git a/testing/web-platform/tests/html/canvas/element/the-canvas-state/2d.state.saverestore.strokeStyle.html b/testing/web-platform/tests/html/canvas/element/the-canvas-state/2d.state.saverestore.strokeStyle.html @@ -17,18 +17,18 @@ test(t => { canvas.height = 150; const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.strokeStyle; ctx.save(); ctx.strokeStyle = "#ff0000"; ctx.restore(); _assertSame(ctx.strokeStyle, old, "ctx.strokeStyle", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.strokeStyle = "#ff0000"; old = ctx.strokeStyle; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against "#ff0000" + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against "#ff0000". ctx.save(); _assertSame(ctx.strokeStyle, old, "ctx.strokeStyle", "old"); ctx.restore(); @@ -40,18 +40,18 @@ test(t => { canvas.height = 0; const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.strokeStyle; ctx.save(); ctx.strokeStyle = "#ff0000"; ctx.restore(); _assertSame(ctx.strokeStyle, old, "ctx.strokeStyle", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.strokeStyle = "#ff0000"; old = ctx.strokeStyle; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against "#ff0000" + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against "#ff0000". ctx.save(); _assertSame(ctx.strokeStyle, old, "ctx.strokeStyle", "old"); ctx.restore(); diff --git a/testing/web-platform/tests/html/canvas/element/the-canvas-state/2d.state.saverestore.textAlign.html b/testing/web-platform/tests/html/canvas/element/the-canvas-state/2d.state.saverestore.textAlign.html @@ -17,18 +17,18 @@ test(t => { canvas.height = 150; const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.textAlign; ctx.save(); ctx.textAlign = "center"; ctx.restore(); _assertSame(ctx.textAlign, old, "ctx.textAlign", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.textAlign = "center"; old = ctx.textAlign; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against "center" + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against "center". ctx.save(); _assertSame(ctx.textAlign, old, "ctx.textAlign", "old"); ctx.restore(); @@ -40,18 +40,18 @@ test(t => { canvas.height = 0; const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.textAlign; ctx.save(); ctx.textAlign = "center"; ctx.restore(); _assertSame(ctx.textAlign, old, "ctx.textAlign", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.textAlign = "center"; old = ctx.textAlign; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against "center" + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against "center". ctx.save(); _assertSame(ctx.textAlign, old, "ctx.textAlign", "old"); ctx.restore(); diff --git a/testing/web-platform/tests/html/canvas/element/the-canvas-state/2d.state.saverestore.textBaseline.html b/testing/web-platform/tests/html/canvas/element/the-canvas-state/2d.state.saverestore.textBaseline.html @@ -17,18 +17,18 @@ test(t => { canvas.height = 150; const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.textBaseline; ctx.save(); ctx.textBaseline = "bottom"; ctx.restore(); _assertSame(ctx.textBaseline, old, "ctx.textBaseline", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.textBaseline = "bottom"; old = ctx.textBaseline; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against "bottom" + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against "bottom". ctx.save(); _assertSame(ctx.textBaseline, old, "ctx.textBaseline", "old"); ctx.restore(); @@ -40,18 +40,18 @@ test(t => { canvas.height = 0; const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.textBaseline; ctx.save(); ctx.textBaseline = "bottom"; ctx.restore(); _assertSame(ctx.textBaseline, old, "ctx.textBaseline", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.textBaseline = "bottom"; old = ctx.textBaseline; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against "bottom" + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against "bottom". ctx.save(); _assertSame(ctx.textBaseline, old, "ctx.textBaseline", "old"); ctx.restore(); diff --git a/testing/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.fillStyle.html b/testing/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.fillStyle.html @@ -14,18 +14,18 @@ test(t => { const canvas = new OffscreenCanvas(300, 150); const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.fillStyle; ctx.save(); ctx.fillStyle = "#ff0000"; ctx.restore(); _assertSame(ctx.fillStyle, old, "ctx.fillStyle", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.fillStyle = "#ff0000"; old = ctx.fillStyle; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against "#ff0000" + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against "#ff0000". ctx.save(); _assertSame(ctx.fillStyle, old, "ctx.fillStyle", "old"); ctx.restore(); @@ -35,18 +35,18 @@ test(t => { const canvas = new OffscreenCanvas(0, 0); const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.fillStyle; ctx.save(); ctx.fillStyle = "#ff0000"; ctx.restore(); _assertSame(ctx.fillStyle, old, "ctx.fillStyle", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.fillStyle = "#ff0000"; old = ctx.fillStyle; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against "#ff0000" + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against "#ff0000". ctx.save(); _assertSame(ctx.fillStyle, old, "ctx.fillStyle", "old"); ctx.restore(); diff --git a/testing/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.fillStyle.worker.js b/testing/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.fillStyle.worker.js @@ -10,18 +10,18 @@ test(t => { const canvas = new OffscreenCanvas(300, 150); const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.fillStyle; ctx.save(); ctx.fillStyle = "#ff0000"; ctx.restore(); _assertSame(ctx.fillStyle, old, "ctx.fillStyle", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.fillStyle = "#ff0000"; old = ctx.fillStyle; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against "#ff0000" + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against "#ff0000". ctx.save(); _assertSame(ctx.fillStyle, old, "ctx.fillStyle", "old"); ctx.restore(); @@ -31,18 +31,18 @@ test(t => { const canvas = new OffscreenCanvas(0, 0); const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.fillStyle; ctx.save(); ctx.fillStyle = "#ff0000"; ctx.restore(); _assertSame(ctx.fillStyle, old, "ctx.fillStyle", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.fillStyle = "#ff0000"; old = ctx.fillStyle; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against "#ff0000" + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against "#ff0000". ctx.save(); _assertSame(ctx.fillStyle, old, "ctx.fillStyle", "old"); ctx.restore(); diff --git a/testing/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.globalAlpha.html b/testing/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.globalAlpha.html @@ -14,18 +14,18 @@ test(t => { const canvas = new OffscreenCanvas(300, 150); const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.globalAlpha; ctx.save(); ctx.globalAlpha = 0.5; ctx.restore(); _assertSame(ctx.globalAlpha, old, "ctx.globalAlpha", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.globalAlpha = 0.5; old = ctx.globalAlpha; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against 0.5 + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against 0.5. ctx.save(); _assertSame(ctx.globalAlpha, old, "ctx.globalAlpha", "old"); ctx.restore(); @@ -35,18 +35,18 @@ test(t => { const canvas = new OffscreenCanvas(0, 0); const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.globalAlpha; ctx.save(); ctx.globalAlpha = 0.5; ctx.restore(); _assertSame(ctx.globalAlpha, old, "ctx.globalAlpha", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.globalAlpha = 0.5; old = ctx.globalAlpha; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against 0.5 + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against 0.5. ctx.save(); _assertSame(ctx.globalAlpha, old, "ctx.globalAlpha", "old"); ctx.restore(); diff --git a/testing/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.globalAlpha.worker.js b/testing/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.globalAlpha.worker.js @@ -10,18 +10,18 @@ test(t => { const canvas = new OffscreenCanvas(300, 150); const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.globalAlpha; ctx.save(); ctx.globalAlpha = 0.5; ctx.restore(); _assertSame(ctx.globalAlpha, old, "ctx.globalAlpha", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.globalAlpha = 0.5; old = ctx.globalAlpha; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against 0.5 + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against 0.5. ctx.save(); _assertSame(ctx.globalAlpha, old, "ctx.globalAlpha", "old"); ctx.restore(); @@ -31,18 +31,18 @@ test(t => { const canvas = new OffscreenCanvas(0, 0); const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.globalAlpha; ctx.save(); ctx.globalAlpha = 0.5; ctx.restore(); _assertSame(ctx.globalAlpha, old, "ctx.globalAlpha", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.globalAlpha = 0.5; old = ctx.globalAlpha; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against 0.5 + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against 0.5. ctx.save(); _assertSame(ctx.globalAlpha, old, "ctx.globalAlpha", "old"); ctx.restore(); diff --git a/testing/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.globalCompositeOperation.html b/testing/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.globalCompositeOperation.html @@ -14,18 +14,18 @@ test(t => { const canvas = new OffscreenCanvas(300, 150); const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.globalCompositeOperation; ctx.save(); ctx.globalCompositeOperation = "copy"; ctx.restore(); _assertSame(ctx.globalCompositeOperation, old, "ctx.globalCompositeOperation", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.globalCompositeOperation = "copy"; old = ctx.globalCompositeOperation; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against "copy" + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against "copy". ctx.save(); _assertSame(ctx.globalCompositeOperation, old, "ctx.globalCompositeOperation", "old"); ctx.restore(); @@ -35,18 +35,18 @@ test(t => { const canvas = new OffscreenCanvas(0, 0); const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.globalCompositeOperation; ctx.save(); ctx.globalCompositeOperation = "copy"; ctx.restore(); _assertSame(ctx.globalCompositeOperation, old, "ctx.globalCompositeOperation", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.globalCompositeOperation = "copy"; old = ctx.globalCompositeOperation; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against "copy" + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against "copy". ctx.save(); _assertSame(ctx.globalCompositeOperation, old, "ctx.globalCompositeOperation", "old"); ctx.restore(); diff --git a/testing/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.globalCompositeOperation.worker.js b/testing/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.globalCompositeOperation.worker.js @@ -10,18 +10,18 @@ test(t => { const canvas = new OffscreenCanvas(300, 150); const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.globalCompositeOperation; ctx.save(); ctx.globalCompositeOperation = "copy"; ctx.restore(); _assertSame(ctx.globalCompositeOperation, old, "ctx.globalCompositeOperation", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.globalCompositeOperation = "copy"; old = ctx.globalCompositeOperation; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against "copy" + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against "copy". ctx.save(); _assertSame(ctx.globalCompositeOperation, old, "ctx.globalCompositeOperation", "old"); ctx.restore(); @@ -31,18 +31,18 @@ test(t => { const canvas = new OffscreenCanvas(0, 0); const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.globalCompositeOperation; ctx.save(); ctx.globalCompositeOperation = "copy"; ctx.restore(); _assertSame(ctx.globalCompositeOperation, old, "ctx.globalCompositeOperation", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.globalCompositeOperation = "copy"; old = ctx.globalCompositeOperation; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against "copy" + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against "copy". ctx.save(); _assertSame(ctx.globalCompositeOperation, old, "ctx.globalCompositeOperation", "old"); ctx.restore(); diff --git a/testing/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.lineCap.html b/testing/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.lineCap.html @@ -14,18 +14,18 @@ test(t => { const canvas = new OffscreenCanvas(300, 150); const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.lineCap; ctx.save(); ctx.lineCap = "round"; ctx.restore(); _assertSame(ctx.lineCap, old, "ctx.lineCap", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.lineCap = "round"; old = ctx.lineCap; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against "round" + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against "round". ctx.save(); _assertSame(ctx.lineCap, old, "ctx.lineCap", "old"); ctx.restore(); @@ -35,18 +35,18 @@ test(t => { const canvas = new OffscreenCanvas(0, 0); const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.lineCap; ctx.save(); ctx.lineCap = "round"; ctx.restore(); _assertSame(ctx.lineCap, old, "ctx.lineCap", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.lineCap = "round"; old = ctx.lineCap; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against "round" + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against "round". ctx.save(); _assertSame(ctx.lineCap, old, "ctx.lineCap", "old"); ctx.restore(); diff --git a/testing/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.lineCap.worker.js b/testing/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.lineCap.worker.js @@ -10,18 +10,18 @@ test(t => { const canvas = new OffscreenCanvas(300, 150); const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.lineCap; ctx.save(); ctx.lineCap = "round"; ctx.restore(); _assertSame(ctx.lineCap, old, "ctx.lineCap", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.lineCap = "round"; old = ctx.lineCap; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against "round" + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against "round". ctx.save(); _assertSame(ctx.lineCap, old, "ctx.lineCap", "old"); ctx.restore(); @@ -31,18 +31,18 @@ test(t => { const canvas = new OffscreenCanvas(0, 0); const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.lineCap; ctx.save(); ctx.lineCap = "round"; ctx.restore(); _assertSame(ctx.lineCap, old, "ctx.lineCap", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.lineCap = "round"; old = ctx.lineCap; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against "round" + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against "round". ctx.save(); _assertSame(ctx.lineCap, old, "ctx.lineCap", "old"); ctx.restore(); diff --git a/testing/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.lineJoin.html b/testing/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.lineJoin.html @@ -14,18 +14,18 @@ test(t => { const canvas = new OffscreenCanvas(300, 150); const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.lineJoin; ctx.save(); ctx.lineJoin = "round"; ctx.restore(); _assertSame(ctx.lineJoin, old, "ctx.lineJoin", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.lineJoin = "round"; old = ctx.lineJoin; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against "round" + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against "round". ctx.save(); _assertSame(ctx.lineJoin, old, "ctx.lineJoin", "old"); ctx.restore(); @@ -35,18 +35,18 @@ test(t => { const canvas = new OffscreenCanvas(0, 0); const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.lineJoin; ctx.save(); ctx.lineJoin = "round"; ctx.restore(); _assertSame(ctx.lineJoin, old, "ctx.lineJoin", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.lineJoin = "round"; old = ctx.lineJoin; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against "round" + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against "round". ctx.save(); _assertSame(ctx.lineJoin, old, "ctx.lineJoin", "old"); ctx.restore(); diff --git a/testing/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.lineJoin.worker.js b/testing/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.lineJoin.worker.js @@ -10,18 +10,18 @@ test(t => { const canvas = new OffscreenCanvas(300, 150); const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.lineJoin; ctx.save(); ctx.lineJoin = "round"; ctx.restore(); _assertSame(ctx.lineJoin, old, "ctx.lineJoin", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.lineJoin = "round"; old = ctx.lineJoin; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against "round" + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against "round". ctx.save(); _assertSame(ctx.lineJoin, old, "ctx.lineJoin", "old"); ctx.restore(); @@ -31,18 +31,18 @@ test(t => { const canvas = new OffscreenCanvas(0, 0); const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.lineJoin; ctx.save(); ctx.lineJoin = "round"; ctx.restore(); _assertSame(ctx.lineJoin, old, "ctx.lineJoin", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.lineJoin = "round"; old = ctx.lineJoin; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against "round" + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against "round". ctx.save(); _assertSame(ctx.lineJoin, old, "ctx.lineJoin", "old"); ctx.restore(); diff --git a/testing/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.lineWidth.html b/testing/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.lineWidth.html @@ -14,18 +14,18 @@ test(t => { const canvas = new OffscreenCanvas(300, 150); const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.lineWidth; ctx.save(); ctx.lineWidth = 0.5; ctx.restore(); _assertSame(ctx.lineWidth, old, "ctx.lineWidth", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.lineWidth = 0.5; old = ctx.lineWidth; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against 0.5 + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against 0.5. ctx.save(); _assertSame(ctx.lineWidth, old, "ctx.lineWidth", "old"); ctx.restore(); @@ -35,18 +35,18 @@ test(t => { const canvas = new OffscreenCanvas(0, 0); const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.lineWidth; ctx.save(); ctx.lineWidth = 0.5; ctx.restore(); _assertSame(ctx.lineWidth, old, "ctx.lineWidth", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.lineWidth = 0.5; old = ctx.lineWidth; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against 0.5 + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against 0.5. ctx.save(); _assertSame(ctx.lineWidth, old, "ctx.lineWidth", "old"); ctx.restore(); diff --git a/testing/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.lineWidth.worker.js b/testing/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.lineWidth.worker.js @@ -10,18 +10,18 @@ test(t => { const canvas = new OffscreenCanvas(300, 150); const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.lineWidth; ctx.save(); ctx.lineWidth = 0.5; ctx.restore(); _assertSame(ctx.lineWidth, old, "ctx.lineWidth", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.lineWidth = 0.5; old = ctx.lineWidth; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against 0.5 + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against 0.5. ctx.save(); _assertSame(ctx.lineWidth, old, "ctx.lineWidth", "old"); ctx.restore(); @@ -31,18 +31,18 @@ test(t => { const canvas = new OffscreenCanvas(0, 0); const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.lineWidth; ctx.save(); ctx.lineWidth = 0.5; ctx.restore(); _assertSame(ctx.lineWidth, old, "ctx.lineWidth", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.lineWidth = 0.5; old = ctx.lineWidth; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against 0.5 + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against 0.5. ctx.save(); _assertSame(ctx.lineWidth, old, "ctx.lineWidth", "old"); ctx.restore(); diff --git a/testing/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.miterLimit.html b/testing/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.miterLimit.html @@ -14,18 +14,18 @@ test(t => { const canvas = new OffscreenCanvas(300, 150); const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.miterLimit; ctx.save(); ctx.miterLimit = 0.5; ctx.restore(); _assertSame(ctx.miterLimit, old, "ctx.miterLimit", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.miterLimit = 0.5; old = ctx.miterLimit; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against 0.5 + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against 0.5. ctx.save(); _assertSame(ctx.miterLimit, old, "ctx.miterLimit", "old"); ctx.restore(); @@ -35,18 +35,18 @@ test(t => { const canvas = new OffscreenCanvas(0, 0); const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.miterLimit; ctx.save(); ctx.miterLimit = 0.5; ctx.restore(); _assertSame(ctx.miterLimit, old, "ctx.miterLimit", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.miterLimit = 0.5; old = ctx.miterLimit; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against 0.5 + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against 0.5. ctx.save(); _assertSame(ctx.miterLimit, old, "ctx.miterLimit", "old"); ctx.restore(); diff --git a/testing/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.miterLimit.worker.js b/testing/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.miterLimit.worker.js @@ -10,18 +10,18 @@ test(t => { const canvas = new OffscreenCanvas(300, 150); const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.miterLimit; ctx.save(); ctx.miterLimit = 0.5; ctx.restore(); _assertSame(ctx.miterLimit, old, "ctx.miterLimit", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.miterLimit = 0.5; old = ctx.miterLimit; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against 0.5 + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against 0.5. ctx.save(); _assertSame(ctx.miterLimit, old, "ctx.miterLimit", "old"); ctx.restore(); @@ -31,18 +31,18 @@ test(t => { const canvas = new OffscreenCanvas(0, 0); const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.miterLimit; ctx.save(); ctx.miterLimit = 0.5; ctx.restore(); _assertSame(ctx.miterLimit, old, "ctx.miterLimit", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.miterLimit = 0.5; old = ctx.miterLimit; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against 0.5 + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against 0.5. ctx.save(); _assertSame(ctx.miterLimit, old, "ctx.miterLimit", "old"); ctx.restore(); diff --git a/testing/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.shadowBlur.html b/testing/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.shadowBlur.html @@ -14,18 +14,18 @@ test(t => { const canvas = new OffscreenCanvas(300, 150); const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // 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 + // 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 + // 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(); @@ -35,18 +35,18 @@ test(t => { const canvas = new OffscreenCanvas(0, 0); const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // 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 + // 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 + // 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(); diff --git a/testing/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.shadowBlur.worker.js b/testing/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.shadowBlur.worker.js @@ -10,18 +10,18 @@ test(t => { const canvas = new OffscreenCanvas(300, 150); const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // 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 + // 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 + // 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(); @@ -31,18 +31,18 @@ test(t => { const canvas = new OffscreenCanvas(0, 0); const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // 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 + // 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 + // 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(); diff --git a/testing/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.shadowColor.html b/testing/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.shadowColor.html @@ -14,18 +14,18 @@ test(t => { const canvas = new OffscreenCanvas(300, 150); const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.shadowColor; ctx.save(); ctx.shadowColor = "#ff0000"; ctx.restore(); _assertSame(ctx.shadowColor, old, "ctx.shadowColor", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.shadowColor = "#ff0000"; old = ctx.shadowColor; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against "#ff0000" + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against "#ff0000". ctx.save(); _assertSame(ctx.shadowColor, old, "ctx.shadowColor", "old"); ctx.restore(); @@ -35,18 +35,18 @@ test(t => { const canvas = new OffscreenCanvas(0, 0); const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.shadowColor; ctx.save(); ctx.shadowColor = "#ff0000"; ctx.restore(); _assertSame(ctx.shadowColor, old, "ctx.shadowColor", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.shadowColor = "#ff0000"; old = ctx.shadowColor; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against "#ff0000" + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against "#ff0000". ctx.save(); _assertSame(ctx.shadowColor, old, "ctx.shadowColor", "old"); ctx.restore(); diff --git a/testing/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.shadowColor.worker.js b/testing/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.shadowColor.worker.js @@ -10,18 +10,18 @@ test(t => { const canvas = new OffscreenCanvas(300, 150); const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.shadowColor; ctx.save(); ctx.shadowColor = "#ff0000"; ctx.restore(); _assertSame(ctx.shadowColor, old, "ctx.shadowColor", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.shadowColor = "#ff0000"; old = ctx.shadowColor; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against "#ff0000" + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against "#ff0000". ctx.save(); _assertSame(ctx.shadowColor, old, "ctx.shadowColor", "old"); ctx.restore(); @@ -31,18 +31,18 @@ test(t => { const canvas = new OffscreenCanvas(0, 0); const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.shadowColor; ctx.save(); ctx.shadowColor = "#ff0000"; ctx.restore(); _assertSame(ctx.shadowColor, old, "ctx.shadowColor", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.shadowColor = "#ff0000"; old = ctx.shadowColor; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against "#ff0000" + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against "#ff0000". ctx.save(); _assertSame(ctx.shadowColor, old, "ctx.shadowColor", "old"); ctx.restore(); diff --git a/testing/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.shadowOffsetX.html b/testing/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.shadowOffsetX.html @@ -14,18 +14,18 @@ test(t => { const canvas = new OffscreenCanvas(300, 150); const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.shadowOffsetX; ctx.save(); ctx.shadowOffsetX = 5; ctx.restore(); _assertSame(ctx.shadowOffsetX, old, "ctx.shadowOffsetX", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.shadowOffsetX = 5; old = ctx.shadowOffsetX; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against 5 + // 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.shadowOffsetX, old, "ctx.shadowOffsetX", "old"); ctx.restore(); @@ -35,18 +35,18 @@ test(t => { const canvas = new OffscreenCanvas(0, 0); const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.shadowOffsetX; ctx.save(); ctx.shadowOffsetX = 5; ctx.restore(); _assertSame(ctx.shadowOffsetX, old, "ctx.shadowOffsetX", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.shadowOffsetX = 5; old = ctx.shadowOffsetX; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against 5 + // 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.shadowOffsetX, old, "ctx.shadowOffsetX", "old"); ctx.restore(); diff --git a/testing/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.shadowOffsetX.worker.js b/testing/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.shadowOffsetX.worker.js @@ -10,18 +10,18 @@ test(t => { const canvas = new OffscreenCanvas(300, 150); const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.shadowOffsetX; ctx.save(); ctx.shadowOffsetX = 5; ctx.restore(); _assertSame(ctx.shadowOffsetX, old, "ctx.shadowOffsetX", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.shadowOffsetX = 5; old = ctx.shadowOffsetX; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against 5 + // 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.shadowOffsetX, old, "ctx.shadowOffsetX", "old"); ctx.restore(); @@ -31,18 +31,18 @@ test(t => { const canvas = new OffscreenCanvas(0, 0); const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.shadowOffsetX; ctx.save(); ctx.shadowOffsetX = 5; ctx.restore(); _assertSame(ctx.shadowOffsetX, old, "ctx.shadowOffsetX", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.shadowOffsetX = 5; old = ctx.shadowOffsetX; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against 5 + // 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.shadowOffsetX, old, "ctx.shadowOffsetX", "old"); ctx.restore(); diff --git a/testing/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.shadowOffsetY.html b/testing/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.shadowOffsetY.html @@ -14,18 +14,18 @@ test(t => { const canvas = new OffscreenCanvas(300, 150); const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.shadowOffsetY; ctx.save(); ctx.shadowOffsetY = 5; ctx.restore(); _assertSame(ctx.shadowOffsetY, old, "ctx.shadowOffsetY", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.shadowOffsetY = 5; old = ctx.shadowOffsetY; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against 5 + // 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.shadowOffsetY, old, "ctx.shadowOffsetY", "old"); ctx.restore(); @@ -35,18 +35,18 @@ test(t => { const canvas = new OffscreenCanvas(0, 0); const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.shadowOffsetY; ctx.save(); ctx.shadowOffsetY = 5; ctx.restore(); _assertSame(ctx.shadowOffsetY, old, "ctx.shadowOffsetY", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.shadowOffsetY = 5; old = ctx.shadowOffsetY; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against 5 + // 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.shadowOffsetY, old, "ctx.shadowOffsetY", "old"); ctx.restore(); diff --git a/testing/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.shadowOffsetY.worker.js b/testing/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.shadowOffsetY.worker.js @@ -10,18 +10,18 @@ test(t => { const canvas = new OffscreenCanvas(300, 150); const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.shadowOffsetY; ctx.save(); ctx.shadowOffsetY = 5; ctx.restore(); _assertSame(ctx.shadowOffsetY, old, "ctx.shadowOffsetY", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.shadowOffsetY = 5; old = ctx.shadowOffsetY; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against 5 + // 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.shadowOffsetY, old, "ctx.shadowOffsetY", "old"); ctx.restore(); @@ -31,18 +31,18 @@ test(t => { const canvas = new OffscreenCanvas(0, 0); const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.shadowOffsetY; ctx.save(); ctx.shadowOffsetY = 5; ctx.restore(); _assertSame(ctx.shadowOffsetY, old, "ctx.shadowOffsetY", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.shadowOffsetY = 5; old = ctx.shadowOffsetY; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against 5 + // 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.shadowOffsetY, old, "ctx.shadowOffsetY", "old"); ctx.restore(); diff --git a/testing/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.strokeStyle.html b/testing/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.strokeStyle.html @@ -14,18 +14,18 @@ test(t => { const canvas = new OffscreenCanvas(300, 150); const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.strokeStyle; ctx.save(); ctx.strokeStyle = "#ff0000"; ctx.restore(); _assertSame(ctx.strokeStyle, old, "ctx.strokeStyle", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.strokeStyle = "#ff0000"; old = ctx.strokeStyle; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against "#ff0000" + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against "#ff0000". ctx.save(); _assertSame(ctx.strokeStyle, old, "ctx.strokeStyle", "old"); ctx.restore(); @@ -35,18 +35,18 @@ test(t => { const canvas = new OffscreenCanvas(0, 0); const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.strokeStyle; ctx.save(); ctx.strokeStyle = "#ff0000"; ctx.restore(); _assertSame(ctx.strokeStyle, old, "ctx.strokeStyle", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.strokeStyle = "#ff0000"; old = ctx.strokeStyle; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against "#ff0000" + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against "#ff0000". ctx.save(); _assertSame(ctx.strokeStyle, old, "ctx.strokeStyle", "old"); ctx.restore(); diff --git a/testing/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.strokeStyle.worker.js b/testing/web-platform/tests/html/canvas/offscreen/the-canvas-state/2d.state.saverestore.strokeStyle.worker.js @@ -10,18 +10,18 @@ test(t => { const canvas = new OffscreenCanvas(300, 150); const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.strokeStyle; ctx.save(); ctx.strokeStyle = "#ff0000"; ctx.restore(); _assertSame(ctx.strokeStyle, old, "ctx.strokeStyle", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.strokeStyle = "#ff0000"; old = ctx.strokeStyle; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against "#ff0000" + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against "#ff0000". ctx.save(); _assertSame(ctx.strokeStyle, old, "ctx.strokeStyle", "old"); ctx.restore(); @@ -31,18 +31,18 @@ test(t => { const canvas = new OffscreenCanvas(0, 0); const ctx = canvas.getContext('2d'); - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.strokeStyle; ctx.save(); ctx.strokeStyle = "#ff0000"; ctx.restore(); _assertSame(ctx.strokeStyle, old, "ctx.strokeStyle", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.strokeStyle = "#ff0000"; old = ctx.strokeStyle; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against "#ff0000" + // We're not interested in failures caused by get(set(x)) != x (e.g. + // from rounding), so compare against `old` instead of against "#ff0000". ctx.save(); _assertSame(ctx.strokeStyle, old, "ctx.strokeStyle", "old"); ctx.restore(); 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 @@ -107,18 +107,18 @@ desc: save()/restore() works for {{ variant_names[1] }}, with a canvas size of {{ size }} code: | - // Test that restore() undoes any modifications + // Test that restore() undoes any modifications. var old = ctx.{{ variant_names[1] }}; ctx.save(); ctx.{{ variant_names[1] }} = {{ value }}; ctx.restore(); _assertSame(ctx.{{ variant_names[1] }}, old, "ctx.{{ variant_names[1] }}", "old"); - // Also test that save() doesn't modify the values + // Also test that save() doesn't modify the values. ctx.{{ variant_names[1] }} = {{ value }}; old = ctx.{{ variant_names[1] }}; - // we're not interested in failures caused by get(set(x)) != x (e.g. - // from rounding), so compare against 'old' instead of against {{ value }} + // 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"); ctx.restore();