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

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

Issue 2976313002: Delete old tests that aren't used and/or useful any more. (Closed)
Patch Set: Resurrect dummy_compiler_test and recursive_import_test. Created 3 years, 5 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 // Test of "recursive" imports using the dart2js compiler API. 5 // Test of "recursive" imports using the dart2js compiler API.
6 6
7 import "package:expect/expect.dart";
8 import "package:async_helper/async_helper.dart";
9 import 'dart:async'; 7 import 'dart:async';
8
9 import 'package:expect/expect.dart';
10 import 'package:async_helper/async_helper.dart';
11 import 'package:compiler/compiler.dart';
12
10 import 'dummy_compiler_test.dart'; 13 import 'dummy_compiler_test.dart';
11 import 'package:compiler/compiler.dart';
12 14
13 const String RECURSIVE_MAIN = """ 15 const String RECURSIVE_MAIN = """
14 library fisk; 16 library fisk;
15 import 'recurse/fisk.dart'; 17 import 'recurse/fisk.dart';
16 main() {} 18 main() {}
17 """; 19 """;
18 20
19 main() { 21 main() {
20 int count = 0; 22 int count = 0;
21 Future<String> provider(Uri uri) { 23 Future<String> provider(Uri uri) {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 Expect.isFalse(result.isSuccess); 65 Expect.isFalse(result.isSuccess);
64 Expect.isTrue(10 < count); 66 Expect.isTrue(10 < count);
65 // Two warnings for each time RECURSIVE_MAIN is read, except the 67 // Two warnings for each time RECURSIVE_MAIN is read, except the
66 // first time. 68 // first time.
67 Expect.equals(2 * (count - 1), warningCount); 69 Expect.equals(2 * (count - 1), warningCount);
68 Expect.equals(1, errorCount); 70 Expect.equals(1, errorCount);
69 }, onError: (e, s) { 71 }, onError: (e, s) {
70 throw 'Compilation failed: $e\n$s'; 72 throw 'Compilation failed: $e\n$s';
71 }).then(asyncSuccess); 73 }).then(asyncSuccess);
72 } 74 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698