aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/PathOpsBattles.cpp
diff options
context:
space:
mode:
authorGravatar caryclark <caryclark@google.com>2015-07-07 18:09:32 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-07-07 18:09:32 -0700
commitfc95be17c3f294a86e7ba82790e38cd7ae7146eb (patch)
tree8d186a7e2dabc52bb9cd8459d307a39c0e821aa8 /tests/PathOpsBattles.cpp
parentf7b54cda0d44cb1e7fd89586ff8ff3b78dfb823b (diff)
fix pathops battle test
The intermediate subtraction threw away bits causing the subsequent cross product to fail. Defer the bit truncation until after the vector is computed. TBR=reed@google.com Review URL: https://codereview.chromium.org/1226933003
Diffstat (limited to 'tests/PathOpsBattles.cpp')
-rw-r--r--tests/PathOpsBattles.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/PathOpsBattles.cpp b/tests/PathOpsBattles.cpp
index 3cf1353891..2920a01557 100644
--- a/tests/PathOpsBattles.cpp
+++ b/tests/PathOpsBattles.cpp
@@ -5011,7 +5011,7 @@ path.lineTo(SkBits2Float(0x424b624a), SkBits2Float(0x42833479));
path.close();
SkPath path2(path);
- testPathOpCheck(reporter, path1, path2, (SkPathOp) 2, filename, FLAGS_runFail);
+ testPathOp(reporter, path1, path2, (SkPathOp) 2, filename);
}
// op end success 1