From: Ms2ger diff --git a/tests/submission/PhilipTaylor/tools/canvas/tests2d.yaml b/tests/submission/PhilipTaylor/tools/canvas/tests2d.yaml --- a/tests/submission/PhilipTaylor/tools/canvas/tests2d.yaml +++ b/tests/submission/PhilipTaylor/tools/canvas/tests2d.yaml @@ -1574,17 +1574,17 @@ @assert ctx.fillStyle =~ /^rgba\(255, 255, 255, 0\.4\d+\)$/; - name: 2d.fillStyle.get.transparent testing: - 2d.colours.getcolour - 2d.serializecolour.transparent code: | ctx.fillStyle = 'rgba(0,0,0,0)'; - @assert ctx.fillStyle == 'rgba(0, 0, 0, 0.0)'; + @assert ctx.fillStyle == 'rgba(0, 0, 0, 0)'; - name: 2d.fillStyle.default testing: - 2d.colours.default code: | @assert ctx.fillStyle == '#000000'; - name: 2d.strokeStyle.default @@ -4445,28 +4445,28 @@ ctx.shadowOffsetY = NaN; @assert ctx.shadowOffsetX === 1; @assert ctx.shadowOffsetY === 2; - name: 2d.shadow.attributes.shadowColor.initial testing: - 2d.shadow.color.initial code: | - @assert ctx.shadowColor === 'rgba(0, 0, 0, 0.0)'; + @assert ctx.shadowColor === 'rgba(0, 0, 0, 0)'; - name: 2d.shadow.attributes.shadowColor.valid testing: - 2d.shadow.color.get - 2d.shadow.color.set code: | ctx.shadowColor = 'lime'; @assert ctx.shadowColor === '#00ff00'; ctx.shadowColor = 'RGBA(0,255, 0,0)'; - @assert ctx.shadowColor === 'rgba(0, 255, 0, 0.0)'; + @assert ctx.shadowColor === 'rgba(0, 255, 0, 0)'; - name: 2d.shadow.attributes.shadowColor.invalid testing: - 2d.shadow.color.invalid code: | ctx.shadowColor = '#00ff00'; ctx.shadowColor = 'bogus'; @assert ctx.shadowColor === '#00ff00';