shape op work in progress
git-svn-id: http://skia.googlecode.com/svn/trunk@6450 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/experimental/Intersection/SimplifyNew_Test.cpp b/experimental/Intersection/SimplifyNew_Test.cpp
index f190ec1..eb000d6 100644
--- a/experimental/Intersection/SimplifyNew_Test.cpp
+++ b/experimental/Intersection/SimplifyNew_Test.cpp
@@ -2607,6 +2607,17 @@
testShapeOp(one, two, kXor_Op);
}
+static void testOp1d() {
+ SkPath path, pathB;
+ path.setFillType((SkPath::FillType) 0);
+ path.addRect(0, 0, 1, 1, (SkPath::Direction) 0);
+ path.addRect(0, 0, 2, 2, (SkPath::Direction) 0);
+ pathB.setFillType((SkPath::FillType) 0);
+ pathB.addRect(0, 0, 1, 1, (SkPath::Direction) 0);
+ pathB.addRect(0, 0, 1, 1, (SkPath::Direction) 0);
+ testShapeOp(path, pathB, kDifference_Op);
+}
+
static void testQuadratic22() {
SkPath path;
path.moveTo(0, 0);
@@ -3219,11 +3230,12 @@
TEST(testIntersect2),
TEST(testUnion2),
TEST(testXor2),
+ TEST(testOp1d),
};
static const size_t subTestCount = sizeof(subTests) / sizeof(subTests[0]);
-static void (*firstBinaryTest)() = testUnion2;
+static void (*firstBinaryTest)() = testOp1d;
static bool skipAll = false;
static bool runBinaryTestsFirst = true;