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

Side by Side Diff: tests/compiler/dart2js/backend_dart/dart_new_backend_test.dart

Issue 639733004: Don't emit /* new backend */ comment by default. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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/compiler/implementation/dart_backend/backend_ast_to_frontend_ast.dart ('k') | no next file » | 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 '../compiler_helper.dart'; 5 import '../compiler_helper.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 'package:compiler/implementation/dart2jslib.dart'; 8 import 'package:compiler/implementation/dart2jslib.dart';
9 import 'package:compiler/implementation/dart_backend/dart_backend.dart'; 9 import 'package:compiler/implementation/dart_backend/dart_backend.dart';
10 import 'package:compiler/implementation/dart_backend/backend_ast_to_frontend_ast .dart'
11 show INSERT_NEW_BACKEND_COMMENT;
10 12
11 const String TestStaticField = """ 13 const String TestStaticField = """
12 class Foo { 14 class Foo {
13 static int x = 1; 15 static int x = 1;
14 } 16 }
15 main() { 17 main() {
16 print(Foo.x); 18 print(Foo.x);
17 } 19 }
18 """; 20 """;
19 21
(...skipping 24 matching lines...) Expand all
44 Future test(String code, String feature) { 46 Future test(String code, String feature) {
45 return compile(code).then((output) { 47 return compile(code).then((output) {
46 if (output == null || !output.contains('main() /* new backend */')) { 48 if (output == null || !output.contains('main() /* new backend */')) {
47 throw 'New backend appears to be deactivated for $feature.\n' 49 throw 'New backend appears to be deactivated for $feature.\n'
48 'Output was: $output'; 50 'Output was: $output';
49 } 51 }
50 }); 52 });
51 } 53 }
52 54
53 main() { 55 main() {
56 INSERT_NEW_BACKEND_COMMENT = true;
57
54 asyncTest(() => Future.forEach([ 58 asyncTest(() => Future.forEach([
55 () => test(TestStaticField, 'static fields'), 59 () => test(TestStaticField, 'static fields'),
56 ], (f) => f())); 60 ], (f) => f()));
57 } 61 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/dart_backend/backend_ast_to_frontend_ast.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698