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

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

Issue 9476021: Updating Layout test analyzer to add control to show issue detail or not. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Modification based on CR comments. Created 8 years, 9 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 unified diff | Download patch
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 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 from datetime import datetime 6 from datetime import datetime
7 from datetime import timedelta 7
8 import time 8 import time
9 import unittest 9 import unittest
10 10
11 11
12 from test_expectations_history import TestExpectationsHistory 12 from test_expectations_history import TestExpectationsHistory
13 13
14 14
15 class TestTestExpectationsHistory(unittest.TestCase): 15 class TestTestExpectationsHistory(unittest.TestCase):
16 """Unit tests for the TestExpectationsHistory class.""" 16 """Unit tests for the TestExpectationsHistory class."""
17 17
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 ctime = time.mktime(ctime.timetuple()) 62 ctime = time.mktime(ctime.timetuple())
63 testname = 'media/video-zoom-controls.html' 63 testname = 'media/video-zoom-controls.html'
64 testname_list = [testname] 64 testname_list = [testname]
65 result_list = TestExpectationsHistory.GetDiffBetweenTimes( 65 result_list = TestExpectationsHistory.GetDiffBetweenTimes(
66 ptime, ctime, testname_list) 66 ptime, ctime, testname_list)
67 self.assertTrue(self.AssertTestName(result_list, testname)) 67 self.assertTrue(self.AssertTestName(result_list, testname))
68 68
69 69
70 if __name__ == '__main__': 70 if __name__ == '__main__':
71 unittest.main() 71 unittest.main()
OLDNEW
« no previous file with comments | « media/tools/layout_tests/test_expectations_history.py ('k') | media/tools/layout_tests/test_expectations_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698