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

Unified Diff: mojo/python/tests/validation_unittest.py

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 | « mojo/public/js/validation_unittests.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/python/tests/validation_unittest.py
diff --git a/mojo/python/tests/validation_unittest.py b/mojo/python/tests/validation_unittest.py
index 8e48ae234b340170a507843094c6d742eba1bb42..e185bbd4acfbd960b643134e78bdcde7c2f6bf93 100644
--- a/mojo/python/tests/validation_unittest.py
+++ b/mojo/python/tests/validation_unittest.py
@@ -67,8 +67,13 @@ class ValidationTest(mojo_unittest.MojoTestCase):
def GetData(prefix):
data_dir = os.path.join(paths.src_root, 'mojo', 'public', 'interfaces',
'bindings', 'tests', 'data', 'validation')
+
+ # TODO(qsr, yzshen): Skipping some struct versioning tests.
+ skipped_tests = ["conformance_mthd11_num_bytes_version_mismatch_1.data"]
+
return [ValidationTest.ParseData(data_dir, x) for x in os.listdir(data_dir)
- if x.startswith(prefix) and x.endswith('.data')]
+ if x.startswith(prefix) and x.endswith('.data') and
+ x not in skipped_tests]
def runTest(self, prefix, message_receiver):
for (filename, data, expected) in ValidationTest.GetData(prefix):
« no previous file with comments | « mojo/public/js/validation_unittests.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698