fix PathTest for SKIA_SCALAR=fixed
http://codereview.appspot.com/4528083/
git-svn-id: http://skia.googlecode.com/svn/trunk@1371 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/tests/PathTest.cpp b/tests/PathTest.cpp
index 844b593..7e4e6bc 100644
--- a/tests/PathTest.cpp
+++ b/tests/PathTest.cpp
@@ -86,14 +86,12 @@
spiral.close();
check_convexity(reporter, spiral, SkPath::kConcave_Convexity);
- // TODO(reed): We evaluate this path as concave for SK_SCALAR_IS_FLOAT,
- // but convex for SK_SCALAR_IS_FIXED.
SkPath dent;
- dent.moveTo(0, 0);
- dent.lineTo(100, 100);
- dent.lineTo(0, 100);
- dent.lineTo(-50, 200);
- dent.lineTo(-200, 100);
+ dent.moveTo(SkIntToScalar(0), SkIntToScalar(0));
+ dent.lineTo(SkIntToScalar(100), SkIntToScalar(100));
+ dent.lineTo(SkIntToScalar(0), SkIntToScalar(100));
+ dent.lineTo(SkIntToScalar(-50), SkIntToScalar(200));
+ dent.lineTo(SkIntToScalar(-200), SkIntToScalar(100));
dent.close();
check_convexity(reporter, dent, SkPath::kConcave_Convexity);
}