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

Side by Side Diff: pkg/analysis_server/test/integration/integration_test_methods.dart

Issue 904733003: Rework requests in execution domain (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Clean-up Created 5 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 // 4 //
5 // This file has been automatically generated. Please do not edit it manually. 5 // This file has been automatically generated. Please do not edit it manually.
6 // To regenerate the file, use the script 6 // To regenerate the file, use the script
7 // "pkg/analysis_server/tool/spec/generate_files". 7 // "pkg/analysis_server/tool/spec/generate_files".
8 8
9 /** 9 /**
10 * Convenience methods for running integration tests 10 * Convenience methods for running integration tests
(...skipping 1307 matching lines...) Expand 10 before | Expand all | Expand 10 after
1318 /** 1318 /**
1319 * Create an execution context for the executable file with the given path. 1319 * Create an execution context for the executable file with the given path.
1320 * The context that is created will persist until execution.deleteContext is 1320 * The context that is created will persist until execution.deleteContext is
1321 * used to delete it. Clients, therefore, are responsible for managing the 1321 * used to delete it. Clients, therefore, are responsible for managing the
1322 * lifetime of execution contexts. 1322 * lifetime of execution contexts.
1323 * 1323 *
1324 * Parameters 1324 * Parameters
1325 * 1325 *
1326 * contextRoot ( FilePath ) 1326 * contextRoot ( FilePath )
1327 * 1327 *
1328 * The path of the Dart or HTML file that will be launched. 1328 * The path of the Dart or HTML file that will be launched, or the path of
1329 * the directory containing the file.
1329 * 1330 *
1330 * Returns 1331 * Returns
1331 * 1332 *
1332 * id ( ExecutionContextId ) 1333 * id ( ExecutionContextId )
1333 * 1334 *
1334 * The identifier used to refer to the execution context that was created. 1335 * The identifier used to refer to the execution context that was created.
1335 */ 1336 */
1336 Future<ExecutionCreateContextResult> sendExecutionCreateContext(String context Root) { 1337 Future<ExecutionCreateContextResult> sendExecutionCreateContext(String context Root) {
1337 var params = new ExecutionCreateContextParams(contextRoot).toJson(); 1338 var params = new ExecutionCreateContextParams(contextRoot).toJson();
1338 return server.send("execution.createContext", params) 1339 return server.send("execution.createContext", params)
(...skipping 20 matching lines...) Expand all
1359 .then((result) { 1360 .then((result) {
1360 expect(result, isNull); 1361 expect(result, isNull);
1361 return null; 1362 return null;
1362 }); 1363 });
1363 } 1364 }
1364 1365
1365 /** 1366 /**
1366 * Map a URI from the execution context to the file that it corresponds to, 1367 * Map a URI from the execution context to the file that it corresponds to,
1367 * or map a file to the URI that it corresponds to in the execution context. 1368 * or map a file to the URI that it corresponds to in the execution context.
1368 * 1369 *
1369 * Exactly one of the file and uri fields must be provided. 1370 * Exactly one of the file and uri fields must be provided. If both fields
1371 * are provided, then an error of type INVALID_PARAMETER will be generated.
1372 * Similarly, if neither field is provided, then an error of type
1373 * INVALID_PARAMETER will be generated.
1370 * 1374 *
1371 * If the file field is provided and the value is not the path of a file 1375 * If the file field is provided and the value is not the path of a file
1372 * (either the file does not exist or the path references something other 1376 * (either the file does not exist or the path references something other
1373 * than a file), then an error of type MAP_URI_INVALID_FILE will be 1377 * than a file), then an error of type INVALID_PARAMETER will be generated.
1374 * generated.
1375 * 1378 *
1376 * If the uri field is provided and the value is not a valid URI or if the 1379 * If the uri field is provided and the value is not a valid URI or if the
1377 * URI references something that is not a file (either a file that does not 1380 * URI references something that is not a file (either a file that does not
1378 * exist or something other than a file), then an error of type 1381 * exist or something other than a file), then an error of type
1379 * MAP_URI_INVALID_URI will be generated. 1382 * INVALID_PARAMETER will be generated.
1380 * 1383 *
1381 * If the contextRoot used to create the execution context is not a file 1384 * If the contextRoot used to create the execution context does not exist,
1382 * (either the file does not exist or the path references something other 1385 * then an error of type INVALID_EXECUTION_CONTEXT will be generated.
1383 * than a file), then an error of type INVALID_EXECUTION_CONTEXT will be
1384 * generated.
1385 * 1386 *
1386 * Parameters 1387 * Parameters
1387 * 1388 *
1388 * id ( ExecutionContextId ) 1389 * id ( ExecutionContextId )
1389 * 1390 *
1390 * The identifier of the execution context in which the URI is to be 1391 * The identifier of the execution context in which the URI is to be
1391 * mapped. 1392 * mapped.
1392 * 1393 *
1393 * file ( optional FilePath ) 1394 * file ( optional FilePath )
1394 * 1395 *
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
1576 case "execution.launchData": 1577 case "execution.launchData":
1577 expect(params, isExecutionLaunchDataParams); 1578 expect(params, isExecutionLaunchDataParams);
1578 _onExecutionLaunchData.add(new ExecutionLaunchDataParams.fromJson(decode r, 'params', params)); 1579 _onExecutionLaunchData.add(new ExecutionLaunchDataParams.fromJson(decode r, 'params', params));
1579 break; 1580 break;
1580 default: 1581 default:
1581 fail('Unexpected notification: $event'); 1582 fail('Unexpected notification: $event');
1582 break; 1583 break;
1583 } 1584 }
1584 } 1585 }
1585 } 1586 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698