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

Side by Side Diff: pkg/analysis_server/test/domain_context_test.dart

Issue 196353006: (TBR) improve error message when fails on bots (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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
« no previous file with comments | « no previous file | 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) 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 library test.domain.context; 5 library test.domain.context;
6 6
7 import 'package:analyzer/src/generated/engine.dart'; 7 import 'package:analyzer/src/generated/engine.dart';
8 import 'package:analysis_server/src/analysis_server.dart'; 8 import 'package:analysis_server/src/analysis_server.dart';
9 import 'package:analysis_server/src/domain_context.dart'; 9 import 'package:analysis_server/src/domain_context.dart';
10 import 'package:analysis_server/src/domain_server.dart'; 10 import 'package:analysis_server/src/domain_server.dart';
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 Response.ID: '0', 89 Response.ID: '0',
90 Response.ERROR: null 90 Response.ERROR: null
91 })); 91 }));
92 } 92 }
93 93
94 static String _createContext(AnalysisServer server) { 94 static String _createContext(AnalysisServer server) {
95 ServerDomainHandler handler = new ServerDomainHandler(server); 95 ServerDomainHandler handler = new ServerDomainHandler(server);
96 Request request = new Request('0', ServerDomainHandler.CREATE_CONTEXT_METHOD ); 96 Request request = new Request('0', ServerDomainHandler.CREATE_CONTEXT_METHOD );
97 request.setParameter(ServerDomainHandler.SDK_DIRECTORY_PARAM, sdkPath); 97 request.setParameter(ServerDomainHandler.SDK_DIRECTORY_PARAM, sdkPath);
98 Response response = handler.handleRequest(request); 98 Response response = handler.handleRequest(request);
99 if (response.error != null) {
100 fail('Unexpected error: ${response.error.toJson()}');
101 }
99 expect(response.error, isNull); 102 expect(response.error, isNull);
100 return response.getResult(ServerDomainHandler.CONTEXT_ID_RESULT); 103 return response.getResult(ServerDomainHandler.CONTEXT_ID_RESULT);
101 } 104 }
102 } 105 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698