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

Side by Side Diff: dart/tests/compiler/dart2js/source_mapping_test.dart

Issue 341923005: Update imports to use package:compiler and package:try. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with r37512. Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 import 'dart:async'; 5 import 'dart:async';
6 import "package:expect/expect.dart"; 6 import "package:expect/expect.dart";
7 import "package:async_helper/async_helper.dart"; 7 import "package:async_helper/async_helper.dart";
8 import "../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart"; 8 import "package:compiler/implementation/dart2jslib.dart";
9 import '../../../sdk/lib/_internal/compiler/implementation/source_file.dart'; 9 import 'package:compiler/implementation/source_file.dart';
10 import "mock_compiler.dart"; 10 import "mock_compiler.dart";
11 import '../../../sdk/lib/_internal/compiler/implementation/js_backend/js_backend .dart'; 11 import 'package:compiler/implementation/js_backend/js_backend.dart';
12 12
13 Future<CodeBuffer> compileAll(SourceFile sourceFile) { 13 Future<CodeBuffer> compileAll(SourceFile sourceFile) {
14 MockCompiler compiler = new MockCompiler.internal(); 14 MockCompiler compiler = new MockCompiler.internal();
15 Uri uri = new Uri(path: sourceFile.filename); 15 Uri uri = new Uri(path: sourceFile.filename);
16 compiler.sourceFiles[uri.toString()] = sourceFile; 16 compiler.sourceFiles[uri.toString()] = sourceFile;
17 JavaScriptBackend backend = compiler.backend; 17 JavaScriptBackend backend = compiler.backend;
18 return compiler.runCompiler(uri).then((_) { 18 return compiler.runCompiler(uri).then((_) {
19 return backend.emitter.mainBuffer; 19 return backend.emitter.mainBuffer;
20 }); 20 });
21 } 21 }
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 testSourceMapLocations(FUNCTIONS_TEST); 104 testSourceMapLocations(FUNCTIONS_TEST);
105 testSourceMapLocations(RETURN_TEST); 105 testSourceMapLocations(RETURN_TEST);
106 testSourceMapLocations(NOT_TEST); 106 testSourceMapLocations(NOT_TEST);
107 testSourceMapLocations(UNARY_TEST); 107 testSourceMapLocations(UNARY_TEST);
108 testSourceMapLocations(BINARY_TEST); 108 testSourceMapLocations(BINARY_TEST);
109 testSourceMapLocations(SEND_TEST); 109 testSourceMapLocations(SEND_TEST);
110 testSourceMapLocations(SEND_SET_TEST); 110 testSourceMapLocations(SEND_SET_TEST);
111 testSourceMapLocations(LOOP_TEST); 111 testSourceMapLocations(LOOP_TEST);
112 testSourceMapLocations(INTERCEPTOR_TEST); 112 testSourceMapLocations(INTERCEPTOR_TEST);
113 } 113 }
OLDNEW
« no previous file with comments | « dart/tests/compiler/dart2js/source_map_d2js_validity_test.dart ('k') | dart/tests/compiler/dart2js/space_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698