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

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

Issue 1278503004: Revert "Move dart2jslib parts into separate libraries." (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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
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/src/dart2jslib.dart'; 8 import "package:compiler/src/dart2jslib.dart";
9 import 'package:compiler/src/elements/elements.dart'; 9 import "package:compiler/src/elements/elements.dart";
10 import "package:compiler/src/tree/tree.dart";
11 import "package:compiler/src/types/types.dart";
12 import "mock_compiler.dart";
13 import "mock_libraries.dart";
10 import 'package:compiler/src/elements/modelx.dart'; 14 import 'package:compiler/src/elements/modelx.dart';
11 import 'package:compiler/src/messages.dart' show MessageKind;
12 import 'package:compiler/src/tree/tree.dart';
13 import 'package:compiler/src/types/types.dart';
14 import 'package:compiler/src/universe/universe.dart' show Selector;
15 import 'package:compiler/src/world.dart';
16
17 import 'mock_compiler.dart';
18 import 'mock_libraries.dart';
19 15
20 Future<Compiler> applyPatch(String script, String patch, 16 Future<Compiler> applyPatch(String script, String patch,
21 {bool analyzeAll: false, 17 {bool analyzeAll: false,
22 bool analyzeOnly: false, 18 bool analyzeOnly: false,
23 bool runCompiler: false, 19 bool runCompiler: false,
24 String main: "", 20 String main: "",
25 String patchVersion}) { 21 String patchVersion}) {
26 Map<String, String> core = <String, String>{'script': script}; 22 Map<String, String> core = <String, String>{'script': script};
27 MockCompiler compiler = new MockCompiler.internal(coreSource: core, 23 MockCompiler compiler = new MockCompiler.internal(coreSource: core,
28 analyzeAll: analyzeAll, 24 analyzeAll: analyzeAll,
(...skipping 990 matching lines...) Expand 10 before | Expand all | Expand 10 after
1019 testPatchNoSetter(); 1015 testPatchNoSetter();
1020 testPatchNonFunction(); 1016 testPatchNonFunction();
1021 1017
1022 testPatchAndSelector(); 1018 testPatchAndSelector();
1023 1019
1024 testEffectiveTarget(); /// bug: ok 1020 testEffectiveTarget(); /// bug: ok
1025 1021
1026 testAnalyzeAllInjectedMembers(); 1022 testAnalyzeAllInjectedMembers();
1027 testTypecheckPatchedMembers(); 1023 testTypecheckPatchedMembers();
1028 } 1024 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/part_of_test.dart ('k') | tests/compiler/dart2js/preserve_uris_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698