aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/PointTest.cpp
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-05-03 18:11:00 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-05-03 18:11:00 +0000
commitdc9cdf8d49ecfe174c408845b7f2de6f5a756b1d (patch)
tree79c301c5d7f5a4ce168b7fa8f14d54f08ed54fdd /tests/PointTest.cpp
parentc9f81661c17b6315df45440541ac799c8034f849 (diff)
add (temporary) diagnostic code for normalize test
git-svn-id: http://skia.googlecode.com/svn/trunk@8994 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests/PointTest.cpp')
-rw-r--r--tests/PointTest.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/PointTest.cpp b/tests/PointTest.cpp
index b909762f07..f8a39630f6 100644
--- a/tests/PointTest.cpp
+++ b/tests/PointTest.cpp
@@ -68,7 +68,11 @@ static void test_overflow(skiatest::Reporter* reporter) {
SkPoint pt = { bigFloat, bigFloat };
SkScalar length = pt.length();
- REPORTER_ASSERT(reporter, !SkScalarIsFinite(length));
+ // expect this to be non-finite, but dump the results if not.
+ if (SkScalarIsFinite(length)) {
+ SkDebugf("length(%g, %g) == %g\n", pt.fX, pt.fY, length);
+ REPORTER_ASSERT(reporter, !SkScalarIsFinite(length));
+ }
// this should succeed, even though we can't represent length
REPORTER_ASSERT(reporter, pt.setLength(SK_Scalar1));