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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 #!/usr/bin/env python
2
3 import os
4 import unittest
5 from manifestparser import TestManifest
6
7 here = os.path.dirname(os.path.abspath(__file__))
8
9 class TestTestManifest(unittest.TestCase):
10 """Test the Test Manifest"""
11
12 def test_testmanifest(self):
13 # Test filtering based on platform:
14 filter_example = os.path.join(here, 'filter-example.ini')
15 manifest = TestManifest(manifests=(filter_example,))
16 self.assertEqual([i['name'] for i in manifest.active_tests(os='win', dis abled=False, exists=False)],
17 ['windowstest', 'fleem'])
18 self.assertEqual([i['name'] for i in manifest.active_tests(os='linux', d isabled=False, exists=False)],
19 ['fleem', 'linuxtest'])
20
21 # Look for existing tests. There is only one:
22 self.assertEqual([i['name'] for i in manifest.active_tests()],
23 ['fleem'])
24
25 # You should be able to expect failures:
26 last_test = manifest.active_tests(exists=False, toolkit='gtk2')[-1]
27 self.assertEqual(last_test['name'], 'linuxtest')
28 self.assertEqual(last_test['expected'], 'pass')
29 last_test = manifest.active_tests(exists=False, toolkit='cocoa')[-1]
30 self.assertEqual(last_test['expected'], 'fail')
31
32
33 if __name__ == '__main__':
34 unittest.main()
OLDNEW
« 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