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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/server_process_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/port/server_process_unittest.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/server_process_unittest.py b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/server_process_unittest.py
index c5f9ba61a5b5e8e0967cd9867268cce175dc209e..4ec074c6949d75349f67dea82feb3d5987995c44 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/server_process_unittest.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/server_process_unittest.py
@@ -92,7 +92,8 @@ class FakeServerProcess(server_process.ServerProcess):
class TestServerProcess(unittest.TestCase):
def test_basic(self):
- cmd = [sys.executable, '-c', 'import sys; import time; time.sleep(0.02); print "stdout"; sys.stdout.flush(); print >>sys.stderr, "stderr"']
+ cmd = [sys.executable, '-c',
+ 'import sys; import time; time.sleep(0.02); print "stdout"; sys.stdout.flush(); print >>sys.stderr, "stderr"']
host = SystemHost()
factory = PortFactory(host)
port = factory.get()
@@ -155,15 +156,12 @@ class TestQuoteData(unittest.TestCase):
def test_trailing_spaces(self):
qd = server_process.quote_data
- self.assertEqual(qd("foo "),
- ["foo\x20\x20"])
+ self.assertEqual(qd("foo "), ["foo\x20\x20"])
def test_newlines(self):
qd = server_process.quote_data
- self.assertEqual(qd("foo \nbar\n"),
- ["foo\x20\\n", "bar\\n"])
+ self.assertEqual(qd("foo \nbar\n"), ["foo\x20\\n", "bar\\n"])
def test_binary_data(self):
qd = server_process.quote_data
- self.assertEqual(qd("\x00\x01ab"),
- ["\\x00\\x01ab"])
+ self.assertEqual(qd("\x00\x01ab"), ["\\x00\\x01ab"])

Powered by Google App Engine
This is Rietveld 408576698