toDataURL.jpeg.primarycolours

toDataURL with JPEG handles simple colours correctly

Actual output:

FAIL (fallback content)

Expected output:

Summary

Harness status: OK

Found 1 tests

Details

ResultTest NameMessage
PasstoDataURL with JPEG handles simple colours correctly
Asserts run
Pass
assert_approx_equals(255, 255, 8, "Red channel of the pixel at (12, 20)")
    at _assertPixelApprox ( /html/canvas/resources/canvas-tests.js:47:5)
Pass
assert_approx_equals(255, 255, 8, "Green channel of the pixel at (12, 20)")
    at _assertPixelApprox ( /html/canvas/resources/canvas-tests.js:48:5)
Pass
assert_approx_equals(0, 0, 8, "Blue channel of the pixel at (12, 20)")
    at _assertPixelApprox ( /html/canvas/resources/canvas-tests.js:49:5)
Pass
assert_approx_equals(255, 255, 8, "Alpha channel of the pixel at (12, 20)")
    at _assertPixelApprox ( /html/canvas/resources/canvas-tests.js:50:5)
Pass
assert_approx_equals(0, 0, 8, "Red channel of the pixel at (50, 20)")
    at _assertPixelApprox ( /html/canvas/resources/canvas-tests.js:47:5)
Pass
assert_approx_equals(255, 255, 8, "Green channel of the pixel at (50, 20)")
    at _assertPixelApprox ( /html/canvas/resources/canvas-tests.js:48:5)
Pass
assert_approx_equals(255, 255, 8, "Blue channel of the pixel at (50, 20)")
    at _assertPixelApprox ( /html/canvas/resources/canvas-tests.js:49:5)
Pass
assert_approx_equals(255, 255, 8, "Alpha channel of the pixel at (50, 20)")
    at _assertPixelApprox ( /html/canvas/resources/canvas-tests.js:50:5)
Pass
assert_approx_equals(0, 0, 8, "Red channel of the pixel at (87, 20)")
    at _assertPixelApprox ( /html/canvas/resources/canvas-tests.js:47:5)
Pass
assert_approx_equals(0, 0, 8, "Green channel of the pixel at (87, 20)")
    at _assertPixelApprox ( /html/canvas/resources/canvas-tests.js:48:5)
Pass
assert_approx_equals(254, 255, 8, "Blue channel of the pixel at (87, 20)")
    at _assertPixelApprox ( /html/canvas/resources/canvas-tests.js:49:5)
Pass
assert_approx_equals(255, 255, 8, "Alpha channel of the pixel at (87, 20)")
    at _assertPixelApprox ( /html/canvas/resources/canvas-tests.js:50:5)
Pass
assert_approx_equals(255, 255, 8, "Red channel of the pixel at (50, 45)")
    at _assertPixelApprox ( /html/canvas/resources/canvas-tests.js:47:5)
Pass
assert_approx_equals(255, 255, 8, "Green channel of the pixel at (50, 45)")
    at _assertPixelApprox ( /html/canvas/resources/canvas-tests.js:48:5)
Pass
assert_approx_equals(255, 255, 8, "Blue channel of the pixel at (50, 45)")
    at _assertPixelApprox ( /html/canvas/resources/canvas-tests.js:49:5)
Pass
assert_approx_equals(255, 255, 8, "Alpha channel of the pixel at (50, 45)")
    at _assertPixelApprox ( /html/canvas/resources/canvas-tests.js:50:5)