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

Unified Diff: tests/compiler/dart2js/ssa_phi_codegen_test.dart

Issue 326913002: Make dart2js unittests async. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/compiler/dart2js/source_mapping_test.dart ('k') | tests/compiler/dart2js/strength_eq_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/ssa_phi_codegen_test.dart
diff --git a/tests/compiler/dart2js/ssa_phi_codegen_test.dart b/tests/compiler/dart2js/ssa_phi_codegen_test.dart
index 9a1a0ed888457cdd7fc73784546d792e181645cf..2189e4961332f96bb1305419c3efd207aa048623 100644
--- a/tests/compiler/dart2js/ssa_phi_codegen_test.dart
+++ b/tests/compiler/dart2js/ssa_phi_codegen_test.dart
@@ -3,6 +3,8 @@
// BSD-style license that can be found in the LICENSE file.
// Test that parameters keep their names in the output.
+import 'dart:async';
+import 'package:async_helper/async_helper.dart';
import 'compiler_helper.dart';
const String TEST_ONE = r"""
@@ -68,20 +70,22 @@ void main() {
""";
main() {
- compileAndMatchFuzzy(TEST_ONE, 'foo', "var x = x === true \\? 2 : 3;");
- compileAndMatchFuzzy(TEST_ONE, 'foo', "print\\(x\\);");
+ asyncTest(() => Future.wait([
+ compileAndMatchFuzzy(TEST_ONE, 'foo', "var x = x === true \\? 2 : 3;"),
+ compileAndMatchFuzzy(TEST_ONE, 'foo', "print\\(x\\);"),
- compileAndMatchFuzzy(TEST_TWO, 'main', "x \\+= 10");
- compileAndMatchFuzzy(TEST_TWO, 'main', "\\+\\+x");
+ compileAndMatchFuzzy(TEST_TWO, 'main', "x \\+= 10"),
+ compileAndMatchFuzzy(TEST_TWO, 'main', "\\+\\+x"),
- // Check that we don't have 'd = d' (using regexp back references).
- compileAndDoNotMatchFuzzy(TEST_THREE, 'foo', '(x) = \1');
- compileAndMatchFuzzy(TEST_THREE, 'foo', 'return x');
- // Check that a store just after the declaration of the local
- // only generates one instruction.
- compileAndMatchFuzzy(TEST_THREE, 'foo', 'x = 42');
+ // Check that we don't have 'd = d' (using regexp back references).
+ compileAndDoNotMatchFuzzy(TEST_THREE, 'foo', '(x) = \1'),
+ compileAndMatchFuzzy(TEST_THREE, 'foo', 'return x'),
+ // Check that a store just after the declaration of the local
+ // only generates one instruction.
+ compileAndMatchFuzzy(TEST_THREE, 'foo', 'x = 42'),
- compileAndDoNotMatchFuzzy(TEST_FOUR, 'foo', '(x) = \1;');
+ compileAndDoNotMatchFuzzy(TEST_FOUR, 'foo', '(x) = \1;'),
- compileAndDoNotMatch(TEST_FIVE, 'main', new RegExp('hash0'));
+ compileAndDoNotMatch(TEST_FIVE, 'main', new RegExp('hash0')),
+ ]));
}
« no previous file with comments | « tests/compiler/dart2js/source_mapping_test.dart ('k') | tests/compiler/dart2js/strength_eq_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698