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

Unified Diff: mojo/dart/test/validation_test.dart

Issue 951573002: Add validation test cases for struct versioning. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | mojo/public/cpp/bindings/tests/validation_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/dart/test/validation_test.dart
diff --git a/mojo/dart/test/validation_test.dart b/mojo/dart/test/validation_test.dart
index ee9fb5886753572e184b81503bb05bda4862eb62..390a63f61208563dfdb6b9ccfc713150bba02b6a 100644
--- a/mojo/dart/test/validation_test.dart
+++ b/mojo/dart/test/validation_test.dart
@@ -79,9 +79,12 @@ runTest(String name, parser.ValidationParseResult test, String expected) {
});
}
+// TODO(zra, yzshen): Some struct versioning tests (with "mthd11" in their
+// names) are skipped.
Iterable<String> getTestFiles(String path, String prefix) =>
builtin.enumerateFiles(path)
- .where((s) => s.startsWith(prefix) && s.endsWith(".data"))
+ .where((s) => s.startsWith(prefix) && s.endsWith(".data") &&
+ !s.contains("mthd11"))
.map((s) => s.replaceFirst('.data', ''));
main(List args) {
« no previous file with comments | « no previous file | mojo/public/cpp/bindings/tests/validation_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698