| 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 // This code was auto-generated, is not intended to be edited, and is subject to | 5 // This code was auto-generated, is not intended to be edited, and is subject to |
| 6 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
| 7 | 7 |
| 8 library engine.test_support; | 8 library engine.test_support; |
| 9 | 9 |
| 10 import 'dart:collection'; | 10 import 'dart:collection'; |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 actualCount = list.length; | 286 actualCount = list.length; |
| 287 } | 287 } |
| 288 if (actualCount != expectedCount) { | 288 if (actualCount != expectedCount) { |
| 289 if (buffer.length == 0) { | 289 if (buffer.length == 0) { |
| 290 buffer.write("Expected "); | 290 buffer.write("Expected "); |
| 291 } else { | 291 } else { |
| 292 buffer.write("; "); | 292 buffer.write("; "); |
| 293 } | 293 } |
| 294 buffer.write(expectedCount); | 294 buffer.write(expectedCount); |
| 295 buffer.write(" errors of type "); | 295 buffer.write(" errors of type "); |
| 296 buffer.write("${code.runtimeType}.$code"); | 296 buffer.write(code.uniqueName); |
| 297 buffer.write(", found "); | 297 buffer.write(", found "); |
| 298 buffer.write(actualCount); | 298 buffer.write(actualCount); |
| 299 } | 299 } |
| 300 }); | 300 }); |
| 301 // | 301 // |
| 302 // Check that there are no more errors in the actual-errors map, | 302 // Check that there are no more errors in the actual-errors map, |
| 303 // otherwise record message. | 303 // otherwise record message. |
| 304 // | 304 // |
| 305 errorsByCode.forEach((ErrorCode code, List<AnalysisError> actualErrors) { | 305 errorsByCode.forEach((ErrorCode code, List<AnalysisError> actualErrors) { |
| 306 int actualCount = actualErrors.length; | 306 int actualCount = actualErrors.length; |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 638 void getContentsToReceiver(Source_ContentReceiver receiver) { | 638 void getContentsToReceiver(Source_ContentReceiver receiver) { |
| 639 throw new UnsupportedOperationException(); | 639 throw new UnsupportedOperationException(); |
| 640 } | 640 } |
| 641 Source resolve(String uri) { | 641 Source resolve(String uri) { |
| 642 throw new UnsupportedOperationException(); | 642 throw new UnsupportedOperationException(); |
| 643 } | 643 } |
| 644 Uri resolveRelativeUri(Uri uri) { | 644 Uri resolveRelativeUri(Uri uri) { |
| 645 return new Uri(scheme: 'file', path: _name).resolveUri(uri); | 645 return new Uri(scheme: 'file', path: _name).resolveUri(uri); |
| 646 } | 646 } |
| 647 } | 647 } |
| OLD | NEW |