Lines Matching defs:response

62 ParsedResponse.prototype.response = function() {
91 var response;
104 response = new ParsedResponse(resp);
105 backtrace = response.body();
115 assertEquals("f", response.lookup(frames[0].func.ref).name);
117 assertEquals("", response.lookup(frames[1].func.ref).name);
118 assertEquals("m", response.lookup(frames[1].func.ref).inferredName);
120 assertEquals("g", response.lookup(frames[2].func.ref).name);
122 assertEquals("", response.lookup(frames[3].func.ref).name);
123 assertFalse(response.running(), "expected not running");
127 response = new ParsedResponse(dcp.processDebugJSONRequest(json));
128 backtrace = response.body();
138 assertEquals("", response.lookup(frames[0].func.ref).name);
139 assertEquals("m", response.lookup(frames[0].func.ref).inferredName);
141 assertEquals("g", response.lookup(frames[1].func.ref).name);
145 response = new ParsedResponse(dcp.processDebugJSONRequest(json));
146 backtrace = response.body();
156 assertEquals("g", response.lookup(frames[0].func.ref).name);
158 assertEquals("", response.lookup(frames[1].func.ref).name);
162 response = new ParsedResponse(dcp.processDebugJSONRequest(json));
163 frame = response.body();
165 assertEquals("f", response.lookup(frame.func.ref).name);
171 assertEquals('number', response.lookup(frame.arguments[0].value.ref).type);
172 assertEquals(1, response.lookup(frame.arguments[0].value.ref).value);
174 assertEquals('undefined', response.lookup(frame.arguments[1].value.ref).type);
177 response = new ParsedResponse(dcp.processDebugJSONRequest(json));
178 frame = response.body();
180 assertEquals("f", response.lookup(frame.func.ref).name);
185 assertEquals('number', response.lookup(frame.arguments[0].value.ref).type);
186 assertEquals(1, response.lookup(frame.arguments[0].value.ref).value);
188 assertEquals('undefined', response.lookup(frame.arguments[1].value.ref).type);
191 response = new ParsedResponse(dcp.processDebugJSONRequest(json));
192 frame = response.body();
194 assertEquals("", response.lookup(frame.func.ref).name);
195 assertEquals("m", response.lookup(frame.func.ref).inferredName);
202 response = new ParsedResponse(dcp.processDebugJSONRequest(json));
203 frame = response.body();
205 assertEquals("", response.lookup(frame.func.ref).name);
210 response = new ParsedResponse(dcp.processDebugJSONRequest(json));
211 source = response.body();
218 response = new ParsedResponse(dcp.processDebugJSONRequest(json));
219 source = response.body();
226 response = new ParsedResponse(dcp.processDebugJSONRequest(json));
227 source = response.body();
235 response = new ParsedResponse(dcp.processDebugJSONRequest(json));
236 assertFalse(response.response().success);
240 response = new ParsedResponse(dcp.processDebugJSONRequest(json));
241 source = response.body();
249 response = new ParsedResponse(resp);
250 // It might be argueable, but we expect response to have body when
252 assertTrue(!!response.body(), "response should be null");
253 assertTrue(response.running(), "expected running");