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

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

Issue 649873007: Remove Math and most uses of PrintStringWriter (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 10904 matching lines...) Expand 10 before | Expand all | Expand 10 after
10915 * Assert that no errors were found while traversing any of the AST structures that have been 10915 * Assert that no errors were found while traversing any of the AST structures that have been
10916 * visited. 10916 * visited.
10917 */ 10917 */
10918 void assertValid() { 10918 void assertValid() {
10919 while (_expectedTagsIndex < _expectedTagsInOrderVisited.length) { 10919 while (_expectedTagsIndex < _expectedTagsInOrderVisited.length) {
10920 String expectedTag = 10920 String expectedTag =
10921 _expectedTagsInOrderVisited[_expectedTagsIndex++]._tag; 10921 _expectedTagsInOrderVisited[_expectedTagsIndex++]._tag;
10922 _errors.add("Expected to visit node with tag: ${expectedTag}"); 10922 _errors.add("Expected to visit node with tag: ${expectedTag}");
10923 } 10923 }
10924 if (!_errors.isEmpty) { 10924 if (!_errors.isEmpty) {
10925 PrintStringWriter writer = new PrintStringWriter(); 10925 StringBuffer buffer = new StringBuffer();
10926 writer.print("Invalid XML structure:"); 10926 buffer.write("Invalid XML structure:");
10927 for (String message in _errors) { 10927 for (String message in _errors) {
10928 writer.newLine(); 10928 buffer.writeln();
10929 writer.print(" "); 10929 buffer.write(" ");
10930 writer.print(message); 10930 buffer.write(message);
10931 } 10931 }
10932 JUnitTestCase.fail(writer.toString()); 10932 JUnitTestCase.fail(buffer.toString());
10933 } 10933 }
10934 } 10934 }
10935 /** 10935 /**
10936 * Set the tags to be expected when visiting 10936 * Set the tags to be expected when visiting
10937 * 10937 *
10938 * @param expectedTags the expected tags 10938 * @param expectedTags the expected tags
10939 */ 10939 */
10940 void expectTags(List<XmlValidator_Tag> expectedTags) { 10940 void expectTags(List<XmlValidator_Tag> expectedTags) {
10941 // Flatten the hierarchy into expected order in which the tags are visited 10941 // Flatten the hierarchy into expected order in which the tags are visited
10942 List<XmlValidator_Tag> expected = new List<XmlValidator_Tag>(); 10942 List<XmlValidator_Tag> expected = new List<XmlValidator_Tag>();
(...skipping 232 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
« no previous file with comments | « pkg/analyzer/lib/src/generated/utilities_collection.dart ('k') | pkg/analyzer/test/generated/resolver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698