aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar mike@reedtribe.org <mike@reedtribe.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-11-07 03:39:46 +0000
committerGravatar mike@reedtribe.org <mike@reedtribe.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-11-07 03:39:46 +0000
commit796a1753d96eb0c76e742c8288617d758ddf33df (patch)
treefff725a2f23e1fecb45f8db09d7805be30794006 /tests
parent5a7ae4f5e5de3be99210dd9df89794f52c7c6d6e (diff)
fix SkRegion::contains(rect), thanks to danakj and http://code.google.com/p/skia/issues/detail?id=958
git-svn-id: http://skia.googlecode.com/svn/trunk@6324 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests')
-rw-r--r--tests/RegionTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/RegionTest.cpp b/tests/RegionTest.cpp
index f3d1e0b5a1..e629a9eb93 100644
--- a/tests/RegionTest.cpp
+++ b/tests/RegionTest.cpp
@@ -15,7 +15,7 @@ static void Union(SkRegion* rgn, const SkIRect& rect) {
#define TEST_NO_INTERSECT(rgn, rect) REPORTER_ASSERT(reporter, !rgn.intersects(rect))
#define TEST_INTERSECT(rgn, rect) REPORTER_ASSERT(reporter, rgn.intersects(rect))
-#define TEST_NO_CONTAINS(rgn, rect) REPORTER_ASSERT(reporter, rgn.contains(rect))
+#define TEST_NO_CONTAINS(rgn, rect) REPORTER_ASSERT(reporter, !rgn.contains(rect))
// inspired by http://code.google.com/p/skia/issues/detail?id=958
//