summaryrefslogtreecommitdiff
path: root/libs/hwui/tests/unit/VectorDrawableTests.cpp
diff options
context:
space:
mode:
authorDoris Liu <tianliu@google.com>2016-04-07 15:03:11 -0700
committerDoris Liu <tianliu@google.com>2016-04-08 18:01:54 +0000
commit0a1a5167be26d363d4e27bdc7b816f425b7b4e66 (patch)
tree00758e4ff0d4c259c926776319cf097ab7c09d5f /libs/hwui/tests/unit/VectorDrawableTests.cpp
parentb6e1dafe78b2875ebe1837508e28c8dce2693b19 (diff)
Improve error logging for parsing failures
Bug: 27043594 Change-Id: I901b65f734c49444a78e0714e007e15e2340ab9d
Diffstat (limited to 'libs/hwui/tests/unit/VectorDrawableTests.cpp')
-rw-r--r--libs/hwui/tests/unit/VectorDrawableTests.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/libs/hwui/tests/unit/VectorDrawableTests.cpp b/libs/hwui/tests/unit/VectorDrawableTests.cpp
index 720854779c98..796169e09137 100644
--- a/libs/hwui/tests/unit/VectorDrawableTests.cpp
+++ b/libs/hwui/tests/unit/VectorDrawableTests.cpp
@@ -231,11 +231,12 @@ struct StringPath {
};
const StringPath sStringPaths[] = {
- {"3e...3", false},
- {"L.M.F.A.O", false},
- {"m 1 1", true},
- {"z", true},
- {"1-2e34567", false}
+ {"3e...3", false}, // Not starting with a verb and ill-formatted float
+ {"L.M.F.A.O", false}, // No floats following verbs
+ {"m 1 1", true}, // Valid path data
+ {"z", true}, // Valid path data
+ {"1-2e34567", false}, // Not starting with a verb and ill-formatted float
+ {"f 4 5", false} // Invalid verb
};