| Index: tests/compiler/dart2js/switch_empty_default_test.dart
|
| diff --git a/tests/compiler/dart2js/switch_empty_default_test.dart b/tests/compiler/dart2js/switch_empty_default_test.dart
|
| index 8e89fad0dc6767411a8952afc3f54541e69f083f..d0d2f884c81889fda9a6300ef965429e3588bf3c 100644
|
| --- a/tests/compiler/dart2js/switch_empty_default_test.dart
|
| +++ b/tests/compiler/dart2js/switch_empty_default_test.dart
|
| @@ -3,7 +3,8 @@
|
| // BSD-style license that can be found in the LICENSE file.
|
| // Test constant folding on numbers.
|
|
|
| -import "package:expect/expect.dart";
|
| +import 'dart:async';
|
| +import 'package:async_helper/async_helper.dart';
|
| import 'compiler_helper.dart';
|
|
|
| const String SIMPLY_EMPTY = """
|
| @@ -119,10 +120,12 @@ main() {
|
| var defOrCase3 = new RegExp(r"(default:|case 3):");
|
| var case3 = new RegExp(r"case 3:");
|
|
|
| - compileAndDoNotMatch(SIMPLY_EMPTY, 'main', def);
|
| - compileAndDoNotMatch(TOTAL, 'main', defOrCase3);
|
| - compileAndDoNotMatch(OPTIMIZED, 'main', def);
|
| - compileAndMatch(LABEL, 'main', case3);
|
| - compileAndMatch(DEFLABEL, 'main', def);
|
| - compileAndMatch(EMPTYDEFLABEL, 'main', def);
|
| + asyncTest(() => Future.wait([
|
| + compileAndDoNotMatch(SIMPLY_EMPTY, 'main', def),
|
| + compileAndDoNotMatch(TOTAL, 'main', defOrCase3),
|
| + compileAndDoNotMatch(OPTIMIZED, 'main', def),
|
| + compileAndMatch(LABEL, 'main', case3),
|
| + compileAndMatch(DEFLABEL, 'main', def),
|
| + compileAndMatch(EMPTYDEFLABEL, 'main', def),
|
| + ]));
|
| }
|
|
|