Lines Matching refs:response
57 response = await self.websocket.recv_msg_of_connect_server()
58 response = json.loads(response)
59 assert response['type'] == 'addInstance'
60 assert response['instanceId'] == 0, logging.error('InstanceId of the main thread is not 0')
61 assert response['tid'] == pid
63 response = await self.websocket.recv_msg_of_connect_server()
64 response = json.loads(response)
65 assert response['type'] == 'addInstance'
66 assert response['instanceId'] != 0
67 assert response['tid'] != pid
68 assert 'workerThread_' in response['name']
76 response = await self.websocket.recv_msg_of_connect_server()
77 response = json.loads(response)
78 assert response['type'] == 'destroyInstance'
79 return response
82 response = await communicate_with_debugger_server(connection.instance_id,
86 while response.startswith('{"method":"Debugger.scriptParsed"'):
87 response = await self.websocket.recv_msg_of_debugger_server(connection.instance_id,
89 response = json.loads(response)
90 assert response == {"id": message_id, "result": {"debuggerId": "0", "protocols": Utils.get_custom_protocols()}}
93 response = await communicate_with_debugger_server(connection.instance_id,
97 while response.startswith('{"method":"Debugger.resumed"') or \
98 response.startswith('{"method":"HeapProfiler.lastSeenObjectId"') or \
99 response.startswith('{"method":"HeapProfiler.heapStatsUpdate"'):
100 response = await self.websocket.recv_msg_of_debugger_server(connection.instance_id,
102 response = json.loads(response)
103 assert response == {"id": message_id, "result": {}}
104 return response
107 response = await self.websocket.recv_msg_of_debugger_server(connection.instance_id,
109 response = json.loads(response)
110 return response
113 response = await self.websocket.recv_msg_of_debugger_server(connection.instance_id,
115 response = json.loads(response)
116 assert response['method'] == 'Debugger.paused'
117 return response
120 response = await communicate_with_debugger_server(connection.instance_id,
124 assert json.loads(response) == {"method": "Debugger.resumed", "params": {}}
125 response = await self.websocket.recv_msg_of_debugger_server(connection.instance_id,
127 response = json.loads(response)
128 assert response == {"id": message_id, "result": {}}
129 return response
132 response = await communicate_with_debugger_server(connection.instance_id,
136 response = json.loads(response)
137 assert response == {"id": message_id, "result": {}}
138 return response
141 response = await communicate_with_debugger_server(connection.instance_id,
146 response = json.loads(response)
147 assert response['id'] == message_id
148 return response
151 response = await communicate_with_debugger_server(connection.instance_id,
155 assert json.loads(response) == {"method": "Debugger.resumed", "params": {}}
156 response = await self.websocket.recv_msg_of_debugger_server(connection.instance_id,
158 response = json.loads(response)
159 assert response == {"id": message_id, "result": {}}
160 return response
163 response = await communicate_with_debugger_server(connection.instance_id,
167 assert json.loads(response) == {"method": "Debugger.resumed", "params": {}}
168 response = await self.websocket.recv_msg_of_debugger_server(connection.instance_id,
170 response = json.loads(response)
171 assert response == {"id": message_id, "result": {}}
172 return response
175 response = await communicate_with_debugger_server(connection.instance_id,
179 assert json.loads(response) == {"method": "Debugger.resumed", "params": {}}
180 response = await self.websocket.recv_msg_of_debugger_server(connection.instance_id,
182 response = json.loads(response)
183 assert response == {"id": message_id, "result": {}}
184 return response
187 response = await communicate_with_debugger_server(connection.instance_id,
191 response = json.loads(response)
192 assert response == {"id": message_id, "result": {}}
193 return response
196 response = await communicate_with_debugger_server(connection.instance_id,
200 response = json.loads(response)
201 assert response['id'] == message_id
202 return response
205 response = await communicate_with_debugger_server(connection.instance_id,
209 response = json.loads(response)
210 assert response == {"id": message_id, "result": {}}
211 return response
214 response = await communicate_with_debugger_server(connection.instance_id,
218 response = json.loads(response)
219 assert response == {"id": message_id, "result": {}}
220 return response
223 response = await communicate_with_debugger_server(connection.instance_id,
227 response = json.loads(response)
228 assert response == {"id": message_id, "result": {}}
229 return response
232 response = await self.websocket.recv_msg_of_debugger_server(connection.instance_id,
234 response = json.loads(response)
235 assert response['method'] == 'Debugger.nativeCalling'
236 return response
239 response = await communicate_with_debugger_server(connection.instance_id,
243 assert json.loads(response) == {"method": "Debugger.resumed", "params": {}}
244 response = await self.websocket.recv_msg_of_debugger_server(connection.instance_id,
246 response = json.loads(response)
247 assert response == {"id": message_id, "result": {}}
248 return response
251 response = await communicate_with_debugger_server(connection.instance_id,
255 response = json.loads(response)
256 assert response == {"id": message_id, "result": {}}
257 return response