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

Unified Diff: third_party/manifestdestiny/tests/test_testmanifest.py

Issue 108313011: Adding mozilla libraries required by Firefox interop test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/
Patch Set: Created 7 years 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 | « third_party/manifestdestiny/tests/test_manifestparser.py ('k') | third_party/mozdownload/PKG-INFO » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/manifestdestiny/tests/test_testmanifest.py
===================================================================
--- third_party/manifestdestiny/tests/test_testmanifest.py (revision 0)
+++ third_party/manifestdestiny/tests/test_testmanifest.py (revision 0)
@@ -0,0 +1,34 @@
+#!/usr/bin/env python
+
+import os
+import unittest
+from manifestparser import TestManifest
+
+here = os.path.dirname(os.path.abspath(__file__))
+
+class TestTestManifest(unittest.TestCase):
+ """Test the Test Manifest"""
+
+ def test_testmanifest(self):
+ # Test filtering based on platform:
+ filter_example = os.path.join(here, 'filter-example.ini')
+ manifest = TestManifest(manifests=(filter_example,))
+ self.assertEqual([i['name'] for i in manifest.active_tests(os='win', disabled=False, exists=False)],
+ ['windowstest', 'fleem'])
+ self.assertEqual([i['name'] for i in manifest.active_tests(os='linux', disabled=False, exists=False)],
+ ['fleem', 'linuxtest'])
+
+ # Look for existing tests. There is only one:
+ self.assertEqual([i['name'] for i in manifest.active_tests()],
+ ['fleem'])
+
+ # You should be able to expect failures:
+ last_test = manifest.active_tests(exists=False, toolkit='gtk2')[-1]
+ self.assertEqual(last_test['name'], 'linuxtest')
+ self.assertEqual(last_test['expected'], 'pass')
+ last_test = manifest.active_tests(exists=False, toolkit='cocoa')[-1]
+ self.assertEqual(last_test['expected'], 'fail')
+
+
+if __name__ == '__main__':
+ unittest.main()
Property changes on: third_party/manifestdestiny/tests/test_testmanifest.py
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « third_party/manifestdestiny/tests/test_manifestparser.py ('k') | third_party/mozdownload/PKG-INFO » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698