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

Unified Diff: tests/compiler/dart2js/parser_helper.dart

Issue 15301003: Revert r22847: some dart2dart tests fail. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/compiler/dart2js/mock_compiler.dart ('k') | tests/compiler/dart2js/type_checker_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/parser_helper.dart
===================================================================
--- tests/compiler/dart2js/parser_helper.dart (revision 22847)
+++ tests/compiler/dart2js/parser_helper.dart (working copy)
@@ -78,17 +78,10 @@
: super('<string>', text);
}
-var sourceCounter = 0;
-
Link<Element> parseUnit(String text, Compiler compiler,
- LibraryElement library,
- [void registerSource(Uri uri, String source)]) {
+ LibraryElement library) {
Token tokens = scan(text);
- Uri uri =
- new Uri.fromComponents(scheme: "source", path: '${++sourceCounter}');
- if (registerSource != null) {
- registerSource(uri, text);
- }
+ Uri uri = new Uri.fromComponents(scheme: "source");
var script = new Script(uri, new MockFile(text));
var unit = new CompilationUnitElementX(script, library);
int id = 0;
« no previous file with comments | « tests/compiler/dart2js/mock_compiler.dart ('k') | tests/compiler/dart2js/type_checker_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698