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

Side by Side Diff: pkg/analyzer/test/generated/all_the_rest.dart

Issue 680863002: Remove JavaStringBuilder (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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 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.all_the_rest_test; 8 library engine.all_the_rest_test;
9 9
10 import 'dart:collection'; 10 import 'dart:collection';
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 bool success = expectedLineStarts.length == lineStarts.length; 434 bool success = expectedLineStarts.length == lineStarts.length;
435 if (success) { 435 if (success) {
436 for (int i = 0; i < lineStarts.length; i++) { 436 for (int i = 0; i < lineStarts.length; i++) {
437 if (expectedLineStarts[i] != lineStarts[i]) { 437 if (expectedLineStarts[i] != lineStarts[i]) {
438 success = false; 438 success = false;
439 break; 439 break;
440 } 440 }
441 } 441 }
442 } 442 }
443 if (!success) { 443 if (!success) {
444 JavaStringBuilder msg = new JavaStringBuilder(); 444 StringBuffer buffer = new StringBuffer();
445 msg.append("Expected line starts "); 445 buffer.write("Expected line starts ");
446 for (int start in expectedLineStarts) { 446 for (int start in expectedLineStarts) {
447 msg.append(start); 447 buffer.write(start);
448 msg.append(", "); 448 buffer.write(", ");
449 } 449 }
450 msg.append(" but found "); 450 buffer.write(" but found ");
451 for (int start in lineStarts) { 451 for (int start in lineStarts) {
452 msg.append(start); 452 buffer.write(start);
453 msg.append(", "); 453 buffer.write(", ");
454 } 454 }
455 JUnitTestCase.fail(msg.toString()); 455 JUnitTestCase.fail(buffer.toString());
456 } 456 }
457 return firstToken; 457 return firstToken;
458 } 458 }
459 } 459 }
460 460
461 461
462 class AngularCompilationUnitBuilderTest extends AngularTest { 462 class AngularCompilationUnitBuilderTest extends AngularTest {
463 void test_Decorator() { 463 void test_Decorator() {
464 String mainContent = _createAngularSource( 464 String mainContent = _createAngularSource(
465 [ 465 [
(...skipping 10709 matching lines...) Expand 10 before | Expand all | Expand 10 after
11175 } else { 11175 } else {
11176 JUnitTestCase.assertNotNullMsg("script ${scriptIndex}", scriptSource); 11176 JUnitTestCase.assertNotNullMsg("script ${scriptIndex}", scriptSource);
11177 String actualExternalScriptName = scriptSource.shortName; 11177 String actualExternalScriptName = scriptSource.shortName;
11178 JUnitTestCase.assertEqualsMsg( 11178 JUnitTestCase.assertEqualsMsg(
11179 "script ${scriptIndex}", 11179 "script ${scriptIndex}",
11180 _expectedExternalScriptName, 11180 _expectedExternalScriptName,
11181 actualExternalScriptName); 11181 actualExternalScriptName);
11182 } 11182 }
11183 } 11183 }
11184 } 11184 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698