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

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

Issue 338103004: Use metadata for patching. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
« no previous file with comments | « sdk/lib/_internal/lib/mirrors_patch.dart ('k') | tests/compiler/dart2js/mock_compiler.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 "package:expect/expect.dart"; 5 import "package:expect/expect.dart";
6 import 'dart:async'; 6 import 'dart:async';
7 import "package:async_helper/async_helper.dart"; 7 import "package:async_helper/async_helper.dart";
8 import 'mock_compiler.dart'; 8 import 'mock_compiler.dart';
9 import '../../../sdk/lib/_internal/compiler/compiler.dart'; 9 import '../../../sdk/lib/_internal/compiler/compiler.dart';
10 import '../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart' as l eg; 10 import '../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart' as l eg;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 String get userAgent; 69 String get userAgent;
70 } 70 }
71 '''; 71 ''';
72 72
73 const helperLib = r''' 73 const helperLib = r'''
74 library js_helper; 74 library js_helper;
75 class JSInvocationMirror {} 75 class JSInvocationMirror {}
76 assertHelper(a) {} 76 assertHelper(a) {}
77 class Closure {} 77 class Closure {}
78 class BoundClosure {} 78 class BoundClosure {}
79 const patch = 0;
79 '''; 80 ''';
80 81
81 const foreignLib = r''' 82 const foreignLib = r'''
82 var JS; 83 var JS;
83 '''; 84 ''';
84 85
85 const isolateHelperLib = r''' 86 const isolateHelperLib = r'''
86 class _WorkerStub { 87 class _WorkerStub {
87 } 88 }
88 '''; 89 ''';
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after
750 testStaticAccessIoLib(); 751 testStaticAccessIoLib();
751 testLocalFunctionPlaceholder(); 752 testLocalFunctionPlaceholder();
752 testMinification(); 753 testMinification();
753 testClosureLocalsMinified(); 754 testClosureLocalsMinified();
754 testParametersMinified(); 755 testParametersMinified();
755 testDeclarationTypePlaceholders(); 756 testDeclarationTypePlaceholders();
756 testPlatformLibraryMemberNamesAreFixed(); 757 testPlatformLibraryMemberNamesAreFixed();
757 testConflictsWithCoreLib(); 758 testConflictsWithCoreLib();
758 testUnresolvedNamedConstructor(); 759 testUnresolvedNamedConstructor();
759 } 760 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/lib/mirrors_patch.dart ('k') | tests/compiler/dart2js/mock_compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698