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

Side by Side Diff: Tools/Scripts/webkitpy/layout_tests/servers/websocket_server.py

Issue 101143002: Remove hybi sub directory for WebSocket layout tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years 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
« no previous file with comments | « LayoutTests/http/tests/websocket/zero-length-text_wsh.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (C) 2011 Google Inc. All rights reserved. 1 # Copyright (C) 2011 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 self._mappings = [{'port': self._port}] 86 self._mappings = [{'port': self._port}]
87 87
88 if not self._pid_file: 88 if not self._pid_file:
89 self._pid_file = self._filesystem.join(self._runtime_path, '%s.pid' % self._name) 89 self._pid_file = self._filesystem.join(self._runtime_path, '%s.pid' % self._name)
90 90
91 # Webkit tests 91 # Webkit tests
92 # FIXME: This is the wrong way to detect if we're in Chrome vs. WebKit! 92 # FIXME: This is the wrong way to detect if we're in Chrome vs. WebKit!
93 # The port objects are supposed to abstract this. 93 # The port objects are supposed to abstract this.
94 if self._root: 94 if self._root:
95 self._layout_tests = self._filesystem.abspath(self._root) 95 self._layout_tests = self._filesystem.abspath(self._root)
96 self._web_socket_tests = self._filesystem.abspath(self._filesystem.j oin(self._root, 'http', 'tests', 'websocket', 'tests', 'hybi')) 96 self._web_socket_tests = self._filesystem.abspath(self._filesystem.j oin(self._root, 'http', 'tests', 'websocket'))
97 else: 97 else:
98 try: 98 try:
99 self._layout_tests = self._port_obj.layout_tests_dir() 99 self._layout_tests = self._port_obj.layout_tests_dir()
100 self._web_socket_tests = self._filesystem.join(self._layout_test s, 'http', 'tests', 'websocket', 'tests', 'hybi') 100 self._web_socket_tests = self._filesystem.join(self._layout_test s, 'http', 'tests', 'websocket')
101 except: 101 except:
102 self._web_socket_tests = None 102 self._web_socket_tests = None
103 103
104 if self._use_tls: 104 if self._use_tls:
105 self._log_prefix = _WSS_LOG_PREFIX 105 self._log_prefix = _WSS_LOG_PREFIX
106 else: 106 else:
107 self._log_prefix = _WS_LOG_PREFIX 107 self._log_prefix = _WS_LOG_PREFIX
108 108
109 def _prepare_config(self): 109 def _prepare_config(self):
110 time_str = time.strftime('%d%b%Y-%H%M%S') 110 time_str = time.strftime('%d%b%Y-%H%M%S')
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 166
167 def _stop_running_server(self): 167 def _stop_running_server(self):
168 super(PyWebSocket, self)._stop_running_server() 168 super(PyWebSocket, self)._stop_running_server()
169 169
170 if self._wsin: 170 if self._wsin:
171 self._wsin.close() 171 self._wsin.close()
172 self._wsin = None 172 self._wsin = None
173 if self._wsout: 173 if self._wsout:
174 self._wsout.close() 174 self._wsout.close()
175 self._wsout = None 175 self._wsout = None
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/websocket/zero-length-text_wsh.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698