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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/optimize_baselines_unittest.py

Issue 2329263002: Run format-webkitpy and fix long lines. (Closed)
Patch Set: Created 4 years, 3 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/tool/commands/optimize_baselines_unittest.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/optimize_baselines_unittest.py b/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/optimize_baselines_unittest.py
index a4bdc0d795cd909b144540a2c26b1f0e8c8db4e8..715e6a68b2a69f5cfcc020416a45ef9b5a22defb 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/optimize_baselines_unittest.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/optimize_baselines_unittest.py
@@ -46,7 +46,8 @@ class TestOptimizeBaselines(BaseTestCase):
optparse.Values({'suffixes': 'txt', 'no_modify_scm': True, 'platform': 'test-mac-mac10.10'}),
['another/test.html'],
self.tool,
- ], expected_stdout='{"add": [], "remove-lines": [], "delete": ["/test.checkout/LayoutTests/platform/test-mac-mac10.10/another/test-expected.txt"]}\n')
+ ], expected_stdout=('{"add": [], "remove-lines": [], '
+ '"delete": ["/test.checkout/LayoutTests/platform/test-mac-mac10.10/another/test-expected.txt"]}\n'))
self.assertFalse(self.tool.filesystem.exists(self.tool.filesystem.join(
test_port.layout_tests_dir(), 'platform/mac/another/test-expected.txt')))
@@ -71,12 +72,20 @@ class TestOptimizeBaselines(BaseTestCase):
finally:
out, _, _ = oc.restore_output()
- self.assertEquals(out, '{"add": [], "remove-lines": [], "delete": ["/test.checkout/LayoutTests/platform/test-mac-mac10.10/another/test-expected.txt", "/test.checkout/LayoutTests/platform/test-mac-mac10.10/another/test-expected.png"]}\n')
- self.assertFalse(self.tool.filesystem.exists(self.tool.filesystem.join(
- test_port.layout_tests_dir(), 'platform/mac/another/test-expected.txt')))
- self.assertFalse(self.tool.filesystem.exists(self.tool.filesystem.join(
- test_port.layout_tests_dir(), 'platform/mac/another/test-expected.png')))
- self.assertTrue(self.tool.filesystem.exists(self.tool.filesystem.join(
- test_port.layout_tests_dir(), 'another/test-expected.txt')))
- self.assertTrue(self.tool.filesystem.exists(self.tool.filesystem.join(
- test_port.layout_tests_dir(), 'another/test-expected.png')))
+ self.assertEquals(
+ out,
+ '{"add": [], "remove-lines": [], '
+ '"delete": ["/test.checkout/LayoutTests/platform/test-mac-mac10.10/another/test-expected.txt", '
+ '"/test.checkout/LayoutTests/platform/test-mac-mac10.10/another/test-expected.png"]}\n')
+ self.assertFalse(
+ self.tool.filesystem.exists(self.tool.filesystem.join(
+ test_port.layout_tests_dir(), 'platform/mac/another/test-expected.txt')))
+ self.assertFalse(
+ self.tool.filesystem.exists(self.tool.filesystem.join(
+ test_port.layout_tests_dir(), 'platform/mac/another/test-expected.png')))
+ self.assertTrue(
+ self.tool.filesystem.exists(self.tool.filesystem.join(
+ test_port.layout_tests_dir(), 'another/test-expected.txt')))
+ self.assertTrue(
+ self.tool.filesystem.exists(self.tool.filesystem.join(
+ test_port.layout_tests_dir(), 'another/test-expected.png')))

Powered by Google App Engine
This is Rietveld 408576698