forked from dart-lang/webdev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfrontend_server_ddc_and_canary_evaluate_test.dart
54 lines (48 loc) · 1.76 KB
/
frontend_server_ddc_and_canary_evaluate_test.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@Tags(['daily'])
@TestOn('vm')
@Timeout(Duration(minutes: 5))
library;
import 'package:dwds/expression_compiler.dart';
import 'package:test/test.dart';
import 'package:test_common/test_sdk_configuration.dart';
import 'evaluate_common.dart';
import 'fixtures/context.dart';
import 'fixtures/project.dart';
void main() async {
// Enable verbose logging for debugging.
final debug = false;
final provider = TestSdkConfigurationProvider(
verbose: debug,
ddcModuleFormat: ModuleFormat.ddc,
canaryFeatures: true,
);
tearDownAll(provider.dispose);
for (final useDebuggerModuleNames in [false, true]) {
group('Debugger module names: $useDebuggerModuleNames |', () {
group('DDC module system and canary |', () {
for (final indexBaseMode in IndexBaseMode.values) {
group(
'with ${indexBaseMode.name} |',
() {
testAll(
provider: provider,
compilationMode: CompilationMode.frontendServer,
indexBaseMode: indexBaseMode,
useDebuggerModuleNames: useDebuggerModuleNames,
debug: debug,
);
},
// TODO(#2488): Restore the skip argument below, related to
// https://github.com/dart-lang/sdk/issues/49277, once
// https://github.com/dart-lang/webdev/issues/2488 is resolved.
// skip: indexBaseMode == IndexBaseMode.base && Platform.isWindows,
skip: 'https://github.com/dart-lang/webdev/issues/2488',
);
}
});
});
}
}