OLD | NEW |
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 5238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5249 } | 5249 } |
5250 tiger8a_x(reporter, filename, testlines); | 5250 tiger8a_x(reporter, filename, testlines); |
5251 } | 5251 } |
5252 } | 5252 } |
5253 } | 5253 } |
5254 | 5254 |
5255 static void tiger8a_h_1(skiatest::Reporter* reporter, const char* filename) { | 5255 static void tiger8a_h_1(skiatest::Reporter* reporter, const char* filename) { |
5256 #if DEBUG_UNDER_DEVELOPMENT // tiger | 5256 #if DEBUG_UNDER_DEVELOPMENT // tiger |
5257 return; | 5257 return; |
5258 #endif | 5258 #endif |
5259 uint64_t testlines = 0x0000000280802863; // best so far: 0x0000001610031021
; | 5259 uint64_t testlines = 0x0000000202480001; // best so far: 0x0000001610031021
; |
5260 tiger8a_x(reporter, filename, testlines); | 5260 tiger8a_x(reporter, filename, testlines); |
5261 } | 5261 } |
5262 | 5262 |
5263 // tries to add same edge twice | 5263 // tries to add same edge twice |
5264 static void tiger8b(skiatest::Reporter* reporter, const char* filename) { | 5264 static void tiger8b(skiatest::Reporter* reporter, const char* filename) { |
5265 #if DEBUG_UNDER_DEVELOPMENT // tiger | 5265 #if DEBUG_UNDER_DEVELOPMENT // tiger |
5266 return; | 5266 return; |
5267 #endif | 5267 #endif |
5268 SkPath path; | 5268 SkPath path; |
5269 path.moveTo(SkBits2Float(0x43f72ca1), SkBits2Float(0x43609572)); // 494.349f, 2
24.584f | 5269 path.moveTo(SkBits2Float(0x43f72ca1), SkBits2Float(0x43609572)); // 494.349f, 2
24.584f |
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5782 path.quadTo(1, 3, 3, 3); | 5782 path.quadTo(1, 3, 3, 3); |
5783 path.close(); | 5783 path.close(); |
5784 testSimplify(reporter, path, filename); | 5784 testSimplify(reporter, path, filename); |
5785 } | 5785 } |
5786 | 5786 |
5787 static void (*skipTest)(skiatest::Reporter* , const char* filename) = 0; | 5787 static void (*skipTest)(skiatest::Reporter* , const char* filename) = 0; |
5788 static void (*firstTest)(skiatest::Reporter* , const char* filename) = 0; | 5788 static void (*firstTest)(skiatest::Reporter* , const char* filename) = 0; |
5789 static void (*stopTest)(skiatest::Reporter* , const char* filename) = 0; | 5789 static void (*stopTest)(skiatest::Reporter* , const char* filename) = 0; |
5790 | 5790 |
5791 static TestDesc tests[] = { | 5791 static TestDesc tests[] = { |
| 5792 TEST(tiger8a_h_1), |
| 5793 TEST(tiger8a_h), |
| 5794 TEST(tiger8a), |
| 5795 TEST(tiger8b), |
| 5796 TEST(tiger8), |
5792 TEST(testQuads72), | 5797 TEST(testQuads72), |
5793 TEST(testQuads71), | 5798 TEST(testQuads71), |
5794 TEST(testQuads70), | 5799 TEST(testQuads70), |
5795 TEST(testQuads69), | 5800 TEST(testQuads69), |
5796 TEST(testQuads68), | 5801 TEST(testQuads68), |
5797 TEST(testQuads67), | 5802 TEST(testQuads67), |
5798 TEST(testQuads66), | 5803 TEST(testQuads66), |
5799 TEST(dean4), | 5804 TEST(dean4), |
5800 TEST(tiger8a_h_1), | |
5801 TEST(tiger8a_h), | |
5802 TEST(tiger8a), | |
5803 TEST(tiger8b), | |
5804 TEST(tiger8), | |
5805 TEST(fuzz763_4713_b), | 5805 TEST(fuzz763_4713_b), |
5806 TEST(fuzz_twister2), | 5806 TEST(fuzz_twister2), |
5807 TEST(fuzz_twister), | 5807 TEST(fuzz_twister), |
5808 TEST(fuzz994s_3414), | 5808 TEST(fuzz994s_3414), |
5809 TEST(fuzz994s_11), | 5809 TEST(fuzz994s_11), |
5810 TEST(cr514118), | 5810 TEST(cr514118), |
5811 TEST(fuzz864a), | 5811 TEST(fuzz864a), |
5812 TEST(testQuads65), | 5812 TEST(testQuads65), |
5813 TEST(testIssue3838_3), | 5813 TEST(testIssue3838_3), |
5814 TEST(testIssue3838), | 5814 TEST(testIssue3838), |
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6250 | 6250 |
6251 DEF_TEST(PathOpsSimplify, reporter) { | 6251 DEF_TEST(PathOpsSimplify, reporter) { |
6252 if (runSubTests && runSubTestsFirst) { | 6252 if (runSubTests && runSubTestsFirst) { |
6253 RunTestSet(reporter, subTests, subTestCount, firstSubTest, nullptr, stop
Test, runReverse); | 6253 RunTestSet(reporter, subTests, subTestCount, firstSubTest, nullptr, stop
Test, runReverse); |
6254 } | 6254 } |
6255 RunTestSet(reporter, tests, testCount, firstTest, skipTest, stopTest, runRev
erse); | 6255 RunTestSet(reporter, tests, testCount, firstTest, skipTest, stopTest, runRev
erse); |
6256 if (runSubTests && !runSubTestsFirst) { | 6256 if (runSubTests && !runSubTestsFirst) { |
6257 RunTestSet(reporter, subTests, subTestCount, firstSubTest, nullptr, stop
Test, runReverse); | 6257 RunTestSet(reporter, subTests, subTestCount, firstSubTest, nullptr, stop
Test, runReverse); |
6258 } | 6258 } |
6259 } | 6259 } |
OLD | NEW |