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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/layout_test_finder_unittest.py

Issue 1806393002: Run yapf on files in webkit/layout_tests/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/layout_test_finder_unittest.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/layout_test_finder_unittest.py b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/layout_test_finder_unittest.py
index fac9754dc78aaa2b55f74260ce9a72e7ebd7f2ff..3755bba1c2ee1e3f9d6d23df945c1fad1b29b657 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/layout_test_finder_unittest.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/layout_test_finder_unittest.py
@@ -63,24 +63,13 @@ class LayoutTestFinderTests(unittest.TestCase):
host = MockHost()
port = host.port_factory.get('test-win-win7', None)
- all_tests = [
- 'fast/css/1.html',
- 'fast/css/2.html',
- ]
+ all_tests = ['fast/css/1.html', 'fast/css/2.html', ]
port.tests = lambda paths: paths or all_tests
finder = layout_test_finder.LayoutTestFinder(port, {})
- finder._times_trie = lambda: {
- 'fast': {
- 'css': {
- '1.html': 1,
- '2.html': 2,
- 'non-existant.html': 1,
- }
- },
- }
+ finder._times_trie = lambda: {'fast': {'css': {'1.html': 1, '2.html': 2, 'non-existant.html': 1, }}, }
tests = finder.find_tests(fastest_percentile=90, args=[])
self.assertEqual(set(tests[1]), set(['fast/css/1.html']))

Powered by Google App Engine
This is Rietveld 408576698