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