OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 // TODO(jakemac): swap this to @TestOn('pub-serve') once | 5 // TODO(jakemac): swap this to @TestOn('pub-serve') once |
6 // https://github.com/dart-lang/test/issues/388 is completed. | 6 // https://github.com/dart-lang/test/issues/388 is completed. |
7 @TestOn('!js') | 7 @TestOn('!js') |
8 library initialize.initializer_cycle_error_test; | 8 library initialize.initializer_cycle_error_test; |
9 | 9 |
10 import 'cycle_a.dart' as cycle_a; // Causes a cycle. | 10 import 'cycle_a.dart' as cycle_a; // Causes a cycle. |
11 import 'package:initialize/initialize.dart'; | 11 import 'package:initialize/initialize.dart'; |
12 import 'package:test/test.dart'; | 12 import 'package:test/test.dart'; |
13 | 13 |
14 /// Uses [cycle_a]. | 14 /// Uses [cycle_a]. |
15 main() { | 15 main() { |
16 test('super class cycles are not supported', () { | 16 test('super class cycles are not supported', () { |
17 expect(run, throwsUnsupportedError); | 17 expect(run, throwsUnsupportedError); |
18 }, skip: 'Should be skipped only in pub-serve mode, blocked on ' | 18 }, |
19 'https://github.com/dart-lang/test/issues/388.'); | 19 skip: 'Should be skipped only in pub-serve mode, blocked on ' |
| 20 'https://github.com/dart-lang/test/issues/388.'); |
20 } | 21 } |
OLD | NEW |