From 7e90e8dbb96f2084f7dd4a6a20cb4b880b362438 Mon Sep 17 00:00:00 2001 From: "commit-bot@chromium.org" Date: Tue, 11 Feb 2014 01:38:30 +0000 Subject: fix minor error between kStroke_PathAsRect and kFill_PathAsRect in SkPath::asRect R=caryclark@google.com, reed@google.com Author: yunchao.he@intel.com Review URL: https://codereview.chromium.org/138703008 git-svn-id: http://skia.googlecode.com/svn/trunk@13390 2bbb7eff-a529-9590-31e7-b0007b416f81 --- tests/PathTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/PathTest.cpp b/tests/PathTest.cpp index e872b0c839..f9466f5944 100644 --- a/tests/PathTest.cpp +++ b/tests/PathTest.cpp @@ -1443,7 +1443,7 @@ static void test_isRect_open_close(skiatest::Reporter* reporter) { REPORTER_ASSERT(reporter, path.isRect(NULL, NULL)); REPORTER_ASSERT(reporter, path.isRect(&isClosed, NULL)); REPORTER_ASSERT(reporter, isClosed); - REPORTER_ASSERT(reporter, SkPath::kFill_PathAsRect == path.asRect(NULL)); + REPORTER_ASSERT(reporter, SkPath::kStroke_PathAsRect == path.asRect(NULL)); } // Simple isRect test is inline TestPath, below. @@ -1562,7 +1562,7 @@ static void test_isRect(skiatest::Reporter* reporter) { REPORTER_ASSERT(reporter, isClosed == tests[testIndex].fClose); REPORTER_ASSERT(reporter, direction == cheapDirection); direction = (SkPath::Direction) -1; - if (tests[testIndex].fClose) { + if (!tests[testIndex].fClose) { REPORTER_ASSERT(reporter, SkPath::kFill_PathAsRect == path.asRect()); REPORTER_ASSERT(reporter, SkPath::kFill_PathAsRect == path.asRect(&direction)); } else { -- cgit v1.2.3