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

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

Issue 694353007: Move dart2js from sdk/lib/_internal/compiler to pkg/compiler (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
« no previous file with comments | « tests/compiler/dart2js/part_of_test.dart ('k') | tests/compiler/dart2js/private_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "package:compiler/implementation/dart2jslib.dart"; 8 import "package:compiler/src/dart2jslib.dart";
9 import "package:compiler/implementation/elements/elements.dart"; 9 import "package:compiler/src/elements/elements.dart";
10 import "package:compiler/implementation/tree/tree.dart"; 10 import "package:compiler/src/tree/tree.dart";
11 import "mock_compiler.dart"; 11 import "mock_compiler.dart";
12 import "mock_libraries.dart"; 12 import "mock_libraries.dart";
13 import 'package:compiler/implementation/elements/modelx.dart'; 13 import 'package:compiler/src/elements/modelx.dart';
14 14
15 Future<Compiler> applyPatch(String script, String patch, 15 Future<Compiler> applyPatch(String script, String patch,
16 {bool analyzeAll: false, bool analyzeOnly: false, 16 {bool analyzeAll: false, bool analyzeOnly: false,
17 bool runCompiler: false, String main: ""}) { 17 bool runCompiler: false, String main: ""}) {
18 Map<String, String> core = <String, String>{'script': script}; 18 Map<String, String> core = <String, String>{'script': script};
19 MockCompiler compiler = new MockCompiler.internal(coreSource: core, 19 MockCompiler compiler = new MockCompiler.internal(coreSource: core,
20 analyzeAll: analyzeAll, 20 analyzeAll: analyzeAll,
21 analyzeOnly: analyzeOnly); 21 analyzeOnly: analyzeOnly);
22 var uri = Uri.parse("patch:core"); 22 var uri = Uri.parse("patch:core");
23 compiler.registerSource(uri, "$DEFAULT_PATCH_CORE_SOURCE\n$patch"); 23 compiler.registerSource(uri, "$DEFAULT_PATCH_CORE_SOURCE\n$patch");
(...skipping 874 matching lines...) Expand 10 before | Expand all | Expand 10 after
898 testPatchNoGetter(); 898 testPatchNoGetter();
899 testPatchNonSetter(); 899 testPatchNonSetter();
900 testPatchNoSetter(); 900 testPatchNoSetter();
901 testPatchNonFunction(); 901 testPatchNonFunction();
902 902
903 testPatchAndSelector(); 903 testPatchAndSelector();
904 904
905 testAnalyzeAllInjectedMembers(); 905 testAnalyzeAllInjectedMembers();
906 testTypecheckPatchedMembers(); 906 testTypecheckPatchedMembers();
907 } 907 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/part_of_test.dart ('k') | tests/compiler/dart2js/private_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698