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

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

Issue 1431513010: Revert "Normalize type masks to use the least upper instantiated subclass/type." (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 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
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/compiler.dart'; 8 import 'package:compiler/src/compiler.dart';
9 import 'package:compiler/src/diagnostics/messages.dart' show 9 import 'package:compiler/src/diagnostics/messages.dart' show
10 MessageKind; 10 MessageKind;
(...skipping 896 matching lines...) Expand 10 before | Expand all | Expand 10 after
907 } 907 }
908 """, 908 """,
909 main: """ 909 main: """
910 main () { 910 main () {
911 new A(); // ensure A and B are instantiated 911 new A(); // ensure A and B are instantiated
912 new B(); 912 new B();
913 } 913 }
914 """, 914 """,
915 runCompiler: true, analyzeOnly: true); 915 runCompiler: true, analyzeOnly: true);
916 World world = compiler.world; 916 World world = compiler.world;
917 world.populate();
918 917
919 ClassElement cls = ensure(compiler, "A", compiler.coreLibrary.find, 918 ClassElement cls = ensure(compiler, "A", compiler.coreLibrary.find,
920 expectIsPatched: true); 919 expectIsPatched: true);
921 cls.ensureResolved(compiler.resolution); 920 cls.ensureResolved(compiler.resolution);
922 921
923 ensure(compiler, "method", cls.patch.lookupLocalMember, 922 ensure(compiler, "method", cls.patch.lookupLocalMember,
924 checkHasBody: true, expectIsRegular: true); 923 checkHasBody: true, expectIsRegular: true);
925 924
926 ensure(compiler, "clear", cls.lookupLocalMember, 925 ensure(compiler, "clear", cls.lookupLocalMember,
927 checkHasBody: true, expectIsPatched: true); 926 checkHasBody: true, expectIsPatched: true);
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
1080 await testPatchNonFunction(); 1079 await testPatchNonFunction();
1081 1080
1082 await testPatchAndSelector(); 1081 await testPatchAndSelector();
1083 1082
1084 await testEffectiveTarget(); 1083 await testEffectiveTarget();
1085 1084
1086 await testAnalyzeAllInjectedMembers(); 1085 await testAnalyzeAllInjectedMembers();
1087 await testTypecheckPatchedMembers(); 1086 await testTypecheckPatchedMembers();
1088 }); 1087 });
1089 } 1088 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/mock_libraries.dart ('k') | tests/compiler/dart2js/type_combination_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698