diff options
author | Doris Liu <tianliu@google.com> | 2018-03-23 18:33:45 -0700 |
---|---|---|
committer | Doris Liu <tianliu@google.com> | 2018-03-26 18:12:31 +0000 |
commit | 4ad0e1425b562e336d798a7b28ef2d3bb815a699 (patch) | |
tree | d88bccf9ad90a54e39ee424971d1f0e7ac45c2b8 /libs/hwui/tests/unit/VectorDrawableTests.cpp | |
parent | 294ad785342f0eaaf41c59d819edd559450a4a2a (diff) |
More path validation for better error message
BUG: 73759524
Test: Unit test updated
Change-Id: I2774450174ad6490a1d5e6c81766a2982c2aa6f1
Diffstat (limited to 'libs/hwui/tests/unit/VectorDrawableTests.cpp')
-rw-r--r-- | libs/hwui/tests/unit/VectorDrawableTests.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/hwui/tests/unit/VectorDrawableTests.cpp b/libs/hwui/tests/unit/VectorDrawableTests.cpp index e7496f707318..02f740cee096 100644 --- a/libs/hwui/tests/unit/VectorDrawableTests.cpp +++ b/libs/hwui/tests/unit/VectorDrawableTests.cpp @@ -242,7 +242,8 @@ const StringPath sStringPaths[] = { {"\n \t z", true}, // Valid path data with leading spaces {"1-2e34567", false}, // Not starting with a verb and ill-formatted float {"f 4 5", false}, // Invalid verb - {"\r ", false} // Empty string + {"\r ", false}, // Empty string + {"L1,0 L1,1 L0,1 z M1000", false} // Not enough floats following verb M. }; static bool hasSameVerbs(const PathData& from, const PathData& to) { |