aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar epoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-05-18 20:23:30 +0000
committerGravatar epoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-05-18 20:23:30 +0000
commit1f75399dced577f467608eadb05ff41de141e4c2 (patch)
treec5c83f9b572c4a1ddec16dd0cbe5b68a29138767 /tests
parentbad8c87812234117d3dc411382fca60e2e868477 (diff)
fix PathTest for SKIA_SCALAR=fixed
Diffstat (limited to 'tests')
-rw-r--r--tests/PathTest.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/tests/PathTest.cpp b/tests/PathTest.cpp
index 844b5934e1..7e4e6bc6f0 100644
--- a/tests/PathTest.cpp
+++ b/tests/PathTest.cpp
@@ -86,14 +86,12 @@ static void test_convexity2(skiatest::Reporter* reporter) {
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);
}