OLD | NEW |
1 # Copyright (C) 2009 Google Inc. All rights reserved. | 1 # Copyright (C) 2009 Google Inc. All rights reserved. |
2 # Copyright (C) 2012 Intel Corporation. All rights reserved. | 2 # Copyright (C) 2012 Intel Corporation. All rights reserved. |
3 # | 3 # |
4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
6 # met: | 6 # met: |
7 # | 7 # |
8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 include_keyword=['crash']) | 97 include_keyword=['crash']) |
98 | 98 |
99 def test_csv(self): | 99 def test_csv(self): |
100 self.run_test(['failures/expected/text.html', 'failures/expected/image.h
tml'], | 100 self.run_test(['failures/expected/text.html', 'failures/expected/image.h
tml'], |
101 ('test-win-win7,failures/expected/image.html,Bug(test),,FA
IL\n' | 101 ('test-win-win7,failures/expected/image.html,Bug(test),,FA
IL\n' |
102 'test-win-win7,failures/expected/text.html,Bug(test),,FAI
L\n'), | 102 'test-win-win7,failures/expected/text.html,Bug(test),,FAI
L\n'), |
103 csv=True) | 103 csv=True) |
104 | 104 |
105 def test_paths(self): | 105 def test_paths(self): |
106 self.run_test([], | 106 self.run_test([], |
107 ('/mock-checkout/LayoutTests/TestExpectations\n' | 107 ('LayoutTests/TestExpectations\n' |
108 'LayoutTests/NeverFixTests\n' | 108 'LayoutTests/NeverFixTests\n' |
109 'LayoutTests/StaleTestExpectations\n' | 109 'LayoutTests/StaleTestExpectations\n' |
110 'LayoutTests/SlowTests\n'), | 110 'LayoutTests/SlowTests\n'), |
111 paths=True) | 111 paths=True) |
112 | 112 |
113 | 113 |
114 class PrintBaselinesTest(unittest.TestCase): | 114 class PrintBaselinesTest(unittest.TestCase): |
115 | 115 |
116 def setUp(self): | 116 def setUp(self): |
117 self.oc = None | 117 self.oc = None |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 | 165 |
166 def test_csv(self): | 166 def test_csv(self): |
167 command = PrintBaselines() | 167 command = PrintBaselines() |
168 self.capture_output() | 168 self.capture_output() |
169 options = optparse.Values({'all': False, 'platform': '*win7', 'csv': Tru
e, 'include_virtual_tests': False}) | 169 options = optparse.Values({'all': False, 'platform': '*win7', 'csv': Tru
e, 'include_virtual_tests': False}) |
170 command.execute(options, ['passes/text.html'], self.tool) | 170 command.execute(options, ['passes/text.html'], self.tool) |
171 stdout, _, _ = self.restore_output() | 171 stdout, _, _ = self.restore_output() |
172 self.assertMultiLineEqual(stdout, | 172 self.assertMultiLineEqual(stdout, |
173 ('test-win-win7,passes/text.html,None,png,pass
es/text-expected.png,None\n' | 173 ('test-win-win7,passes/text.html,None,png,pass
es/text-expected.png,None\n' |
174 'test-win-win7,passes/text.html,None,txt,pass
es/text-expected.txt,None\n')) | 174 'test-win-win7,passes/text.html,None,txt,pass
es/text-expected.txt,None\n')) |
OLD | NEW |