diff options
author | 2017-01-24 10:12:53 -0500 | |
---|---|---|
committer | 2017-01-24 15:57:31 +0000 | |
commit | 7717d4a343bad38017c91459f1637868844bda47 (patch) | |
tree | c1c44a2938ba6ba5a67a5cb86a9439dd533638e8 /tests | |
parent | 55213562f9a63cbc324833fdd1c16cc79646515a (diff) |
conservativelyContainsRect is asserting
BUG=skia:6156
Change-Id: Iea571f001e9a4c4e70313c1bd49fb4e3c598869a
Reviewed-on: https://skia-review.googlesource.com/7423
Commit-Queue: Mike Reed <reed@google.com>
Reviewed-by: Mike Reed <reed@google.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/PathTest.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/PathTest.cpp b/tests/PathTest.cpp index 42771d0ff7..bdc99e34a8 100644 --- a/tests/PathTest.cpp +++ b/tests/PathTest.cpp @@ -4674,3 +4674,17 @@ DEF_TEST(Paths, reporter) { test_bounds_crbug_513799(reporter); test_fuzz_crbug_638223(); } + +DEF_TEST(conservatively_contains_rect, reporter) { + SkPath path; + + path.moveTo(SkBits2Float(0x44000000), SkBits2Float(0x373938b8)); // 512, 1.10401e-05f + // 1.4013e-45f, -9.22346e+18f, 3.58732e-43f, 0, 3.58732e-43f, 0 + path.cubicTo(SkBits2Float(0x00000001), SkBits2Float(0xdf000052), + SkBits2Float(0x00000100), SkBits2Float(0x00000000), + SkBits2Float(0x00000100), SkBits2Float(0x00000000)); + path.moveTo(0, 0); + + // this guy should not assert + path.conservativelyContainsRect({ -211747, 12.1115f, -197893, 25.0321f }); +} |