Closed
Bug 761326
Opened 12 years ago
Closed 12 years ago
test_2d.path.arc.scale.1 assumes unrealistic 0.098 tolerance or luck
Categories
(Core :: Graphics: Canvas2D, defect)
Core
Graphics: Canvas2D
Tracking
()
RESOLVED
FIXED
mozilla16
People
(Reporter: bjacob, Assigned: bjacob)
References
Details
Attachments
(1 file)
921 bytes,
patch
|
jrmuizel
:
review+
|
Details | Diff | Splinter Review |
This test is failing on Android (we're enabling canvas tests on Android in bug 759221). The reason is that it's creating a 100x50 canvas, drawing a circle centered at (50, 25) with radius 56 and expects it to fully cover the whole canvas. We have sqrt(50^2 + 25^2) ~= 55.902 So it's assuming a drawing tolerance of roughly 56 - 55.902 == 0.098. Drawing tolerances used in browsers are typically larger than that: we seem to use 0.3 on mobile and 0.1 on desktop, and IIUC Chrome uses 0.5. See: http://mxr.mozilla.org/mozilla-central/ident?i=CAIRO_GSTATE_TOLERANCE_DEFAULT&filter= This patch edits this test to work with tolerances <= 0.5 and be more explicit. Please send it upstream.
Attachment #629930 -
Flags: review?(jmuizelaar)
Updated•12 years ago
|
Attachment #629930 -
Flags: feedback?(philip)
Updated•12 years ago
|
Attachment #629930 -
Flags: review?(jmuizelaar) → review+
Assignee | ||
Comment 1•12 years ago
|
||
http://hg.mozilla.org/integration/mozilla-inbound/rev/e158c9ebe4a2
Assignee: nobody → bjacob
Target Milestone: --- → mozilla16
Comment 2•12 years ago
|
||
Sorry, I backed this out on inbound along with bug 759221 because of failures in multiple media tests on desktop platforms: https://hg.mozilla.org/integration/mozilla-inbound/rev/3b2b9defe6f4
Target Milestone: mozilla16 → ---
Assignee | ||
Comment 3•12 years ago
|
||
http://hg.mozilla.org/integration/mozilla-inbound/rev/d71c9973b8ed
Target Milestone: --- → mozilla16
Comment 4•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/d71c9973b8ed
Status: NEW → RESOLVED
Closed: 12 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•