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

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/views/printing_unittest.py

Issue 2014063002: Run format-webkit on webkitpy code (without string conversion). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 6 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 # Copyright (C) 2010, 2012 Google Inc. All rights reserved. 1 # Copyright (C) 2010, 2012 Google Inc. All rights reserved.
2 # 2 #
3 # Redistribution and use in source and binary forms, with or without 3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions are 4 # modification, are permitted provided that the following conditions are
5 # met: 5 # met:
6 # 6 #
7 # * Redistributions of source code must retain the above copyright 7 # * Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer. 8 # notice, this list of conditions and the following disclaimer.
9 # * Redistributions in binary form must reproduce the above 9 # * Redistributions in binary form must reproduce the above
10 # copyright notice, this list of conditions and the following disclaimer 10 # copyright notice, this list of conditions and the following disclaimer
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 'fast/dom/HTMLFormElement/associated-elements-after-index-assertion- fail1.html', ' passed') 202 'fast/dom/HTMLFormElement/associated-elements-after-index-assertion- fail1.html', ' passed')
203 self.assertEqual(80, len(actual)) 203 self.assertEqual(80, len(actual))
204 self.assertEqual(actual, '[0/0] fast/dom/HTMLFormElement/associa...after -index-assertion-fail1.html passed') 204 self.assertEqual(actual, '[0/0] fast/dom/HTMLFormElement/associa...after -index-assertion-fail1.html passed')
205 205
206 printer._meter.number_of_columns = lambda: 89 206 printer._meter.number_of_columns = lambda: 89
207 actual = printer._test_status_line( 207 actual = printer._test_status_line(
208 'fast/dom/HTMLFormElement/associated-elements-after-index-assertion- fail1.html', ' passed') 208 'fast/dom/HTMLFormElement/associated-elements-after-index-assertion- fail1.html', ' passed')
209 self.assertEqual(89, len(actual)) 209 self.assertEqual(89, len(actual))
210 self.assertEqual(actual, '[0/0] fast/dom/HTMLFormElement/associated-...e nts-after-index-assertion-fail1.html passed') 210 self.assertEqual(actual, '[0/0] fast/dom/HTMLFormElement/associated-...e nts-after-index-assertion-fail1.html passed')
211 211
212 printer._meter.number_of_columns = lambda: sys.maxint 212 printer._meter.number_of_columns = lambda: sys.maxsize
213 actual = printer._test_status_line( 213 actual = printer._test_status_line(
214 'fast/dom/HTMLFormElement/associated-elements-after-index-assertion- fail1.html', ' passed') 214 'fast/dom/HTMLFormElement/associated-elements-after-index-assertion- fail1.html', ' passed')
215 self.assertEqual(90, len(actual)) 215 self.assertEqual(90, len(actual))
216 self.assertEqual(actual, '[0/0] fast/dom/HTMLFormElement/associated-elem ents-after-index-assertion-fail1.html passed') 216 self.assertEqual(actual, '[0/0] fast/dom/HTMLFormElement/associated-elem ents-after-index-assertion-fail1.html passed')
217 217
218 printer._meter.number_of_columns = lambda: 18 218 printer._meter.number_of_columns = lambda: 18
219 actual = printer._test_status_line( 219 actual = printer._test_status_line(
220 'fast/dom/HTMLFormElement/associated-elements-after-index-assertion- fail1.html', ' passed') 220 'fast/dom/HTMLFormElement/associated-elements-after-index-assertion- fail1.html', ' passed')
221 self.assertEqual(18, len(actual)) 221 self.assertEqual(18, len(actual))
222 self.assertEqual(actual, '[0/0] f...l passed') 222 self.assertEqual(actual, '[0/0] f...l passed')
(...skipping 28 matching lines...) Expand all
251 printer.print_finished_test(result, expected=True, exp_str='', got_str=' ') 251 printer.print_finished_test(result, expected=True, exp_str='', got_str=' ')
252 252
253 printer.print_started_test('passes/text.html') 253 printer.print_started_test('passes/text.html')
254 result = self.get_result('passes/text.html') 254 result = self.get_result('passes/text.html')
255 printer.print_finished_test(result, expected=True, exp_str='', got_str=' ') 255 printer.print_finished_test(result, expected=True, exp_str='', got_str=' ')
256 256
257 # Only the first test's start should be printed. 257 # Only the first test's start should be printed.
258 lines = err.buflist 258 lines = err.buflist
259 self.assertEqual(len(lines), 1) 259 self.assertEqual(len(lines), 1)
260 self.assertTrue(lines[0].endswith('passes/image.html\n')) 260 self.assertTrue(lines[0].endswith('passes/image.html\n'))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698