RESOLVED FIXED 94502
[Chromium] CCMathUtilTest.smallestAngleBetweenVectors unit test failing
https://bugs.webkit.org/show_bug.cgi?id=94502
Summary [Chromium] CCMathUtilTest.smallestAngleBetweenVectors unit test failing
Kenneth Russell
Reported 2012-08-20 10:43:20 PDT
Attachments
Patch (3.52 KB, patch)
2012-08-20 12:59 PDT, Shawn Singh
no flags
Patch (2.58 KB, patch)
2012-08-20 13:16 PDT, Shawn Singh
no flags
Shawn Singh
Comment 1 2012-08-20 10:55:43 PDT
looks like this util function and the unit test were added with webkit rev 126018; +skyostil In the meantime, I'm trying to repro the failure locally if possible.
Kenneth Russell
Comment 2 2012-08-20 11:53:20 PDT
I'm going to disable this test for the moment until it's diagnosed.
Kenneth Russell
Comment 3 2012-08-20 11:55:34 PDT
Shawn Singh
Comment 4 2012-08-20 12:33:19 PDT
(In reply to comment #3) > Committed r126049: <http://trac.webkit.org/changeset/126049> Just checking - was the additional TestExpectations stuff in this CL related to this unit test?
Shawn Singh
Comment 5 2012-08-20 12:59:36 PDT
Created attachment 159496 [details] Patch please note that the ".0" suffix seemed to be necessary here, other wise std::min could not be resolved correctly
Kenneth Russell
Comment 6 2012-08-20 13:08:42 PDT
Comment on attachment 159496 [details] Patch Per our offline discussion: are you sure that using higher precision for the intermediate results is really the right solution? No matter how many bits of precision are added, floating-point computations are inaccurate. Should the test be updated instead to allow for a small amount of inaccuracy? BTW, the TestExpectations updates in the other commit were unrelated to this test.
Shawn Singh
Comment 7 2012-08-20 13:16:20 PDT
Created attachment 159503 [details] Patch Thanks, good point =) new patch is even more trivial, and we should follow-up asking Sami whether it's OK that this edge case is tested with less precision.
Kenneth Russell
Comment 8 2012-08-20 13:18:35 PDT
Comment on attachment 159503 [details] Patch Looks good. r=me
WebKit Review Bot
Comment 9 2012-08-20 14:50:36 PDT
Comment on attachment 159503 [details] Patch Clearing flags on attachment: 159503 Committed r126075: <http://trac.webkit.org/changeset/126075>
WebKit Review Bot
Comment 10 2012-08-20 14:50:40 PDT
All reviewed patches have been landed. Closing bug.
Sami Kyöstilä
Comment 11 2012-08-21 03:12:11 PDT
Thanks for fixing this guys. The landed patch looks fine. I didn't see the failure on my local machine or any Android phones, so I was wrongly assuming that EXPECT_EQ automatically uses an epsilon value for floats.
Note You need to log in before you can comment on or make changes to this bug.