Index: tests/PathTest.cpp |
=================================================================== |
--- tests/PathTest.cpp (revision 8615) |
+++ tests/PathTest.cpp (working copy) |
@@ -365,12 +365,13 @@ |
static void test_rect_isfinite(skiatest::Reporter* reporter) { |
const SkScalar inf = SK_ScalarInfinity; |
+ const SkScalar negInf = SK_ScalarNegativeInfinity; |
const SkScalar nan = SK_ScalarNaN; |
SkRect r; |
r.setEmpty(); |
REPORTER_ASSERT(reporter, r.isFinite()); |
- r.set(0, 0, inf, -inf); |
+ r.set(0, 0, inf, negInf); |
REPORTER_ASSERT(reporter, !r.isFinite()); |
r.set(0, 0, nan, 0); |
REPORTER_ASSERT(reporter, !r.isFinite()); |