| OLD | NEW | 
|---|
| 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.completion.support; | 5 library test.completion.support; | 
| 6 | 6 | 
| 7 import 'dart:async'; | 7 import 'dart:async'; | 
| 8 import 'dart:collection'; | 8 import 'dart:collection'; | 
| 9 | 9 | 
| 10 import 'package:analysis_server/src/protocol.dart'; | 10 import 'package:analysis_server/src/protocol.dart'; | 
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 183       } | 183       } | 
| 184       if (test.positiveResults.isEmpty && test.negativeResults.isEmpty) { | 184       if (test.positiveResults.isEmpty && test.negativeResults.isEmpty) { | 
| 185         badResults.add(test.id); | 185         badResults.add(test.id); | 
| 186       } | 186       } | 
| 187     } | 187     } | 
| 188     if (!(badPoints.isEmpty && badResults.isEmpty)) { | 188     if (!(badPoints.isEmpty && badResults.isEmpty)) { | 
| 189       StringBuffer err = new StringBuffer(); | 189       StringBuffer err = new StringBuffer(); | 
| 190       if (!badPoints.isEmpty) { | 190       if (!badPoints.isEmpty) { | 
| 191         err.write("No test location for tests:"); | 191         err.write("No test location for tests:"); | 
| 192         for (String ch in badPoints) { | 192         for (String ch in badPoints) { | 
| 193           err | 193           err..write(' ')..write(ch); | 
| 194             ..write(' ') |  | 
| 195             ..write(ch); |  | 
| 196         } | 194         } | 
| 197         err.write(' '); | 195         err.write(' '); | 
| 198       } | 196       } | 
| 199       if (!badResults.isEmpty) { | 197       if (!badResults.isEmpty) { | 
| 200         err.write("No results for tests:"); | 198         err.write("No results for tests:"); | 
| 201         for (String ch in badResults) { | 199         for (String ch in badResults) { | 
| 202           err | 200           err..write(' ')..write(ch); | 
| 203             ..write(' ') |  | 
| 204             ..write(ch); |  | 
| 205         } | 201         } | 
| 206       } | 202       } | 
| 207       throw new IllegalStateException(err.toString()); | 203       throw new IllegalStateException(err.toString()); | 
| 208     } | 204     } | 
| 209     return tests.values.toList(); | 205     return tests.values.toList(); | 
| 210   } | 206   } | 
| 211 } | 207 } | 
| OLD | NEW | 
|---|