Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Side by Side Diff: tests/PathOpsOpTest.cpp

Issue 265453009: remove inverse_paths from ignored tests (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: experiment with 128 bit floats Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tests/PathOpsCubicLineIntersectionTest.cpp ('k') | tools/pathops_sorter.htm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2012 Google Inc. 2 * Copyright 2012 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 #include "PathOpsExtendedTest.h" 7 #include "PathOpsExtendedTest.h"
8 8
9 #define TEST(name) { name, #name } 9 #define TEST(name) { name, #name }
10 10
(...skipping 3311 matching lines...) Expand 10 before | Expand all | Expand 10 after
3322 path2.moveTo(37.52734375f, -1.44140625f); 3322 path2.moveTo(37.52734375f, -1.44140625f);
3323 path2.cubicTo(37.8736991882324f, -1.69921875f, 38.1640625f, -2.140625f, 38.3 984375f, -2.765625f); 3323 path2.cubicTo(37.8736991882324f, -1.69921875f, 38.1640625f, -2.140625f, 38.3 984375f, -2.765625f);
3324 path2.lineTo(38.640625f, -2.609375f); 3324 path2.lineTo(38.640625f, -2.609375f);
3325 path2.cubicTo(38.53125f, -1.89583337306976f, 38.0664443969727f, -0.154893040 657043f, 38.0664443969727f, -0.154893040657043f); 3325 path2.cubicTo(38.53125f, -1.89583337306976f, 38.0664443969727f, -0.154893040 657043f, 38.0664443969727f, -0.154893040657043f);
3326 path2.cubicTo(38.0664443969727f, -0.154893040657043f, 37.1809883117676f, -1. 18359375f, 37.52734375, -1.44140625f); 3326 path2.cubicTo(38.0664443969727f, -0.154893040657043f, 37.1809883117676f, -1. 18359375f, 37.52734375, -1.44140625f);
3327 path2.close(); 3327 path2.close();
3328 3328
3329 testPathOp(reporter, path1, path2, kDifference_PathOp, filename); 3329 testPathOp(reporter, path1, path2, kDifference_PathOp, filename);
3330 } 3330 }
3331 3331
3332 static void issue2504(skiatest::Reporter* reporter, const char* filename) {
3333 SkPath path1;
3334 path1.moveTo(34.2421875, -5.976562976837158203125);
3335 path1.lineTo(35.453121185302734375, 0);
3336 path1.lineTo(31.9375, 0);
3337 path1.close();
3338
3339 SkPath path2;
3340 path2.moveTo(36.71843719482421875, 0.8886508941650390625);
3341 path2.cubicTo(36.71843719482421875, 0.8886508941650390625,
3342 35.123386383056640625, 0.554015457630157470703125,
3343 34.511409759521484375, -0.1152553558349609375);
3344 path2.cubicTo(33.899425506591796875, -0.7845261096954345703125,
3345 34.53484344482421875, -5.6777553558349609375,
3346 34.53484344482421875, -5.6777553558349609375);
3347 path2.close();
3348 testPathOp(reporter, path1, path2, kUnion_PathOp, filename);
3349 }
3350
3332 static void (*firstTest)(skiatest::Reporter* , const char* filename) = 0; 3351 static void (*firstTest)(skiatest::Reporter* , const char* filename) = 0;
3333 static void (*stopTest)(skiatest::Reporter* , const char* filename) = 0; 3352 static void (*stopTest)(skiatest::Reporter* , const char* filename) = 0;
3334 3353
3335 static struct TestDesc tests[] = { 3354 static struct TestDesc tests[] = {
3355 TEST(issue2504),
3336 TEST(kari1), 3356 TEST(kari1),
3337 TEST(quadOp10i), 3357 TEST(quadOp10i),
3338 #if 0 // FIXME: serpentine curve is ordered the wrong way 3358 #if 0 // FIXME: serpentine curve is ordered the wrong way
3339 TEST(cubicOp114), 3359 TEST(cubicOp114),
3340 #endif 3360 #endif
3341 #if 0 // FIXME: currently failing 3361 #if 0 // FIXME: currently failing
3342 TEST(cubicOp113), 3362 TEST(cubicOp113),
3343 #endif 3363 #endif
3344 #if SKPS_WORKING 3364 #if SKPS_WORKING
3345 // fails because a cubic/quadratic intersection is missed 3365 // fails because a cubic/quadratic intersection is missed
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
3587 }; 3607 };
3588 3608
3589 static const size_t failTestCount = SK_ARRAY_COUNT(failTests); 3609 static const size_t failTestCount = SK_ARRAY_COUNT(failTests);
3590 3610
3591 DEF_TEST(PathOpsFailOp, reporter) { 3611 DEF_TEST(PathOpsFailOp, reporter) {
3592 #if DEBUG_SHOW_TEST_NAME 3612 #if DEBUG_SHOW_TEST_NAME
3593 strncpy(DEBUG_FILENAME_STRING, "", DEBUG_FILENAME_STRING_LENGTH); 3613 strncpy(DEBUG_FILENAME_STRING, "", DEBUG_FILENAME_STRING_LENGTH);
3594 #endif 3614 #endif
3595 RunTestSet(reporter, failTests, failTestCount, 0, 0, false); 3615 RunTestSet(reporter, failTests, failTestCount, 0, 0, false);
3596 } 3616 }
OLDNEW
« no previous file with comments | « tests/PathOpsCubicLineIntersectionTest.cpp ('k') | tools/pathops_sorter.htm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698