toDataURL.jpeg.quality.basic

toDataURL with JPEG uses the quality parameter

Actual output:

FAIL (fallback content)

Expected output:

Summary

Harness status: OK

Found 1 tests

Details

ResultTest NameMessage
PasstoDataURL with JPEG uses the quality parameter
Asserts run
Pass
assert_true(true, "data_hi.length > data_lo.length")
    at _assert ( /html/canvas/resources/canvas-tests.js:10:5)
Pass
assert_approx_equals(0, 0, 8, "Red channel of the pixel at (25, 25)")
    at _assertPixelApprox ( /html/canvas/resources/canvas-tests.js:47:5)
Pass
assert_approx_equals(0, 0, 8, "Green channel of the pixel at (25, 25)")
    at _assertPixelApprox ( /html/canvas/resources/canvas-tests.js:48:5)
Pass
assert_approx_equals(254, 255, 8, "Blue channel of the pixel at (25, 25)")
    at _assertPixelApprox ( /html/canvas/resources/canvas-tests.js:49:5)
Pass
assert_approx_equals(255, 255, 8, "Alpha channel of the pixel at (25, 25)")
    at _assertPixelApprox ( /html/canvas/resources/canvas-tests.js:50:5)
Pass
assert_approx_equals(0, 0, 32, "Red channel of the pixel at (75, 25)")
    at _assertPixelApprox ( /html/canvas/resources/canvas-tests.js:47:5)
Pass
assert_approx_equals(11, 0, 32, "Green channel of the pixel at (75, 25)")
    at _assertPixelApprox ( /html/canvas/resources/canvas-tests.js:48:5)
Pass
assert_approx_equals(255, 255, 32, "Blue channel of the pixel at (75, 25)")
    at _assertPixelApprox ( /html/canvas/resources/canvas-tests.js:49:5)
Pass
assert_approx_equals(255, 255, 32, "Alpha channel of the pixel at (75, 25)")
    at _assertPixelApprox ( /html/canvas/resources/canvas-tests.js:50:5)