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

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/servers/wptserve_unittest.py

Issue 2627213003: Rename LayoutTests/imported/ -> LayoutTests/external/. (Closed)
Patch Set: Created 3 years, 11 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 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import logging 5 import logging
6 6
7 from webkitpy.common.system.log_testing import LoggingTestCase, LogTesting 7 from webkitpy.common.system.log_testing import LoggingTestCase, LogTesting
8 from webkitpy.common.host_mock import MockHost 8 from webkitpy.common.host_mock import MockHost
9 from webkitpy.layout_tests.port import test 9 from webkitpy.layout_tests.port import test
10 from webkitpy.layout_tests.servers.wptserve import WPTServe 10 from webkitpy.layout_tests.servers.wptserve import WPTServe
11 11
12 12
13 class TestWPTServe(LoggingTestCase): 13 class TestWPTServe(LoggingTestCase):
14 14
15 # pylint: disable=protected-access 15 # pylint: disable=protected-access
16 16
17 def test_init_start_cmd(self): 17 def test_init_start_cmd(self):
18 test_port = test.TestPort(MockHost()) 18 test_port = test.TestPort(MockHost())
19 server = WPTServe(test_port, '/foo') 19 server = WPTServe(test_port, '/foo')
20 self.assertEqual( 20 self.assertEqual(
21 server._start_cmd, # pylint: disable=protected-access 21 server._start_cmd, # pylint: disable=protected-access
22 [ 22 [
23 'python', 23 'python',
24 '-u', 24 '-u',
25 '/mock-checkout/third_party/WebKit/Tools/Scripts/webkitpy/thirdp arty/wpt/wpt/serve', 25 '/mock-checkout/third_party/WebKit/Tools/Scripts/webkitpy/thirdp arty/wpt/wpt/serve',
26 '--config', 26 '--config',
27 '/mock-checkout/third_party/WebKit/Tools/Scripts/webkitpy/thirdp arty/wpt/wpt.config.json', 27 '/mock-checkout/third_party/WebKit/Tools/Scripts/webkitpy/thirdp arty/wpt/wpt.config.json',
28 '--doc_root', 28 '--doc_root',
29 '/test.checkout/LayoutTests/imported/wpt' 29 '/test.checkout/LayoutTests/external/wpt'
30 ]) 30 ])
31 31
32 def test_init_env(self): 32 def test_init_env(self):
33 test_port = test.TestPort(MockHost()) 33 test_port = test.TestPort(MockHost())
34 server = WPTServe(test_port, '/foo') 34 server = WPTServe(test_port, '/foo')
35 self.assertEqual( 35 self.assertEqual(
36 server._env, # pylint: disable=protected-access 36 server._env, # pylint: disable=protected-access
37 { 37 {
38 'MOCK_ENVIRON_COPY': '1', 38 'MOCK_ENVIRON_COPY': '1',
39 'PATH': '/bin:/mock/bin', 39 'PATH': '/bin:/mock/bin',
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 [ 71 [
72 'DEBUG: stale wptserve pid file, pid 7\n', 72 'DEBUG: stale wptserve pid file, pid 7\n',
73 'DEBUG: pid 7 is running, killing it\n' 73 'DEBUG: pid 7 is running, killing it\n'
74 ]) 74 ])
75 self.assertEqual( 75 self.assertEqual(
76 logs[-2:], 76 logs[-2:],
77 [ 77 [
78 'DEBUG: all ports are available\n', 78 'DEBUG: all ports are available\n',
79 'DEBUG: wptserve successfully started (pid = 4)\n' 79 'DEBUG: wptserve successfully started (pid = 4)\n'
80 ]) 80 ])
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698