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

Side by Side Diff: media/tools/layout_tests/layouttests_unittest.py

Issue 8672007: Fix python scripts in src/media (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
« no previous file with comments | « media/tools/layout_tests/layouttests.py ('k') | media/tools/layout_tests/test_expectations.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/env python
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 import os 6 import os
7 import unittest 7 import unittest
8 8
9 from layouttests import LayoutTests 9 from layouttests import LayoutTests
10 from test_expectations import TestExpectations 10 from test_expectations import TestExpectations
11 11
(...skipping 27 matching lines...) Expand all
39 def testGetParentDirectoryList(self): 39 def testGetParentDirectoryList(self):
40 testname_list = ['hoge1/hoge2/hoge3.html', 'hoge1/x.html', 40 testname_list = ['hoge1/hoge2/hoge3.html', 'hoge1/x.html',
41 'hoge1/hoge2/hoge4.html'] 41 'hoge1/hoge2/hoge4.html']
42 expected_result = ['hoge1/', 'hoge1/hoge2/'] 42 expected_result = ['hoge1/', 'hoge1/hoge2/']
43 self.assertEquals(LayoutTests.GetParentDirectoryList(testname_list), 43 self.assertEquals(LayoutTests.GetParentDirectoryList(testname_list),
44 expected_result) 44 expected_result)
45 45
46 46
47 if __name__ == '__main__': 47 if __name__ == '__main__':
48 unittest.main() 48 unittest.main()
OLDNEW
« no previous file with comments | « media/tools/layout_tests/layouttests.py ('k') | media/tools/layout_tests/test_expectations.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698