diff options
author | 2015-05-27 19:53:25 -0700 | |
---|---|---|
committer | 2015-05-27 19:53:25 -0700 | |
commit | 6e43465039f8aa67084256292c65e6f842a57bb7 (patch) | |
tree | 4b52c03cca1a76ce43e7ddd9ba4dfae641affa52 /tests | |
parent | 6fd158ea47472c4d038e48980a95e36623f840c9 (diff) |
simplify RawIter - don't return a pt in kClose
BUG=skia:
TBR=
Review URL: https://codereview.chromium.org/1156893003
Diffstat (limited to 'tests')
-rw-r--r-- | tests/PathTest.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/tests/PathTest.cpp b/tests/PathTest.cpp index b78b343ccc..d25d349d4b 100644 --- a/tests/PathTest.cpp +++ b/tests/PathTest.cpp @@ -2602,14 +2602,10 @@ static void test_raw_iter(skiatest::Reporter* reporter) { REPORTER_ASSERT(reporter, pts[0].fX == SK_Scalar1); REPORTER_ASSERT(reporter, pts[0].fY == 0); REPORTER_ASSERT(reporter, iter.next(pts) == SkPath::kClose_Verb); - REPORTER_ASSERT(reporter, pts[0].fX == SK_Scalar1); - REPORTER_ASSERT(reporter, pts[0].fY == 0); REPORTER_ASSERT(reporter, iter.next(pts) == SkPath::kMove_Verb); REPORTER_ASSERT(reporter, pts[0].fX == SK_Scalar1*2); REPORTER_ASSERT(reporter, pts[0].fY == SK_Scalar1); REPORTER_ASSERT(reporter, iter.next(pts) == SkPath::kClose_Verb); - REPORTER_ASSERT(reporter, pts[0].fX == SK_Scalar1*2); - REPORTER_ASSERT(reporter, pts[0].fY == SK_Scalar1); REPORTER_ASSERT(reporter, iter.next(pts) == SkPath::kMove_Verb); REPORTER_ASSERT(reporter, pts[0].fX == SK_Scalar1*3); REPORTER_ASSERT(reporter, pts[0].fY == SK_Scalar1*2); @@ -2617,8 +2613,6 @@ static void test_raw_iter(skiatest::Reporter* reporter) { REPORTER_ASSERT(reporter, pts[0].fX == SK_Scalar1*4); REPORTER_ASSERT(reporter, pts[0].fY == SK_Scalar1*3); REPORTER_ASSERT(reporter, iter.next(pts) == SkPath::kClose_Verb); - REPORTER_ASSERT(reporter, pts[0].fX == SK_Scalar1*4); - REPORTER_ASSERT(reporter, pts[0].fY == SK_Scalar1*3); REPORTER_ASSERT(reporter, iter.next(pts) == SkPath::kDone_Verb); // Generate random paths and verify @@ -2761,7 +2755,6 @@ static void test_raw_iter(skiatest::Reporter* reporter) { numIterPts += 3; break; case SkPath::kClose_Verb: - REPORTER_ASSERT(reporter, pts[0] == lastMoveTo); lastPt = lastMoveTo; break; default: |